/* ========================================
   SHARED STYLES — Holistic Governance v2
   ======================================== */

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

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --cream: #f1f5f9;
  --white: #f1f5f9;
  --text: #f1f5f9;
  --text-mid: #94a3b8;
  --text-light: #64748b;
  --sky: #38bdf8;
  --sky-light: #7dd3fc;
  --sky-pale: rgba(56,189,248,0.08);
  --border: rgba(56,189,248,0.15);
  --border-mid: rgba(56,189,248,0.25);
  --copper: #c9956b;
  --copper-light: #d4a97a;
  --copper-pale: rgba(201,149,107,0.12);
  --gold: #38bdf8;
  --gold-light: #7dd3fc;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--navy); color: var(--text); overflow-x: hidden; }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  padding: 0.8rem 4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 50px; width: auto; transition: height 0.3s; }
nav.scrolled .logo img { height: 40px; }
.logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: 0.08em; color: var(--white); }
.logo-name span { color: var(--sky); }
nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; margin-left: auto; }
nav ul a { text-decoration: none; color: var(--text-light); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.3s; position: relative; }
nav ul a:hover, nav ul a.active { color: var(--sky); }
nav ul a.active::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--sky); border-radius: 1px; }
.nav-cta { padding: 0.6rem 1.6rem; border: 1px solid var(--sky); color: var(--sky) !important; border-radius: 2px; transition: background 0.3s, color 0.3s !important; cursor: pointer; background: none; font-family: 'DM Sans', sans-serif; font-size: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; }
.nav-cta:hover { background: var(--sky) !important; color: var(--navy) !important; }
.nav-contact-wrapper { position: relative; }
.nav-contact-popup { display: none; position: absolute; top: calc(100% + 12px); right: 0; background: var(--navy); border: 1px solid rgba(56,189,248,0.3); border-radius: 6px; padding: 1rem 1.2rem; min-width: 220px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.nav-contact-popup::before { content: ''; position: absolute; bottom: 100%; right: 20px; border: 8px solid transparent; border-bottom-color: rgba(56,189,248,0.3); }
.nav-contact-popup.open { display: flex; flex-direction: column; gap: 0.6rem; }
.nav-contact-popup a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2); border-radius: 4px; color: #f1f5f9; text-decoration: none; font-size: 0.82rem; font-family: 'DM Sans', sans-serif; transition: background 0.2s, border-color 0.2s; }
.nav-contact-popup a:hover { background: rgba(56,189,248,0.15); border-color: var(--sky); }
.nav-contact-popup svg { width: 16px; height: 16px; color: var(--sky); flex-shrink: 0; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero { padding: 10rem 4rem 5rem; background: var(--navy-mid); position: relative; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(56,189,248,0.06) 0%, transparent 70%); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.page-hero p { color: #ffffff; font-size: 1.05rem; line-height: 1.8; max-width: 600px; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--sky); text-decoration: none; }

/* ── SECTION LABEL & H2 ── */
.section-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.section-label::after { content: ''; display: block; width: 30px; height: 1px; background: var(--sky); }
h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #0ea5e9 0%, var(--sky) 40%, #7dd3fc 100%);
  padding: 5rem 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  overflow: visible; position: relative;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 90% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.cta-band h2 { color: #0f172a; font-size: clamp(1.8rem, 3vw, 2.8rem); max-width: 520px; margin-bottom: 0; position: relative; }

/* ── BTN-DARK ── */
.btn-dark { display: inline-block; padding: 1rem 2.4rem; background: var(--navy); color: var(--text); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: none; border-radius: 2px; white-space: nowrap; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.3s, transform 0.2s; position: relative; }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ── CONTACT POPUP ── */
.contact-wrapper { position: relative; display: inline-block; z-index: 10; }
.contact-popup { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--navy); border: 1px solid rgba(56,189,248,0.3); border-radius: 6px; padding: 1.2rem 1.5rem; min-width: 240px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.contact-popup::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-bottom-color: rgba(56,189,248,0.3); }
.contact-popup.open { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-popup a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2); border-radius: 4px; color: #f1f5f9; text-decoration: none; font-size: 0.88rem; font-family: 'DM Sans', sans-serif; transition: background 0.2s, border-color 0.2s; }
.contact-popup a:hover { background: rgba(56,189,248,0.15); border-color: var(--sky); }
.contact-popup svg { width: 18px; height: 18px; color: var(--sky); flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: #070d1a;
  padding: 4rem 4rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand .footer-logo img { height: 45px; width: auto; }
.footer-brand .footer-logo .logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--white); }
.footer-brand .footer-logo .logo-name span { color: var(--sky); }
.footer-tagline { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; max-width: 320px; }
.footer-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; color: var(--text-light); font-size: 0.85rem; }
.footer-col a { color: var(--text-light); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--sky); }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--sky); flex-shrink: 0; }
.footer-contact-item a { color: var(--text-light); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-light); }
.footer-bottom a { color: var(--text-light); text-decoration: none; font-size: 0.78rem; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--sky); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px;
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--sky); border-color: var(--sky); }
.back-to-top svg { width: 20px; height: 20px; color: var(--sky); transition: color 0.3s; }
.back-to-top:hover svg { color: var(--navy); }

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  margin: 0;
}

/* ── HAMBURGER ── */
.hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--sky); width: 40px; height: 40px; font-size: 1.4rem; cursor: pointer; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  nav ul {
    display: none; position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(15,23,42,0.98); flex-direction: column;
    padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: none; left: 0;
  }
  nav ul.open { display: flex; }
  .hamburger { display: block; }
  .cta-band { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  footer { padding: 3rem 1.5rem 1.5rem; }
}
