/* ============================================================
   base.css — design tokens, reset, typography, layout utilities
   ============================================================ */

:root {
  /* Brand palette (Florida Blue–adjacent blues + warm CTA accent) */
  --blue: #0057b8;
  --blue-dark: #003e85;
  --blue-deep: #002c60;
  --navy: #0a2540;
  --blue-tint: #e9f2fb;
  --blue-tint-2: #d7e7f8;

  --accent: #f97316;
  --accent-dark: #dd6803;
  --green: #12a150;
  --gold: #f5b301;
  --red: #d92d20;

  --ink: #22313f;
  --muted: #5a6b7e;
  --line: #dee7f1;
  --bg: #f6f9fd;
  --white: #ffffff;

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-hero: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);

  /* Shape & shadow */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, 0.22);

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 780px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 17px;
  height: 17px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg);
}

.section-navy {
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue-deep) 100%);
  color: #d9e6f5;
}

.section-navy h2 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .lede {
  color: var(--muted);
  font-size: var(--fs-md);
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.kicker-light {
  color: #8fc1f5;
}

/* ---------- Accessibility helpers ---------- */
.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;
}

.is-hidden {
  display: none !important;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
