/* =========================================================================
   VW Specialist & Maidstone Radiators — styles.css
   Palette from research/design-language.md. Dark is the default theme.
   Token roles are deliberately separated (see design-language warning):
     --on-brand      = text/icons sitting on a saturated brand-colour fill
                       (hero, buttons, footer). Stays light in BOTH themes.
     --text / --surface = page copy + card fills. These flip per theme.
   ========================================================================= */

:root,
[data-theme="dark"] {
  --ground:        #0B0C0C;
  --surface:       #1A1E1C;
  --surface-2:     #23292620;   /* subtle raised tint */
  --border:        #2C3330;
  --text:          #F3F5F2;
  --text-muted:    #AEB6B1;

  --signal:        #5BC21E;      /* primary accent */
  --signal-strong: #6BD82A;      /* hover on dark */
  --deep-green:    #1F7A33;      /* light-theme accent (unused as text on dark) */
  --accent:        var(--signal);/* the "link/accent" colour for this theme  */
  --accent-on-ground: var(--signal); /* accent legible directly on ground */

  --red:           #D8231C;      /* CTAs only */
  --red-strong:    #EF3129;

  --on-brand:      #F7FBF5;      /* text on green/red/dark brand fills */
  --whatsapp:      #15803D;

  --header-bg:     rgba(11, 12, 12, 0.88);
  --shadow:        0 6px 24px rgba(0, 0, 0, 0.45);
  --chip-bg:       #3a2f10;
  --chip-text:     #f0d98a;
  --chip-border:   #6b571c;
}

[data-theme="light"] {
  --ground:        #F4F6F2;
  --surface:       #FFFFFF;
  --surface-2:     #EEF2EA;
  --border:        #D5DDD3;
  --text:          #101312;
  --text-muted:    #4A534D;

  --signal:        #5BC21E;
  --signal-strong: #4CA817;
  --deep-green:    #1F7A33;
  --accent:        var(--deep-green);      /* readable green text on paper */
  --accent-on-ground: var(--deep-green);

  --red:           #D8231C;
  --red-strong:    #B81A14;

  --on-brand:      #F7FBF5;                /* unchanged — still on dark/green fills */
  --whatsapp:      #15803D;

  --header-bg:     rgba(244, 246, 242, 0.9);
  --shadow:        0 6px 20px rgba(16, 19, 18, 0.12);
  --chip-bg:       #FDF3D2;
  --chip-text:     #6b5310;
  --chip-border:   #E4CE82;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.container { width: min(1160px, 92vw); margin-inline: auto; }

h1, h2, h3 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.03;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-style: normal; letter-spacing: 0; }

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-on-ground);
  margin: 0 0 0.4rem;
}
.hl { color: var(--signal); }
[data-theme="light"] .hl { color: var(--deep-green); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: #0B0C0C;
  padding: 0.6rem 1rem; z-index: 200; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  margin-right: auto;
}
.brand-icon { color: var(--signal); display: inline-flex; }
[data-theme="light"] .brand-icon { color: var(--deep-green); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line-1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em;
}
.brand-line-2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-menu {
  display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.98rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; flex-direction: column; gap: 5px;
  justify-content: center;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

.theme-toggle {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.4rem; border-radius: 10px; border: 2px solid transparent;
  font-size: 1rem; line-height: 1.1; transition: 0.18s;
  font-family: "Inter", sans-serif;
}
.btn-call, .btn-primary { background: var(--red); color: var(--on-brand); }
.btn-call:hover, .btn-primary:hover { background: var(--red-strong); }
.btn-whatsapp { background: var(--whatsapp); color: var(--on-brand); }
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--ground); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.hero-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.path-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text);
  position: relative; transition: 0.18s;
}
.path-card:hover { border-color: var(--signal); transform: translateY(-2px); box-shadow: var(--shadow); }
.path-title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.3rem; color: var(--accent);
}
.path-desc { font-size: 0.95rem; color: var(--text-muted); }
.path-cue { position: absolute; top: 1rem; right: 1.1rem; color: var(--signal); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-media { margin: 0; }
.hero-media img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; height: auto; }
.hero-media figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.section-intro { color: var(--text-muted); max-width: 62ch; font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem; margin-top: 1.8rem;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem;
}
.card h3 { color: var(--accent); }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- Prices ---------- */
.price-strip {
  display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem;
}
.price-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 5px solid var(--signal);
  border-radius: 12px; padding: 1.3rem 1.6rem; min-width: 200px; flex: 1 1 220px;
  display: flex; flex-direction: column;
}
.price-label { font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; order: 2;}
.price-note { order: 1; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-on-ground); font-weight: 700; font-size: 0.9rem;}
.price-value {
  order: 3; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--text); margin-top: 0.2rem;
}
.price-disclaimer { color: var(--text-muted); font-size: 0.95rem; margin-top: 1.2rem; max-width: 60ch; }

.chip {
  display: inline-block; background: var(--chip-bg); color: var(--chip-text);
  border: 1px solid var(--chip-border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem; border-radius: 999px; vertical-align: middle;
  white-space: nowrap; font-family: "Inter", sans-serif; text-transform: none;
}

/* ---------- Makes ---------- */
.makes-list {
  list-style: none; padding: 0; margin: 1.6rem 0 0.8rem;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.makes-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 600;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.makes-note { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem; margin-top: 1.8rem;
}
.gallery-item { margin: 0; }
.gallery-item img { border-radius: 14px; width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery-item figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.placeholder-box {
  border: 2px dashed var(--border); border-radius: 14px; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; background: var(--surface-2); text-align: center; padding: 1rem;
}
.placeholder-box p { color: var(--text-muted); margin: 0; font-weight: 600; }
.gallery-note { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; }

/* ---------- Reviews ---------- */
.reviews-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.reviews-cta { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.reviews-note { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.6rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 1.1rem; font-weight: 600; font-family: "Inter", sans-serif;
  padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-a {
  overflow: hidden; max-height: 0; transition: max-height 0.25s ease;
}
.faq-a p { margin: 0 0 1.1rem; color: var(--text-muted); max-width: 68ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; margin-top: 1.8rem;
}
.form-lead { color: var(--text-muted); }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: none; }
.form-error {
  background: rgba(216, 35, 28, 0.12); border: 1px solid var(--red);
  color: var(--red); padding: 0.6rem 0.85rem; border-radius: 8px; margin: 0 0 0.9rem; font-size: 0.95rem;
}
[data-theme="light"] .form-error { color: var(--red-strong); }
.form-alt { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.9rem; }

.contact-details h3 { color: var(--accent); }
.contact-details address { font-style: normal; color: var(--text-muted); }
.contact-details address p { margin: 0 0 0.9rem; }
.contact-details a { color: var(--accent); }
.nap-name { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.map-wrap {
  margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0B0C0C; color: var(--on-brand);
  border-top: 3px solid var(--signal); margin-top: 2rem; padding: 2.6rem 0 6rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1.2fr 0.6fr; gap: 1.6rem;
}
.footer-brand .brand-line-1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.3rem; display: block; color: var(--on-brand);
}
.footer-brand .brand-line-2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.9rem; display: block; color: var(--signal);
}
.footer-tag { color: #B9C2BC; margin-top: 0.6rem; font-size: 0.95rem; }
.footer-nap { color: #C6CFC9; font-size: 0.95rem; }
.footer-nap .nap-name { color: var(--on-brand); }
.footer-nap a, .footer-links a { color: var(--signal); text-decoration: none; }
.footer-nap a:hover, .footer-links a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #23292680;
  color: #97A19B; font-size: 0.82rem;
}
.footer-legal p { margin: 0 0 0.5rem; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  display: none; gap: 0; box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.mobile-bar-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem; text-decoration: none; font-weight: 700; color: var(--on-brand);
  font-size: 1.05rem;
}
.mobile-bar-btn.call { background: var(--red); }
.mobile-bar-btn.whatsapp { background: var(--whatsapp); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .reviews-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 0.5rem 6vw 1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 0.85rem 0; }
  .main-nav { position: static; }
  .mobile-bar { display: flex; }
  .hero-paths { grid-template-columns: 1fr; }
  body { padding-bottom: 0; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
}
