@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0A1628;
  --navy-mid: #112040;
  --navy-light: #1C3055;
  --gold: #B85C28;
  --gold-light: #CC7A4A;
  --brand-blue: #2D3B8E;
  --off-white: #F5F3EE;
  --warm-gray: #E8E4DC;
  --text-muted: #8A9BB5;
  --text-light: #B8C4D6;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: 100px 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(245, 243, 238, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A5A72;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-white);
  background: #4A5A72;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover { background: #3A4A62; }

/* FOOTER */
footer {
  background: var(--navy);
  color: var(--text-muted);
  padding: 64px 48px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 36px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* UTILS */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}

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

.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: #4A5A72;
  line-height: 1.7;
  max-width: 600px;
}

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

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--brand-blue);
  padding: 14px 32px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: #3D4F9F; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  padding: 13px 31px;
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* GRID LINE BG */
.grid-bg {
  background-image:
    linear-gradient(rgba(45,59,142,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,59,142,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Page offset for fixed nav */
.page-content { padding-top: 72px; }

/* SMART NAV — light/dark switching */
/* Default nav = off-white (on dark/navy page sections) */
/* nav-dark class = navy nav (on off-white page sections) */
nav {
  transition: background 0.3s, border-color 0.3s;
}
nav.nav-dark {
  background: rgba(10, 22, 40, 0.97) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
}
nav.nav-dark .nav-links a { color: var(--text-light) !important; }
nav.nav-dark .nav-links a:hover,
nav.nav-dark .nav-links a.active { color: var(--off-white) !important; }
nav.nav-dark .nav-cta { background: #4A5A72 !important; color: var(--off-white) !important; }
nav.nav-dark .nav-cta:hover { background: #3A4A62 !important; }
nav.nav-dark .nav-logo-light { display: block !important; }
nav.nav-dark .nav-logo-dark { display: none !important; }
nav .nav-logo-light { display: none; }
nav .nav-logo-dark { display: block; }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  footer { padding: 48px 24px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
