/* Design tokens */
:root {
  --color-bg: #f7f5f1;
  --color-surface: #ffffff;
  --color-text: #1a1f26;
  --color-navy: #142033;
  --color-navy-dark: #0b1220;
  --color-accent: #e08423;
  --color-accent-dark: #9a560c;
  --color-border: #d8d3ca;
  --font-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --radius: 6px;
  --max-width: 72rem;
}

/* Reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-navy); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); margin: 0 0 var(--space-2); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin: var(--space-4) 0 var(--space-2); }
h3 { font-size: 1.25rem; margin: var(--space-3) 0 var(--space-1); }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-navy); }
a:hover { color: var(--color-accent-dark); }

/* Accessibility utilities */
.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;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 2px;
}
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--color-accent);
}

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-5) 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--color-navy);
}
.btn:hover { background: var(--color-navy-dark); border-color: var(--color-navy-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--nav { padding: 0.5rem 1rem; }

/* Header & nav */
.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: var(--space-1); text-decoration: none; color: var(--color-navy); }
.brand__text { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
.brand__text small { font-weight: 500; font-size: 0.7em; color: var(--color-text); display: block; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--color-navy); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-navy);
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--color-accent-dark); text-decoration: underline; }

@media (max-width: 55rem) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .site-nav { display: none; width: 100%; }
  .js-nav .site-nav.is-open { display: block; }
  .js-nav .site-nav.is-open ul { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-2) 0; }
}

/* Footer */
.site-footer { background: var(--color-navy); color: #fff; margin-top: var(--space-5); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-3); }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__nav ul { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: var(--space-2); max-width: 22rem; }
.site-footer__brand p { margin: 0; }
.site-footer__copy { width: 100%; font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* Hero */
.hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hero__inner { padding: var(--space-5) 0; max-width: 44rem; }
.hero p { font-size: 1.15rem; }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* Trust strip */
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--color-navy);
}
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; }
.trust-strip li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3); }
.card h3 { margin-top: 0; }

/* Forms */
.form { max-width: 34rem; }
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field--optional label { font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-weight: 400; color: var(--color-text); opacity: 0.75; font-size: 0.85rem; }
.field-honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Legal page prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
