@import url('../fonts/fonts.css');

/* ==========================================================================
   Priority One Aesthetics — tokens and primitives.

   The palette is not a choice; it is sampled from the practice's existing logo
   (a blue-black field, a sapphire wordmark, a gold rule). Identity preservation
   wins over a fresh palette.

   Colour strategy: committed. Ink carries the surface; gold is the accent that
   earns attention and stays under ~10% coverage; blue is structural — links,
   focus, the mark itself.
   ========================================================================== */

:root {
  /* Ink — a blue-cast near-black, sampled from the logo backdrop (#04070E). */
  --ink-950: oklch(0.129 0.021 262);
  --ink-900: oklch(0.163 0.026 262);
  --ink-850: oklch(0.196 0.030 261);
  --ink-800: oklch(0.242 0.035 261);
  --ink-700: oklch(0.310 0.038 260);

  /* Blue — the "ONE" wordmark and the ring. */
  --blue-700: oklch(0.363 0.130 262);
  --blue-600: oklch(0.443 0.155 262);
  --blue-500: oklch(0.499 0.166 262);
  --blue-400: oklch(0.585 0.171 262);
  --blue-300: oklch(0.688 0.135 262);

  /* Gold — the AESTHETICS rule and the facial profile. */
  --gold-700: oklch(0.469 0.083 79);
  --gold-600: oklch(0.573 0.101 80);
  --gold-500: oklch(0.673 0.117 80);
  --gold-400: oklch(0.769 0.111 82);
  --gold-300: oklch(0.855 0.086 85);

  /* Text. Body ink is near-white: gold body copy would fail contrast. */
  --text:       oklch(0.966 0.005 250);
  --text-dim:   oklch(0.836 0.014 254);
  --text-muted: oklch(0.700 0.019 256);
  --text-faint: oklch(0.575 0.021 258);

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);

  /* Glass. Used only where a surface genuinely floats over the brand's lit
     backdrop — the header, the pricing panel, the booking rail. Everything else
     is flat ink. See DESIGN.md. */
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --blur-nav: 16px;
  --blur-panel: 20px;

  --hairline:        rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --hairline-gold:   rgba(221, 173, 92, 0.34);
  --hairline-blue:   rgba(78, 132, 232, 0.32);

  /* Kept tight on purpose: a 1px edge plus an 80px haze is the "floating card"
     tell. The pane reads as glass from its border, not from a wide blur. */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 14px 30px -18px rgba(0, 0, 0, 0.75), 0 3px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -28px rgba(0, 0, 0, 0.85), 0 8px 18px -12px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 70px -18px rgba(46, 107, 214, 0.5);
  --glow-gold: 0 0 60px -20px rgba(201, 150, 46, 0.45);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);      /* ease-out-quint */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 280ms;
  --t-slow: 520ms;

  --container: 1180px;
  --container-narrow: 760px;
  --pad-x: clamp(1.25rem, 5vw, 3.25rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Semantic stacking order — never arbitrary values. */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 300;
  --z-drawer: 400;
  --z-toast: 500;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The lit corners from the practice's own artwork — blue low-left, gold high-right.
   Fixed and behind everything, so scrolling reveals the page against a constant
   field rather than a repeating decoration. */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
}
body::before {
  left: -22vw; bottom: -30vh;
  width: 68vw; height: 68vw;
  background: radial-gradient(circle, rgba(30, 71, 153, 0.34), transparent 66%);
}
body::after {
  right: -24vw; top: -26vh;
  width: 58vw; height: 58vw;
  background: radial-gradient(circle, rgba(150, 112, 34, 0.14), transparent 66%);
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); letter-spacing: -0.018em; }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-300); text-decoration-color: color-mix(in oklch, var(--blue-300) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--gold-300); }

strong, b { color: var(--text); font-weight: 600; }
hr { height: 1px; margin: 2.5rem 0; border: 0; background: var(--hairline); }

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(46, 107, 214, 0.45); color: #fff; }

/* ── Layout ───────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

/* Prose column, capped for readability. */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5em; margin-bottom: 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; margin-bottom: 0.4em; color: var(--gold-300); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold-600); }

/* ── Type utilities ───────────────────────────────────────────────────── */

/* The letterspaced small-caps treatment from the logo's AESTHETICS rule.
   Used as a brand device in a handful of places, not above every section. */
.tracked {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.lede {
  font-size: clamp(1.075rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-dim);
}

.muted { color: var(--text-muted); }
.fine { font-size: 0.8125rem; line-height: 1.6; color: var(--text-faint); }

.rule-gold {
  width: 3rem; height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border: 0;
  margin: 0 0 1.5rem;
}

/* ── Surfaces ─────────────────────────────────────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--blur-panel)) saturate(150%);
  backdrop-filter: blur(var(--blur-panel)) saturate(150%);
}
.glass--gold { border-color: var(--hairline-gold); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  /* Solid base under the gradient so the computed background is a real colour —
     contrast tooling (and any renderer that drops gradients) resolves it correctly. */
  background-color: var(--gold-500);
  background-image: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: #100c02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, var(--shadow-sm);
}
.btn--primary:hover {
  background-color: var(--gold-400);
  background-image: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: #100c02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, var(--glow-gold);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--glass);
  border-color: var(--hairline-blue);
  color: var(--text);
}

.btn--blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--blue:hover { background: var(--blue-500); color: #fff; box-shadow: var(--glow-blue); }

.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--sm { padding: 0.55em 1em; font-size: 0.8125rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* ── Badges ───────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.badge--gold { border-color: var(--hairline-gold); color: var(--gold-300); }
.badge--blue { border-color: var(--hairline-blue); color: var(--blue-300); }

/* ── Motion ───────────────────────────────────────────────────────────── */

/* Reveals enhance content that is already visible in the markup. The hidden state
   is never in the stylesheet: script arms only the elements that start below the
   fold, and a failsafe unarms everything shortly after load. So a crawler, a print
   render, a background tab, or a blocked script all still get a complete page —
   the failure mode of a class-gated reveal is a section that ships blank. */
.reveal { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal--armed { opacity: 0; transform: translateY(14px); }
.reveal--armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal--armed { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  padding: 0.7em 1.2em;
  background: var(--gold-400);
  color: #100c02;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #100c02; }
