/* ============================================================
   CRANKSHAFT GROWTH — Swiss/Grid Technical Precision
   App Type: local-service | Trade: auto_repair | Tier: growth
   Direction: Swiss/Grid | Signature: Bento services + stat bar
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

/* ── CSS TOKENS ───────────────────────────────────────────── */
:root {
  /* Brand palette */
  --primary:     #0f1923;
  --secondary:   #1a2634;
  --accent:      #6366f1;
  --background:  #f8fafc;
  --surface:     #eef1f6;
  --text:        #0f1923;
  --muted:       #64748b;
  --border:      #cbd5e1;

  /* Derived tints (color-mix oklab) */
  --primary-dark:  color-mix(in oklab, var(--primary) 85%, #000);
  --primary-light: color-mix(in oklab, var(--primary) 60%, #fff);
  --accent-dim:    color-mix(in oklab, var(--accent) 14%, var(--surface));
  --accent-glow:   color-mix(in oklab, var(--accent) 30%, transparent);
  --surface-tint:  color-mix(in oklab, var(--primary) 4%, var(--background));

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Fluid type scale */
  --step--1: clamp(0.78rem, 0.73rem + 0.25vw, 0.9rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  --step-1:  clamp(1.14rem, 1.05rem + 0.45vw, 1.38rem);
  --step-2:  clamp(1.37rem, 1.22rem + 0.75vw, 1.87rem);
  --step-3:  clamp(1.64rem, 1.4rem + 1.2vw,  2.5rem);
  --step-4:  clamp(1.97rem, 1.6rem + 1.85vw, 3.25rem);
  --step-5:  clamp(2.37rem, 1.85rem + 2.6vw, 4.3rem);

  /* Spacing */
  --space-xs:  clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm:  clamp(0.75rem, 0.6rem + 0.75vw, 1.125rem);
  --space-md:  clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --space-lg:  clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl:  clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl: clamp(3rem, 2.2rem + 4vw, 6rem);

  /* Layout */
  --container:  1200px;
  --radius:     4px;
  --radius-lg:  8px;

  /* Shadow scale (Swiss: flat, precise) */
  --shadow-sm:  0 1px 2px rgb(0 0 0 / .05), 0 1px 1px rgb(0 0 0 / .04);
  --shadow-md:  0 4px 16px rgb(0 0 0 / .08), 0 2px 4px rgb(0 0 0 / .05);
  --shadow-lg:  0 12px 40px rgb(0 0 0 / .12), 0 4px 8px rgb(0 0 0 / .06);
}

/* ── REVEAL (CSS SCROLL-DRIVEN, BASELINE) ─────────────────── */
@keyframes wb-reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

.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% cover 35%;
    }
    .reveal-stagger > * { animation-delay: calc(var(--i, 0) * 55ms); }
  }
}

/* Stat bar fill (signature moment) */
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@property --stat-progress { syntax: '<number>'; inherits: false; initial-value: 0; }

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

html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
p, li { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }
img[src=""], img:not([src]) { display: none !important; }
img[src$="placeholder.jpg"] { display: none !important; }

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

/* ── GRID FIX ─────────────────────────────────────────────── */
[data-list] { display: contents; }

/* ── FOCUS VISIBLE ───────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: .5rem 1rem;
  background: var(--accent); color: #fff; font-weight: 600; z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* ── SCROLL PROGRESS ──────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: var(--accent); width: 0; transition: width .1s linear;
}

/* ── BACK TO TOP ──────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  width: 2.5rem; height: 2.5rem; border: 2px solid var(--accent);
  background: var(--primary); color: var(--accent);
  font-size: 1rem; cursor: pointer; display: none; align-items: center;
  justify-content: center; border-radius: var(--radius);
  transition: background .2s, color .2s;
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.back-to-top:hover { background: var(--accent); color: #fff; }
.back-to-top.visible { display: flex; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }

/* ── SECTION CODE BAND ────────────────────────────────────── */
.section-code {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.section-code--light { color: color-mix(in oklab, var(--accent) 70%, #fff); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; font-family: var(--font-display);
  font-size: var(--step-0); font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 80%, var(--primary)); color: #fff; box-shadow: 0 0 0 3px var(--accent-glow); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--dark:hover { background: var(--primary-dark); color: #fff; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--surface); }

/* ── BADGE ────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .25rem .75rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px;
}
.badge--accent { background: var(--accent); color: #fff; }
.badge--dim { background: var(--accent-dim); color: var(--accent); }
.badge--dark { background: var(--primary); color: #fff; }
.badge--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* ── HEADER ───────────────────────────────────────────────── */
[data-section="header"] {
  position: sticky; top: 0; z-index: 500;
  background: var(--background, rgba(248,250,252,.96));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
[data-section="header"].scrolled { box-shadow: var(--shadow-md); }
[data-section="header"] .container { padding-top: .85rem; padding-bottom: .85rem; }

[data-section="header"] nav:not(.nav__mobile) {
  display: flex; align-items: center; gap: var(--space-md);
}
.logo img { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); color: var(--primary);
  letter-spacing: -.02em;
}

.nav__links {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-display); font-size: var(--step--1);
  font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); padding: .3rem .5rem;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav__cta { margin-left: var(--space-sm); }

.nav__toggle {
  display: none; background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--text); margin-left: auto;
}

/* Mobile nav */
[data-section="header"] .nav__mobile {
  display: none; flex-direction: column; gap: .5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background); border-bottom: 2px solid var(--accent);
  padding: var(--space-md); z-index: 400;
}
[data-section="header"] .nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display); font-weight: 600;
  color: var(--text); padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .06em; font-size: var(--step-0);
}

/* ── HERO ─────────────────────────────────────────────────── */
[data-section="hero"] {
  min-height: 100svh; background: var(--primary);
  display: grid; align-items: center; position: relative; overflow: hidden;
}
[data-section="hero"]::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent 0, transparent calc(100%/12 - 1px),
    color-mix(in oklab, #fff 4%, transparent) calc(100%/12 - 1px),
    color-mix(in oklab, #fff 4%, transparent) calc(100%/12)
  );
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: 100svh;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero__index {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 600; line-height: 1; color: var(--accent);
  opacity: .18; position: absolute; top: 1rem; left: 1rem;
  pointer-events: none; user-select: none;
}

.hero__eyebrow { margin-bottom: var(--space-sm); }
.hero__kicker {
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: var(--space-xs);
}
.hero__title {
  font-size: var(--step-5); color: #fff; line-height: 1.05;
  margin-bottom: var(--space-sm); letter-spacing: -.03em;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
  font-size: var(--step-1); color: color-mix(in oklab, #fff 70%, var(--primary));
  margin-bottom: var(--space-xs);
}
.hero__body {
  font-size: var(--step-0); color: color-mix(in oklab, #fff 55%, var(--primary));
  margin-bottom: var(--space-lg); max-width: 42ch;
}
.hero__grid-line {
  display: block; width: 3rem; height: 2px;
  background: var(--accent); margin: var(--space-sm) 0;
}
.hero__ctas { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* hero right image pane */
.hero__visual { position: relative; }
.hero__img-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/3;
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 40%, transparent) 0%,
    transparent 60%);
  mix-blend-mode: multiply;
}
.hero__img-border {
  position: absolute; inset: -8px; border: 2px solid var(--accent);
  border-radius: calc(var(--radius-lg) + 8px); pointer-events: none; opacity: .4;
}

/* Floating cert badge */
.hero__cert-tile {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--accent); color: #fff; padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius); z-index: 2;
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-lg);
}
.hero__cert-tile strong { display: block; font-size: var(--step-1); font-family: var(--font-display); }
/* The tile now carries the owner's own licence line (about.license_note), not a 3-letter mark: keep it a readable, wrapping caption. */
.hero__cert-tile { max-width: min(18rem, 70%); }
.hero__cert-tile strong { font-size: var(--step-0); text-transform: none; letter-spacing: .01em; line-height: 1.3; overflow-wrap: anywhere; }

/* Floating stat chip */
.hero__stat-chip {
  position: absolute; top: -1rem; right: -1rem;
  background: #fff; color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  z-index: 2;
}

/* Hero entrance */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero__content > * {
  animation: hero-in .65s cubic-bezier(.22,.68,0,1.2) both;
}
.hero__content > *:nth-child(1) { animation-delay: .1s; }
.hero__content > *:nth-child(2) { animation-delay: .2s; }
.hero__content > *:nth-child(3) { animation-delay: .3s; }
.hero__content > *:nth-child(4) { animation-delay: .38s; }
.hero__content > *:nth-child(5) { animation-delay: .46s; }
.hero__content > *:nth-child(6) { animation-delay: .54s; }

/* ── STATS BAND ───────────────────────────────────────────── */
.stats-band {
  background: var(--primary);
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--accent);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* auto-fit: owner-supplied stats may be absent — never leave an empty column */
  gap: var(--space-md);
}
.stat-item { text-align: center; }
.stat-item__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-item__num span { color: var(--accent); }
.stat-item__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in oklab, #fff 50%, var(--primary));
}
/* Stat bar (signature moment) */
.stat-item__bar {
  display: block; width: 100%; height: 2px;
  background: color-mix(in oklab, #fff 12%, transparent);
  margin-top: .75rem; border-radius: 2px; overflow: hidden;
}
.stat-item__bar::after {
  content: ''; display: block; height: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat-item__bar::after {
      animation: bar-fill linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 50%;
    }
  }
}

/* ── ABOUT ────────────────────────────────────────────────── */
[data-section="about"] {
  padding: var(--space-2xl) 0;
  background: var(--background);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0 var(--space-xl);
  align-items: start;
}
.about__divider { background: var(--border); }
.about__title { margin-bottom: var(--space-md); }
.about__body { color: var(--muted); margin-bottom: var(--space-lg); }
.about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-md); } /* auto-fit: the years stat is owner-supplied and may be absent — never leave an empty column */
.about__stat-num {
  font-family: var(--font-mono); font-size: var(--step-3);
  font-weight: 700; color: var(--accent); display: block; line-height: 1;
}
.about__stat-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.about__visual { position: relative; }
.about__img {
  width: 100%; border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}
.about__cert-stripe {
  position: absolute; bottom: var(--space-md); right: var(--space-md);
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* ── SERVICES (BENTO) ─────────────────────────────────────── */
[data-section="services"] {
  padding: var(--space-2xl) 0;
  background: var(--surface);
}
.services__header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border); padding-bottom: var(--space-md);
}
/* Bento grid — single data-item, CSS creates variety */
.services__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Bento variants via :nth-child */
.service-card:nth-child(1) { grid-column: span 2; background: var(--primary); color: #fff; }
.service-card:nth-child(1) .service-card__code { color: var(--accent); }
.service-card:nth-child(1) .service-card__title { color: #fff; }
.service-card:nth-child(1) .service-card__body { color: color-mix(in oklab, #fff 60%, var(--primary)); }
.service-card:nth-child(1) .service-card__price { color: var(--accent); }

.service-card:nth-child(4) { background: var(--accent); color: #fff; border-color: var(--accent); }
.service-card:nth-child(4) .service-card__code { color: color-mix(in oklab, #fff 60%, var(--accent)); }
.service-card:nth-child(4) .service-card__title { color: #fff; }
.service-card:nth-child(4) .service-card__body { color: color-mix(in oklab, #fff 70%, var(--accent)); }
.service-card:nth-child(4) .service-card__price { color: #fff; font-weight: 700; }

.service-card:nth-child(7) { grid-column: span 2; background: var(--secondary); color: #fff; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.service-card:nth-child(7) .service-card__code { color: var(--accent); }
.service-card:nth-child(7) .service-card__title { color: #fff; }
.service-card:nth-child(7) .service-card__body { color: color-mix(in oklab, #fff 60%, var(--secondary)); }
.service-card:nth-child(7) .service-card__price { color: var(--accent); }

.service-card__code {
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-xs);
  display: flex; align-items: center; gap: .5rem;
}
.service-card__code::before {
  content: ''; display: block; width: 1.5rem; height: 1.5px;
  background: currentColor;
}
.service-card__title {
  font-size: var(--step-1); font-weight: 700; margin-bottom: var(--space-xs);
  color: var(--text);
}
.service-card__sub {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: var(--space-xs);
}
.service-card__body { font-size: var(--step-0); color: var(--muted); margin-bottom: var(--space-md); }
.service-card__price {
  font-family: var(--font-mono); font-size: var(--step-1);
  font-weight: 600; color: var(--accent); display: block; margin-bottom: var(--space-sm);
}
.service-card__img { width: 100%; border-radius: var(--radius); margin-bottom: var(--space-sm); aspect-ratio: 16/9; object-fit: cover; }
.service-card__link {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: .35rem;
}
.service-card__link::after { content: '→'; }

/* ── SERVICE AREAS ────────────────────────────────────────── */
[data-section="service_areas"] {
  padding: var(--space-2xl) 0;
  background: var(--surface-tint);
}
.areas__grid {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  margin-top: var(--space-lg);
}
.area-chip {
  display: inline-flex; flex-direction: column;
  padding: .6rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-0); color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.area-chip:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.area-chip__name { line-height: 1.2; }
.area-chip__note {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

/* ── BEFORE/AFTER GALLERY ─────────────────────────────────── */
[data-section="before_after_gallery"] {
  padding: var(--space-2xl) 0;
  background: var(--primary);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.ba-pair { background: var(--secondary); border-radius: var(--radius-lg); overflow: hidden; }
.ba-pair__cols { display: grid; grid-template-columns: 1fr 1fr; }
.ba-half { position: relative; }
.ba-half img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ba-label {
  position: absolute; top: .75rem; left: .75rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 2px;
}
.ba-label--before { background: color-mix(in oklab, #000 50%, transparent); color: #fff; }
.ba-label--after  { background: var(--accent); color: #fff; }
.ba-caption {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, #fff 55%, var(--primary));
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── CERTIFICATIONS ───────────────────────────────────────── */
[data-section="certifications"] {
  padding: var(--space-2xl) 0;
  background: var(--accent);
}
.certs__row {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-top: var(--space-xl); justify-content: center;
}
.cert-card {
  background: color-mix(in oklab, var(--accent) 80%, #000);
  border: 1px solid color-mix(in oklab, #fff 15%, var(--accent));
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-sm);
  min-width: 220px; flex: 1;
  transition: background .2s;
}
.cert-card:hover { background: color-mix(in oklab, var(--accent) 65%, #000); }
.cert-card__logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.cert-card__info {}
.cert-card__name {
  font-family: var(--font-display); font-weight: 700;
  color: #fff; font-size: var(--step-1); display: block;
}
.cert-card__issuer {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, #fff 65%, var(--accent));
  text-transform: uppercase; letter-spacing: .08em;
}
.cert-card__note {
  font-size: var(--step--1); color: color-mix(in oklab, #fff 55%, var(--accent));
  margin-top: .2rem;
}

/* ── QUOTE REQUEST ────────────────────────────────────────── */
[data-section="quote_request"] {
  padding: var(--space-2xl) 0;
  background: var(--background);
}
.quote__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-2xl);
  align-items: start;
}
.quote__intro {}
.quote__title { margin-bottom: var(--space-md); }
.quote__body { color: var(--muted); margin-bottom: var(--space-lg); }
.quote__trust { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.quote__trust li {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.quote__trust li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.quote__form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-xl);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__group--full { grid-column: span 2; }
.form__label {
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text);
}
.form__input, .form__select, .form__textarea {
  width: 100%; padding: .65rem 1rem;
  background: var(--background); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--step-0);
  transition: border-color .2s, box-shadow .2s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__submit { margin-top: var(--space-sm); }
.form__group:has(.form__input:invalid:not(:placeholder-shown)) { --border: #ef4444; }
.form__success {
  background: color-mix(in oklab, #22c55e 12%, var(--surface));
  border: 1.5px solid #22c55e; border-radius: var(--radius);
  padding: var(--space-md); color: #166534; text-align: center;
  display: none;
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
[data-section="testimonials"] {
  padding: var(--space-2xl) 0;
  background: var(--primary);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.testi-card {
  background: var(--secondary); border-radius: var(--radius-lg);
  padding: var(--space-lg); position: relative;
}
.testi-card:nth-child(2) { background: var(--accent); }
.testi-card:nth-child(2) .testi-card__body { color: color-mix(in oklab, #fff 80%, var(--accent)); }
.testi-card:nth-child(2) .testi-card__name { color: #fff; }
.testi-card:nth-child(2) .testi-card__role { color: color-mix(in oklab, #fff 65%, var(--accent)); }
.testi-card__quote {
  font-size: 2.5rem; line-height: 1; color: var(--accent);
  font-family: Georgia, serif; margin-bottom: var(--space-sm);
  opacity: .6;
}
.testi-card:nth-child(2) .testi-card__quote { color: #fff; }
.testi-card__body {
  font-size: var(--step-0); color: color-mix(in oklab, #fff 65%, var(--primary));
  margin-bottom: var(--space-md); font-style: italic;
}
.testi-card__author { display: flex; align-items: center; gap: var(--space-sm); }
.testi-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.testi-card:nth-child(2) .testi-card__avatar { border-color: #fff; }
.testi-card__name {
  font-family: var(--font-display); font-weight: 700;
  color: #fff; display: block; font-size: var(--step-0);
}
.testi-card__role {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, #fff 45%, var(--primary));
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── OPENING HOURS ────────────────────────────────────────── */
[data-section="opening_hours"] {
  padding: var(--space-2xl) 0;
  background: var(--surface);
}
.hours__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl);
  align-items: start; margin-top: var(--space-xl);
}
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table tr { border-bottom: 1px solid var(--border); }
.hours__table tr:last-child { border-bottom: none; }
.hours__table td {
  padding: .65rem 0; font-size: var(--step-0);
  vertical-align: middle;
}
.hours__table td:first-child {
  font-family: var(--font-display); font-weight: 600; color: var(--text);
  width: 40%;
}
.hours__table td:last-child {
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 500; color: var(--muted); text-align: right;
  text-transform: uppercase; letter-spacing: .06em;
}
.hours__table tr.today {
  background: var(--accent-dim); border-radius: var(--radius);
}
.hours__table tr.today td:first-child { color: var(--accent); }
.hours__table tr.today td:last-child { color: var(--accent); font-weight: 700; }
.hours__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  padding: .3rem .7rem; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.hours__badge--open { background: color-mix(in oklab, #22c55e 15%, var(--background)); color: #15803d; }
.hours__badge--closed { background: color-mix(in oklab, #ef4444 12%, var(--background)); color: #b91c1c; }

/* ── CONTACT ──────────────────────────────────────────────── */
[data-section="contact"] {
  padding: var(--space-2xl) 0;
  background: var(--background);
}
.contact__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-2xl);
  align-items: start;
}
.contact__info {
  background: var(--primary); border-radius: var(--radius-lg);
  padding: var(--space-xl); color: #fff;
}
.contact__info-title { color: #fff; margin-bottom: var(--space-lg); }
.contact__detail {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.contact__detail-icon {
  width: 2rem; height: 2rem; background: var(--accent);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: .85rem; flex-shrink: 0;
}
.contact__detail-text { font-size: var(--step-0); }
.contact__detail a {
  color: color-mix(in oklab, #fff 80%, var(--primary));
  display: block; font-family: var(--font-mono); font-weight: 600;
}
.contact__detail a:hover { color: var(--accent); }
.contact__detail-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .08em;
  color: color-mix(in oklab, #fff 40%, var(--primary));
}
.contact__map-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-sm);
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
}

/* ── FAQs ─────────────────────────────────────────────────── */
[data-section="faqs"] { padding: var(--space-2xl) 0; background: var(--surface); }
.faqs__list { margin-top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-xs); }
.faq-item {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq-item__trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-md) var(--space-lg); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  color: var(--text); background: none; border: none; width: 100%; text-align: left;
}
.faq-item__trigger:hover { color: var(--accent); }
.faq-item__icon {
  width: 1.4rem; height: 1.4rem; border: 1.5px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; transition: background .2s, transform .2s;
  font-family: var(--font-mono); font-weight: 700;
}
.faq-item.open .faq-item__icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-item__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item__body p {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--muted); font-size: var(--step-0); line-height: 1.7;
}

/* ── FOOTER ───────────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--primary);
  border-top: 2px solid var(--accent);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__logo { height: 32px; width: auto; margin-bottom: var(--space-md); }
.footer__tagline { color: color-mix(in oklab, #fff 50%, var(--primary)); font-size: var(--step-0); max-width: 30ch; }
.footer__heading {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-md); display: block;
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: var(--step-0); color: color-mix(in oklab, #fff 55%, var(--primary));
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid color-mix(in oklab, #fff 10%, var(--primary));
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
}
.footer__copy {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: color-mix(in oklab, #fff 35%, var(--primary));
  letter-spacing: .06em;
}

/* ── SECTION PADDING UTILITY ──────────────────────────────── */
.section-header { margin-bottom: var(--space-xl); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 5rem; gap: var(--space-lg); }
  .hero__visual { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__divider { display: none; }
  .quote__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .services__bento { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(1),
  .service-card:nth-child(7) { grid-column: span 2; }
  .stats-band__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .hours__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__toggle { display: flex; }
  [data-section="header"] nav:not(.nav__mobile) .nav__links { display: none; }
  [data-section="header"] nav:not(.nav__mobile) .nav__cta { display: none; }
}

@media (max-width: 600px) {
  .services__bento { grid-template-columns: 1fr; }
  .service-card:nth-child(1),
  .service-card:nth-child(4),
  .service-card:nth-child(7) { grid-column: span 1; }
  .form__grid { grid-template-columns: 1fr; }
  .form__group--full { grid-column: span 1; }
  .stats-band__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .certs__row { flex-direction: column; }
  .about__stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}


/* __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 (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where([data-section="before_after_gallery"]) .section-code--light { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(1)) .service-card__code { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(1)) .service-card__price { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(1)) .service-card__link { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(4)) .service-card__sub { color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.contact__info) .contact__map-link { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__heading { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* 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. */
[data-section="before_after_gallery"] { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__tagline { color: oklch(from color-mix(in oklab, #fff 50%, var(--primary)) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__links a { color: oklch(from color-mix(in oklab, #fff 55%, var(--primary)) max(l, 0.75) c h); }
:where(.service-card:nth-child(1)) .service-card__body { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* 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: #5e6e85; /* was #64748b */
}

/* 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-card__code { color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
.cert-card__note { color: oklch(from color-mix(in oklab, #fff 55%, var(--accent)) max(l, 0.853) c h / alpha); }
.contact__detail-label { color: oklch(from color-mix(in oklab, #fff 40%, var(--primary)) max(l, 0.625) c h / alpha); }
.service-card__price { color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
.footer__copy { color: oklch(from color-mix(in oklab, #fff 35%, var(--primary)) max(l, 0.625) c h / alpha); }
.btn--outline { color: oklch(from var(--accent) min(l, 0.545) 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"]) .section-code { color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
:where([data-section="services"]) .section-code { color: oklch(from var(--accent) min(l, 0.545) c h / alpha); }
:where([data-section="service_areas"]) .section-code { color: oklch(from var(--accent) min(l, 0.545) c h / alpha); }
:where([data-section="quote_request"]) .section-code { color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
:where([data-section="contact"]) .section-code { color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
.btn--primary { background-color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }

/* Guarded contrast (Skin & Skeleton S2, theme:palette-stress --heal --guarded): text that read in the owner's
   colours but not once a colour was darkened to read on the page. Each bound was proven by rendering the page with no
   palette, with each stress palette as picked, and with its guarded and readable versions: none got worse. */
:where([data-section="footer"]) .footer__links a { color: oklch(from oklch(from color-mix(in oklab, #fff 55%, var(--primary)) max(l, 0.75) c h) max(l, 0.985) c h / alpha); }
.contact__detail-label:where([data-section="contact"], [data-section="contact"] *) { color: oklch(from oklch(from color-mix(in oklab, #fff 40%, var(--primary)) max(l, 0.625) c h / alpha) max(l, 0.976) c h / alpha); }
.footer__copy:where([data-section="footer"], [data-section="footer"] *) { color: oklch(from oklch(from color-mix(in oklab, #fff 35%, var(--primary)) max(l, 0.625) c h / alpha) max(l, 1) c h / alpha); }
.section-code--light:where([data-section="certifications"], [data-section="certifications"] *) { color: oklch(from color-mix(in oklab, var(--accent) 70%, #fff) max(l, 1) c h / alpha); }
.section-code--light:where([data-section="opening_hours"], [data-section="opening_hours"] *) { color: oklch(from color-mix(in oklab, var(--accent) 70%, #fff) max(l, 1) c h / alpha); }
.service-card:nth-child(1) .service-card__code:where([data-section="services"], [data-section="services"] *) { color: oklch(from var(--accent) max(l, 1) c h / alpha); }
.service-card:nth-child(1) .service-card__price:where([data-section="services"], [data-section="services"] *) { color: oklch(from var(--accent) max(l, 1) c h / alpha); }
.service-card:nth-child(4) .service-card__code:where([data-section="services"], [data-section="services"] *) { color: oklch(from color-mix(in oklab, #fff 60%, var(--accent)) max(l, 0.965) c h / alpha); }
.service-card:nth-child(4) .service-card__body:where([data-section="services"], [data-section="services"] *) { color: oklch(from color-mix(in oklab, #fff 70%, var(--accent)) max(l, 1) c h / alpha); }
.service-card:nth-child(1) .service-card__body:where([data-section="services"], [data-section="services"] *) { color: oklch(from color-mix(in oklab, #fff 60%, var(--primary)) max(l, 1) c h / alpha); }
.contact__detail a:where([data-section="contact"], [data-section="contact"] *) { color: oklch(from color-mix(in oklab, #fff 80%, var(--primary)) max(l, 0.98) c h / alpha); }
:where([data-section="footer"]) .footer__tagline { color: oklch(from oklch(from color-mix(in oklab, #fff 50%, var(--primary)) max(l, 0.75) c h) max(l, 1) c h / alpha); }
