/* ═══════════════════════════════════════════════════════
   WEALTHARCH — GLOBAL STYLES  v2
   Theme: Deep Navy · Gold · Off-White
   ═══════════════════════════════════════════════════════ */

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

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Off-white / light neutrals */
  --cream:    #F8F6F2;
  --white:    #FFFFFF;
  --parchment:#F0EDE6;

  /* Navy blues — lightened for readability */
  --navy:     #1C3A5E;
  --navy-mid: #254D7A;
  --navy-lt:  #2E6099;
  --navy-bg:  #1A3556;

  /* Gold */
  --gold:     #C09A3A;
  --gold-lt:  #D4B15A;
  --gold-dim: #A07C22;
  --gold-bg:  #FAF4E3;

  /* Ink (dark text) — high contrast */
  --ink:      #111827;
  --ink-60:   #374151;
  --ink-30:   #6B7280;

  /* Lines / borders */
  --line:     #D8D2C4;
  --line-navy:rgba(255,255,255,0.1);

  /* Dark footer */
  --dark:     #060E1A;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'DM Sans', sans-serif;
  --ff-mono:  'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);

  --nav-h: 68px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--ff-sans); }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ── PAGE TRANSITION — subtle fade ─────────────────────── */
html { animation: pageFadeIn 0.35s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.6;
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              opacity 0.3s;
}
.cursor-ring.hovered { width: 54px; height: 54px; opacity: 0.25; }

/* ── SCROLL PROGRESS BAR ────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 2000;
  height: 2px; background: var(--gold); width: 0%;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  background: rgba(245,243,238,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s, opacity 0.3s;
}
.navbar.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 40px rgba(11,31,58,0.08);
  background: rgba(245,243,238,0.97);
}
/* Hide navbar when overlay is open so it doesn't block */
.nav-overlay.open ~ .navbar,
body.overlay-open .navbar {
  opacity: 0; pointer-events: none;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--ff-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  background: var(--navy);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}
.nav-logo-mark::after {
  content: '';
  position: absolute; inset: 4px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.nav-logo-text { color: var(--navy); }
.nav-logo-text span { color: var(--gold); }

/* Hamburger — 3 lines, becomes X on open */
.nav-hamburger {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  gap: 5px;
  cursor: pointer; background: none; border: none;
  width: 44px; height: 44px; border-radius: 2px;
  padding: 11px 10px; z-index: 1101;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(11,31,58,0.06); }
.nav-hamburger span {
  display: block; height: 1.5px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
/* Active = X */
.nav-hamburger.active span:nth-child(1) { width: 22px; transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

/* Login btn */
.nav-login-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--navy); color: var(--cream);
  border-radius: 2px; border: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
}
.nav-login-btn:hover { background: var(--gold); }

/* ── NAV DROPDOWN PANEL (Etica-style) ───────────────────── */
.nav-overlay {
  position: fixed;
  top: var(--nav-h); right: 1.5rem;
  width: 280px;
  z-index: 1100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(11,31,58,0.14), 0 2px 8px rgba(11,31,58,0.06);
  padding: 0.5rem 0 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav-overlay.open {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
}
/* Hide navbar when overlay is open — NOT needed for dropdown, keep navbar visible */
body.overlay-open .navbar { opacity: 1; pointer-events: all; }

/* No close button needed for dropdown — clicking hamburger again closes it */
.overlay-close { display: none; }

/* Links inside dropdown */
.overlay-links { width: 100%; }
.overlay-link-item {
  overflow: hidden;
}
.overlay-link-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s, padding-left 0.2s, color 0.2s;
  text-decoration: none;
}
.overlay-link-item:last-child a { border-bottom: none; }
.overlay-link-item a::after {
  content: '↗';
  font-size: 0.75rem;
  color: var(--ink-30);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.overlay-link-item a:hover {
  background: var(--cream);
  padding-left: 1.75rem;
  color: var(--navy);
}
.overlay-link-item a:hover::after { color: var(--gold); transform: translate(2px,-2px); }

/* Hide number spans (belt + suspenders) */
.link-num { display: none; }

/* Footer inside dropdown */
.overlay-footer {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.overlay-footer p {
  font-size: 0.68rem; color: var(--ink-30);
  letter-spacing: 0.04em;
}
.overlay-socials { display: flex; gap: 1rem; }
.overlay-socials a {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-30);
  transition: color 0.2s;
}
.overlay-socials a:hover { color: var(--gold); }

/* ── PAGE HERO (INNER PAGES) ────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 5% 3.5rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.page-hero-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.page-hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-sub {
  max-width: 560px; margin-top: 1.25rem;
  font-size: 0.97rem; color: rgba(255,255,255,0.88); line-height: 1.85;
}

/* ── SECTION UTILITIES ──────────────────────────────────── */
.section-inner { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: #0D1F38;
}
.section-title em { font-style: italic; color: var(--gold); }

/* Global body text override for readability */
p, li, .about-body, .svc-desc, .footer-tagline {
  color: #1F2937;
}
.page-hero-sub, .leadership-hero-sub {
  color: rgba(255,255,255,0.95) !important;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  background: var(--navy); color: var(--cream);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; border: none; cursor: pointer;
  transition: background 0.3s, gap 0.3s;
}
.btn-primary:hover { background: var(--gold); gap: 1rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-60);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-outline:hover { color: var(--gold); border-color: var(--gold); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--dark); padding: 4rem 5% 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo-text { color: var(--white); }
.footer-brand .nav-logo-mark { background: var(--gold); }
.footer-brand .nav-logo-mark::after { background: var(--dark); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.85; max-width: 280px; }
.footer-col-title {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }
.footer-disclaimer {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
  line-height: 1.75; max-width: 900px;
}

/* ── MARQUEE STRIP ──────────────────────────────────────── */
.marquee-strip {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 0; overflow: hidden;
  flex-shrink: 0;
}
.strip-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.strip-track span {
  white-space: nowrap; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF;
  display: flex; align-items: center; gap: 1rem;
}
.strip-track span::after { content: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .overlay-link-item a { font-size: clamp(1.7rem, 7vw, 2.5rem); padding: 0.9rem 0; }
  html { font-size: 14px; }
}
