/* ============================================================
   G&S Direct - site design tokens.
   Single source for brand colour, font, radius and easing values.
   Loaded before styles.css; every value below is consumed via var().
   ============================================================ */
:root {
  --navy: #00287f;
  --navy-deep: #001245;
  --red: #c13126;

  --gold: #e0a521;          /* vibrant gold */
  --gold-light: #eece85;

  --bg: #f8f4ee;            /* brightened warm cream */
  --warm-light: #fbf9f6;    /* card surface, one step brighter */

  --ink: #0d1f40;
  --ink-soft: #3a4a6b;
  --muted: #6b7490;
  --ink-on-dark: #faf7f2;

  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1280px;
  --side-pad: clamp(1.5rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 9vh, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--side-pad); }
.label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: inline-block; margin-bottom: 0.9rem;
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  /* Inset matches .hero-content so the logo shares a left edge with the hero
     wordmark at every width. Previously the bar used the centred 1280px
     container while the hero did not, leaving the logo ~142px right of the
     headline on a wide monitor. */
  padding: 1.1rem clamp(1.5rem, 9vw, 11rem);
  background: transparent;
  transition: background 420ms var(--ease), box-shadow 420ms var(--ease), padding 420ms var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { height: 34px; filter: brightness(0) invert(1); transition: filter 420ms var(--ease); }
.nav-links { display: flex; gap: 2.2rem; font-size: 0.88rem; font-weight: 600; }
.nav-links a { color: var(--ink-on-dark); opacity: 0.88; transition: opacity 200ms var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav.scrolled {
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(13,31,64,0.06), 0 8px 24px rgba(13,31,64,0.05);
  padding: 0.75rem var(--side-pad);
}
.nav.scrolled .nav-logo { filter: none; }
.nav.scrolled .nav-links a { color: var(--ink); opacity: 0.75; }
.nav.scrolled .nav-links a:hover { color: var(--navy); opacity: 1; }
.nav-cta {
  background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 0.82rem;
  padding: 0.55rem 1.1rem; border-radius: 8px; display: none;
}
.nav.scrolled .nav-cta { display: inline-block; }

/* ---- reveal-on-scroll ----
   Content is visible by default. The hide-until-scrolled-into-view rule only
   applies once `html.js` is present AND has not self-expired via `html.js-
   fallback`. The inline head script adds `js` synchronously, before the body
   is parsed (so a JS-on visitor never sees a flash of unhidden content), and
   arms a short timer that adds `js-fallback` unless `script.js` itself has
   confirmed - by adding `js-ready`, as the very first statement it runs - that
   it is actually executing. That means the hide state can never outlive the
   thing responsible for reversing it: JS disabled, `script.js` blocked/404'd,
   or `script.js` throwing before it reaches that first line all converge on
   the same outcome - the timer fires and content becomes visible. A visitor
   whose script.js is merely slow (not blocked) still gets it revealed the
   normal way once the script confirms, well inside the timer's window. */
:where(html.js):not(.js-fallback) .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.visible, .reveal.snap { opacity: 1; transform: translateY(0); }
.reveal.snap { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  :where(html.js) .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- founder-quote block ---- */
.founder-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.6rem;
}
.founder-quote blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--ink);
  line-height: 1.25;
}
.founder-quote .attribution {
  margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted);
}

/* ---- footer ---- */
.footer {
  background: var(--navy-deep); color: var(--ink-on-dark);
  padding: 3rem var(--side-pad) 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.footer-logo { height: 26px; filter: brightness(0) invert(1); }
.footer a { opacity: 0.85; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}
