/* ============================================================
   THE NEXT STEP — base.css
   Design tokens, reset, typography, shared utilities.
   Edit the :root variables below to change colors/spacing
   across the entire site in one place.
   ============================================================ */

:root {
  /* ---- Brand colors (from brochure & logo) ---- */
  --navy:        #0C1A33;   /* primary ink / dark surfaces */
  --navy-deep:   #071122;   /* footer, darkest surfaces */
  --navy-soft:   #16294D;   /* raised panels on navy */
  --gold:        #C9A24B;   /* primary accent */
  --gold-soft:   #E4C584;   /* accent on dark backgrounds */
  --gold-tint:   #F6EDDA;   /* pale gold wash for badges */
  --white:       #FFFFFF;
  --cream:       #FBF9F4;   /* page background */
  --cream-2:     #F3EFE5;   /* alternate section background */
  --line:        #E5E0D2;   /* hairline borders on light */
  --line-dark:   rgba(228, 197, 132, .22); /* hairlines on navy */
  --text:        #22293A;   /* body text */
  --text-muted:  #5C6577;   /* secondary text */

  /* ---- Typography ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter Tight", "Segoe UI", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "Courier New", monospace;

  /* ---- Layout ---- */
  --container:   1160px;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 24px 48px -24px rgba(12, 26, 51, .25);
  --shadow-soft: 0 12px 28px -18px rgba(12, 26, 51, .18);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
}

p { color: var(--text-muted); }

strong, b { color: var(--text); font-weight: 600; }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: 1.12rem;
  line-height: 1.7;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - 44px);
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }

.section--alt  { background: var(--cream-2); }
.section--navy { background: var(--navy); }
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy p  { color: rgba(251, 249, 244, .72); }
.section--navy .eyebrow { color: var(--gold-soft); }
.section--navy .eyebrow::before { background: var(--gold-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 26px -14px rgba(201, 162, 75, .7);
}
.btn--gold:hover { background: var(--gold-soft); }

.btn--outline {
  border: 1.5px solid var(--line);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-light {
  border: 1.5px solid rgba(228, 197, 132, .5);
  color: var(--gold-soft);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--gold-soft); background: rgba(228, 197, 132, .08); }

/* ---------- Scroll reveal (used with js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  main,
section,
.header,
.topbar,
.footer {
  max-width: 100%;
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.75rem);
  }

  .eyebrow {
    letter-spacing: .18em;
    gap: 8px;
  }

  .btn {
    max-width: 100%;
    padding-inline: 22px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 28px);
  }

  .btn {
    width: 100%;
  }
}
}
