/* ════════════════════════════════════════════════════════════════
   ORCHEMIND · Booking pages — shared design tokens
   Mirrors the palette, type, and idioms of the main landing page.
   ════════════════════════════════════════════════════════════════ */
@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
}

@layer base {
  :root {
    /* Palette — midnight navy ink, warm ivory paper, single amber-gold accent */
    --ink: #0a1322;
    --ink-2: #0f1d33;
    --ink-3: #16263f;
    --paper: #f6f3ec;
    --paper-2: #fffdf8;
    --white: #ffffff;

    --accent: #e2a33e;
    --accent-strong: #c9852a;
    --accent-soft: rgba(226, 163, 62, 0.12);

    --text: #14202f;
    --text-muted: #51637a;
    --text-on-ink: #e8eef6;
    --text-on-ink-muted: #9fb0c6;

    --line: rgba(20, 32, 47, 0.1);
    --line-on-ink: rgba(232, 238, 246, 0.12);

    --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
    --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --step-3: clamp(1.95rem, 1.6rem + 1.8vw, 2.9rem);
    --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.4rem);

    --space-xs: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
    --space-sm: clamp(1rem, 0.8rem + 1vw, 1.6rem);
    --space-md: clamp(1.75rem, 1.3rem + 2vw, 3rem);
    --space-lg: clamp(3rem, 2rem + 4vw, 6rem);
    --space-xl: clamp(4.5rem, 3rem + 6vw, 9rem);

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1180px;
    --shadow: 0 1px 2px rgba(10, 19, 34, 0.04), 0 12px 32px -12px rgba(10, 19, 34, 0.18);
    --shadow-lift: 0 1px 2px rgba(10, 19, 34, 0.05), 0 28px 60px -22px rgba(10, 19, 34, 0.32);

    --font-display: "aviano-serif", "Clash Display", "Plus Jakarta Sans", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  }

  body { font-family: var(--font-body); font-size: var(--step-0); color: var(--text); background: var(--paper); }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.16; letter-spacing: 0.01em; }
  h1 { line-height: 1.1; letter-spacing: 0.005em; }
}

@layer components {
  .shell { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

  /* Eyebrow */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-mono); font-size: calc(var(--step--1) * 0.86); font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong);
  }
  .eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }
  .eyebrow.center { justify-content: center; }
  .eyebrow.on-ink { color: var(--accent); }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.95rem 1.6rem; border-radius: 100px; font-weight: 600; font-size: var(--step-0);
    letter-spacing: -0.01em; min-height: 52px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
    will-change: transform;
  }
  .btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(226, 163, 62, 0.6); }
  .btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(226, 163, 62, 0.7); }
  .btn-primary .arrow { transition: transform 0.25s ease; }
  .btn-primary:hover .arrow { transform: translateX(4px); }
  .btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--paper-2); }
  .btn-ghost.on-ink { color: var(--text-on-ink); border-color: var(--line-on-ink); background: transparent; }
  .btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

  /* Header / Nav */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(150%) blur(12px);
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
  }
  .nav.scrolled { border-bottom-color: var(--line); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
  .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.04em; color: var(--ink); }
  .logo .brand-accent { color: var(--accent-strong); }
  .nav-back { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.45rem; }
  .nav-back:hover { color: var(--accent-strong); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.15rem; border-radius: 100px;
    background: var(--ink); color: var(--text-on-ink); font-weight: 600; font-size: var(--step--1);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .nav-cta:hover { background: var(--ink-3); transform: translateY(-1px); }

  /* Trust row */
  .trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; }
  .trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--text-muted); list-style: none; }
  .trust svg { color: var(--accent-strong); flex-shrink: 0; }

  /* Value list with check ticks */
  .ticks { list-style: none; display: grid; gap: 0.9rem; }
  .ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 0.7rem; align-items: start; }
  .ticks .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-strong); margin-top: 2px; }
  .ticks strong { font-weight: 600; }
  .ticks span.sub { color: var(--text-muted); display: block; font-size: var(--step--1); }

  /* Calendar embed frame */
  .cal-frame {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2);
    border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
  }
  .cal-frame iframe { width: 100%; height: 100%; min-height: 640px; border: 0; display: block; }
  .cal-fallback {
    position: absolute; inset: 0; display: grid; place-content: center; gap: 1rem; text-align: center;
    padding: var(--space-md); color: var(--text-muted);
  }
  .cal-fallback .eyebrow { justify-content: center; }

  /* Footer */
  .footer { background: var(--ink); color: var(--text-on-ink-muted); padding: var(--space-md) 0; margin-top: var(--space-lg); }
  .footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: var(--step--1); }
  .footer .logo { color: var(--white); font-size: 1.1rem; }

  /* Reveal animation */
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  [data-reveal].in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
}
