/* ══════════════════════════════════════════════════════════════════════════
   Clearbay Digital — shared base stylesheet.

   Loaded by every page. Everything in here is used on more than one page:
   the font, the reset, the design tokens, the section vocabulary, the button
   family, the brand lockup and the small footer.

   Page-specific rules stay with their page. The homepage's live in /home.css
   (it has enough of them to be worth its own file); every other page keeps a
   short inline <style> block after this one, so its own rules always win.

   Adding a page? Link this file, set --container-max, and write only what is
   genuinely new.
   ══════════════════════════════════════════════════════════════════════════ */

/* Inter (latin subset, variable weight) — self-hosted so the first paint
   isn't blocked on a third-party stylesheet + font round-trip. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --navy: #0B2545;
  --navy-light: #1A3A6B;
  --blue: #1A6DC4;
  --gold: #E9A020;
  --gold-dark: #C8881A;
  --sky: #EBF3FF;
  --surface: #F4F7FB;
  --text: #0B2545;
  --text-muted: #5A6B82;
  --text-light: #647285;
  --border: rgba(11, 37, 69, 0.1);
  --white: #ffffff;
  --footer-bg: #070F1E;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ──
   Column width is the one thing that genuinely differs page to page — a
   reading measure on the document pages, wider on the marketing ones — so
   each page sets --container-max rather than redefining .container. */
.container { max-width: var(--container-max, 1100px); margin: 0 auto; padding: 0 24px; }

/* ── SECTION VOCABULARY ──
   The label / heading / sub trio every marketing section opens with. */
.section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}
.section-sub--tight { margin-bottom: 4px; }
.section-sub--stack { margin-bottom: 20px; }
.section-sub--lead { margin-bottom: 36px; }
.card-cta { margin-top: 26px; }
.label-note { font-weight: 400; opacity: 0.6; }
.gold { color: var(--gold); }

/* Skim aids. Bold carries the key phrase; .hl adds a soft marker sweep on light
   sections. Neither changes text colour, so contrast is unaffected. */
strong { font-weight: 600; }
.hl {
  font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(233,160,32,0.38) 60%);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  /* line-height must be set explicitly: buttons would otherwise inherit the
     body's 1.6, which is a reading value and leaves the label swimming. */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); }
/* Two outline variants, one per background. .btn-outline is white-on-navy and
   disappears on a light section; .btn-outline-navy is its light-background pair. */
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: rgba(11,37,69,0.25); }
.btn-outline-navy:hover { background: rgba(11,37,69,0.05); border-color: var(--navy); }

/* ── SITE CTA ──
   The two actions, centered, for the foot of a section that doesn't already
   end in a button of its own. */
.section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ── BRAND HEADER ──
   The simple navy bar every page but the homepage uses. The homepage has its
   own fixed nav; its rules live in /home.css. */
header.site { background: var(--navy); padding: 20px 0; }
header.site .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1; }
.brand-name span { color: var(--gold); }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 2px; display: block; }
.nav-back { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); text-decoration: none; }
.nav-back:hover { color: var(--white); }

/* ── SIMPLE FOOTER ──
   Deliberately class-scoped rather than a bare `footer` selector: the homepage
   has a much larger footer of its own, and a bare selector here would reach
   into it. */
.site-footer { background: var(--footer-bg); padding: 24px 0; }
.site-footer p { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; margin: 0; }
.site-footer a { display: inline-block; padding: 4px 0; color: rgba(255,255,255,0.75); }

/* ── BACK LINK ── */
.back { display: inline-block; margin-top: 36px; font-weight: 600; color: var(--blue); text-decoration: none; }
