/* ═══════════════════════════════════════════════════════
   Pearl Orthodontics — Swiss / Grid Identity
   Palette: Deep Ink Navy · Vivid Indigo · Cool White
   Fonts:   Space Grotesk (display) · Inter (body) · JetBrains Mono (meta)
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Palette */
  --primary:    #10263f;
  --secondary:  #10263f;
  --accent:     #635bff;
  --background: #f6f8fc;
  --surface:    #ffffff;
  --text:       #14202e;
  --muted:      #647082;
  --border:     #dde3ee;
  --dark:       #0a1726;

  /* Scoped immutable values (won't be overridden by preset) */
  --theme-dark-band:    #0a1726;
  --theme-dark-surface: rgba(255,255,255,0.06);
  --theme-dark-border:  rgba(255,255,255,0.1);
  --theme-dark-muted:   rgba(255,255,255,0.55);
  --theme-accent-tint:  rgba(99,91,255,0.08);
  --theme-accent-glow:  rgba(99,91,255,0.22);

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

  /* Shape */
  --radius:    4px;
  --radius-sm: 2px;
  --radius-md: 8px;

  /* Fluid type scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.12vw, 0.88rem);
  --step-0:  clamp(1rem,   0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.15rem,1.08rem + 0.38vw, 1.38rem);
  --step-2:  clamp(1.32rem,1.2rem  + 0.62vw, 1.75rem);
  --step-3:  clamp(1.5rem, 1.34rem + 0.88vw, 2.25rem);
  --step-4:  clamp(1.8rem, 1.52rem + 1.42vw, 3rem);
  --step-5:  clamp(2.2rem, 1.76rem + 2.2vw,  4rem);

  /* Layered shadow scale */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .04), 0 1px 1px rgb(0 0 0 / .03);
  --shadow-md: 0 4px 12px rgb(0 0 0 / .07), 0 2px 4px rgb(0 0 0 / .04);
  --shadow-lg: 0 18px 48px rgb(0 0 0 / .11), 0 6px 16px rgb(0 0 0 / .06);

  /* Swiss/Grid motion personality — quick, precise, no overshoot */
  --dur-micro:  140ms;
  --dur-ui:     200ms;
  --dur-reveal: 500ms;
  --dur-slow:   900ms;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(.3, 0, .1, 1);
  --ease-spring:   cubic-bezier(.4, 0, .2, 1);
}

/* ── Livewire loading (REQUIRED) ────────────────────────── */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* ── Empty image fallback (REQUIRED) ───────────────────── */
img[src=""],
img:not([src])          { display: none !important; }
img[src$="placeholder.jpg"] { display: none !important; }

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-sans); background: var(--background); color: var(--text); line-height: 1.65; overflow-x: hidden; font-size: var(--step-0); }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul    { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

/* Mono metadata label — the Swiss codeplate */
.codeplate {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.codeplate::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.codeplate--light { color: rgba(255,255,255,0.45); }

/* Legacy eyebrow alias (keep for existing class usage) */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.section-eyebrow--light { color: rgba(255,255,255,0.5); }

.section-header        { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .codeplate,
.section-header--center .section-eyebrow {
  justify-content: center;
}
.section-subtitle { color: var(--muted); margin-top: 12px; font-size: var(--step-0); }

/* Kinetic-rise: CSS-first scroll-driven reveal */
@keyframes wb-reveal {
  from { opacity: 0; transform: translateY(32px); }
  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% cover 30%;
    }
  }
}
.reveal-stagger > * { --i: 0; animation-delay: calc(var(--i) * 70ms); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-pad { padding: 96px 0; }
.section-alt  { background: color-mix(in oklab, var(--primary) 3%, var(--background)); }
.section-dark { background: var(--theme-dark-band); color: #fff; }

/* Section top rule — the grid rhythm marker */
.section-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 64px;
}

/* ── Focus & Skip ─────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--accent); color: #fff;
  padding: 8px 18px; z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
  font-family: var(--font-mono); font-size: 0.75rem;
  transition: top var(--dur-ui) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ── Scroll progress ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 10000; width: 0;
  transition: width 80ms linear;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--background, rgba(246,248,252,.96));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-ui) var(--ease-standard);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgb(0 0 0 / .07);
}
.header__inner {
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--primary); flex-shrink: 0;
  letter-spacing: -0.02em;
}
.logo img {
  width: 34px; height: 34px; object-fit: contain;
  border-radius: var(--radius-md);
}
.logo__name { white-space: nowrap; }

/* Desktop nav */
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav:not(.nav__mobile) a.site-nav-item {
  padding: 7px 14px; border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.875rem; color: var(--muted);
  transition: color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}
.site-nav:not(.nav__mobile) a.site-nav-item:hover {
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 5%, transparent);
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--primary); padding: 7px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur-micro) var(--ease-standard);
  white-space: nowrap; letter-spacing: 0.04em;
}
.header__phone:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile nav toggle */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius);
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--primary);
  transition: all var(--dur-ui) var(--ease-out); border-radius: 1px;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.nav__mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-md);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px 14px; border-radius: var(--radius);
  font-weight: 500; color: var(--text); font-size: 0.9rem;
  transition: background var(--dur-micro) var(--ease-standard);
}
.nav__mobile a:hover { background: var(--theme-accent-tint); color: var(--accent); }
.nav__mobile .btn { margin-top: 8px; justify-content: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; letter-spacing: -0.01em;
  transition: background var(--dur-micro) var(--ease-standard),
              transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out),
              border-color var(--dur-micro) var(--ease-standard);
  cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(16 38 63 / .25);
}
.btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--theme-accent-glow);
}
.btn--outline {
  border-color: var(--border); color: var(--text); background: transparent;
}
.btn--outline:hover {
  border-color: var(--primary); color: var(--primary);
  background: color-mix(in oklab, var(--primary) 4%, transparent);
}
.btn--lg  { padding: 14px 36px; font-size: 0.95rem; }
.btn--sm  { padding: 7px 16px; font-size: 0.82rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--magnetic { transition: all var(--dur-ui) cubic-bezier(.23,1,.32,1); }

/* ── Hero ────────────────────────────────────────────────── */

/* Signature moment: Swiss asymmetric grid hero with numbered metadata column */
@keyframes hero-grid-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to { opacity: 1;
    clip-path: inset(0 0% 0 0); }
}
@keyframes hero-content-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; }
}
@keyframes hero-index-fade {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; }
}

.hero {
  background: var(--theme-dark-band);
  color: #fff;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

/* The main asymmetric grid: metadata | content | image */
.hero__split {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 72px 1fr 48%;
  grid-template-rows: 1fr;
  gap: 0;
  min-height: 100svh;
  align-items: stretch;
}

/* Metadata column — numbered index */
.hero__index {
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px 0;
  align-items: center;
}
.hero__index-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-transform: uppercase;
}
.hero__index-mark {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Content area */
.hero__content {
  padding: 80px 48px 80px 48px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Hero badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(99,91,255,0.35);
  border-radius: var(--radius);
  width: fit-content;
  animation: hero-index-fade var(--dur-reveal) var(--ease-out) 0.1s both;
}
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }

.hero__title {
  font-size: var(--step-5);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: hero-content-rise var(--dur-reveal) var(--ease-out) 0.2s both;
}
.title-prefix {
  display: block;
  color: color-mix(in oklab, var(--accent) 70%, #fff);
  font-weight: 500;
  font-size: 0.65em;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 6px;
}
@media (prefers-reduced-motion: reduce) { .hero__title { animation: none; } }

.hero__subtitle {
  font-size: var(--step-1);
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  animation: hero-content-rise var(--dur-reveal) var(--ease-out) 0.3s both;
}
@media (prefers-reduced-motion: reduce) { .hero__subtitle { animation: none; } }

.hero__body {
  color: rgba(255,255,255,0.45);
  font-size: var(--step--1);
  line-height: 1.75;
  animation: hero-content-rise var(--dur-reveal) var(--ease-out) 0.35s both;
}
@media (prefers-reduced-motion: reduce) { .hero__body { animation: none; } }

/* Swiss stats row */
.hero__stats {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  animation: hero-content-rise var(--dur-reveal) var(--ease-out) 0.4s both;
}
@media (prefers-reduced-motion: reduce) { .hero__stats { animation: none; } }

.stat {
  flex: 1; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 700; color: #fff; line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero__cta-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: hero-content-rise var(--dur-reveal) var(--ease-out) 0.5s both;
}
@media (prefers-reduced-motion: reduce) { .hero__cta-group { animation: none; } }

/* Image cell — hairline bordered grid cell */
.hero__media {
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  animation: hero-grid-in var(--dur-slow) var(--ease-out) 0.15s both;
}
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }

.hero__trust-chip {
  position: absolute; bottom: 28px; left: 24px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,23,38,0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.85);
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── About ───────────────────────────────────────────────── */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.about__media-badge {
  position: absolute; bottom: 24px; right: -20px;
  background: var(--accent); color: #fff;
  padding: 16px 20px; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-lg);
}
.about__media-badge strong {
  display: block; font-size: 1.5rem;
  font-family: var(--font-display); font-weight: 700;
}
.about__media-badge span { font-size: 0.72rem; opacity: 0.85; }
.about__content { display: flex; flex-direction: column; gap: 20px; }
.about__body    { color: var(--muted); line-height: 1.8; }
.about__checklist { display: flex; flex-direction: column; gap: 10px; }
.about__checklist li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem;
}
.about__checklist li::before {
  content: '';
  display: block; width: 18px; height: 18px;
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23635bff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Services ─────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transform-style: preserve-3d;
  transition: background var(--dur-ui) var(--ease-standard),
              transform 80ms ease, box-shadow var(--dur-ui) var(--ease-standard);
  will-change: transform;
}
.service-card:hover { background: color-mix(in oklab, var(--primary) 2.5%, var(--surface)); }

/* Grid variety via nth-child — no variant classes */
.service-card:nth-child(2) {
  background: var(--primary); color: #fff;
}
.service-card:nth-child(2) .service-card__subtitle { color: rgba(99,91,255,0.9); }
.service-card:nth-child(2) .service-card__body     { color: rgba(255,255,255,0.65); }
.service-card:nth-child(2) .service-card__price    { color: #fff; }
.service-card:nth-child(2) .service-card__cta      { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.service-card:nth-child(2) .service-card__icon     { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.15); }
.service-card:nth-child(2):hover                   { background: color-mix(in oklab, var(--primary) 90%, #000); }

.service-card__index {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.service-card:nth-child(2) .service-card__index { color: rgba(255,255,255,0.4); }

.service-card__icon {
  width: 44px; height: 44px;
  background: color-mix(in oklab, var(--accent) 10%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); letter-spacing: -0.02em;
}
.service-card__subtitle {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.service-card__body { color: var(--muted); font-size: 0.875rem; flex: 1; line-height: 1.7; }
.service-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.service-card:nth-child(2) .service-card__footer { border-color: rgba(255,255,255,0.12); }
.service-card__price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--primary); font-size: var(--step-1);
}
.service-card__cta {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid;
  padding-bottom: 1px;
  transition: opacity var(--dur-micro) var(--ease-standard);
}
.service-card__cta:hover { opacity: 0.7; }

/* ── Service Areas ────────────────────────────────────────── */
.areas__grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.area-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  font-family: var(--font-sans);
  transition: border-color var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
  cursor: default;
}
.area-chip:hover { border-color: var(--accent); color: var(--accent); }
.area-chip svg { color: var(--accent); flex-shrink: 0; }
.area-note { font-size: 0.72rem; color: var(--muted); }

/* ── Certifications (dark band) ───────────────────────────── */
.certs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); overflow: hidden;
}
.cert-card {
  background: rgba(255,255,255,0.04);
  padding: 24px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: background var(--dur-ui) var(--ease-standard);
}
.cert-card:hover { background: rgba(255,255,255,0.08); }
.cert-card img {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.cert-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cert-card__info strong {
  font-size: 0.875rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.cert-card__issuer { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.cert-card small   { font-size: 0.68rem; color: rgba(255,255,255,0.3); }

/* ── Before / After ──────────────────────────────────────── */
.ba-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.ba-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.ba-card__images {
  display: grid; grid-template-columns: 1fr 36px 1fr; align-items: center;
}
.ba-card__side { position: relative; overflow: hidden; }
.ba-card__side img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ba-card__label {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.6rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.ba-card__label--before { background: #fde8e8; color: #7f1d1d; }
.ba-card__label--after  { background: color-mix(in oklab, var(--accent) 14%, #fff); color: var(--accent); }
.ba-card__divider {
  width: 36px; height: 36px;
  background: var(--surface);
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0; z-index: 1;
}
.ba-card__caption {
  padding: 14px 18px;
  font-size: 0.8rem; color: var(--muted); text-align: center;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); letter-spacing: 0.03em;
}

/* ── Quote Request ────────────────────────────────────────── */
.quote__wrap {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: start;
}
.quote__info { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.quote__info h2 { color: var(--primary); }
.quote__info p  { color: var(--muted); font-size: 0.9rem; }
.quote__promises { display: flex; flex-direction: column; gap: 8px; }
.quote__promises li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.quote__promises li::before {
  content: '—'; color: var(--accent); font-weight: 700;
}
.quote__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px; display: flex; flex-direction: column; gap: 18px;
}

/* ── Form elements ────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem;
  background: var(--background); color: var(--text);
  transition: border-color var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-micro) var(--ease-standard);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--theme-accent-tint);
}
.form-group textarea { resize: vertical; min-height: 88px; }
.form-group select   { cursor: pointer; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md); overflow: hidden;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transform-style: preserve-3d;
  transition: background var(--dur-ui) var(--ease-standard),
              transform 80ms ease;
}
.testimonial-card:hover { background: rgba(255,255,255,0.08); }
.testimonial-card__stars {
  color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px;
}
.testimonial-card__quote {
  color: rgba(255,255,255,0.8); font-style: italic; flex: 1;
  line-height: 1.75; font-size: 0.9rem;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__author img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15); flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block; font-size: 0.875rem; color: #fff; font-weight: 600;
}
.testimonial-card__author span {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.4);
}

/* ── Opening Hours ────────────────────────────────────────── */
.hours__wrap {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: center;
}
.hours__content { display: flex; flex-direction: column; gap: 20px; }
.hours__content p { color: var(--muted); font-size: 0.9rem; }
.hours__table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table tr[data-item] {
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1.4fr 1.4fr 0.8fr;
  padding: 14px 20px;
  transition: background var(--dur-micro) var(--ease-standard);
}
.hours__table tr[data-item]:last-child { border-bottom: none; }
.hours__table tr[data-item].today-row  { background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.hours__table tr[data-item].today-row td:first-child { color: var(--accent); font-weight: 700; }
.hours__table td { font-size: 0.875rem; align-self: center; }
.hours__table td:first-child { font-weight: 600; font-family: var(--font-display); }
.hours__note {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); text-align: right;
}

/* ── FAQs ────────────────────────────────────────────────── */
.faqs { background: var(--background); }
.faqs__list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item__trigger {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left;
  background: var(--surface); cursor: pointer;
  transition: background var(--dur-micro) var(--ease-standard);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em;
}
.faq-item__trigger:hover { background: color-mix(in oklab, var(--primary) 2%, var(--surface)); }
.faq-item__trigger[aria-expanded="true"] { color: var(--accent); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg); color: var(--accent);
}
.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-out), color var(--dur-micro) var(--ease-standard);
  color: var(--muted);
}
.faq-item__answer {
  padding: 0 24px 20px;
  color: var(--muted); font-size: 0.875rem; line-height: 1.75;
  background: var(--surface);
}
.faq-item__answer[hidden] { display: none; }

/* ── Contact ─────────────────────────────────────────────── */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: start;
}
.contact__info  { display: flex; flex-direction: column; gap: 20px; }
.contact__info h2 { color: var(--primary); }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--muted); font-size: 0.875rem;
}
.contact__item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact__item a:hover { color: var(--accent); }
.contact__form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 40px;
}
.contact__form { display: flex; flex-direction: column; gap: 16px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--theme-dark-band);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Footer closing statement */
.footer__statement {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__statement h2 {
  font-size: var(--step-4); font-weight: 700;
  color: #fff; letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 700px;
}
.footer__statement h2 span { color: var(--accent); }

.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand img {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: var(--radius-md);
}
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.footer__social { display: flex; gap: 8px; margin-top: 6px; }
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard),
              border-color var(--dur-micro) var(--ease-standard);
}
.footer__social a:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.footer__links, .footer__services, .footer__contact {
  display: flex; flex-direction: column; gap: 10px;
}
.footer__links h4,
.footer__services h4,
.footer__contact h4 {
  font-family: var(--font-mono); font-size: 0.65rem;
  font-weight: 500; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.footer__links a,
.footer__services a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color var(--dur-micro) var(--ease-standard);
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.footer__links a:hover,
.footer__services a:hover {
  color: #fff; border-color: rgba(255,255,255,0.3);
}
.footer__contact p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer__cta {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--accent); font-size: 1rem; letter-spacing: 0.04em;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; font-size: 0.78rem;
  font-family: var(--font-mono); letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3); text-align: center;
}

/* ── Sticky Mobile CTA ────────────────────────────────────── */
.sticky-mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 800; background: var(--surface, #fff);
  border-top: 1px solid var(--border);
  padding: 12px 20px; gap: 10px;
  box-shadow: 0 -4px 24px rgb(0 0 0 / .08);
}
.sticky-mobile-cta__call {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 7px; background: var(--primary); color: #fff;
  padding: 12px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
}
.sticky-mobile-cta__quote {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  padding: 12px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-standard),
              transform var(--dur-ui) var(--ease-out);
  z-index: 700;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover   { transform: translateY(-3px); }

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

/* ── GSAP anti-FOUC guard ─────────────────────────────────── */
.js-anim { opacity: 0; }

/* ── Empty media placeholders ────────────────────────────── */
.hero__media.img-empty {
  min-height: 100svh;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.hero__media.img-empty::after {
  content: '';
  width: 64px; height: 64px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
}
.about__media.img-empty {
  min-height: 320px;
  background: color-mix(in oklab, var(--primary) 4%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ba-card__side.img-empty { min-height: 160px; background: var(--border); }
.cert-card.img-empty     { opacity: 0.5; }

/* ── View Transitions ────────────────────────────────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 0.2s var(--ease-standard) both; }
  ::view-transition-new(root) { animation: vt-in  0.3s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(6px); } }

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__split {
    grid-template-columns: 0 1fr 0;
  }
  .hero__index  { display: none; }
  .hero__media  { display: none; }
  .hero__content { border-right: none; padding: 80px 32px; }
  .about__grid  { grid-template-columns: 1fr; }
  .about__media { display: none; }
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .certs__grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__wrap  { grid-template-columns: 1fr; gap: 48px; }
  .hours__wrap  { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .site-nav   { display: none; }
  .header__phone { display: none; }
  .nav__toggle { display: flex; }
  /* One header row on phones: the CTA hands off to the hero, the sticky bar and the menu,
     the toggle pins right, and a long brand name truncates instead of pushing it off-screen. */
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .section-pad { padding: 64px 0; }
  .container   { padding: 0 20px; }
  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .ba-grid    { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 0; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.1); border-right: none; }
  .stat:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__statement h2 { font-size: var(--step-3); }
  .form-row   { grid-template-columns: 1fr; }
  .sticky-mobile-cta { display: flex; }
  .back-to-top { bottom: 76px; right: 16px; }
  .hero__split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__content { padding: 64px 20px; }
  .quote__form { padding: 28px 20px; }
  .contact__form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  /* The sticky bottom bar carries the same Free Assessment link at this width. */
  .header__actions .btn { display: none; }
  .hero__cta-group { flex-direction: column; }
  .hero__cta-group .btn { width: 100%; justify-content: center; }
  .section-pad { padding: 48px 0; }
  .services__grid { gap: 0; }
  .certs__grid    { grid-template-columns: 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; }

/* Grid-collapse fix: [data-list] is the WoBooks repeater wrapper. When the
   grid/flex layout lives on the PARENT, the wrapper would otherwise become
   a single grid/flex item and collapse every [data-item] row into one cell.
   display:contents makes the wrapper layout-transparent so each row
   participates in the parent track. Mirrors TemplateSkeletonGenerator so
   converted themes match skeleton/AI-generated themes. (Convention: never
   put the grid/flex container ON the [data-list] element itself.) */
[data-list] { display: contents; }

/* 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(.hero) .title-prefix { color: oklch(from color-mix(in oklab, var(--accent) 70%, #fff) max(l, 0.75) c h); }
:where(.hero) .hero__badge { color: oklch(from var(--accent) max(l, 0.75) c h); }

/* 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(.service-card:nth-child(2)) .service-card__body { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(2)) .service-card__cta { color: oklch(from var(--accent) 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: #5e6a7c; /* was #647082 */
}
.cert-card__issuer { color: oklch(from rgba(255, 255, 255, 0.45) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }
.cert-card small { color: oklch(from rgba(255, 255, 255, 0.3) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }
.footer__links h4, .footer__services h4, .footer__contact h4 { color: oklch(from rgba(255, 255, 255, 0.35) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.hero__index-num { color: oklch(from rgba(255, 255, 255, 0.3) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.3) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }
.hero__body { color: oklch(from rgba(255, 255, 255, 0.45) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }
.service-card:nth-child(2) .service-card__index { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.codeplate--light { color: oklch(from rgba(255, 255, 255, 0.45) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }

/* 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="before_after_gallery"]) .ba-card__label--after { color: oklch(from var(--accent) min(l, 0.538) 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="services"]) .service-card:nth-child(2) .service-card__subtitle { color: oklch(from rgba(99, 91, 255, 0.9) calc(l + 0.1) c h / calc(min(1, alpha + 0.3))); }
