/* ==========================================================================
   Auto Care & Audio Center — Kenosha, WI
   site.css — single stylesheet, no framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the company logo (blue → violet script on black) */
  --brand-700: #1552B8;
  --brand-600: #1F6FEB; /* passes 4.5:1 with #fff — use for solid CTAs */
  --brand-500: #3B8FF3;
  --brand-300: #8FC2FF;
  --violet-600: #7C3AED;
  --violet-500: #A855F7;
  --violet-300: #D6B4FE;
  --grad: linear-gradient(100deg, var(--brand-500) 0%, var(--violet-500) 100%);

  /* Neutrals */
  --ink: #0C1015;
  --ink-2: #141A22;
  --ink-3: #1D2530;
  --line-dark: #29323F;
  --paper: #ffffff;
  --paper-2: #F5F8FC;
  --paper-3: #E9EFF7;
  --line: #D8E2EE;

  --text: #10161E;
  --text-soft: #4A5666;
  --text-invert: #ffffff;
  --text-invert-soft: #B4C0D0;

  --ok: #15803D;
  --warn: #B45309;
  --err: #C02626;

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --fs-h1: clamp(2.15rem, 1.6rem + 2.7vw, 3.9rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(12, 16, 21, .06), 0 2px 8px rgba(12, 16, 21, .05);
  --shadow: 0 2px 6px rgba(12, 16, 21, .07), 0 12px 30px rgba(12, 16, 21, .09);
  --shadow-lg: 0 8px 20px rgba(12, 16, 21, .10), 0 28px 60px rgba(12, 16, 21, .14);

  --header-h: 68px;
  --callbar-h: 0px;
}

@media (max-width: 860px) {
  :root { --callbar-h: 62px; }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--callbar-h);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--paper-3); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); line-height: 1.25; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-600); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 8px; top: -100px;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 10px; z-index: 999; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 1.75rem + 3vw, 3.5rem); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p, .section--dark li { color: var(--text-invert-soft); }
/* :not(.btn) so component colors are never overridden by context link color. */
.section--dark a:not(.btn) { color: var(--brand-300); }
.section--dark a:not(.btn):hover { color: var(--violet-300); }
.section--soft { background: var(--paper-2); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.measure { max-width: 68ch; }
.measure-tight { max-width: 58ch; }
.center .measure, .center .measure-tight { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 var(--sp-3);
  display: block;
}
.section--dark .eyebrow,
.hero .eyebrow,
.pagehead .eyebrow,
.cta-band .eyebrow,
.site-footer .eyebrow { color: var(--brand-300); }

.lead { font-size: var(--fs-lg); color: var(--text-soft); }
.section--dark .lead { color: var(--text-invert-soft); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 650; line-height: 1;
  padding: 1rem 1.5rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--accent { background: var(--violet-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #6D28D9; color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-3); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--paper-2); }

/* Ghost buttons sit on dark ground in several places, not only .section--dark.
   Every dark context is listed here so the outline button is never dark-on-dark. */
.section--dark .btn--ghost,
.hero .btn--ghost,
.pagehead .btn--ghost,
.cta-band .btn--ghost,
.site-header .btn--ghost,
.site-footer .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.site-header .btn--ghost:hover,
.site-footer .btn--ghost:hover {
  border-color: var(--brand-300);
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.btn--lg { font-size: 1.0625rem; padding: 1.15rem 1.85rem; min-height: 58px; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.center .btn-row { justify-content: center; }

.btn .ico { width: 1.15em; height: 1.15em; flex: none; }

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 16, 21, .96);
  -webkit-backdrop-filter: saturate(150%) blur(10px); /* Safari */
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

/* site.js adds .is-stuck once the page scrolls, to lift the header off the
   content it is now covering. */
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .45);
}

.header-bar {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; padding: 8px 0; }
.brand img { width: 40px; height: 40px; background: none; border-radius: 9px; flex: none; }
.brand-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.08rem; color: #fff; line-height: 1.02; letter-spacing: .005em;
  text-transform: uppercase;
}
.brand-name span {
  display: block; font-family: var(--font-body);
  font-size: .70rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-300); margin-top: 3px;
}
@media (max-width: 359px) { .brand-name { font-size: .95rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--line-dark); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: .6rem .85rem; border-radius: var(--radius-sm); cursor: pointer;
  min-height: 44px;
}
.nav-toggle:hover { border-color: var(--brand-300); }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; display: block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars i { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: #E6ECF5; text-decoration: none; font-weight: 550; font-size: .975rem;
  display: block;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { text-decoration: none; }

.header-cta { display: none; }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav > ul { display: flex; align-items: center; gap: var(--sp-5); }
  .site-nav > ul > li { margin: 0; position: relative; }
  .site-nav > ul > li > a { padding: .5rem 0; position: relative; }
  .site-nav > ul > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
  }
  .site-nav > ul > li > a:hover::after,
  .site-nav > ul > li > a[aria-current="page"]::after,
  .site-nav > ul > li.is-section > a::after { transform: scaleX(1); }

  .has-sub > button {
    background: none; border: 0; color: #E6ECF5; font: inherit; font-weight: 550; font-size: .975rem;
    cursor: pointer; padding: .5rem 0; display: inline-flex; align-items: center; gap: .35rem;
  }
  .has-sub > button:hover { color: #fff; }
  .has-sub > button .chev { width: 12px; height: 12px; transition: transform .18s ease; }
  .has-sub > button[aria-expanded="true"] .chev { transform: rotate(180deg); }

  /* Flush against the trigger (top: 100%, no gap) so the mouse path from the
     "Services" link down into the panel never crosses empty space — a gap
     here breaks hover, since mouseleave fires the instant the pointer is over
     nothing rather than over a descendant of the <li>. The 10px of breathing
     room it used to have is now inset padding on the panel itself, which is
     part of the hoverable element instead of a dead zone before it. */
  .subnav {
    position: absolute; top: 100%; left: -18px; padding-top: calc(.5rem + 10px);
    min-width: 290px; background: var(--ink-2); border: 1px solid var(--line-dark);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: none;
  }
  .subnav > li:first-child > a { margin-top: -6px; }
  .has-sub > button[aria-expanded="true"] + .subnav { display: block; }
  .subnav { padding-left: .5rem; padding-right: .5rem; padding-bottom: .5rem; }
  .subnav li { margin: 0; }
  .subnav a { padding: .65rem .8rem; border-radius: var(--radius-sm); font-weight: 550; font-size: .95rem; }
  .subnav a:hover { background: var(--ink-3); }
  .subnav a small { display: block; font-weight: 400; font-size: .8rem; color: #8C9AAC; margin-top: 2px; }

  .header-cta { display: inline-flex; margin-left: var(--sp-3); }
  .header-cta .btn { min-height: 44px; padding: .7rem 1.15rem; font-size: .95rem; }
}

/* Mobile nav panel */
@media (max-width: 1023px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav > ul > li > a { padding: .9rem 0; font-size: 1.05rem; }
  .has-sub > button {
    width: 100%; background: none; border: 0; color: #E6ECF5; font: inherit;
    font-size: 1.05rem; font-weight: 550; text-align: left; padding: .9rem 0;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  }
  .has-sub > button .chev { width: 14px; height: 14px; transition: transform .2s ease; }
  .has-sub > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .subnav { display: none; padding: 0 0 var(--sp-4) var(--sp-4); }
  .has-sub > button[aria-expanded="true"] + .subnav { display: block; }
  .subnav a { padding: .6rem 0; font-size: .975rem; color: #B4C0D0; }
  .subnav a small { display: block; font-size: .8rem; color: #7C8998; }
  .nav-mobile-cta { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
}

/* --------------------------------------------------------------------------
   6. Sticky mobile call bar
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 62px; padding: .5rem;
  color: #fff; text-decoration: none; font-weight: 650; font-size: 1rem;
}
.callbar a:first-child { background: var(--brand-600); color: #fff; }
.callbar a:first-child:hover { background: var(--brand-700); }
.callbar a:last-child:hover { background: var(--ink-3); }
.callbar .ico { width: 1.2em; height: 1.2em; }
@media (min-width: 861px) { .callbar { display: none; } }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,13,18,.95) 0%, rgba(10,13,18,.86) 45%, rgba(10,13,18,.55) 100%),
    linear-gradient(to top, rgba(10,13,18,.9) 0%, rgba(10,13,18,.2) 55%);
}
@media (max-width: 800px) {
  .hero__media::after {
    background: linear-gradient(to top, rgba(10,13,18,.97) 25%, rgba(10,13,18,.78) 70%, rgba(10,13,18,.7) 100%);
  }
}
.hero__inner { padding-block: clamp(3.25rem, 2rem + 8vw, 7rem); position: relative; }
.hero__content { max-width: 640px; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lead { color: #D3DCE8; font-size: clamp(1.0625rem, 1rem + .45vw, 1.28rem); max-width: 52ch; }
.hero .btn-row { margin-top: var(--sp-6); }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: .5rem var(--sp-5);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.14);
  list-style: none; padding-left: 0;
}
.hero__badges li {
  display: flex; align-items: center; gap: .45rem;
  font-size: .925rem; font-weight: 550; color: #E3EAF3; margin: 0;
}
.hero__badges .ico { width: 18px; height: 18px; color: var(--brand-300); flex: none; }

/* Page header (interior pages) */
.pagehead { background: var(--ink); color: #fff; padding-block: clamp(2rem, 1.5rem + 3.5vw, 3.75rem); }
.pagehead h1 { margin-bottom: var(--sp-3); }
.pagehead .lead { color: #C4D0DE; max-width: 62ch; }
.pagehead .btn-row { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-soft); font-size: var(--fs-sm); }

.card--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); color: inherit; }
.card--link .more { margin-top: auto; padding-top: var(--sp-4); font-weight: 650; font-size: .925rem; color: var(--brand-700); display: inline-flex; align-items: center; gap: .35em; }
.card--link:hover .more { color: var(--violet-600); }
.card--link .more .ico { width: 15px; height: 15px; transition: transform .15s ease; }
.card--link:hover .more .ico { transform: translateX(3px); }

.card__media { margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-5); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card__icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card__icon .ico { width: 24px; height: 24px; }

.section--dark .card { background: var(--ink-2); border-color: var(--line-dark); box-shadow: none; }
.section--dark .card p { color: var(--text-invert-soft); }
.section--dark .card--link:hover { border-color: var(--brand-500); }
.section--dark .card--link .more { color: var(--brand-300); }

/* Stat / trust strip */
.trust-strip { background: var(--ink-2); border-block: 1px solid var(--line-dark); }
.trust-strip ul {
  list-style: none; margin: 0; padding: var(--sp-5) 0; display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li { margin: 0; display: flex; align-items: flex-start; gap: .6rem; }
.trust-strip .ico { width: 22px; height: 22px; color: var(--brand-300); flex: none; margin-top: 2px; }
.trust-strip b { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.trust-strip span { font-size: .875rem; color: var(--text-invert-soft); line-height: 1.4; }

/* --------------------------------------------------------------------------
   9. Service list / checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding-left: 0; display: grid; gap: .7rem; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); } }
.checklist li { position: relative; padding-left: 1.85rem; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.6 5.6a1 1 0 0 1-1.4 0L7.3 12.9a1 1 0 1 1 1.4-1.4l1.7 1.7 4.9-4.9a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.6 5.6a1 1 0 0 1-1.4 0L7.3 12.9a1 1 0 1 1 1.4-1.4l1.7 1.7 4.9-4.9a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { margin: 0; }
.tag-list a { display: inline-block; text-decoration: none; }
.tag-list span {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 550; color: var(--text);
}
.section--dark .tag-list span { background: var(--ink-2); border-color: var(--line-dark); color: #DCE4EE; }

/* Numbered process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; counter-increment: step; position: relative; padding-top: var(--sp-6); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.steps p { color: var(--text-soft); font-size: var(--fs-sm); margin: 0; }
.section--dark .steps p { color: var(--text-invert-soft); }

/* --------------------------------------------------------------------------
   10. Media / figures
   -------------------------------------------------------------------------- */
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.figure figcaption { font-size: var(--fs-xs); color: var(--text-soft); margin-top: var(--sp-3); }
.section--dark .figure figcaption { color: #8C9AAC; }
.figure--tall img { aspect-ratio: 4 / 3; }

/* --------------------------------------------------------------------------
   11. Accordion / FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden;
}
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem var(--sp-5); padding-right: 3.25rem;
  font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 650; line-height: 1.3;
  position: relative;
  min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--sp-5); top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 16.5 3.5 8 5 6.5l7 7 7-7L20.5 8Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 16.5 3.5 8 5 6.5l7 7 7-7L20.5 8Z'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--brand-700); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { background: var(--paper-2); }
.faq .faq__body { padding: 0 var(--sp-5) var(--sp-5); }
.faq .faq__body p { color: var(--text-soft); }
.faq .faq__body > *:first-child { margin-top: 0; }

.section--dark .faq details { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .faq summary { color: #fff; }
.section--dark .faq summary::after { color: var(--brand-300); }
.section--dark .faq summary:hover { background: var(--ink-3); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form .row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .form .row--2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem;
}
.field .hint { font-weight: 400; color: var(--text-soft); font-size: .875rem; }
.field .req { color: var(--err); }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; min-height: 50px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A5666' d='M12 16.5 3.5 8 5 6.5l7 7 7-7L20.5 8Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 13px;
  padding-right: 2.75rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(31,111,235,.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--err); box-shadow: 0 0 0 3px rgba(192,38,38,.14);
}
.field .err-msg { display: none; color: var(--err); font-size: .875rem; margin-top: .35rem; font-weight: 550; }
.field .err-msg.is-shown { display: block; }

.consent { display: flex; gap: .7rem; align-items: flex-start; }
.consent input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; flex: none; accent-color: var(--brand-600); }
.consent label { font-weight: 400; font-size: .9rem; color: var(--text-soft); margin: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius-sm); padding: var(--sp-4); font-weight: 550; display: none; }
.form-status.is-shown { display: block; }
.form-status--ok { background: #E7F6ED; border: 1px solid #A9DCBE; color: #14602F; }
.form-status--err { background: #FDECEC; border: 1px solid #F3BFBF; color: #8E1B1B; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   13. Contact / NAP blocks
   -------------------------------------------------------------------------- */
.nap { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.nap li { display: flex; gap: .85rem; margin: 0; align-items: flex-start; }
.nap .ico { width: 22px; height: 22px; flex: none; color: var(--brand-600); margin-top: 3px; }
.section--dark .nap .ico { color: var(--brand-300); }
.nap b { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-soft); font-weight: 650; margin-bottom: 1px; }
.section--dark .nap b { color: #8C9AAC; }
.nap a, .nap span { font-size: 1.0625rem; font-weight: 550; }
/* Contact links are primary conversion targets — keep the hit area generous. */
.nap a { display: inline-block; padding: .2rem 0; min-height: 26px; }
.nap address { font-style: normal; font-size: 1.0625rem; font-weight: 550; line-height: 1.45; }

.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-3); line-height: 0;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.section--dark .map-embed { border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink-2); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 12% 0%, rgba(59,143,243,.22), transparent 65%),
              radial-gradient(760px 340px at 88% 100%, rgba(168,85,247,.20), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7D2E0; }

/* --------------------------------------------------------------------------
   15. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .875rem; }
.crumbs ol { list-style: none; margin: 0; padding: .8rem 0; display: flex; flex-wrap: wrap; gap: .3rem .55rem; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .55rem; color: var(--text-soft); }
.crumbs li + li::before { content: "/"; color: var(--text-soft); }
.crumbs a { color: var(--text-soft); text-decoration: none; display: inline-block; padding: .15rem 0; min-height: 24px; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Prose (blog)
   -------------------------------------------------------------------------- */
.prose { font-size: var(--fs-lg); }
.prose > h2 { margin-top: var(--sp-7); }
.prose > h3 { margin-top: var(--sp-6); font-size: var(--fs-h4); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose img { border-radius: var(--radius); margin-block: var(--sp-6); }
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  background: var(--paper-2); font-size: var(--fs-base);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .callout {
  margin: var(--sp-6) 0; padding: var(--sp-5);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-base);
}
.prose .callout h3 { margin-top: 0; font-size: var(--fs-h4); }

.post-meta { font-size: .9rem; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.post-meta .dot { color: var(--text-soft); }

.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-invert-soft); padding-top: var(--sp-8); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: var(--sp-7); } }

.site-footer .brand { margin-right: 0; margin-bottom: var(--sp-4); }
.site-footer .brand img { width: 48px; height: 48px; border-radius: 11px; }
.site-footer .brand-name { font-size: 1.2rem; }
.site-footer h3 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .1rem; }
.site-footer a:not(.btn) { color: var(--text-invert-soft); text-decoration: none; font-size: .9375rem; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
/* Give footer links a comfortable 24px+ hit area (WCAG 2.2 target size). */
.site-footer ul a { display: inline-block; padding: .35rem 0; }
.site-footer p { font-size: .9375rem; }

.footer-social { display: flex; gap: .6rem; margin-top: var(--sp-4); }
.footer-social a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line-dark); color: #fff;
}
.footer-social a:hover { background: var(--brand-600); border-color: var(--brand-600); }
.footer-social .ico { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: var(--sp-7); border-top: 1px solid var(--line-dark);
  padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between; font-size: .875rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem var(--sp-4); }
.footer-bottom ul li { margin: 0; }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.err-page { display: grid; place-items: center; text-align: center; padding-block: var(--sp-9); }
.err-code {
  font-family: var(--font-head); font-size: clamp(5rem, 3rem + 14vw, 11rem); font-weight: 700; line-height: .85;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.nowrap { white-space: nowrap; }

@media print {
  .site-header, .callbar, .cta-band, .site-footer, .btn, .crumbs { display: none !important; }
  body { padding-bottom: 0; color: #000; }
}

/* --------------------------------------------------------------------------
   20. Opening hours table (renders only once HOURS is filled in _src/build.py)
   -------------------------------------------------------------------------- */
.hours { display: grid; gap: .2rem; margin-top: .15rem; }
.hours-row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  font-size: .9375rem; font-weight: 500; line-height: 1.5;
  max-width: 15rem;
}
.hours-row span:first-child { font-weight: 650; }
.section--dark .hours-row, .site-footer .hours-row { color: var(--text-invert-soft); }
