/* ==========================================================================
   main.css — tokens, reset, typography, shared components
   Loaded on every page before header.css, footer.css and page CSS.
   ========================================================================== */

:root {
  /* Brand palette */
  --cream: #FAF6EF;
  --cream-2: #F3ECDF;
  --cream-3: #EADFCB;
  --navy: #152A4A;
  --navy-deep: #0D1D37;
  --navy-ink: #091428;
  --gold: #B98A2F;
  --gold-soft: #D8B262;
  --ink: #141414;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: rgba(20, 20, 20, .62);
  --line: rgba(20, 20, 20, .12);
  --line-strong: rgba(20, 20, 20, .25);

  /* On navy */
  --on-navy: var(--cream);
  --on-navy-muted: rgba(250, 246, 239, .62);
  --on-navy-line: rgba(250, 246, 239, .16);
  --gold-line: rgba(185, 138, 47, .35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --section-y: clamp(80px, 10vw, 150px);
  --header-h: 72px;
  --header-top: 16px;
  --radius: 18px;

  --ease: cubic-bezier(.22, .65, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy .muted { color: var(--on-navy-muted); }
.section-cream2 { background: var(--cream-2); }

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
em { font-style: italic; font-weight: 340; }
h1 em, h2 em, .display em { color: var(--gold); }
/* A greyed-out word for rhythm in big headlines */
.dim { color: rgba(20, 20, 20, .32); }
.section-navy .dim { color: var(--on-navy-muted); }
/* Marker-style highlight pill inside a headline */
.hl {
  display: inline; background: var(--gold-soft); color: var(--ink);
  padding: .02em .22em; margin: 0 -.06em; border-radius: .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.page-title { font-size: clamp(46px, 7vw, 112px); max-width: 13ch; line-height: .98; }
.section-title { font-size: clamp(32px, 4.2vw, 60px); max-width: 18ch; margin-bottom: 28px; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; max-width: 56ch; color: var(--muted); }
.section-navy .lead { color: var(--on-navy-muted); }

.kicker, .section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.kicker::before, .section-label::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.section-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.section-head .section-title { margin-bottom: 0; }
.section-head .lead { grid-column: 1; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 14px 30px -14px var(--navy); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 14px 30px -14px var(--gold); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: inherit; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.section-navy .btn-ghost { border-color: var(--on-navy-line); }
.section-navy .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold { background: transparent; border-color: var(--gold); color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: inherit; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-ul { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .2s; padding-bottom: 2px; }
.link-ul:hover { background-size: 100% 1px; color: var(--gold); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-h) + var(--header-top) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 90px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.page-hero .orb {
  position: absolute; right: -10vw; top: -20vw; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at center, rgba(185, 138, 47, .22), transparent 62%);
}

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(21, 42, 74, .35); border-color: var(--gold-line); }
.card-navy { background: var(--navy); color: var(--on-navy); border-color: transparent; }

/* ---------- Numbered label ---------- */
.num { font-family: var(--font-display); font-size: 14px; color: var(--gold); letter-spacing: .08em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Flash messages ---------- */
.flash-wrap { position: fixed; top: calc(var(--header-h) + var(--header-top) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; width: min(92vw, 520px); }
.flash { padding: 14px 20px; border-radius: 12px; font-size: 15px; margin-bottom: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.flash-success { background: var(--navy); color: var(--cream); }
.flash-error { background: #7a2e2e; color: var(--cream); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; font-size: 17px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--gold); }
.section-navy .field input, .section-navy .field textarea { border-bottom-color: var(--on-navy-line); color: var(--cream); }

/* ---------- Book-a-call CTA (shared by home + contact) ---------- */
.cta-book { position: relative; overflow: hidden; }
.cta-book .cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; }
.cta-book .cta-person { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.cta-book .cta-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.cta-book .cta-person b { display: block; font-weight: 500; }
.cta-book .cta-person small { color: var(--on-navy-muted); }
.cta-book .cta-title { font-size: clamp(38px, 5vw, 76px); margin-bottom: 20px; }
.cta-book .cta-note { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 14px; color: var(--on-navy-muted); }
.cta-book .cta-note span { display: inline-flex; align-items: center; gap: 8px; }
.cta-book .cta-note svg { width: 16px; height: 16px; color: var(--gold); }
.cta-panel {
  background: var(--navy-deep); border: 1px solid var(--gold-line); border-radius: var(--radius);
  padding: 36px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.cta-panel h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.cta-panel form { display: flex; flex-direction: column; gap: 22px; }
.cta-panel .btn { width: 100%; margin-top: 6px; }
.cta-panel .form-alt { font-size: 14px; color: var(--on-navy-muted); text-align: center; }
.cta-panel .form-alt a { color: var(--cream); border-bottom: 1px solid var(--gold); }

/* ---------- Dark CTA band (partials/cta_book.html) ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(56px, 7vw, 96px); }
.cta-band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, rgba(21, 42, 74, .7), rgba(21, 42, 74, 0) 72%);
}
.cta-band-inner { position: relative; z-index: 1; max-width: 820px; }
.cta-band .kicker { justify-content: center; }
.cta-band .kicker::before { display: none; }
.cta-band-title { font-size: clamp(38px, 5.2vw, 72px); line-height: .98; margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto; max-width: 46ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 28px; }
.cta-band-alt { font-size: 14px; color: var(--on-navy-muted); }
.cta-band-alt:hover { color: var(--gold); }
.cta-band-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-size: 13px; color: var(--on-navy-muted); }
.cta-band-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta-band-meta svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .cta-book .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .btn { padding: 14px 22px; }
  .cta-panel { padding: 28px 22px; }
}
