/* ============================================================
   ALCHEMY HEALTH & WELLNESS — Design System
   Luxury clinical palette: warm porcelain + deep evergreen + gold
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm porcelain */
  --color-bg: #f6f2ea;
  --color-surface: #fbf8f2;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #efe9dd;
  --color-surface-offset-2: #e8e0d1;
  --color-surface-dynamic: #e2d9c6;
  --color-divider: #e2dac9;
  --color-border: #d8cfbb;

  /* Text — espresso ink */
  --color-text: #23211b;
  --color-text-muted: #6c6557;
  --color-text-faint: #a8a092;
  --color-text-inverse: #fbf8f2;

  /* Primary — deep evergreen */
  --color-primary: #1f4137;
  --color-primary-hover: #163029;
  --color-primary-active: #10241d;
  --color-primary-highlight: #d6e0db;

  /* Accent — refined gold */
  --color-gold: #b08a4a;
  --color-gold-hover: #947237;
  --color-gold-active: #785c28;
  --color-gold-highlight: #ece1c6;

  /* Brand logo colors (navy / teal / green) */
  --logo-navy: #1b2a4a;
  --logo-teal: #2f8f8a;
  --logo-green: #3f8a48;

  --color-warning: #964219;
  --color-error: #a12c7b;
  --color-success: #437a22;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-lift: 420ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 6px 18px oklch(0.2 0.01 80 / 0.09);
  --shadow-lg: 0 24px 56px oklch(0.2 0.02 80 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* 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.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 5vw, 5.25rem);
  --text-hero: clamp(3rem, 0.8rem + 8vw, 7.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;
  --space-40: 10rem;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #13120e;
  --color-surface: #1a1813;
  --color-surface-2: #201e18;
  --color-surface-offset: #1d1b15;
  --color-surface-offset-2: #24221b;
  --color-surface-dynamic: #2c2920;
  --color-divider: #2a2820;
  --color-border: #3a3830;

  --color-text: #ddd6c8;
  --color-text-muted: #948d7e;
  --color-text-faint: #5f5a50;
  --color-text-inverse: #1a1813;

  --color-primary: #6fae93;
  --color-primary-hover: #82c0a5;
  --color-primary-active: #5a9b80;
  --color-primary-highlight: #2b3a32;

  --color-gold: #d8b873;
  --color-gold-hover: #e6c98a;
  --color-gold-active: #c4a35a;
  --color-gold-highlight: #4a3f28;

  --logo-navy: #a9bcd9;
  --logo-teal: #5ec9c2;
  --logo-green: #7ccf86;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
}

/* System dark preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #13120e;
    --color-surface: #1a1813;
    --color-surface-2: #201e18;
    --color-surface-offset: #1d1b15;
    --color-surface-offset-2: #24221b;
    --color-surface-dynamic: #2c2920;
    --color-divider: #2a2820;
    --color-border: #3a3830;
    --color-text: #ddd6c8;
    --color-text-muted: #948d7e;
    --color-text-faint: #5f5a50;
    --color-text-inverse: #1a1813;
    --color-primary: #6fae93;
    --color-primary-hover: #82c0a5;
    --color-primary-active: #5a9b80;
    --color-primary-highlight: #2b3a32;
    --color-gold: #d8b873;
    --color-gold-hover: #e6c98a;
    --color-gold-active: #c4a35a;
    --color-gold-highlight: #4a3f28;
    --logo-navy: #a9bcd9;
    --logo-teal: #5ec9c2;
    --logo-green: #7ccf86;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
  }
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-20);
}

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);
  font-feature-settings: 'ss01', 'cv11';
  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;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p,
li {
  text-wrap: pretty;
  max-width: 68ch;
}

::selection {
  background: oklch(from var(--color-gold) l c h / 0.28);
  color: var(--color-text);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 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
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-gold);
  font-family: var(--font-body);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.section-title {
  font-size: var(--text-2xl);
  margin-block: var(--space-4) var(--space-4);
  max-width: 18ch;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.btn--gold {
  background: var(--color-gold);
  color: #fff;
}

.btn--gold:hover {
  background: var(--color-gold-hover);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    background var(--transition-interactive);
}

.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand__name b {
  font-weight: 500;
  color: var(--logo-navy);
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--logo-teal);
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  position: relative;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-interactive);
}

.nav__links a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

.header-phone:hover {
  color: var(--color-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 880px) {
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-surface);
    padding: var(--space-8) clamp(var(--space-5), 5vw, var(--space-12));
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--transition-interactive),
      transform var(--transition-interactive);
  }

  .nav[data-open='true'] .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    font-size: var(--text-base);
    color: var(--color-text);
    padding: var(--space-2) 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__actions .btn--ghost,
  .header__actions .btn--primary,
  .header__actions .header-phone {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.hero__title {
  font-size: var(--text-3xl);
  margin-block: var(--space-5) var(--space-6);
  max-width: 12ch;
  letter-spacing: 0;
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    in oklab,
    transparent 55%,
    oklch(from var(--color-bg) l c h / 0.35)
  );
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  background: oklch(from var(--color-surface) l c h / 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 17rem;
}

.hero__badge svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__badge p {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

.hero__badge b {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__media {
    aspect-ratio: 16 / 11;
    order: -1;
  }
  .hero__title {
    max-width: none;
  }
}

/* ============================================================
   Trust band
   ============================================================ */
.trust {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-10);
  text-align: center;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.trust__item svg {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
}

.trust__item b {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.trust__item span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30ch;
}

@media (max-width: 720px) {
  .trust__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   Section heading row
   ============================================================ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  max-width: 60ch;
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head--center .section-title {
  margin-inline: auto;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-lift),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(in oklab, var(--color-gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-lift);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 500;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.tag {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Philosophy / About
   ============================================================ */
.philosophy {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}

.philosophy__media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  position: relative;
}

.philosophy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Treatment 2x2 grid */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 100%;
  height: 100%;
  background: var(--color-divider);
}
.treatment-cell {
  position: relative;
  overflow: hidden;
}
.treatment-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.treatment-label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: oklch(from var(--color-bg) l c h / 0.82);
  border: 1px solid var(--color-divider);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}

.philosophy__content h2 {
  font-size: var(--text-2xl);
  margin-block: var(--space-5) var(--space-6);
  max-width: 16ch;
}

.philosophy__content p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.philosophy__content p + p {
  margin-top: var(--space-5);
  font-size: var(--text-base);
}

.pillars {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.pillar {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  font-variation-settings: 'opsz' 144;
  min-width: 2.5ch;
  line-height: 1.5;
}

.pillar b {
  font-family: var(--font-body);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
  }
  .philosophy__media {
    aspect-ratio: 16 / 11;
  }
}

/* ============================================================
   Approach
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.approach-item {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.approach-item svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
}

.approach-item h3 {
  font-size: var(--text-lg);
  font-weight: 500;
}

.approach-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.faq__list {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-6) 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.faq-item__btn svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}

.faq-item[data-open='true'] .faq-item__btn svg {
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-lift);
}

.faq-item[data-open='true'] .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel > div {
  overflow: hidden;
}

.faq-item__panel p {
  color: var(--color-text-muted);
  padding-bottom: var(--space-6);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* ============================================================
   Contact
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: stretch;
}

.contact__media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  position: relative;
}

.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.contact__media .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-20) var(--space-8) var(--space-8);
  background: linear-gradient(
    in oklab,
    transparent 0%,
    oklch(from var(--color-bg) l c h / 0.82) 38%,
    oklch(from var(--color-bg) l c h / 0.96) 100%
  );
  color: var(--color-text);
}

.contact__media .overlay h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.contact__media .overlay ul {
  display: grid;
  gap: var(--space-2);
}

.contact__media .overlay li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.contact__media .overlay li svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}

.form h2 {
  font-size: var(--text-xl);
  margin-block: var(--space-3) var(--space-2);
}

.form > p.lead {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.16);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form__note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-2) 0 var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form__note svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--color-error);
}

.form__submit {
  width: 100%;
  padding: var(--space-4) var(--space-6);
}

.form__error {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-error) 8%, transparent);
  color: var(--color-error);
  font-size: var(--text-sm);
  text-align: center;
}

.form__error a {
  color: inherit;
  text-decoration: underline;
}

.form__error[hidden] {
  display: none;
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--space-8) 0;
}

.form__success svg {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin: 0 auto var(--space-4);
}

.form__success h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.form__success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.form[data-submitted='true'] .form__body {
  display: none;
}

.form[data-submitted='true'] .form__success {
  display: block;
}

@media (max-width: 880px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 5vw, var(--space-20)) var(--space-10);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}

.footer__brand .brand__name {
  font-size: 1.3rem;
}

.footer__about {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 38ch;
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: grid;
  gap: var(--space-3);
}

.footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__col a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
  max-width: 70ch;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 760px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   Provider
   ============================================================ */
.provider__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}

.provider__grid--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}
.provider__grid--reverse .provider__media {
  order: 2;
}
.provider__grid--reverse .provider__content {
  order: 1;
}

.provider__media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.provider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.provider__badge {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  background: oklch(from var(--color-surface) l c h / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--logo-teal);
}

.provider__badge span:nth-child(even) {
  color: var(--color-text-faint);
}

.provider__content .section-lead {
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}

.provider__content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 60ch;
}

.provider__creds {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-8) 0 var(--space-8);
  list-style: none;
}

.provider__creds li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.provider__creds li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

@media (max-width: 820px) {
  .provider__grid,
  .provider__grid--reverse {
    grid-template-columns: 1fr;
  }
  .provider__grid--reverse .provider__media,
  .provider__grid--reverse .provider__content {
    order: 0;
  }
  .provider__media {
    aspect-ratio: 4 / 5;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay='1'] {
  transition-delay: 0.08s;
}
[data-reveal-delay='2'] {
  transition-delay: 0.16s;
}
[data-reveal-delay='3'] {
  transition-delay: 0.24s;
}
[data-reveal-delay='4'] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Founder tagline */
#founder .provider__content p strong {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-gold);
}
