/* To the Letter: coming-soon page. site.v2.css
   Bump the version in the file name on every change (cached for a year). */

/* ---------- Fonts (self-hosted, Latin subset, SIL OFL) ---------- */
@font-face {
  font-family: "Gelasio";
  src: url("/assets/fonts/gelasio-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched local fallbacks, used only where Georgia / Calibri are missing
   (e.g. Android, Linux) so the page does not jump when the web fonts arrive or
   if they are blocked. Values computed from the fonts' advance widths. */
@font-face {
  font-family: "Gelasio fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold");
  font-weight: 700;
  size-adjust: 118.8%;
  ascent-override: 78.1%;
  descent-override: 28.8%;
}
@font-face {
  font-family: "Gelasio fallback noto";
  src: local("Noto Serif Bold"), local("NotoSerif-Bold");
  font-weight: 700;
  size-adjust: 101.3%;
  ascent-override: 91.6%;
  descent-override: 33.7%;
}
@font-face {
  font-family: "Carlito fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto Regular");
  font-weight: 400;
  size-adjust: 92.6%;
  ascent-override: 102.8%;
  descent-override: 29%;
}
@font-face {
  font-family: "Carlito fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 700;
  size-adjust: 92.6%;
  ascent-override: 102.8%;
  descent-override: 29%;
}

/* ---------- Colour tokens ---------- */
:root {
  /* Raw brand values */
  --navy: #1F3864;
  --white: #FFFFFF;
  --gold: #A9832B;            /* rules and seal ring only, never small text */
  --gold-on-navy: #D4A94A;    /* light gold */
  --gold-on-light: #7A5E1C;   /* dark gold */
  --hero-helper: #B9C4D8;
  --hero-divider: #4A5F87;

  /* Scheme pairs */
  --bg-light: #FFFFFF;          --bg-dark: #111A2B;
  --text-light: #262626;        --text-dark: #E8ECF3;
  --heading-light: #1F3864;     --heading-dark: #E8ECF3;
  --muted-light: #595959;       --muted-dark: #A9B6CC;
  --tint-light: #E7ECF5;        --tint-dark: #1A2740;
  --card-rule-light: #1F3864;   --card-rule-dark: #5B7BB5;
  --label-light: #7A5E1C;       --label-dark: #D4A94A;
  --divider-light: #D9D9D9;     --divider-dark: #33415C;
  --focus-light: #7A5E1C;       --focus-dark: #D4A94A;

  /* Fallback for browsers without light-dark(): light values... */
  --bg: var(--bg-light);
  --text: var(--text-light);
  --heading: var(--heading-light);
  --muted: var(--muted-light);
  --tint: var(--tint-light);
  --card-rule: var(--card-rule-light);
  --label: var(--label-light);
  --divider: var(--divider-light);
  --focus: var(--focus-light);

  color-scheme: light dark;
}

/* ...and dark values from the media query */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --text: var(--text-dark);
    --heading: var(--heading-dark);
    --muted: var(--muted-dark);
    --tint: var(--tint-dark);
    --card-rule: var(--card-rule-dark);
    --label: var(--label-dark);
    --divider: var(--divider-dark);
    --focus: var(--focus-dark);
  }
}

/* Where light-dark() is supported, tokens follow the computed color-scheme */
@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --heading: light-dark(var(--heading-light), var(--heading-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --tint: light-dark(var(--tint-light), var(--tint-dark));
    --card-rule: light-dark(var(--card-rule-light), var(--card-rule-dark));
    --label: light-dark(var(--label-light), var(--label-dark));
    --divider: light-dark(var(--divider-light), var(--divider-dark));
    --focus: light-dark(var(--focus-light), var(--focus-dark));
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* No font-size on html or :root: the browser (and OS text scale) owns 1rem. */
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Carlito", Calibri, "Carlito fallback", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  /* SPEC 4 asks for font-size-adjust: from-font here. In Chromium it cancels the
     size-adjust of the matched fallback faces above, and testing with the web
     fonts blocked on a phone without Calibri showed an 84 px jump with it and
     0 px without it, so the 5.5 "layout must not jump" bar wins. */
  font-size-adjust: none;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Gelasio", Georgia, "Gelasio fallback", "Gelasio fallback noto", Cambria, serif;
  font-weight: 700;
  color: var(--heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem);
  /* Only when text is enlarged on a narrow screen (2.25rem > 12vw), cap the
     minimum so "Tender-eligible," is not broken mid-word. No effect at default
     text size on any width from 320 px up. */
  font-size: clamp(min(2.25rem, 12vw), 1.6rem + 2.2vw, 3.75rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.3125rem;
  /* Same guard as h1: only engages with enlarged text on a narrow screen */
  font-size: min(1.3125rem, 11vw);
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:where(a:any-link):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

svg {
  display: block;
}

/* ---------- Layout ---------- */
.wrap {
  max-inline-size: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.measure {
  max-inline-size: 42rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Hero: navy in both schemes ---------- */
.site-header,
.hero {
  background-color: var(--navy);
  color: var(--white);
  --focus: var(--gold-on-navy);
}

.site-header {
  border-block-start: 6px solid var(--gold);
  padding-block: 1.5rem 0;
}

.logo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  max-inline-size: 100%;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--white);
}

.logo-seal {
  inline-size: 3.25rem;
  block-size: 3.25rem;
  flex: none;
}

.logo-text {
  display: flex;
  flex: 1 1 10rem;
  min-inline-size: 0;
  flex-direction: column;
  gap: 0.3rem;
  padding-inline-start: 0.875rem;
  border-inline-start: 1px solid var(--hero-divider);
}

.logo-name {
  font-family: "Gelasio", Georgia, "Gelasio fallback", "Gelasio fallback noto", Cambria, serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-navy);
}

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero .eyebrow {
  color: var(--gold-on-navy);
  margin-block-end: 1rem;
}

.hero h1 {
  color: var(--white);
  max-inline-size: 18em;
}

.lede {
  margin-block-start: 1.5rem;
  font-size: clamp(1.1875rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-block-start: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.6rem 1.5rem;
  background-color: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
  border-radius: 0;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover {
  background-color: var(--tint-light);
  border-color: var(--tint-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

.helper {
  margin-block-start: 1.25rem;
  color: var(--hero-helper);
}

/* Narrow screens: primary button full width */
@media (max-width: 35.99em) {
  .button {
    inline-size: 100%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-head .eyebrow {
  color: var(--label);
  margin-block-end: 0.75rem;
}

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
  margin-block-start: 2.5rem;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.25rem 0.5rem;
  border-block-start: 2px solid var(--card-rule);
}

.offer-signature {
  padding: 1.25rem 1.25rem 1.5rem;
  border: 2px solid var(--gold);
}

.signature-label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}

.why {
  background-color: var(--tint);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem 3rem;
  margin-block-start: 2.5rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sectors {
  margin-block-start: 2.5rem;
  font-weight: 700;
  color: var(--heading);
}

/* ---------- 404 ---------- */
.notfound p {
  margin-block-start: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-block-start: 1px solid var(--divider);
  padding-block: 2rem 2.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer > .wrap > * + * {
  margin-block-start: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
}

/* Keeps the WhatsApp number on one line; the links still wrap between items */
.nowrap {
  white-space: nowrap;
}

/* At least 44 x 44 px touch area on touch screens, via padding */
@media (pointer: coarse) {
  .footer-links {
    gap: 0 0.5rem;
  }
  .footer-links a {
    min-block-size: 44px;
    min-inline-size: 44px;
    padding-inline: 0.5rem;
    margin-inline-start: -0.5rem;
  }
  .footer-links li + li a {
    margin-inline-start: 0;
  }
}

/* ---------- Windows forced colours ---------- */
@media (forced-colors: active) {
  .button {
    border-color: ButtonBorder;
  }
  .offer-signature {
    border-color: CanvasText;
  }
}
