/* ===== TOKENS ===== */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #162032;
  --navy-light: #1E3A5F;
  --steel:      #2D6A9F;
  --steel-light:#4A90C4;
  --amber:      #C9862A;
  --amber-light:#E0A04A;
  --cream:      #F5F0E8;
  --cream-dark: #EDE7D9;
  --white:      #FFFFFF;
  --text-main:  #0D1B2A;
  --text-muted: #5A6A78;
  --text-light: #8FA3B1;
  --border:     #D6D0C6;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  20px;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 4px rgba(13,27,42,0.08);
  --shadow-md: 0 4px 20px rgba(13,27,42,0.12);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.18);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark { background: var(--navy); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--navy-mid { background: var(--navy-mid); color: var(--cream); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}
.eyebrow--light { color: var(--amber-light); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: var(--amber-light); }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); }
.btn--white { background: var(--white); color: var(--amber); }
.btn--white:hover { background: var(--cream); }
.btn--amber-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn--amber-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); border-bottom-color: var(--amber); }
.nav-cta { margin-left: 8px; border-bottom: none !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 68px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,134,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,134,42,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 80%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; max-width: 720px; }
.page-hero p { color: rgba(245,240,232,0.7); font-size: 1.15rem; max-width: 580px; line-height: 1.75; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 60px 0 32px;
  color: rgba(245,240,232,0.5);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand-name span { color: var(--amber); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--amber-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--amber-light); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--amber); padding: 80px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  border: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(13,27,42,0.25);
  touch-action: none;
  user-select: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--amber-light);
}
.back-to-top:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.back-to-top.dragging {
  transition: none;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .back-to-top { width: 46px; height: 46px; }
  .back-to-top svg { width: 18px; height: 18px; }
}
