/* ============================================================
   MENU EVERYWHERE — Design tokens & base styles
   ============================================================ */

:root {
  /* Color */
  --ink: #012754;
  --ink-soft: #0a3b73;
  --action: #fc4c00;
  --action-dark: #d94100;
  --bg: #f7f8fa;
  --bg-deep: #041c36;
  --surface: #ffffff;
  --text-muted: #5b6b7c;
  --text-on-deep: #c9d6e3;
  --line: #e1e6ec;
  --line-deep: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (mobile-first; expanded via clamp) */
  --fs-h1: clamp(2.25rem, 6vw + 1rem, 4rem);
  --fs-h2: clamp(1.75rem, 3.4vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.6vw + 1rem, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1vw + 1rem, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Spacing */
  --space-section: clamp(3.5rem, 8vw, 7rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* Layout */
  --content-width: 1160px;
  --measure: 62ch;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p {
  margin: 0;
  max-width: var(--measure);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Visible keyboard focus, everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: var(--space-section);
}

.section--deep {
  background: var(--bg-deep);
  color: var(--text-on-deep);
}

.section--deep h1,
.section--deep h2,
.section--deep h3 {
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--action);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head p {
  margin-top: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--action);
  color: #fff;
}

.btn-primary:hover {
  background: var(--action-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-on-deep {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-on-deep:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

/* Phone link treatment */
.phone-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--action);
}

.visually-hidden {
  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: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}
