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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-900); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-800); font-weight: 300; }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }
h5 { font-size: var(--fs-400); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8A6F3F;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold-500);
}

/* Gold eyebrow on dark sections */
.section--dark .eyebrow, .section--navy-deep .eyebrow, .hero .eyebrow,
.cta-band .eyebrow, .page-hero .eyebrow, .div-hero .eyebrow {
  color: var(--gold-500);
}

.eyebrow--silver { color: var(--silver-500); }
.eyebrow--silver::before { background: var(--silver-500); }

.lead { font-size: var(--fs-500); line-height: 1.4; color: var(--text-muted); font-weight: 300; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}
.section--dark {
  background: var(--navy-800);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--dark .lead, .section--dark p { color: var(--text-on-dark-muted); }
.section--ivory { background: var(--ivory-200); }
.section--navy-deep { background: var(--navy-900); color: var(--text-on-dark); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}
.divider--gold { background: var(--gold-500); height: 1px; width: 4rem; }
.divider--full-gold { background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--navy-800);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  position: relative;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn--primary:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn--ghost {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--ghost:hover { background: var(--navy-800); color: var(--ivory-100); }
.btn--ghost-light { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.btn--ghost-light:hover { background: var(--text-on-dark); color: var(--navy-900); }
.btn--link { padding: 0; border: 0; color: var(--gold-500); }
.btn--link:hover { color: var(--navy-800); }
.btn .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--sp-8);
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--gold-500); }
.card--dark { background: var(--navy-700); border-color: var(--border-dark); color: var(--text-on-dark); }
.card--dark h3, .card--dark h4 { color: var(--text-on-dark); }

/* Grid */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@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; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transition: opacity var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; }

/* Utility */
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-8); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
