/* =============================================
   pitlane-growth — Dark-Luxe Auto Repair
   Aesthetic: Dark-Luxe | Tier: Growth
   ============================================= */

@view-transition { navigation: auto; }

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
@property --aurora-hue { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* Brand tokens */
  --primary:     #141214;
  --secondary:   #3a2a10;
  --accent:      #9eb5c8;
  --background:  #f5f6f7;
  --surface:     #edeef0;

  /* Derived — runtime also emits --primary-dark / --primary-light */
  --primary-dark:  color-mix(in oklab, var(--primary) 85%, #000);
  --accent-light:  color-mix(in oklab, var(--accent) 25%, var(--background));
  --accent-dim:    color-mix(in oklab, var(--accent) 40%, var(--primary));
  --secondary-mid: color-mix(in oklab, var(--secondary) 60%, var(--background));

  /* Text */
  --text:   #1a1820;
  --muted:  #6b7280;
  --border: rgba(158,181,200,.18);

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'Courier New', monospace;

  /* Radius */
  --radius:    0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06), 0 1px 1px rgb(0 0 0 / .04);
  --shadow-md: 0 4px 16px rgb(0 0 0 / .10), 0 2px 4px rgb(0 0 0 / .06);
  --shadow-lg: 0 20px 48px rgb(0 0 0 / .18), 0 8px 16px rgb(0 0 0 / .10);
  --shadow-xl: 0 36px 72px rgb(0 0 0 / .28), 0 12px 24px rgb(0 0 0 / .14);

  /* Type scale — fluid */
  --step--1: clamp(0.78rem,  0.74rem + 0.20vw, 0.89rem);
  --step-0:  clamp(1rem,     0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem,   1.1rem  + 0.5vw,  1.5rem);
  --step-2:  clamp(1.44rem,  1.28rem + 0.8vw,  2rem);
  --step-3:  clamp(1.73rem,  1.5rem  + 1.2vw,  2.66rem);
  --step-4:  clamp(2.07rem,  1.7rem  + 1.9vw,  3.55rem);
  --step-5:  clamp(2.6rem,   2rem    + 2.8vw,  4.8rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.15;
}
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Hidden images */
img[src=""], img:not([src])          { display: none !important; }
img[src$="placeholder.jpg"]          { display: none !important; }

/* data-list grid fix — NEVER display:contents */
/* deliberately NOT set to display:contents */

/* --- Accessibility --- */
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--accent); color: var(--primary);
  font-weight: 600; border-radius: var(--radius);
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Scroll progress bar --- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 9999; transition: width 0.1s linear;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--primary); color: var(--accent);
  font-size: 1.25rem; cursor: pointer; opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999; display: flex; align-items: center; justify-content: center;
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); }

/* --- Container --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* =============================================
   HEADER
   ============================================= */
[data-section="header"] {
  position: sticky; top: 0; z-index: 200;
  background: var(--background);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
[data-section="header"] nav:not(.nav__mobile) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; gap: 2rem;
}
[data-section="header"] .logo { display: flex; align-items: center; gap: 0.75rem; }
[data-section="header"] .logo img { height: 38px; width: auto; }
[data-section="header"] .logo-text {
  font-family: var(--font-display); font-size: var(--step-1);
  color: var(--primary); letter-spacing: -0.02em;
}
[data-section="header"] nav:not(.nav__mobile) .nav__links {
  display: flex; align-items: center; gap: 0.25rem;
}
[data-section="header"] nav:not(.nav__mobile) .nav__links a {
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text); padding: 0.45rem 0.85rem;
  border-radius: var(--radius); transition: color 0.2s, background 0.2s;
}
[data-section="header"] nav:not(.nav__mobile) .nav__links a:hover {
  color: var(--primary); background: color-mix(in oklab, var(--primary) 6%, transparent);
}
.nav__cta {
  background: var(--primary); color: var(--accent) !important;
  padding: 0.55rem 1.2rem !important; border-radius: var(--radius) !important;
  font-weight: 600 !important; transition: background 0.2s, color 0.2s !important;
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.nav__cta:hover { background: color-mix(in oklab, var(--primary) 75%, var(--accent)) !important; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.45rem 0.65rem;
  font-size: 1.25rem; cursor: pointer; color: var(--text);
}

/* Mobile nav panel */
[data-section="header"] .nav__mobile {
  display: none; flex-direction: column; gap: 0.5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background, rgba(245,246,247,.98));
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-md);
}
[data-section="header"] .nav__mobile.open { display: flex; }
[data-section="header"] .nav__mobile a {
  font-weight: 500; color: var(--text); padding: 0.65rem 0;
  border-bottom: 1px solid var(--border); font-size: var(--step-0);
}
[data-section="header"] .nav__mobile a:last-child { border-bottom: none; }

/* =============================================
   HERO — Split editorial + bento stat tiles
   ============================================= */
[data-section="hero"] {
  min-height: 100svh; background: var(--primary);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: clip;
}
.hero__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem; padding: 6rem 0 5rem;
  position: relative; z-index: 2;
}
.hero__content { color: var(--background); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); border: 1px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero__prefix {
  display: block; font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--accent) 60%, var(--background));
  margin-bottom: 0.5rem;
}
.hero__title {
  font-size: var(--step-5); color: var(--background);
  line-height: 1.08; margin-bottom: 1.25rem;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__subtitle {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 1rem;
}
.hero__desc {
  font-size: var(--step-0); line-height: 1.7; margin-bottom: 2rem;
  color: color-mix(in oklab, var(--background) 75%, var(--primary));
}
.hero__cta-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--primary);
  font-weight: 700; font-size: var(--step-0); padding: 0.85rem 2rem;
  border-radius: var(--radius); transition: transform 0.2s, background 0.2s;
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.hero__cta:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--accent) 85%, #fff); }
.hero__cta-ghost {
  display: inline-flex; align-items: center;
  color: color-mix(in oklab, var(--background) 80%, var(--primary));
  font-size: var(--step-0); font-weight: 500;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.2s;
}
.hero__cta-ghost:hover { color: var(--accent); }

/* Bento stat tiles */
.hero__stats {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.5rem;
}
.hero__stat {
  background: color-mix(in oklab, var(--accent) 8%, var(--primary));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1.25rem;
  min-width: 110px; text-align: center;
  animation: stat-float 3s ease-in-out infinite;
}
.hero__stat:nth-child(2) { animation-delay: 0.5s; }
.hero__stat:nth-child(3) { animation-delay: 1s; }
.hero__stat:nth-child(4) { animation-delay: 1.5s; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes stat-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
  }
}
.hero__stat-num {
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  color: var(--accent); line-height: 1;
}
.hero__stat-label {
  display: block; font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--background) 60%, var(--primary));
  margin-top: 0.3rem;
}

/* Hero image side */
.hero__image-wrap {
  /* `clip`, not `hidden`: `overflow: clip` makes this a SCROLL CONTAINER,
     which silently kills a descendant's `animation-timeline: view()` —
     `clip` clips identically without creating one. */
  position: relative; border-radius: var(--radius-lg); overflow: clip;
  box-shadow: var(--shadow-xl);
}
.hero__image-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 20%, transparent) 0%,
    transparent 60%);
  z-index: 1; pointer-events: none;
}
.hero__image-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
/* Spotlight glow */
[data-section="hero"]::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 65% 50%,
    color-mix(in oklab, var(--accent) 12%, transparent),
    transparent 70%);
  pointer-events: none; z-index: 1;
}

/* Hero entrance animation */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; }
  }
  .hero__badge  { animation: hero-enter 0.5s ease both 0.1s; }
  .hero__prefix { animation: hero-enter 0.5s ease both 0.2s; }
  .hero__title  { animation: hero-enter 0.6s ease both 0.3s; }
  .hero__subtitle { animation: hero-enter 0.5s ease both 0.4s; }
  .hero__desc   { animation: hero-enter 0.5s ease both 0.5s; }
  .hero__cta-wrap { animation: hero-enter 0.5s ease both 0.6s; }
  .hero__stats  { animation: hero-enter 0.5s ease both 0.7s; }
  /* Second, comma-separated animation is the replaced GSAP hero-image
     parallax scrub (`start: top top` -> `end: bottom top`, y: 0 -> -30) —
     still one `animation` declaration for the element, just two lanes:
     the entrance runs on the default document timeline, the parallax on
     a scroll `view()` timeline (bound explicitly below so a browser that
     supports view() doesn't also push the time-based entrance onto it). */
  .hero__image-wrap { animation: hero-enter 0.7s ease both 0.2s, wb-pitlane-hero-parallax linear both; }
}
@keyframes wb-pitlane-hero-parallax {
  from { translate: 0 0; }
  to   { translate: 0 -30px; }
}

/* =============================================
   SECTION RHYTHM HELPERS
   ============================================= */
.section--light  { background: var(--background); }
.section--surface{ background: var(--surface); }
.section--dark   { background: var(--primary); color: var(--background); }
.section--tint   { background: color-mix(in oklab, var(--accent) 7%, var(--background)); }
.section--bronze { background: color-mix(in oklab, var(--secondary) 12%, var(--background)); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: var(--step-4); margin-bottom: 0.75rem; }
.section-header p { color: var(--muted); font-size: var(--step-0); }
.eyebrow {
  display: block; font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section--dark .eyebrow { color: color-mix(in oklab, var(--accent) 80%, var(--background)); }
.hairline { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* CSS scroll-driven reveal — Growth baseline */
@keyframes wb-reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; } }
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .reveal-stagger > * {
      animation: wb-reveal linear both;
      animation-timeline: view();
      /* Stagger by shifting the RANGE, never a delay: a delay is a clock that
         may already have run by the time the element scrolls in. */
      animation-range: entry 0% entry 62%;
    }
    .reveal-stagger > *:nth-child(2) { animation-range: entry 8% entry 70%; }
    .reveal-stagger > *:nth-child(3) { animation-range: entry 16% entry 78%; }
    .reveal-stagger > *:nth-child(n+4) { animation-range: entry 24% entry 86%;
    }
    /* Bind the two `.hero__image-wrap` animations declared above to their
       own timelines, in the same order as the `animation` shorthand list
       (entrance first, parallax second) — otherwise a single `view()`
       value would apply to both, and the above-the-fold entrance would
       never advance. */
    .hero__image-wrap {
      animation-timeline: auto, view();
      animation-range: normal, exit;
    }
  }
}

/* Sections default padding */
section { padding: 5.5rem 0; }

/* =============================================
   ABOUT — Two-column with vertical hairline
   ============================================= */
[data-section="about"] { background: var(--surface); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 0 3rem; align-items: center;
}
.about__divider { background: var(--border); align-self: stretch; }
.about__image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: clip;
  box-shadow: var(--shadow-lg);
}
.about__image-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about__content { padding: 1rem 0; }
.about__content h2 { font-size: var(--step-4); margin-bottom: 1rem; color: var(--primary); }
.about__desc { color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.about__stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.about__stat-num {
  display: block; font-family: var(--font-display); font-size: var(--step-3);
  color: var(--primary); line-height: 1;
}
.about__stat-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}

/* =============================================
   SERVICES — Hover-expand list
   ============================================= */
[data-section="services"] { background: var(--background); }
.services__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.service-row {
  border-bottom: 1px solid var(--border); padding: 1.5rem 0;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 1rem; cursor: default;
  transition: background 0.2s;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover { background: color-mix(in oklab, var(--accent) 5%, var(--background)); }
.service-row:focus-within { background: color-mix(in oklab, var(--accent) 5%, var(--background)); }
.service-row__main { display: flex; flex-direction: column; gap: 0.35rem; }
.service-row__title {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--primary); line-height: 1.2;
}
.service-row__subtitle {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.service-row__desc {
  font-size: var(--step-0); color: var(--muted); line-height: 1.65;
  max-height: 0; overflow: clip;
  transition: max-height 0.35s ease, opacity 0.3s;
  opacity: 0;
}
.service-row:hover .service-row__desc,
.service-row:focus-within .service-row__desc {
  max-height: 200px; opacity: 1;
}
.service-row__price {
  font-family: var(--font-mono); font-size: var(--step-0);
  font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
.service-row img { display: none; } /* image hidden in list — optional card version */

/* =============================================
   SERVICE AREAS — Chip cloud
   ============================================= */
[data-section="service_areas"] { background: var(--primary); color: var(--background); }
[data-section="service_areas"] .section-header h2 { color: var(--background); }
[data-section="service_areas"] .section-header p { color: color-mix(in oklab, var(--background) 65%, var(--primary)); }
.areas__chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.area-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: var(--step-0); color: color-mix(in oklab, var(--background) 80%, var(--primary));
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.area-chip:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.area-chip__note {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, var(--background) 45%, var(--primary));
  margin-top: 0.2rem; display: block; width: 100%; text-align: center;
}

/* =============================================
   BEFORE/AFTER GALLERY
   ============================================= */
[data-section="before_after_gallery"] { background: var(--surface); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.gallery-pair {
  border-radius: var(--radius-lg); overflow: clip;
  box-shadow: var(--shadow-md); background: var(--primary);
}
.gallery-pair__images {
  display: grid; grid-template-columns: 1fr 1fr;
}
.gallery-pair__slot { position: relative; }
.gallery-pair__slot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-pair__badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--primary); color: var(--accent);
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem; border-radius: var(--radius);
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.gallery-pair__caption {
  padding: 0.85rem 1.1rem;
  font-size: var(--step-0); color: color-mix(in oklab, var(--background) 75%, var(--primary));
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* =============================================
   CERTIFICATIONS — Horizontal logo strip on dark
   ============================================= */
[data-section="certifications"] { background: var(--primary); color: var(--background); }
.certs__strip {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; align-items: center;
}
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; min-width: 160px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.cert-badge:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--primary)); }
.cert-badge img { height: 40px; width: auto; }
.cert-badge__name {
  font-family: var(--font-display); font-size: var(--step-0);
  color: var(--accent); line-height: 1.2;
}
.cert-badge__issuer {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--background) 55%, var(--primary));
}
.cert-badge__note {
  font-size: var(--step--1); color: color-mix(in oklab, var(--background) 50%, var(--primary));
}

/* =============================================
   @property AURORA CTA BAND — Signature moment
   ============================================= */
.aurora-band {
  background: var(--primary); padding: 6rem 0; text-align: center;
  position: relative; overflow: clip;
}
.aurora-band::before {
  content: '';
  position: absolute; inset: 0;
  background: conic-gradient(from var(--aurora-hue) at 50% 50%,
    color-mix(in oklab, var(--accent) 18%, transparent),
    color-mix(in oklab, var(--secondary) 22%, transparent),
    color-mix(in oklab, var(--accent) 10%, transparent),
    color-mix(in oklab, var(--accent) 18%, transparent));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .aurora-band::before {
    animation: aurora-spin 14s linear infinite;
  }
  @keyframes aurora-spin { to { --aurora-hue: 360deg; } }
}
.aurora-band__inner { position: relative; z-index: 2; }
.aurora-band h2 {
  font-size: var(--step-4); color: var(--background); margin-bottom: 1rem;
}
.aurora-band p {
  color: color-mix(in oklab, var(--background) 70%, var(--primary));
  font-size: var(--step-1); max-width: 520px; margin: 0 auto 2.5rem;
}
.aurora-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--primary);
  font-weight: 700; font-size: var(--step-1); padding: 1rem 2.5rem;
  border-radius: var(--radius); transition: transform 0.2s, background 0.2s;
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.aurora-cta:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--accent) 85%, #fff); }

/* =============================================
   QUOTE REQUEST — Dual pane
   ============================================= */
[data-section="quote_request"] { background: var(--background); }
.quote__grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start;
}
.quote__aside {
  background: var(--primary); border-radius: var(--radius-lg); padding: 2.5rem;
  color: var(--background); position: sticky; top: 7rem;
}
.quote__aside h3 {
  font-size: var(--step-3); color: var(--background); margin-bottom: 1rem;
}
.quote__aside p { color: color-mix(in oklab, var(--background) 70%, var(--primary)); margin-bottom: 1.5rem; }
.quote__aside-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.quote__aside-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: var(--step-0); color: color-mix(in oklab, var(--background) 80%, var(--primary));
}
.quote__aside-list li::before {
  content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.quote__phone {
  display: block; margin-top: 2rem;
  font-family: var(--font-display); font-size: var(--step-2); color: var(--accent);
}
.quote__form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.quote__form-card h3 {
  font-size: var(--step-2); color: var(--primary); margin-bottom: 1.75rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background);
  font-family: var(--font-sans); font-size: var(--step-0); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.field:has(input:invalid:not(:placeholder-shown)) input,
.field:has(select:invalid:not(.valid)) select {
  border-color: #d32f2f;
}
.field textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  width: 100%; padding: 0.9rem 2rem; border: none; border-radius: var(--radius);
  background: var(--primary); color: var(--accent);
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step-0);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 80%, var(--accent)); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =============================================
   TESTIMONIALS — Masonry-ish dark grid
   ============================================= */
[data-section="testimonials"] { background: var(--primary); color: var(--background); }
[data-section="testimonials"] .section-header h2 { color: var(--background); }
.testimonials__grid {
  columns: 3; column-gap: 1.5rem;
}
.testimonial-card {
  break-inside: avoid; margin-bottom: 1.5rem;
  background: color-mix(in oklab, var(--accent) 6%, var(--primary));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; position: relative;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 0.5rem; left: 1rem;
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--accent); opacity: 0.25; pointer-events: none;
}
.testimonial-card__text {
  font-size: var(--step-0); line-height: 1.75;
  color: color-mix(in oklab, var(--background) 80%, var(--primary));
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.testimonial-card__author { display: flex; align-items: center; gap: 0.85rem; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 20%, var(--primary));
  border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--accent);
  overflow: clip;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name {
  font-family: var(--font-display); font-size: var(--step-0); color: var(--accent);
}
.testimonial-card__role {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--background) 45%, var(--primary));
}

/* =============================================
   OPENING HOURS
   ============================================= */
[data-section="opening_hours"] { background: var(--surface); }
.hours__table { width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse; }
.hours__table tr { border-bottom: 1px solid var(--border); }
.hours__table tr:last-child { border-bottom: none; }
.hours__table td { padding: 0.85rem 0.5rem; font-size: var(--step-0); }
.hours__table td:first-child {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  width: 50%;
}
.hours__table td:last-child { text-align: right; font-weight: 500; color: var(--text); }
.hours__today { background: color-mix(in oklab, var(--accent) 12%, var(--surface)); border-radius: var(--radius); }
.hours__today td:first-child { color: var(--accent); }

/* =============================================
   CONTACT — Dual pane
   ============================================= */
[data-section="contact"] { background: var(--background); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact__info {
  background: var(--primary); border-radius: var(--radius-lg); padding: 2.5rem;
  color: var(--background);
}
.contact__info h2 { font-size: var(--step-3); color: var(--background); margin-bottom: 1.5rem; }
.contact__info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.1rem; }
.contact__info-icon {
  width: 36px; height: 36px; border-radius: var(--radius); flex-shrink: 0;
  background: color-mix(in oklab, var(--accent) 15%, var(--primary));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
}
.contact__info-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--background) 50%, var(--primary));
  display: block; margin-bottom: 0.2rem;
}
.contact__info-value {
  color: color-mix(in oklab, var(--background) 85%, var(--primary));
  font-size: var(--step-0); font-weight: 500;
}
.contact__map-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem; color: var(--accent); font-size: var(--step-0);
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.2s;
}
.contact__map-link:hover { color: color-mix(in oklab, var(--accent) 85%, #fff); }
.contact__form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.contact__form-card h3 { font-size: var(--step-2); color: var(--primary); margin-bottom: 1.75rem; }

/* =============================================
   FAQs — Accordion
   ============================================= */
[data-section="faqs"] { background: var(--background); }
.faqs__list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
[data-accordion-trigger] {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0; text-align: left; gap: 1rem;
}
[data-accordion-trigger] span {
  font-family: var(--font-display); font-size: var(--step-1); color: var(--primary);
}
[data-accordion-trigger]::after {
  content: '+'; font-size: 1.5rem; color: var(--accent);
  flex-shrink: 0; transition: transform 0.3s;
}
[data-accordion-trigger][aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-body {
  max-height: 0; overflow: clip; transition: max-height 0.35s ease;
}
.faq-body p { padding: 0 0 1.25rem; color: var(--muted); line-height: 1.75; }

/* =============================================
   FOOTER
   ============================================= */
[data-section="footer"] {
  background: var(--primary); color: var(--background);
  padding: 4rem 0 1.5rem; border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer__brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer__tagline {
  font-size: var(--step-0); line-height: 1.6;
  color: color-mix(in oklab, var(--background) 60%, var(--primary));
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 1.25rem;
}
.footer__col a {
  display: block; color: color-mix(in oklab, var(--background) 65%, var(--primary));
  font-size: var(--step-0); margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer__copy {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, var(--background) 40%, var(--primary));
}

/* =============================================
   LIVEWIRE LOADING STATES
   ============================================= */
[wire\:loading], [wire\:loading\.delay], [wire\:loading\.inline-block], [wire\:loading\.inline] {
  display: none;
}

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in  .35s ease both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; padding: 5rem 0 4rem; gap: 2rem; }
  .hero__image-wrap { max-width: 500px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__divider { display: none; }
  .testimonials__grid { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  [data-section="header"] nav:not(.nav__mobile) .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero__stats { gap: 0.5rem; }
  .hero__stat { min-width: 90px; padding: 0.65rem 0.9rem; }
  .quote__grid { grid-template-columns: 1fr; }
  .quote__aside { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .testimonials__grid { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--step-4); }
  .about__stats { gap: 1.25rem; }
  .certs__strip { gap: 1rem; }
  .cert-badge { min-width: 130px; padding: 1.1rem 1.25rem; }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero__badge, .hero__prefix, .hero__title, .hero__subtitle,
  .hero__desc, .hero__cta-wrap, .hero__stats, .hero__image-wrap {
    animation: none !important; opacity: 1 !important;
  }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
:where([data-section="service_areas"]) .eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="certifications"]) .eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="certifications"]) .cert-badge__issuer { color: oklch(from color-mix(in oklab, var(--background) 55%, var(--primary)) max(l, 0.75) c h); }
:where([data-section="certifications"]) .cert-badge__name { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.quote__aside) .eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.contact__info) .eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.contact__info) .contact__map-link { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__col h4 { color: oklch(from var(--accent) max(l, 0.75) c h); }
[data-section="service_areas"] .section-header p { color: oklch(from color-mix(in oklab, var(--background) 65%, var(--primary)) max(l, 0.75) c h); }
:where([data-section="service_areas"]) .area-chip { color: oklch(from color-mix(in oklab, var(--background) 80%, var(--primary)) max(l, 0.75) c h); }
.quote__aside p { color: oklch(from color-mix(in oklab, var(--background) 70%, var(--primary)) max(l, 0.75) c h); }
:where(.quote__aside) .quote__aside-list li { color: oklch(from color-mix(in oklab, var(--background) 80%, var(--primary)) max(l, 0.75) c h); }
:where(.contact__info) .contact__info-value { color: oklch(from color-mix(in oklab, var(--background) 85%, var(--primary)) max(l, 0.75) c h); }
:where(.gallery-pair) .gallery-pair__caption { color: oklch(from color-mix(in oklab, var(--background) 75%, var(--primary)) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__tagline { color: oklch(from color-mix(in oklab, var(--background) 60%, var(--primary)) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__col a { color: oklch(from color-mix(in oklab, var(--background) 65%, var(--primary)) max(l, 0.75) c h); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --muted: #656c7a; /* was #6b7280 */
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.service-row__subtitle { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
.area-chip__note { color: oklch(from color-mix(in oklab, var(--background) 45%, var(--primary)) max(l, 0.61) c h / alpha); }
.footer__copy { color: oklch(from color-mix(in oklab, var(--background) 40%, var(--primary)) max(l, 0.601) c h / alpha); }
.cert-badge__note { color: oklch(from color-mix(in oklab, var(--background) 50%, var(--primary)) max(l, 0.598) c h / alpha); }
.hours__today td:first-child { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
.contact__info-label { color: oklch(from color-mix(in oklab, var(--background) 50%, var(--primary)) max(l, 0.598) c h / alpha); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:where([data-section="about"]) .eyebrow { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
:where([data-section="services"]) .eyebrow { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
:where([data-section="opening_hours"]) .eyebrow { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
:where([data-section="before_after_gallery"]) .eyebrow { color: oklch(from var(--accent) min(l, 0.512) c h / alpha); }
:where([data-section="certifications"]) .section-header p { color: oklch(from var(--muted) max(l, 0.6) c h / alpha); }
