/* ============================================================
   AUTÓSZERVIZ MESTERSABLON – világos, letisztult
   Témaváltás: <html data-theme="kek|piros|zold">
   ============================================================ */

/* ---------- Téma-változók ---------- */
:root,
[data-theme="kek"] {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
}

[data-theme="piros"] {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fef2f2;
  --accent: #1d4ed8;
}

[data-theme="zold"] {
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-light: #ecfdf5;
  --accent: #f59e0b;
}

:root {
  --text: #0f172a;
  --text-muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --star: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 16px 48px rgba(15, 23, 42, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 68px;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 700; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); }

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--text-muted); margin-top: .75rem; }

.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: .9rem;
}

svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-icon { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 2px 16px rgba(15, 23, 42, .06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.logo-mark svg { width: 20px; height: 20px; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav > a:not(.btn) { color: var(--text-muted); font-weight: 500; font-size: .92rem; transition: color .15s; }
.main-nav > a:not(.btn):hover { color: var(--primary); }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: .4rem; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .4rem .9rem;
  font-size: .85rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.hero-badge .star { color: var(--star); fill: var(--star); width: 1em; height: 1em; }
.hero-badge strong { color: var(--text); }

.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; }
.hero-trust li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--text-muted); }
.hero-trust svg { color: var(--primary); width: 1.1em; height: 1.1em; }

.hero-media { position: relative; }
.hero-media > img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.hero-card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .8rem 1.1rem;
}
.hero-card svg { color: var(--primary); width: 1.6em; height: 1.6em; }
.hero-card strong { display: block; font-size: .88rem; }
.hero-card span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Szolgáltatások ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card p { color: var(--text-muted); font-size: .92rem; margin-top: .5rem; }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.service-icon svg { width: 26px; height: 26px; }

/* ---------- Miért mi ---------- */
.why-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-text { color: var(--text-muted); margin: 1rem 0 1.6rem; }

.feature-list { list-style: none; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: .9rem; }
.feature-list svg {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 50%;
  padding: .3rem;
  width: 2em; height: 2em;
}
.feature-list strong { display: block; font-size: .98rem; }
.feature-list span { color: var(--text-muted); font-size: .9rem; }

.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.stat-card span { font-size: .85rem; color: var(--text-muted); }

/* ---------- Árak ---------- */
.price-list {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem 1.6rem;
  box-shadow: var(--shadow);
}
.price-row { display: flex; align-items: baseline; gap: .8rem; padding: .95rem 0; }
.price-row + .price-row { border-top: 1px solid var(--border); }
.price-name { font-weight: 600; font-size: .95rem; }
.price-dots { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.price-value { font-weight: 700; color: var(--primary); white-space: nowrap; }
.price-note { text-align: center; margin-top: 1.4rem; color: var(--text-muted); font-size: .92rem; }

/* ---------- Vélemények ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.review-stars { display: flex; gap: .15rem; }
.review-stars svg { width: 1.05em; height: 1.05em; color: var(--star); fill: var(--star); }
.review-card blockquote { color: var(--text-muted); font-size: .95rem; flex: 1; }
.review-card figcaption { font-weight: 700; font-size: .9rem; }

/* ---------- Galéria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform .25s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ---------- GYIK ---------- */
.faq-list { display: grid; gap: .8rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: .98rem;
  padding: 1.05rem 1.3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--text-muted); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(90deg); color: var(--primary); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .93rem; }

/* ---------- Kapcsolat ---------- */
.contact-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

.contact-info { display: grid; gap: 1.4rem; }
.contact-item { display: flex; gap: .9rem; }
.contact-item > svg {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .55rem;
  width: 2.6em; height: 2.6em;
}
.contact-item strong { display: block; font-size: .9rem; margin-bottom: .1rem; }
.contact-item span, .contact-item a { display: block; color: var(--text-muted); font-size: .95rem; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-status { margin-top: .9rem; font-size: .92rem; font-weight: 600; display: none; }
.form-status.success { display: block; color: #047857; }
.form-status.error { display: block; color: #dc2626; }
.form-privacy { margin-top: .8rem; font-size: .78rem; color: var(--text-muted); }

/* ---------- Térkép ---------- */
.map-section iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.15); }

/* ---------- Lábléc ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 3.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; color: #94a3b8; max-width: 36ch; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col strong { color: #fff; margin-bottom: .3rem; font-size: .95rem; }
.footer-col a, .footer-col span { color: #94a3b8; font-size: .9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px solid #1e293b;
  padding: 1.3rem 0;
  font-size: .82rem;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Ragadós hívás gomb (mobil) ---------- */
.sticky-call {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: none;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.sticky-call svg { width: 24px; height: 24px; }

/* ---------- Scroll-animáció ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESZPONZÍV
   ============================================================ */
@media (max-width: 960px) {
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .6rem 1.25rem 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a:not(.btn) { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--bg-alt); }
  .nav-cta { margin: .9rem 0 0; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-card { left: .8rem; bottom: -.8rem; }

  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .sticky-call { display: grid; }
  .price-list { padding-inline: 1.1rem; }
  .price-name { font-size: .9rem; }
}
