/* Shared by every public page: tokens, base, buttons, header, footer. Page-specific styles live in the page or in compliance.css. */
:root {
  --ngahere: #11302A;
  --ngahere-2: #1B4338;
  --lichen: #F5F6F0;
  --ink: #14211D;
  --gold: #C9A84C;
  --gold-light: #E7CB7B;
  --gold-ink: #6F5412;
  --mist: #D6E0DA;
  --white: #FFFFFF;
  --muted-on-light: #46564F;
  --muted-on-dark: #C5D4CC;
  --link: #1B5E4B;
  --field-border: #6B7F75;
  --error: #B3261E;
  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 1240px;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lichen);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--gold-light); }
.on-dark a { color: var(--gold-light); }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1.25rem; background: var(--gold); color: var(--ink); font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--ngahere); color: var(--lichen); }
.btn-dark:hover { background: var(--ngahere-2); }
.btn-outline-light { border-color: rgba(245, 246, 240, 0.65); color: var(--lichen); }
.btn-outline-light:hover { background: rgba(245, 246, 240, 0.12); border-color: var(--lichen); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: rgba(20, 33, 29, 0.1); }
.on-dark a.btn-gold { color: var(--ink); }
.on-dark a.btn-outline-light { color: var(--lichen); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ngahere); color: var(--lichen); border-bottom: 1px solid rgba(245, 246, 240, 0.12); }
.site-header nav { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; color: var(--lichen); text-decoration: none; margin-right: auto; }
.brand-mark { width: 2.75rem; height: 2.75rem; }
.brand-name { font: 700 1.3125rem/1 var(--font-head); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { display: flex; align-items: center; min-height: 3rem; padding: 0 1rem; white-space: nowrap; border-radius: 8px; color: var(--lichen); font-weight: 600; text-decoration: none; }
.nav-links a:hover { background: rgba(245, 246, 240, 0.1); }
.nav-call { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-call:hover { background: var(--gold-light); }
.nav-call-short, .nav-call-icon { display: none; }
.nav-call-icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 3rem; height: 3rem; background: none; border: 2px solid rgba(245, 246, 240, 0.4); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 1.4rem; height: 2px; background: var(--lichen); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; background: var(--ngahere); border-bottom: 1px solid rgba(245, 246, 240, 0.12); }
  .site-header nav.nav-open .nav-links { display: flex; }
  .nav-links a { min-height: 3.5rem; font-size: 1.1875rem; border-bottom: 1px solid rgba(245, 246, 240, 0.1); border-radius: 0; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.1875rem; }
  .nav-call-long { display: none; }
  .nav-call-short { display: inline; }
}
@media (max-width: 400px) {
  .site-header nav { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
  .brand-name { font-size: 1.0625rem; }
  .nav-call { width: 3rem; padding: 0; justify-content: center; }
  .nav-call-short { display: none; }
  .nav-call-icon { display: block; }
}

/* Footer */
footer { background: var(--ngahere); color: var(--muted-on-dark); padding-block: 2.75rem 2.25rem; font-size: 1rem; }
.footer-inner { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.footer-brand { font: 700 1.375rem/1.2 var(--font-head); color: var(--lichen); }
.footer-brand span { display: block; margin-top: 0.35rem; font: 400 1rem/1.5 var(--font-body); color: var(--muted-on-dark); max-width: 34rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin-left: -0.75rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; }
.footer-small { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgba(245, 246, 240, 0.15); }

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