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

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

html { scroll-behavior: smooth; font-size: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ── Focus Visibility (WCAG 2.4.7) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-modal);
  background: var(--royal-blue);
  color: var(--white);
  padding: 12px 20px;
  font: 600 14px/1 var(--font-body);
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ── Section ── */
.section { padding-block: var(--section-py); }
.section--dark { background: var(--royal-blue); color: var(--white); }
.section--tinted { background: var(--bg-section); }
.section--white { background: var(--white); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 var(--text-xs)/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Headings ── */
.h1 { font: 400 var(--text-hero)/1.1 var(--font-display); color: var(--charcoal); }
.h2 { font: 400 var(--text-4xl)/1.2  var(--font-display); color: var(--charcoal); }
.h3 { font: 400 var(--text-3xl)/1.25 var(--font-display); color: var(--charcoal); }
.h4 { font: 600 var(--text-xl)/1.3   var(--font-body);    color: var(--charcoal); }

.section--dark .h1,
.section--dark .h2,
.section--dark .h3,
.section--dark .h4 { color: var(--white); }

/* ── Lead Paragraph ── */
.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--muted);
  max-width: 64ch;
}
.section--dark .lead { color: rgba(255,255,255,.75); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font: 600 var(--text-sm)/1 var(--font-body);
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--royal-blue);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--royal-blue);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--royal-blue);
  border: 1.5px solid var(--royal-blue);
}
.btn--secondary:hover {
  background: var(--royal-blue);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--royal-blue);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s3); }

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

/* ── Aspect Ratio ── */
.ratio-16-9  { aspect-ratio: 16/9; }
.ratio-4-3   { aspect-ratio: 4/3; }
.ratio-3-2   { aspect-ratio: 3/2; }
.ratio-1-1   { aspect-ratio: 1/1; }

.ratio-16-9 img,
.ratio-4-3  img,
.ratio-3-2  img,
.ratio-1-1  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-block: var(--s2);
}

/* ── Tag / Pill ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font: 600 var(--text-xs)/1.4 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font: 500 var(--text-xs)/1 var(--font-body);
  color: var(--muted-light);
  margin-bottom: var(--s3);
}
.breadcrumb a { color: var(--muted-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

/* ── Section Header ── */
.section-header { margin-bottom: var(--s6); }
.section-header--center { text-align: center; }
.section-header--center .lead { margin-inline: auto; }
.section-header--center .divider { margin-inline: auto; }

/* ── Fade-in animation (JS triggered) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive helpers ── */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }

@media (max-width: 820px) {
  .hide-mobile  { display: none; }
  .show-mobile  { display: block; }
}
