/* ═══════════════════════════════════════════════════════
   BASE RESET & GLOBAL STYLES
   ═══════════════════════════════════════════════════════ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: 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;
  font-weight: 400;
  color: var(--color-text);
}

p,li,figcaption { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--gold);
  color: #14203d;
}
::-moz-selection {
  background: var(--gold);
  color: #14203d;
}
/* Keep selection legible on dark / navy backgrounds too (gold bg + dark ink works on both) */
[data-theme="dark"] ::selection,
.section--ink ::selection,
.page-hero--navy ::selection,
.hero ::selection {
  background: var(--gold);
  color: #14203d;
}

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

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

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

/* ── Utility Classes ────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.container--narrow {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

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

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

.section--dark {
  background: var(--navy-800);
  color: var(--color-text-inverse);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.eyebrow--light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.section-title--light {
  color: var(--color-text-inverse);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.75);
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Gold Rule ────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: var(--space-6);
}

.gold-rule--center {
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) clamp(var(--space-6), 5vw, var(--space-16));
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* Top scrim so the white logo and links stay legible over light hero areas
   before the nav gains its scrolled/solid background. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,18,46,0.55) 0%, rgba(0,18,46,0.18) 55%, rgba(0,18,46,0) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--transition);
}
.nav--scrolled::before,
.nav--solid::before { opacity: 0; }

.nav--scrolled {
  background: rgba(0,36,93,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding-block: var(--space-4);
}

.nav--solid {
  background: var(--navy);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  margin-left: var(--space-4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all var(--transition);
}

/* ── Mobile Nav ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
    z-index: 99;
  }
  .nav.nav--open .nav__links a {
    font-size: var(--text-lg);
  }
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: #060d1f;
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer__brand img { height: 40px; width: auto; margin-bottom: var(--space-6); }

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.footer__address {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(191,169,128,0.1);
}

.footer__bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
