/* ==========================================================================
   Axis Performance Chiropractic — Design System
   Brand: Charcoal #0E1116 · Navy #0B1D33 · Teal #2FA7A7 · Silver #C0C0C0
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1280px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));

  --section-pad: clamp(var(--space-16), 9vw, var(--space-32));
}

/* ---------- Dark (brand default) ---------- */
:root,
[data-theme='dark'] {
  --color-bg: #0e1116;
  --color-surface: #14181f;
  --color-surface-2: #1a1f28;
  --color-surface-offset: #0b1d33;
  --color-divider: #1f242d;
  --color-border: #29303b;
  --color-text: #e9ecef;
  --color-text-muted: #98a2ae;
  --color-text-faint: #5e6874;
  --color-text-inverse: #0e1116;
  --color-primary: #3cb8b8;
  --color-primary-hover: #57cccc;
  --color-primary-soft: rgba(60, 184, 184, 0.12);
  --color-silver: #c0c0c0;
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --img-brightness: 1;
  --grain-opacity: 0.035;
  --glow-strength: 1;
  --color-caution: #e0a341;
}

/* ---------- Light ---------- */
[data-theme='light'] {
  --color-bg: #f4f6f8;
  --glow-strength: 0.5;
  --color-caution: #a9701a;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f4;
  --color-surface-offset: #0b1d33;
  --color-divider: #e2e6ea;
  --color-border: #d3d9df;
  --color-text: #0e1116;
  --color-text-muted: #59636e;
  --color-text-faint: #8d97a1;
  --color-text-inverse: #ffffff;
  --color-primary: #16797a;
  --color-primary-hover: #0f5b5c;
  --color-primary-soft: rgba(22, 121, 122, 0.09);
  --color-silver: #6b7681;
  --shadow-md: 0 6px 24px rgba(14, 17, 22, 0.08);
  --shadow-lg: 0 18px 50px rgba(14, 17, 22, 0.12);
  --img-brightness: 1;
  --grain-opacity: 0;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.08;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}
p,
li {
  text-wrap: pretty;
}

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
input,
textarea,
select,
[role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    opacity var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

@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;
  }
}

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

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

/* ---------- Type utilities ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-primary);
  flex: none;
}
.eyebrow--plain::before {
  display: none;
}

.h-display {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
}
.h1 {
  font-size: var(--text-2xl);
}
.h2 {
  font-size: var(--text-xl);
}
.h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 34ch;
  font-weight: 400;
}
.body {
  color: var(--color-text-muted);
  max-width: 62ch;
}
.body + .body {
  margin-top: var(--space-4);
}
.muted {
  color: var(--color-text-muted);
}
.wide-caps {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--color-primary);
  color: #04191a;
}
[data-theme='light'] .btn--primary {
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--sm {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.textlink:hover {
  border-bottom-color: var(--color-primary);
  gap: var(--space-3);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background 250ms ease;
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 76px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
  margin-right: auto;
}
.brand svg {
  height: 34px;
  width: auto;
}
.brand__type {
  display: none;
  line-height: 1;
}
@media (min-width: 360px) {
  .brand__type {
    display: block;
  }
}
@media (max-width: 459px) {
  .brand {
    min-width: 0;
    gap: var(--space-2);
  }
  .brand svg {
    height: 28px;
  }
  .brand__name {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }
  /* Too tight for the descriptor line at this width — mark plus AXIS reads cleanly. */
  .brand__sub {
    display: none;
  }
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 4px;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-2);
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.icon-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.header__actions .btn {
  display: none;
}
@media (min-width: 640px) {
  .header__actions .btn {
    display: inline-flex;
  }
}
.menu-btn {
  display: grid;
}
@media (min-width: 1000px) {
  .menu-btn {
    display: none;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--color-bg);
  z-index: 55;
  padding: var(--space-6) var(--gutter) var(--space-10);
  display: grid;
  align-content: start;
  gap: var(--space-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.drawer[data-open='true'] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.drawer a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.drawer a:last-of-type {
  border-bottom: 0;
}
.drawer .btn {
  margin-top: var(--space-4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}
.hero__grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(var(--space-8), 5vw, var(--space-20));
    min-height: 78vh;
  }
}
.hero__copy > * + * {
  margin-top: var(--space-6);
}
.hero__title {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
}
.hero__title .accent {
  color: var(--color-primary);
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 40%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: auto -1px -1px -1px;
  height: 45%;
  background: linear-gradient(to top, var(--color-bg), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
  opacity: 0.55;
}
.hero__badge {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  max-width: 250px;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-primary);
}
.hero__badge span {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Hero glow */
.hero::before {
  content: '';
  opacity: var(--glow-strength);
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--color-primary-soft), transparent 68%);
  pointer-events: none;
}

/* ---------- Page header (interior) ---------- */
.pagehead {
  position: relative;
  border-bottom: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  background: var(--color-surface);
  overflow: hidden;
}
.pagehead::before {
  content: '';
  opacity: var(--glow-strength);
  position: absolute;
  top: -40%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--color-primary-soft), transparent 70%);
  pointer-events: none;
}
.pagehead__inner > * + * {
  margin-top: var(--space-5);
}
.pagehead h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  gap: 0;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-block: 1px solid var(--color-divider);
}
.pillar {
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}
.pillar + .pillar {
  border-top: 1px solid var(--color-divider);
}
@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(var(--space-8), 4vw, var(--space-12));
  }
  .pillar + .pillar {
    border-top: 0;
    border-left: 1px solid var(--color-divider);
    padding-left: clamp(var(--space-8), 4vw, var(--space-12));
  }
}
.pillar__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
}
.pillar h3 {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pillar p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
}

/* ---------- Section heading block ---------- */
.sec-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: end;
  }
}
.sec-head h2 {
  font-size: var(--text-xl);
}
.sec-head .body {
  max-width: 46ch;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 720px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.card--link:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex: none;
}
.card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.cards--3 .card h3 {
  min-height: calc(2 * var(--text-lg) * 1.15);
}
@media (max-width: 720px) {
  .cards--3 .card h3 {
    min-height: 0;
  }
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1;
}
.card .textlink {
  margin-top: auto;
  align-self: flex-start;
}

.card--media {
  padding: 0;
}
.card--media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card--media .card__body {
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

/* ---------- Feature split ---------- */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
  .split--wide-media {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.split__copy > * + * {
  margin-top: var(--space-5);
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split__media--tall img {
  aspect-ratio: 3 / 4;
}

/* ---------- Checklist ---------- */
.checks {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-4);
  align-items: start;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.checks--caution li svg {
  color: var(--color-caution);
}
.checks li strong {
  color: var(--color-text);
  font-weight: 700;
  display: block;
  font-size: var(--text-base);
  margin-bottom: 2px;
}
.checks svg {
  color: var(--color-primary);
  margin-top: 5px;
}

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  background: var(--color-surface);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-border);
}
.step h3 {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  font-family: var(--font-display);
}
.step p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Full-bleed band ---------- */
.band {
  position: relative;
  isolation: isolate;
  border-block: 1px solid var(--color-border);
  overflow: hidden;
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    #0e1116 0%,
    rgba(14, 17, 22, 0.94) 38%,
    rgba(11, 29, 51, 0.72) 62%,
    rgba(11, 29, 51, 0.35) 100%
  );
}
.band__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: clamp(var(--space-16), 9vw, var(--space-32)) var(--gutter);
  color: #e9ecef;
}
.band__inner .body,
.band__inner .lede {
  color: #b3bcc6;
}
.band__inner h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.band__content {
  max-width: 620px;
  display: grid;
  gap: var(--space-6);
}
.band__inner .btn--ghost {
  border-color: rgba(233, 236, 239, 0.28);
  color: #e9ecef;
}
.band__inner .btn--ghost:hover {
  border-color: #3cb8b8;
  color: #3cb8b8;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}
.chips li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  background: var(--color-surface);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1180px) {
  .stats {
    gap: var(--space-6) var(--space-8);
  }
}
.stat dt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat dd {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 24ch;
}

/* ---------- Quote ---------- */
.quote {
  border-left: 2px solid var(--color-primary);
  padding-left: clamp(var(--space-5), 3vw, var(--space-10));
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.quote footer {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-faint);
}

/* ---------- Accordion (FAQ) ---------- */
.faq {
  border-top: 1px solid var(--color-divider);
}
.faq details {
  border-bottom: 1px solid var(--color-divider);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  font-weight: 700;
  font-size: var(--text-base);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 200ms ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq summary:hover {
  color: var(--color-primary);
}
.faq p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-bottom: var(--space-6);
  max-width: 68ch;
}

/* ---------- Price / service detail rows ---------- */
.detail {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
  align-items: start;
}
@media (min-width: 900px) {
  .detail {
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(var(--space-8), 5vw, var(--space-16));
  }
}
.detail__label .eyebrow {
  margin-bottom: var(--space-4);
}
.detail__label h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.detail__body > * + * {
  margin-top: var(--space-5);
}

/* ---------- Info list (hours / contact) ---------- */
.info-list {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-list dt,
.info-list .k {
  color: var(--color-text-muted);
}
.info-list .v {
  font-weight: 700;
  text-align: right;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.form__row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 620px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-size: var(--text-sm);
  width: 100%;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}
.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 56ch;
}
.form__status {
  font-size: var(--text-sm);
  color: var(--color-primary);
  display: none;
}
.form__status[data-visible='true'] {
  display: block;
}

/* ---------- Map / location card ---------- */
.map {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  min-height: 320px;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-surface-offset);
  border-block: 1px solid var(--color-border);
  color: #e9ecef;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(60, 184, 184, 0.18), transparent 68%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-16);
  }
}
.cta h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.cta p {
  color: #a9b4c0;
  margin-top: var(--space-5);
  max-width: 52ch;
}
.cta .btn--ghost {
  border-color: rgba(233, 236, 239, 0.3);
  color: #e9ecef;
}
.cta .btn--ghost:hover {
  border-color: #3cb8b8;
  color: #3cb8b8;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-20) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-8);
  }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer a {
  color: var(--color-text-muted);
}
.footer a:hover {
  color: var(--color-primary);
}
.footer__brand svg {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-5);
}
.footer__tag {
  color: var(--color-text-muted);
  max-width: 30ch;
  font-size: var(--text-sm);
}
.footer__legal {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.footer__disclaimer {
  margin-top: var(--space-5);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  max-width: 90ch;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Grain overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Logo ---------- */
.logo__x {
  stroke: var(--color-primary);
}
.logo__blade {
  fill: var(--color-primary);
}
.footer__brand .logo {
  color: var(--color-text);
}

/* ---- About: bio panel (stands in for a portrait) ---- */
.bio-panel {
  align-self: start;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
}
.bio-panel__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}
.bio-panel__name span {
  font-weight: 700;
  color: var(--color-text-muted);
}
.bio-panel__attr {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.bio-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}
.bio-panel__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.bio-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 1px;
  background: var(--color-primary);
}
.bio-panel__loc {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
