/* ==========================================================
   BASE — Reset, Typography, Global Utilities
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--sm { max-width: var(--container-sm); }
.container--xs { max-width: var(--container-xs); }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-transform: uppercase;
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  line-height: 1.75;
  color: var(--gray-700);
  font-size: var(--text-base);
}
p + p { margin-top: var(--sp-4); }

strong { font-weight: 700; color: var(--charcoal); }
em { font-style: italic; }

/* ── Section patterns ─────────────────────────────────────── */
.section { padding-block: var(--sp-20); }
.section--sm { padding-block: var(--sp-12); }
.section--lg { padding-block: var(--sp-24); }
.section--xl { padding-block: var(--sp-32); }

.section--navy    { background: var(--navy); }
.section--dark    { background: var(--navy-dark); }
.section--light   { background: var(--gray-100); }
.section--offwhite{ background: var(--off-white); }

/* On dark sections, flip all text */
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5, .section--navy h6,
.section--dark h1, .section--dark h2, .section--dark h3 {
  color: var(--white);
}
.section--navy p, .section--dark p {
  color: rgba(255,255,255,0.75);
}

/* ── Section Header ───────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}
.section-tag--light { color: rgba(255,255,255,0.55); }
.section-tag--red-on-dark { color: var(--red-light); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}
.section-title--xl { font-size: var(--text-5xl); }
.section-title--lg { font-size: var(--text-4xl); }
.section-title--md { font-size: var(--text-3xl); }
.section-title--sm { font-size: var(--text-2xl); }
.section-title--white { color: var(--white); }

.section-lead {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 580px;
}
.section-lead--light { color: rgba(255,255,255,0.75); }
.section-lead--center { margin-inline: auto; text-align: center; }

.rule {
  width: 48px;
  height: 4px;
  background: var(--red);
  border: none;
  margin-block: var(--sp-4);
}
.rule--center { margin-inline: auto; }
.rule--sm { width: 32px; height: 3px; }

.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }
.section-header--center .section-lead { margin-inline: auto; }

/* ── Layout helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-4  { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.flex-gap-6  { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }

/* ── Utility classes ──────────────────────────────────────── */
.text-red     { color: var(--red); }
.text-navy    { color: var(--navy); }
.text-white   { color: var(--white); }
.text-gray    { color: var(--gray-500); }
.text-upper   { text-transform: uppercase; letter-spacing: 0.08em; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Body padding for fixed nav ─────────────────────────── */
body { padding-top: var(--nav-h); }

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 1024px) {
  :root { --text-5xl: 3.2rem; --text-4xl: 2.6rem; }
}
@media (max-width: 768px) {
  :root { --text-5xl: 2.6rem; --text-4xl: 2rem; --text-3xl: 1.75rem; }
  .section { padding-block: var(--sp-16); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: var(--sp-8); }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; --text-5xl: 2.2rem; --text-4xl: 1.75rem; }
}
