/* =====================================================================
   Temidayo Afonja — shared design system
   Single source of truth for color, type, nav, footer, buttons, motion.
   Page-specific layout rules remain in each page's inline <style> block.
   ===================================================================== */

:root {
  --navy: #0f2347; --navy-mid: #1a3060; --navy-light: #243d56;
  --gold: #c9a84c; --gold-light: #e8c97a; --gold-dim: rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.25); --cream: #f5f0e8;
  --cream-70: rgba(245,240,232,0.7); --cream-40: rgba(245,240,232,0.4);
  --white: #ffffff; --slate: #8ba0b4; --slate-dim: rgba(139,160,180,0.18);
  --green: #4a8c6f; --red-soft: #c8503c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy); color: var(--cream);
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,35,71,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-dim);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-logo-img { height: 28px; width: auto; margin-left: 10px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  font-size: 11px !important; font-weight: 500 !important; color: var(--gold) !important;
  border: 1px solid var(--gold-border) !important; padding: 8px 18px; transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dim) !important; color: var(--gold-light) !important; }

/* ── MOBILE NAV (hamburger + overlay, injected by nav.js into <body>) ── */
.nav-toggle {
  display: none; position: fixed; top: 13px; right: 20px; z-index: 10001;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 24px; background: var(--cream);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 10000; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 24px 48px; background: rgba(15,35,71,0.98);
  backdrop-filter: blur(16px); opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 380px; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300;
  letter-spacing: 0.02em; color: var(--cream); text-decoration: none;
  padding: 12px 0; display: block; text-align: center; transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-light); }
.mobile-menu .nav-cta {
  margin-top: 24px; font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy) !important;
  background: var(--gold); border: 1px solid var(--gold) !important; padding: 15px 40px !important;
}
.mobile-menu .nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }
body.menu-open { overflow: hidden; }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── LAYOUT ── */
section { position: relative; z-index: 1; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.section-divider { border: none; border-top: 1px solid var(--slate-dim); margin: 0; }
hr.divider { border: none; border-top: 1px solid var(--slate-dim); position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
h1, .display { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.08; color: var(--white); }
h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; color: var(--white); }
h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--white); }
p { font-size: 17px; line-height: 1.85; color: var(--cream-70); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy); border: none;
  padding: 15px 40px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.2); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--gold); border: 1px solid var(--gold-border);
  padding: 14px 36px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease;
}
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-dim); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; padding: 48px; border-top: 1px solid var(--slate-dim);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 300; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: var(--slate); letter-spacing: 0.05em; margin-top: 4px; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; letter-spacing: 0.08em; color: var(--slate); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: var(--slate); opacity: 0.6; }

/* ── UTILITY ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── MOTION ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }
.delay-4 { animation-delay: 0.6s; opacity: 0; }
.delay-5 { animation-delay: 0.75s; opacity: 0; }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .container { padding: 0 24px; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; opacity: 1; }
  * { transition: none !important; }
}
