/* Base: tokens, reset, typography, buttons, forms, layout helpers */
:root {
  color-scheme: dark;
  --navy: #0A1D2E; --navy-2: #10293F; --navy-3: #0E2438; --navy-4: #16354F; --deep: #06121D;
  --cream: #F4F0E8; --cream-2: #E6E1D6;
  --orange: #FEA250; --orange-hi: #FFB872; --rust: #9A5A17;
  --mist: #C9D2DB; --mist-2: #B4C0CC; --mist-3: #93A3B3;
  --ink-2: #33404D; --ink-3: #4A5866;
  --line: rgba(244, 240, 232, .08); --line-2: rgba(244, 240, 232, .16);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Montserrat', system-ui, sans-serif;
  --max: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius: 8px;
  --header-h: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Light "paper" surfaces must keep their own colours when a phone's dark mode is on. */
.cert, .doc, .ask, .site-footer__card { color-scheme: light; forced-color-adjust: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
body.menu-open { overflow: hidden; }
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p, figure { margin: 0; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
::selection { background: var(--orange); color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: #7D8FA0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--navy-3); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.grid { display: grid; gap: var(--grid-gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.split { display: grid; gap: 48px 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }

/* Type */
.kicker { font: 600 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--orange); }
.display { font: 700 clamp(40px, 6vw, 88px)/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.h2 { font: 700 clamp(28px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.accent { color: var(--orange); }
.lead { font: 400 17px/1.6 var(--body); color: var(--mist); max-width: 560px; text-wrap: pretty; }
.muted { font: 400 15px/1.5 var(--body); color: var(--mist-2); }
.small { font: 400 12px/1.5 var(--body); color: var(--mist-3); }
.text-link { font: 600 14px/1 var(--body); align-self: flex-start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 6px; padding: 16px 24px; font: 700 15px/1 var(--body); cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-hi); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(244, 240, 232, .35); padding: 15px 22px; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-4); color: var(--cream); }
.btn--outline { background: transparent; color: var(--orange); border: 1px solid var(--orange); padding: 13px 18px; font-size: 14px; }
.btn--outline:hover { background: var(--orange); color: var(--navy); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.card { background: var(--navy-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.card__title { font: 700 17px/1.3 var(--body); }
.card__body { font: 400 14px/1.6 var(--body); color: var(--mist-2); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font: 600 12px/1.35 var(--body); color: var(--mist); }
.input { width: 100%; background: var(--navy); color: var(--cream); border: 1px solid var(--line-2); border-radius: 6px; padding: 12px; font: 400 16px/1.3 var(--body); }
.input:focus { border-color: var(--orange); outline: none; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FEA250' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.input { resize: vertical; min-height: 96px; }
.form-error { font: 500 13px/1.5 var(--body); color: #FFB4A8; }

/* Notice */
.note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--orange); background: rgba(254, 162, 80, .08); border-radius: 8px; padding: 18px 20px; max-width: 860px; }
.note svg { flex: none; margin-top: 1px; }
.note__title { display: block; font: 700 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.note__body { font: 400 14px/1.6 var(--body); color: #E4E9EE; }

/* Orange call-to-action band */
.band { background: var(--orange); color: var(--navy); }
.band__inner { padding-block: clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.band__sub { font: 500 15px/1.5 var(--body); margin-top: 8px; }

@media (max-width: 560px) {
  .btn-row > .btn { flex: 1 1 100%; }
  .band__inner .btn { width: 100%; }
}

/* Phone set to dark mode: keep the site's own theme, just soften the cream surfaces */
@media (prefers-color-scheme: dark) {
  :root { --cream: #ECE6DA; --cream-2: #DDD6C8; }
}
html[data-system="dark"] img { filter: none; }

/* Spam trap — hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Social links */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 13px/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid currentColor; }
