/* ===== CSS VÁLTOZÓK ===== */
:root {
  --primary: #0f172a;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #e11d48;
  
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 15px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 20px rgba(0,0,0,.2);
  
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-full: 50px;
  
  --spacing-xs: 10px;
  --spacing-sm: 20px;
  --spacing-md: 30px;
  --spacing-lg: 60px;
  
  --transition: 0.3s ease;
  --transition-fast: 0.25s ease;
}

/* ===== RESET & BASE ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h2 { margin-bottom: 0.5rem; }
h3 { margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  transition: var(--transition);
  color: inherit;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 12px 25px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(225,29,72,0.3);
  text-align: center;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225,29,72,0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 25px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 15px 35px;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-top: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--bg-lighter);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  border-radius: var(--radius-md);
  justify-content: center;
}

.btn-small {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 5px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-small:hover {
  background: var(--accent-hover);
}

.btn-large {
  padding: 16px 35px;
  font-size: 1rem;
}

/* ===== HERO - NO SHIFT! ===== */
.hero {
  width: 100%;
  min-height: 100vh; /* Teljes viewport magasság */
  height: auto; /* Auto magasság, tartalomhoz igazodik */
  background-color: var(--primary);
  background-image: url("kepek/hero_1200.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  contain: layout style paint;
  content-visibility: auto;
  
  /* KRITIKUS: Padding top és bottom */
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  contain: layout style paint;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
  padding: 0; /* Nincs padding, mert a hero-nak van */
  contain: layout;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-wrap: wrap;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== SECTIONS ===== */
.section-padding {
  padding: 100px 0;
}

section[id] {
  scroll-margin-top: 90px;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.section-title-left {
  text-align: left;
  margin-bottom: var(--spacing-md);
}

.section-desc-left {
  text-align: left;
  margin-bottom: 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(20px, 3vw, 30px);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  contain: layout style;
  content-visibility: auto;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px -15px rgba(0,0,0,0.2);
}

.service-card h3 {
  margin: 0.4rem 0 0.7rem;
  line-height: 1.25;
  font-size: 1.3rem;
  min-height: 3.25em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
}

.icon-box {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: center;
}

/* ===== PROCESS ===== */
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  text-align: center;
}

.step {
  flex: 1;
  position: relative;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(225,29,72,0.1);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  user-select: none;
}

.step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

.step p {
  margin: 0;
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-sm);
}

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-text > p {
  margin: 0 0 1.2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: 25px;
}

.info-item > svg {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  background: rgba(225,29,72,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 12px;
}

.info-item h4 {
  margin: 0 0 0.2rem;
  line-height: 1.25;
  font-size: 1.1rem;
}

.info-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.info-item a {
  color: var(--accent);
  font-weight: 600;
}

.info-item a:hover {
  text-decoration: underline;
}

/* ===== FORM ===== */
.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.12);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 500;
}

.error-message:not(:empty) {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  display: inline;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-group label a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
  color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--text-lighter);
  padding: 30px 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-lighter);
  margin: 0 10px;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1e293b;
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  margin: 0 auto;
  contain: layout style paint;
  content-visibility: auto;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== ABOUT ===== */
.rolunk-layout {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.rolunk-image {
  flex: 1;
  min-height: 400px;
  background: var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.rolunk-image::after {
  content: 'Kép helye';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-lighter);
  font-weight: 700;
  font-size: 1.5rem;
}

.rolunk-content {
  flex: 1;
}

.rolunk-list {
  list-style: none;
  margin-top: var(--spacing-md);
}

.rolunk-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.rolunk-list svg {
  color: var(--accent);
  background: rgba(225,29,72,0.1);
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 9px;
}

/* ===== SVG ICONS ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .rolunk-layout {
    flex-direction: column;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .step {
    margin-bottom: 40px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto; /* Auto magasság mobilon */
    min-height: 100vh; /* Teljes viewport */
    background-image: url("kepek/hero_1200.webp");
    background-attachment: scroll;
    padding: 100px 0 60px; /* Kiegyensúlyozott padding */
  }
  
  .hero-content {
    min-height: auto; /* Auto mobilon */
    padding-top: 0; /* Nincs extra padding */
  }
  
  .hero h1 {
    font-size: 2.5rem;
    min-height: 2.4em;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    min-height: 5.6em;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    min-height: 130px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    align-items: stretch;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    display: flex;
    margin: 0;
    padding: 12px 0;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .section-header {
    margin-bottom: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 34px 24px;
  }
  
  .service-card h3 {
    margin-bottom: 0.6rem;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-white {
    min-height: 44px;
    padding: 14px 28px;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* HAMBURGER MENÜ GOMB FIX */
  .nav-links .btn-primary {
    width: 100%;
    margin: 15px 0 0 0;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(225,29,72,0.3);
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: none !important;
  }
  
  .nav-links .btn-primary:hover {
    background: var(--accent-hover);
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 0 50px; /* Kompaktabb mobilon */
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .cta-banner {
    padding: 60px 0;
  }
  
  .cta-banner h2 {
    font-size: 1.8rem;
  }
}

/* ===== EXTRA KICSI MOBIL ===== */
@media (max-width: 360px) {
  .nav-links {
    max-width: 280px;
    padding: 15px;
  }
  
  .nav-links a {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  
  .nav-links .btn-primary {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }
  
  .service-card {
    transition: none;
  }
}