/* =====================================================
   RESET & TOKENS
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:        #333d78;
  --blue-dark:   #252d5c;
  --blue-mid:    #3d4990;
  --yellow:      #ffc907;
  --yellow-dark: #e6b400;
  --white:       #ffffff;
  --off-white:   #f4f7fb;
  --text-muted:  rgba(255,255,255,0.78);
  --text-dark:   #1a1f3c;
  --border:      rgba(255,255,255,0.12);
  --shadow:      0 4px 24px rgba(0,0,0,0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--blue);
  color: var(--white);
  line-height: 1.6;
  font-size: 18px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =====================================================
   BUTTONS  [ASZTALI + TELEFON]
   ===================================================== */
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 17px 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  line-height: 1.2;
  min-height: 56px;
}
.btn-primary:hover { background: var(--yellow-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 34px;
  border-radius: 6px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  min-height: 56px;
}
.btn-outline:hover { background: var(--white); color: var(--blue); }

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 17px 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  min-height: 56px;
}
.btn-tel:hover { background: var(--yellow-dark); }


/* =====================================================
   HEADER  [ASZTALI]
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--blue-dark);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 24px;
}

.header-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-accent { color: var(--yellow); }

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--yellow);
  flex-shrink: 0;
}
.header-tel svg { flex-shrink: 0; }

.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.2px;
}
.nav-list a:hover { background: rgba(255,255,255,0.08); color: var(--yellow); }

/* Hamburger – csak telefonon látszik */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}


/* =====================================================
   HERO  [ASZTALI]
   ===================================================== */
.hero {
  padding-top: 70px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  pointer-events: none;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(25, 32, 70, 0.78) 0%,
    rgba(25, 32, 70, 0.84) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 860px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,201,7,0.15);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,201,7,0.35);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-sub2 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.hero-time {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}


/* =====================================================
   STATEMENT SECTION  [ASZTALI + TELEFON]
   ===================================================== */
.statement-section {
  background: var(--blue-dark);
  padding: 64px 20px;
  text-align: center;
}

.statement-section p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto;
  color: var(--white);
}


/* =====================================================
   SECTION SHARED  [ASZTALI]
   ===================================================== */
.section { padding: 90px 0; }
.section-alt { background: var(--blue-dark); }

.section-label {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 48px;
}


/* =====================================================
   SERVICES GRID  [ASZTALI]
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--blue-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--yellow); }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(255,201,7,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}


/* =====================================================
   WHY US  [ASZTALI]
   ===================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 48px; height: 48px;
  background: rgba(255,201,7,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.why-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}


/* =====================================================
   ABOUT  [ASZTALI]
   ===================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 28px 0;
}

.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 1rem;
}
.about-list li::before {
  content: '✓';
  color: var(--yellow);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}


/* =====================================================
   PHOTO GALLERY  [ASZTALI]
   ===================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}


/* =====================================================
   REVIEWS  [ASZTALI]
   ===================================================== */
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
}

.g-score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.g-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--blue-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.review-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }

.review-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
}
.review-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* =====================================================
   CONTACT  [ASZTALI]
   ===================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px; height: 48px;
  background: rgba(255,201,7,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.contact-item-value a { color: var(--white); }
.contact-item-value a:hover { color: var(--yellow); }

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.not-served {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.2);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.not-served strong { color: var(--white); }


/* =====================================================
   CONTACT FORM  [ASZTALI + TELEFON]
   ===================================================== */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
}


/* =====================================================
   FOOTER  [ASZTALI]
   ===================================================== */
.site-footer {
  background: var(--blue-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--yellow); }

.footer-tel {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  margin-top: 8px;
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Értékelés kártyák – utolsó sor középre */
.review-grid {
  justify-items: center;
}
.review-grid > div {
  width: 100%;
}


/* =====================================================
   TABLET  [900px-ig – közepes képernyő]
   ===================================================== */
@media (max-width: 900px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid img { height: 220px; }

  /* Landing oldal 4-col kártya grid → 2 oszlop tableten */
  div[style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }

  /* Értékelések grid → 2 oszlop tableten, utolsó sor középre */
  .review-grid {
    grid-template-columns: repeat(2,1fr) !important;
    justify-items: center;
  }
  .review-grid > div {
    width: 100%;
    max-width: 480px;
  }
}


/* =====================================================
   TELEFON  [640px-ig – okostelefon nézet]
   ===================================================== */
@media (max-width: 640px) {

  /* --- Header telefon --- */
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--blue-dark);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 20px; border-radius: 0; }

  /* Fix 3: Header telefon gomb – egy sorban, nem tör, inline style-t is felülír */
  .site-header .btn-tel {
    font-size: 0.8rem !important;
    padding: 8px 11px !important;
    gap: 5px !important;
    min-height: 40px !important;
    white-space: nowrap !important;
  }

  /* --- Hero telefon --- */
  /* Fix 1: rögzített magasság, képek ne csússzanak ki a képernyőből */
  .hero {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
  }

  .hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
  }
  .hero-mosaic img:nth-child(5),
  .hero-mosaic img:nth-child(6) { display: none; }

  .hero-inner { padding: 56px 16px 48px; }

  /* Hero h1 – explicit középre igazítás mobilon */
  .hero h1 { text-align: center; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline,
  .hero-ctas .btn-tel { text-align: center; justify-content: center; width: auto; }

  /* Header btn-tel SVG ikon elrejtése mobilon */
  .site-header .btn-tel svg { display: none !important; }

  /* Landing hero telefon CTA – teljes szélesség */
  section .btn-tel[style*="display:inline-flex"] {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }

  /* Hero badge – ne törjön el */
  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  /* --- Sections telefon --- */
  .section { padding: 56px 0; }

  .section-sub { margin-bottom: 32px; }

  /* --- Statement section telefon --- */
  .statement-section { padding: 48px 16px; }

  /* --- Services grid telefon – 1 oszlop --- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* --- Why grid telefon – 1 oszlop --- */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* --- About telefon --- */
  .about-inner { gap: 32px; }
  .about-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 2rem; }

  /* --- Galéria telefon – 1 oszlop --- */
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid img { height: 220px; }

  /* --- Landing oldal kártya grid telefon – 1 oszlop --- */
  div[style*="minmax(340px"],
  div[style*="repeat(4,1fr)"],
  .review-grid {
    grid-template-columns: 1fr !important;
  }
  .review-grid > div {
    max-width: 100%;
  }

  /* --- Landing footer két oszlop – telefon teljes szélesség --- */
  div[style*="gap:48px"][style*="flex-wrap"] > div {
    flex: 0 0 100%;
  }

  /* --- Kapcsolat telefon --- */
  .contact-inner { gap: 32px; }
  .reviews-header { flex-direction: column; align-items: flex-start; }

  /* --- Form telefon – egymás alá --- */
  .form-row { grid-template-columns: 1fr; }

  /* --- Footer telefon --- */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* --- Ár összefoglaló doboz (klimatisztitas) telefon --- */
  div[style*="inline-flex"][style*="36px"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px !important;
    width: 100%;
  }

  div[style*="inline-flex"][style*="36px"] > div[style*="1px"] {
    display: none;
  }

  /* Fix 2: Rólunk – mind a 4 service kártya látszik (aspect-ratio ne vágja le) */
  .about-img {
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
  }

  /* Fix 4: Google értékelés doboz – mobil column layout */
  .google-review-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 24px 20px !important;
    gap: 16px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center !important;
  }

  .google-review-divider {
    display: none !important;
  }

  .google-review-text {
    text-align: center !important;
  }

  .google-review-text > div[style*="max-width:200px"] {
    max-width: 100% !important;
  }
}


/* =====================================================
   KIS TELEFON  [400px-ig – iPhone SE, kis Android]
   ===================================================== */
@media (max-width: 400px) {
  body { font-size: 16px; }

  .hero-badge { font-size: 0.7rem; }

  .btn-primary,
  .btn-tel {
    font-size: 1rem;
    padding: 14px 20px;
  }

  .section-title { font-size: 1.5rem; }
}
