/* ============================================================
   CHARISA MUNROE-WILBORN — GLOBAL STYLESHEET
   Shared across ALL pages. Page-specific styles live in:
     page-home.css | page-connect.css | page-boardroom-soul.css
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { 
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  font-family: var(--sans) !important;
  background: var(--warm);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden !important;
  position: relative;
}
a { color: inherit ; text-decoration: none !important; }

/* ── CSS VARIABLES (Design Tokens) ──────────────────────── */
:root {
  /* PRIMARY PALETTE */
  --navy:     #0D1B2A;   /* Deep Navy          */
  --gold:     #C9A84C;   /* Brand Gold         */
  --burg:     #7D1F2E;   /* Burgundy           */
  --teal:     #2D6B74;   /* Teal               */

  /* SECONDARY PALETTE */
  --navy-md:  #1A2E42;   /* Navy Mid           */
  --navy-dk:  #0D1B2A;   /* Deep Navy (dark sections) */
  --gold-lt:  #E8D5A0;   /* Gold Light         */
  --gold-dk:  #9A7535;   /* Gold Dark / Pressed */
  --teal-lt:  #4A9BA6;   /* Teal Light         */
  --burg-lt:  #A63347;   /* Burgundy Lt / Hover */

  /* NEUTRALS */
  --cream:    #FAF6EF;   /* Cream              */
  --warm:     #FDFAF5;   /* Warm White         */
  --sand:     #FAF6EF;   /* Sand (alias cream) */
  --text:     #1A1208;   /* Text Dark          */
  --text-md:  #4A3F2F;   /* Text Mid / Body    */
  --text-lt:  #8A7A65;   /* Text Light / Captions */
  --rule:     #E4DCCC;   /* Rule / Divider     */

  /* TYPOGRAPHY */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(13, 27, 42, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 168, 76, .12);
  transition: background .35s, border-color .35s;
  box-sizing: border-box;
  overflow: hidden !important;
  will-change: transform;
  transform: translateZ(0);
}
.nav.light {
  background: rgba(253, 250, 245, .97);
  border-bottom-color: var(--rule);
}
.nav-brand {
  font-family: var(--serif);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--gold);
  letter-spacing: .03em;
  flex: 1 1 auto;
  min-width: 0;
  
}
.nav-brand a {
  color: inherit !important;
  display: block;      
  overflow: hidden !important;    
  white-space: nowrap;  
  text-overflow: ellipsis; 
}
.nav-brand span {
  font-style: italic;
  color: rgba(201, 168, 76, .7);
}
.nav.light .nav-brand          { color: var(--navy); }
.nav.light .nav-brand span     { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}
.nav-links a {
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
  white-space: nowrap;
}
.nav.light .nav-links a        { color: var(--text-md); }
.nav-links a:hover,
.nav.light .nav-links a:hover,
.nav-links a.active            { color: var(--gold) !important; }

.nav-cta {
  background: var(--burg) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 1px;
  font-size: .63rem !important;
  letter-spacing: .14em !important;
  transition: background .2s !important;
}
.nav-cta:hover                 { background: var(--burg-lt) !important; }

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none !important;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, .8);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav.light .hamburger span     { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.8px, 4.8px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.8px, -4.8px); }

/* Mobile nav drawer */
.mob-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 199;
  background: rgba(253, 250, 245, .98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden !important;
  box-sizing: border-box;
}
.mob-nav.open                  { display: flex; flex-direction: column; }
.mob-nav a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-md);
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  transition: color .2s, background .2s;
}
.mob-nav a:hover               { color: var(--navy); background: var(--sand); }
.mob-nav .mcta {
  color: #fff !important;
  background: var(--burg);
  text-align: center;
  border-bottom: none;
  margin: 16px clamp(20px, 5vw, 64px);
  padding: 15px 24px !important;
  border-radius: 1px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
/* Primary (Burgundy) */
.bp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--burg); color: #fff;
  padding: 15px 32px; border-radius: 1px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .22s, transform .22s, box-shadow .22s;
  white-space: nowrap; cursor: pointer;
}
.bp:hover {
  background: var(--burg-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(125, 31, 46, .25);
  color: #fff;
}

/* Outline Navy */
.bo {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: 14px 30px; border-radius: 1px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all .22s; white-space: nowrap;
}
.bo:hover { background: var(--navy); color: var(--gold); }

/* Outline Gold */
.bg {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gold); color: var(--gold);
  padding: 14px 30px; border-radius: 1px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all .22s; white-space: nowrap;
}
.bg:hover                      { background: var(--gold); color: var(--navy); }

/* Teal */
.bt {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 15px 32px; border-radius: 1px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .22s, transform .22s;
  white-space: nowrap; cursor: pointer;
}
.bt:hover                      { background: var(--teal-lt); transform: translateY(-2px); }

/* Outline Light (on dark backgrounds) */
.bo-lt {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .75);
  padding: 14px 28px; border-radius: 1px;
  font-size: .67rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all .22s; white-space: nowrap;
}
.bo-lt:hover                   { border-color: var(--gold); color: var(--gold); }

/* Button group */
.btn-grp                       { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── UTILITIES ───────────────────────────────────────────── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* Eyebrow label */
.ey {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.ey::before {
  content: ''; display: block;
  width: 26px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.eyc                           { justify-content: center; }

/* Rule lines */
.gr  { width: 50px; height: 1px; background: var(--gold); margin: 20px 0; }
.grc { width: 50px; height: 1px; background: var(--gold); margin: 20px auto; }

/* Trademark superscript */
sup.tm                         { font-size: .42em; vertical-align: super; }

/* Decorative orbs */
.orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.orb-solid {
  background: radial-gradient(circle at 35% 35%,
    rgba(201, 168, 76, .16) 0%,
    rgba(201, 168, 76, .05) 50%,
    transparent 70%);
}
.orb-ring                      { background: transparent; border: 1px solid rgba(201, 168, 76, .1); }
.orb-ring-burg                 { background: transparent; border: 1px solid rgba(125, 31, 46, .12); }
.orb-ring-teal                 { background: transparent; border: 1px solid rgba(45, 107, 116, .12); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(16px) rotate(5deg); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(12px, -16px); }
  66%       { transform: translate(-8px, 10px); }
}
@keyframes pulseRing {
  0%, 100% { opacity: .14; transform: scale(1); }
  50%       { opacity: .05; transform: scale(1.1); }
}
@keyframes pulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll-reveal utility — JS adds .in when element enters viewport */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.rv.in                         { opacity: 1; transform: none; }
.rv.d1                         { transition-delay: .09s; }
.rv.d2                         { transition-delay: .18s; }
.rv.d3                         { transition-delay: .27s; }
.rv.d4                         { transition-delay: .36s; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-dk);
  padding: clamp(52px, 7vw, 76px) 0 32px;
  border-top: 1px solid rgba(201, 168, 76, .1);
}
.ft-brand {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--gold);
}
.ft-tag {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(253, 250, 245, .4);
  margin-top: 7px;
}
.ft-g {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(40px, 5vw, 60px) 0;
}
.fc p {
  font-size: .875rem;
  color: rgba(253, 250, 245, .55);
  line-height: 1.82em; margin-top: 8px; max-width: 250px;
}
.ft-socials {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
.ft-socials a {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.28) !important;
}
.fc h5 {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.fc a {
  display: block; font-size: .84rem;
  color: rgba(253, 250, 245, .6);
  margin-bottom: 11px; transition: color .2s;
}
.fc a:hover { color: var(--gold); }
.ft-b {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 24px;
  font-size: .7rem;
  color: rgba(253, 250, 245, .35);
  line-height: 1.7;
}
.heart {
  color: #ff4d4d; /* Bright red heart */
  display: inline-block;
  animation: pulse 1.5s infinite; 
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.ft-b a:hover {
    opacity: 0.7;
    color: var(--gold-lt);
}
.ft-b a {
    color: inherit;
}

/* ── RESPONSIVE: TABLET 960px ───────────────────────────── */
@media (max-width: 960px) {
  /* Nav */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  /* Footer */
  .ft-g { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-g .fc:first-child { grid-column: 1 / -1; }
}

/* ── RESPONSIVE: MOBILE 640px ───────────────────────────── */
@media (max-width: 640px) {
  .nav        { padding: 0 20px; }
  .nav-brand span { display: none; }
  /* Footer */
  .ft-g { grid-template-columns: 1fr; gap: 28px; }
  .ft-g .fc:first-child { grid-column: auto; }
  .ft-brand   { font-size: 1.3rem; }
  .fc a       { font-size: .82rem; margin-bottom: 9px; }
  /* Buttons — full-width stacking */
  .btn-grp {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-grp .bp,
  .btn-grp .bo,
  .btn-grp .bg { width: 100%; justify-content: center; }
  
  .ft-socials { flex-wrap: wrap; }
}

/* ── TOUCH TARGET ENHANCEMENT ───────────────────────────── */
@media (hover: none) {
  .bp, .bo, .bg, .bt, .bo-lt { min-height: 48px; }
  .fc a { min-height: 44px; }
}

/* ══════════════════════════════════════════════════════════
   404 PAGE
   Lives in global.css because 404 doesn't warrant its own
   file — it's a single section used on one template.
   ══════════════════════════════════════════════════════════ */
.e404 {
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(100px,14vh,140px) clamp(20px,5vw,64px) clamp(64px,9vw,100px);
}
 
/* Atmospheric background */
.e404-atm {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 80% 30%, rgba(45,107,116,.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 10% 75%, rgba(125,31,46,.12) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 50% 5%,  rgba(201,168,76,.05) 0%, transparent 50%);
}
.e404-gt {
  position: absolute; inset: 0; pointer-events: none; opacity: .025;
  background-image:
    linear-gradient(rgba(201,168,76,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,1) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}
 
/* Orbs */
.e404-orb-1 { width:520px; height:520px; top:-120px; right:-100px; animation: floatA 14s ease-in-out infinite; }
.e404-orb-2 { width:280px; height:280px; bottom:-80px; left:-80px;  animation: floatB 11s ease-in-out infinite 2s; }
.e404-orb-3 { width:160px; height:160px; top:35%; right:20%;        animation: pulseRing 9s ease-in-out infinite; }
 
/* Inner content — centred column */
.e404-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
 
/* Ghost 404 number watermark */
.e404-code {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(201,168,76,.06);
  letter-spacing: -.02em;
  margin-bottom: clamp(-2rem, -4vw, -3rem); /* pulls headline up into the number */
  user-select: none;
}
 
/* Headline */
.e404-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin: 20px 0 24px;
  animation: riseIn .95s cubic-bezier(.22,1,.36,1) .2s both;
}
.e404-h1 em { color: var(--gold); font-style: italic; }
 
/* Subtext */
.e404-sub {
  font-size: clamp(.88rem, 1.3vw, 1rem);
  color: rgba(255,255,255,.45);
  line-height: 1.88;
  max-width: 460px;
  margin: 0 auto 32px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .35s both;
}
 
/* Divider rule */
.e404-rule {
  width: 40px; height: 1px;
  background: rgba(201,168,76,.3);
  margin: 0 auto 24px;
}
 
/* Brand tagline */
.e404-tagline {
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: rgba(201,168,76,.45);
  letter-spacing: .03em;
  margin-bottom: clamp(36px,5vw,52px);
}
 
/* CTA buttons */
.e404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: clamp(36px,5vw,52px);
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .5s both;
}
 
/* Quick nav row */
.e404-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .65s both;
}
.e404-nav-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.e404-nav a {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.e404-nav a:hover              { color: var(--gold); }
.e404-nav span                 { color: rgba(255,255,255,.15); font-size: .6rem; }
 
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .e404-h1 { font-size: 2rem; }
  .e404-links {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .e404-links .bp,
  .e404-links .bo-lt { width: 100%; justify-content: center; }
  .e404-nav { gap: 8px; }
}