/* ============================================================
   BASE RESET + GLOBAL STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-size-adjust: none;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p, li, figcaption { text-wrap: pretty; max-width: 70ch; }

::selection {
  background: rgba(242,195,0,0.3);
  color: var(--color-text);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

/* ── Utility classes ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-16));
}

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

.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;
}

/* ── Gold rule accent ─────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ── Section layout ──────────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

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

.section--dark {
  background: var(--navy-deep);
  color: white;
}

.section--gray {
  background: var(--color-surface-2);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242,195,0,0.35);
}

.btn--navy {
  background: var(--navy);
  color: white;
}
.btn--navy:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,58,112,0.3);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(242,195,0,0.2);
}

.btn--outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: white;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  letter-spacing: 0.06em;
}

/* ── Section headings ────────────────────────────────────── */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

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

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}
.section-subtitle--white {
  color: rgba(255,255,255,0.75);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Tag/badge ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--navy-deep);
}
.tag--navy {
  background: var(--navy);
  color: white;
}
.tag--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-item .value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-item .label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-2);
  display: block;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Form styles ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242,195,0,0.2);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s var(--ease-out) both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }
