/* ─── LEVERED SHARED STYLES ─────────────────────────────────── */

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

:root {
  --bg:          linear-gradient(135deg, #f5f7fb 0%, #e8f0f7 100%);
  --bg-solid:    #f5f7fb;
  --bg-card:     #ffffff;
  --bg-subtle:   rgba(59, 130, 246, 0.06);
  --text:        #1a2744;
  --text-muted:  #64748b;
  --text-dim:    #475569;
  --gold:        #0f5a8d;
  --gold-light:  rgba(15, 90, 141, 0.08);
  --gold-bright: #003f70;
  --border:      rgba(15, 90, 141, 0.12);
  --border-dim:  rgba(71, 85, 105, 0.08);
  --accent:      #1e5ba8;
  --accent-alt:  #2563eb;
  --white:       #1a2744;
  --max-w:       1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* BG GRID */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(15,90,141,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,90,141,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 3rem;
  background: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a2744;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark span { color: #1e5ba8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 2rem;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a2744;
}

.nav-links a.active {
  color: #1e5ba8;
}

.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e5ba8;
  border: 1px solid rgba(30, 91, 168, 0.3);
  padding: 0.5rem 1.2rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: rgba(30, 91, 168, 0.08);
  border-color: #1e5ba8;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #64748b;
  transition: all 0.2s;
}

/* Mobile nav overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 57px; left: 0; right: 0;
  background: rgba(245, 247, 251, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  padding: 1.5rem 2rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-dim);
  transition: color 0.2s;
}

.nav-mobile-menu a:last-of-type { border-bottom: none; }

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: #1e5ba8; }

.nav-mobile-menu .nav-cta {
  margin-top: 1.25rem;
  text-align: center;
  display: block;
  padding: 0.85rem;
  font-size: 0.85rem;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #1e5ba8;
  border: 1px solid #1e5ba8;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(30, 91, 168, 0.15);
}

.btn-primary:hover {
  background: #003f70;
  border-color: #003f70;
  box-shadow: 0 4px 12px rgba(30, 91, 168, 0.25);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e5ba8;
  border: 1px solid rgba(30, 91, 168, 0.3);
  padding: 0.85rem 1.5rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-outline:hover {
  background: rgba(30, 91, 168, 0.08);
  border-color: #1e5ba8;
  box-shadow: 0 2px 6px rgba(30, 91, 168, 0.1);
}

/* ─── SECTION BASE ────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 3rem;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1e5ba8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: #1e5ba8;
  opacity: 0.5;
}

/* ─── DIVIDER ─────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ─── TAG ─────────────────────────────────── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e5ba8;
  border: 1px solid rgba(30, 91, 168, 0.2);
  padding: 0.3rem 0.65rem;
  background: rgba(30, 91, 168, 0.06);
}

/* ─── FORM BASE ───────────────────────────── */
.form-message {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  min-height: 1.2em;
}

.form-message.success { color: #6ee7b7; }
.form-message.error   { color: #f87171; }

.field-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* ─── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 2.5rem 3rem;
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #1e5ba8; }

.footer-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(86,85,94,0.5);
  text-align: right;
}

/* ─── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  padding: 9rem 3rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
}

.page-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-hero-eyebrow::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  color: #1a2744;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.page-hero h1 em { font-style: normal; color: #1e5ba8; }

.page-hero p {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
  max-width: 560px;
}

/* ─── ANIMATIONS ──────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fade-up 0.6s ease both; }
.fade-up-1 { animation: fade-up 0.6s ease 0.1s both; }
.fade-up-2 { animation: fade-up 0.6s ease 0.2s both; }
.fade-up-3 { animation: fade-up 0.6s ease 0.35s both; }
.fade-up-4 { animation: fade-up 0.6s ease 0.5s both; }

/* ─── RESPONSIVE NAV ──────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 3.5rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .footer-note { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
