:root {
  --hero-font-scale: 2;       /* default desktop scaling */
  --hero-line-gap: 0.22em;    /* vertical spacing between lines */
  /* padding-top: 150px; */
}

:root {
  --site-nav-h: 44px; /* or whatever your header height is */
}

.site-header { min-height: var(--logo-h); display: flex; }
.site-header .brand img { height: var(--logo-h); width: auto; display: block; }

.site-header .inner { display: flex; align-items: center; gap: 24px; }
.site-header .brand { flex: 0 0 auto; min-width: max-content; }  /* don’t collapse logo */


/* Container: single line, centered */
.tagline{
  display:inline-flex;
  align-items:center;
  gap:.8ch;
  white-space:nowrap;           /* ← stay on one line */
  margin:0;
}

/* Gradient main text */
.tagline__main{
  background:linear-gradient(90deg,#9fc5ff 0%,#b59cff 45%,#ffd08a 100%);
  -webkit-background-clip:text;
          background-clip:text;
  color:transparent;
  font-weight:700;
  letter-spacing:.1px;
  text-shadow:0 0 24px rgba(124,77,255,.18);
}

/* Thin vertical divider */
.tagline__sep{
  flex:0 0 1px;
  width:1px; height:1.2em;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.55),transparent);
  opacity:.85;
  transform: translateY(.02em); /* optical nudge */
}

/* Secondary text */
.tagline__sub{
  color:rgba(230,238,255,.9);
  font-weight:600;
  letter-spacing:.1px;
}

/* Keep it one line on narrow headers */
@media (max-width:720px){
  .tagline{ font-size:clamp(.85rem,2.6vw,1rem); }
  .tagline__sep{ height:1.05em; }
}

/* Compact glass pill */
.hero .hero-pill{
  padding: 8px 12px;                 /* smaller pill */
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* Kicker row */
.hero .tagline{
  display: flex;
  align-items: center;
  justify-content: center;           /* center in header */
  gap: .6rem;
  white-space: nowrap;               /* force one line */
  margin: 0;
  line-height: 1.1;
}

/* Main half with gradient ink */
.hero .tagline__main{
  background: linear-gradient(90deg, #b6c7ff 0%, #7ea2ff 45%, #cbb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: clamp(.92rem, 1.35vw, 1.06rem);
  letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(126,162,255,.18);
}

/* Separator immediately after the main text */
.hero .tagline__sep{
  inline-size: 1px;
  block-size: 1.1em;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.55), rgba(255,255,255,.0));
  opacity: .7;
  transform: translateY(.06em);      /* optically center on cap height */
}

/* Sub text */
.hero .tagline__sub{
  color: rgba(232,240,255,.92);
  font-weight: 550;
  font-size: clamp(.9rem, 1.2vw, 1.02rem);
  letter-spacing: .01em;
}

/* Tiny screens: allow wrap, turn separator into a hairline */
@media (max-width: 520px){
  .hero .tagline{ 
    flex-wrap: wrap; 
    gap: .5rem .6rem; 
    white-space: normal; 
  }
  .hero .tagline__sep{
    inline-size: 100%;
    block-size: 1px;
    transform: none;
    opacity: .5;
  }

      .ahva-hero-rest{
      color: white;
      margin-left: .15rem; 
      opacity: 1;
    }

    .hero-rest{
        opacity: 1;
    }

    .hero-letter-wrap{
      margin-right: -0.15em;
    }
}

/* Compact glass pill */
.hero-pill{
  margin: 0 auto;                    /* center the pill */
  padding: 8px 12px;                 /* smaller */
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  width: fit-content;                /* shrink to content */
  max-width: 92vw;                   /* don’t overflow */
}

/* Single-line row */
.tagline{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  white-space: nowrap;               /* force one line */
  margin: 0;
  line-height: 1.1;
}

/* Main text with gradient ink */
.tagline__main{
  background: linear-gradient(90deg, #b6c7ff 0%, #7ea2ff 45%, #cbb8ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: clamp(.9rem, 1.25vw, 1.05rem);
  letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(126,162,255,.18);
}

/* Vertical separator right after main text */
.tagline__sep{
  width: 1px;
  height: 1.05em;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  opacity: .75;
  transform: translateY(.06em);      /* optical centering */
}

/* Sub text */
.tagline__sub{
  color: rgba(232,240,255,.92);
  font-weight: 560;
  font-size: clamp(.88rem, 1.1vw, .98rem);
  letter-spacing: .01em;
}

/* Tiny screens: allow wrap and turn the separator into a hairline */
@media (max-width: 520px){
  .tagline{ flex-wrap: wrap; white-space: normal; gap: .45rem .6rem; }
  .tagline__sep{ width: 100%; height: 1px; transform: none; opacity: .5; }
}

/* Make the header a positioning context */
.site-header .inner{
  position: relative;          /* anchors the absolute pill */
}

/* Vertically + horizontally center the hero pill inside the header */
.site-header .hero-pill{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);  /* dead center */
  margin: 0;
  z-index: 2;                         /* above header bg, below overlays */
  pointer-events: none;               /* don't block clicks to nav/burger */
  max-width: min(780px, 88vw);        /* keep it tidy between logo & burger */
}

/* Let the text still select/copy if you care */
.site-header .hero-pill .tagline{ pointer-events: auto; }

/* Optional: on very narrow screens, shrink slightly so it stays centered */
@media (max-width: 480px){
  .site-header .hero-pill{ transform: translate(-50%, -50%) scale(.94); }
}

/* ===========================================================
   AHVA TRUE HEADER LAYOUT FOR THIS EXACT HTML
   =========================================================== */

#site-header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
height: 90px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75),
    rgba(5,5,10,0.55)
  );
  backdrop-filter: blur(14px) brightness(1.05);
  -webkit-backdrop-filter: blur(14px) brightness(1.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* The REAL container (not header-inner) */
#header-main {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* padding: 0.6rem 1.25rem; */
}

/* LOGO — pinned left */
#header-main .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* AUTH + JOIN cluster — centered */
#header-main .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  /* margin: 0 auto; */ /* centers block */
}

/* Hamburger — pinned right */
#header-main #menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.9rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;

  flex-shrink: 0;
  margin-left: auto;
}

/* icons inside header actions */
.header-actions img.ahva-nav__icon {
  width: 20px;
  height: 20px;
}

/* prevent buttons from growing too large */
.header-actions .action,
.header-actions .nav-join {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: #e9f1ff;
}

/* Mobile tighten-up */
@media (max-width: 768px) {
  #header-main {
    padding: 0.45rem 0.9rem;
  }

  .header-actions {
    gap: 0.6rem;
    transform: scale(0.92);
    transform-origin: center;
  }

  #menu-toggle {
    font-size: 1.7rem;
  }

      .ahva-hero-rest{
      color: white;
      margin-left: .15rem; 
      opacity: 1;
    }

    .hero-rest{
        opacity: 1;
    }

    .hero-letter-wrap{
      margin-right: -0.15em;
    }
}


/* ===========================================================
   AHVA HEADER — FINAL OVERRIDE
   Forces correct layout regardless of theme/grid leftovers
   =========================================================== */

/* Stop all old header CSS from interfering */
#site-header{
  all: unset;
  display: revert;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  height: 125px;
  display: flex;
}

/* Re-style from scratch, clean and controlled */
#site-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000 !important;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75),
    rgba(5,5,10,0.55)
  ) !important;

  backdrop-filter: blur(14px) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(14px) brightness(1.05) !important;

  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* REAL container — NOT header-inner */
#header-main {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

}

/* LOGO left */
#header-main .brand {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}


/* Icons */
#header-main img.ahva-nav__icon {
  width: 20px !important;
  height: 20px !important;
}

/* HAMBURGER pinned right */
#menu-toggle,
#header-main #menu-toggle,
#site-header #menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;

  margin-left: auto !important;
  font-size: 2rem !important;
  cursor: pointer !important;
  color: #fff !important;
  background: none !important;
  border: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
  #header-main {
    padding: 0.45rem 0.9rem !important;
  }

  .header-actions {
    gap: 0.6rem !important;
    transform: scale(0.9) !important;
  }

  #menu-toggle {
    font-size: 1.7rem !important;
  }

      .ahva-hero-rest{
      color: white;
      margin-left: .15rem; 
      opacity: 1;
    }

    .hero-rest{
        opacity: 1;
    }

    .hero-letter-wrap{
      margin-right: -0.15em;
    }
}

/* ============================
   LOGIN + ACCOUNT: MATCH JOIN
   ============================ */

.header-actions .action {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  padding: 0 .25rem;
  text-decoration: none !important;
  color: #d9e6ff !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  position: relative;
  line-height: 1;
}

/* Little underline/glow like Join button */
.header-actions .action::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.75px;
  background: rgba(255,255,255,.45);
  border-radius: 2px;
  opacity: .65;
  transition: opacity .2s, transform .25s ease;
  transform: scaleX(.85);
  transform-origin: center;
}

/* Hover = brighten underline */
.header-actions .action:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Icons match Join icons */
.header-actions .action img.ahva-nav__icon {
  width: 18px;
  height: 18px;
  opacity: .9;
  transition: opacity .2s;
}

.header-actions .action:hover img.ahva-nav__icon {
  opacity: 1;
}


/* Make sure the nav overlay ALWAYS wins over the hero background */
.ahva-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 999 !important; /* above everything */
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.ahva-nav__overlay.ahva-nav__overlay--active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer MUST beat everything except overlay */
.ahva-nav__drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999991 !important;
}


/* ============================================================
   AHVA NAV — BLACK GLASS DRAWER (INTENTIONAL VERSION)
   ============================================================ */

.ahva-nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 999991 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.17, 0.84, 0.44, 1);

  /* BLACK — BUT GLASS, NOT FLAT */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(900rem) saturate(160%);
  -webkit-backdrop-filter: blur(900rem) saturate(160%);
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
}

.ahva-nav__drawer.open {
  transform: translateX(0);
}

/* ============================================================
   OVERLAY — TINTED BUT NOT FULL BLACK
   ============================================================ */

.ahva-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 999991 !important;

  background: rgba(0, 0, 0, 0.55); /* darker than before, fits the black theme */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.ahva-nav__overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   MENU ITEMS — KEEP WHITE, CLEAN, MODERN
   ============================================================ */

.ahva-nav__link,
.ahva-nav__trigger {
  color: #f0f0f0 !important;
}

.ahva-nav__icon {
  filter: brightness(1.4); /* keeps icons readable on dark glass */
}

.ahva-nav__arrow svg {
  stroke: #fff !important;
  opacity: 0.85;
}

.ahva-nav__item--open > .ahva-nav__trigger .ahva-nav__arrow svg {
  transform: rotate(90deg);
  opacity: 1;
}


/* Tuned per-letter (example values you'll adjust manually) */
#logo-A  {top: 80.25px;left: -24px;width: 17px;height: 19px;opacity: 0}
#logo-H  {top: 80.25px;left: -24px; width: 17px; height: 19px; opacity: 0}
#logo-V  {top: 80.25px;left: -24px; width: 17px; height: 19px; opacity: 0}
#logo-A2 {top: 80.25px;left: -24px; width: 17px; height: 19px; opacity: 0}

/* Animation landing pads for hero letters */
.site-logo {
  position: relative;
}

.logo-letter-target {
  position: absolute;
  pointer-events: none;
  opacity: 0;       /* stay invisible */
  width: 17px;
  height: 19px;
}


/* ============================================================
   AHVA HEADER — FIXED STACKING CONTEXT + CLEAN LAYOUT
   ============================================================ */

/* Never create a stacking context unless necessary */
#site-header {
  position: sticky;
  z-index: 999999 !important;

  width: 100%;
  height: 82px;
  display: flex;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75),
    rgba(5,5,10,0.55)
  ) !important;

  backdrop-filter: blur(14px) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(14px) brightness(1.05) !important;

  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

#header-main {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo container must be relative so landing pads can be absolute */
#header-main .brand {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}




/* ============================================================
   HERO LETTERS — ALWAYS ABOVE HEADER, NEVER BEHIND IT
   ============================================================ */

.ahva-hero-letter,
.hero-letter-wrap {
  position: fixed ;
  z-index: 999999999 ;
  pointer-events: none ;
}

.ahva-hero,
.hero-main,
.hero-inner {
  position: relative;
  z-index: 500;
}

/* The hero background stays behind everything */
.hero-main::before {
  z-index: 0;
}

.ahva-hero,
.ahva-hero .hero-inner,
.ahva-hero .hero-title {
  position: relative;
}

/* Ensure flying hero letters render above the header logo */
.ahva-hero-letter {
  position: fixed ;
  z-index: 999999 ;
  pointer-events: none;
}

.ahva-header,
.header-inner,
.header-logo img {
  position: relative;
  z-index: 9;
}

.ahva-hero-letter {
  z-index: 999999;
}

/* ============================================================
   HERO LETTER OUTLINE FIX — OUTER STROKE ONLY, NO INNER LINES
   ============================================================ */

/* REAL LETTER: normal gradient fill only (no strokes) */
/* ============================================================
   HERO LETTER OUTLINE – outer only, no inner lines
   ============================================================ */

/* real gradient letters */
.ahva-hero-letter {
  position: relative;
  font-weight: 900;

  /* keep your gradient from fg-strong-* */
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  /* kill any previous strokes */
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  paint-order: normal;

  /* fake the outline with multiple shadows */
  text-shadow:
    -0.18px  0   #000,
     0.18px  0   #000,
     0   -0.18px #000,
     0    0.18px #000,
    -0.18px -0.18px #000,
     0.18px -0.18px #000,
    -0.18px  0.18px #000,
     0.18px  0.18px #000;
}

/* hard-kill any old pseudo outline */
.ahva-hero-letter::before {
  content: none !important;
}

/* ============================================================
   AHVA HERO LETTER – outer-only outline, gradients preserved
   ============================================================ */

.ahva-hero-letter {
  position: relative;
  font-weight: 900;

  
  /* KEEP YOUR GRADIENT (this is why it turned black before) */
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  /* REMOVE ALL STROKES AND SHADOWS FROM BEFORE */
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  text-shadow: none !important;
  paint-order: normal !important;

  /* OUTLINE USING DROP-SHADOW STACK (outer only) */
  filter:
    drop-shadow(0px 0px 0.18px #000)
    drop-shadow(0.18px 0px 0.18px #000)
    drop-shadow(-0.18px 0px 0.18px #000)
    drop-shadow(0px 0.18px 0.18px #000)
    drop-shadow(0px -0.18px 0.18px #000);
}

/* NUKE ANY OLD PSEUDO ELEMENT */
.ahva-hero-letter::before {
  content: none !important;
}


#header-logo-container {
  position: relative;
  width: 84px;   /* your chosen logo width */
  height: auto;
  display: block;
}

#header-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* This overlay holds the colored letters */
#header-logo-letters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: repeat(4, 1fr); /* four letters A H V A */
  align-items: center;
  justify-items: center;

  pointer-events: none; /* letters don't block clicks */
}
#ahva-logo-letters {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  /* FINAL PERFECT BASELINE POSITION */
  bottom: 12%;    

  width: 62%;     /* matches original letter row width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.logo-letter {
  font-size: 18px;           /* matches 102px-render scale */
  font-weight: 900;
  line-height: 1;
  position: relative;

  /* color comes from your gradient classes */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* perfect outer stroke ONLY */
  -webkit-text-stroke: 0.18px #000;
}

/* Base hero state */
.hero-main {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  padding-bottom: 0;
  margin-bottom: 0;
  z-index: 1;
  transition: max-height 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* When JS decides the hero should collapse */
body.hero-collapsing .hero-main {
  min-height: 0;      /* kill the 100vh floor */
  max-height: 0;      /* animate this down */
  overflow: hidden;   /* hide contents while it shrinks */
}

.hero-quote__text {
  /* Tone down the “shout” and kill the faux italics */
  margin: 0;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: #f1f5f9;                /* slate-100 */
  font-size: clamp(28px, 4vw, 40px);
  padding: 35px;
}




/* Image always fills container */
#ahva-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Colored letter overlay — ALWAYS locked to logo bounds */
#ahva-logo-letters {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  /* This width % EXACTLY matched your real-letter spacing */
  width: 62%;
  left: 50%;
  transform: translateX(-50%);

  /* Align vertically with the physical printed letters on your PNG */
  bottom: 12%;

  pointer-events: none;
}

/* Each letter scales WITH the logo */
#ahva-logo-letters .logo-letter {
  font-weight: 900;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Outer-only outline */
  -webkit-text-stroke: 0.18px #000;
}

/* This fixes the weird inner-line artifacts on WebKit */
#ahva-logo-letters .logo-letter::before {
  content: none !important;
}

/* ============================================
   AHVA LOGO — PROPERLY TUNED VERSION (B+)
   Pixel-perfect overlay of the colored AHVA letters
   ============================================ */

#ahva-logo {
  position: relative;
  width: clamp(78px, 9vw, 118px);
  display: inline-block;
}

#ahva-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

#ahva-logo-letters {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 50%;
  left: 20%;
  transform: translateX(40.8%);

  /* LOWERED SIGNIFICANTLY */
  bottom: 10.5%;

  pointer-events: none;
}

#ahva-logo-letters .logo-letter {
  font-weight: 900;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1;

  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  /* outer-only stroke */
  -webkit-text-stroke: 0.18px #000;
  text-shadow: none;
}

#ahva-logo-letters .logo-letter::before {
  content: none !important;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
}

#hero-logo-default,
#hero-logo-final {
  width: 100%;
  height: auto;
  display: block;
}

#hero-logo-final {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease-out;
}

.ahva-logo-letters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo-letter {
  position: absolute;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 48px);
  transition: transform .5s ease-out, opacity .3s ease-out;
}

#hero-logo-default img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease-in-out;
  opacity: 1;
  pointer-events: none;
}

#hero-logo-final img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

/* Smooth crossfade on logo */
#hero-logo-default.visible,
#hero-logo-final.visible {
  opacity: 1;
}

/* LOGO left */
#header-main .brand {
  display: -webkit-inline-box !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* AUTH / LOGIN / JOIN center */
#header-main .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin: 0 auto !important;
  flex-shrink: 1 !important;
  white-space: nowrap !important;
}

/* Header buttons */
#header-main .header-actions a,
#header-main .header-actions .action,
#header-main .header-actions .nav-join {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  color: #e9f1ff !important;
}

/* Icons */
#header-main img.ahva-nav__icon {
  width: 18px !important;
  height: 18px !important;
}

/* ============================================================
   AHVA HEADER – CLEAN FINAL VERSION
   Keeps logo aligned, actions centered, hamburger stable
   ============================================================ */

/* --- GLOBAL HEADER CONTAINER --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: clamp(92px, 12vh, 112px); /* stable vertical space */

  z-index: 5000 !important;

  display: flex;
  justify-content: center;
  box-sizing: border-box;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75),
    rgba(5,5,10,0.55)
  );

  backdrop-filter: blur(14px) brightness(1.05);
  -webkit-backdrop-filter: blur(14px) brightness(1.05);

  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* --- INNER FLEX WRAPPER --- */
#header-main {
  width: 100%;
  max-width: 1400px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  /* padding: 0 1.25rem; */
  height: 65%;  /* this ensures everything centers correctly */
  z-index: 10001;
}

/* --- BRAND / LOGO --- */
#header-main .brand {
  display: contents !important;
  align-items: center !important;
  position: absolute;
  flex-shrink: 0;
}

/* Logo image should scale with header */
#header-main .header-logo img {
  width:102px;
  height: auto;
  /* z-index: 10000; */
}

/* ============================================================
   HEADER ACTIONS (Login | Account | Join)
   No more drifting, wrapping, or vertical misalignment
   ============================================================ */

#site-header .header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: left !important;
  gap: 0.25rem !important;
  height: 85% !important;
  /* margin: 0 auto !important; */
  white-space: nowrap !important;
  padding-top: 0;
}

.header-actions a,
.header-actions .action,
.header-actions .nav-join {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;

  text-decoration: none !important;
  color: #e9f1ff !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;

  line-height: 1.2 !important; /* fixes vertical offset */
  transform: scale(0.85, 0.85); /* x, y */
}

/* Icons stay visually aligned */
.header-actions img.ahva-nav__icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  transform: translateY(-0.5px); /* micro-alignment fix */
}

/* JOIN pill uses same vertical alignment now */
.header-actions .nav-join {
  padding: 0.15rem 0.4rem !important;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

#menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin-left: auto !important;
  flex-shrink: 0 !important;

  font-size: 2rem !important;
  color: white !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
}

/* ============================================================
   MOBILE TWEAKS
   ============================================================ */

@media (max-width: 768px) {
  #header-main {
    padding: 0.45rem 0.9rem !important;
  }

  .header-actions {
    transform: scale(0.80);
    transform-origin: center;
    gap: 0.25rem !important;
    display: inline-grid;
  }

  #menu-toggle {
    font-size: 1.7rem !important;
  }

      .ahva-hero-rest{
      color: white;
      margin-left: .15rem; 
      opacity: 1;
    }

    .hero-rest{
        opacity: 1;
    }

    .hero-letter-wrap{
      margin-right: -0.15em;
    }
}

/* -----------------------------------------------------------
   AHVA TILE MENU
----------------------------------------------------------- */

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 18px;
  padding: 7px;
}

.nav-tile.parent-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform .18s ease, background .2s ease, border .2s ease;
  text-align: center;
}

.nav-tile.parent-tile:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

.tile-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

/* Container: controls size of the whole logo */
#ahva-logo {
  position: relative;
  width: clamp(78px, 9vw, 102px);
  display: inline-block;
  width: 102px;
  height: auto;
  margin-top: 100px;
}

/* Inner wrapper: positioning context for both PNGs + letters */
.hero-logo-wrap {
  position: relative;
  width: 100%;
  height: auto;
}

/* BOTH logo images share the exact same geometry */
#hero-logo-default,
#hero-logo-final {
  position: absolute;
  inset: 0;           /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: auto;
  display: block;
}

/* Start with white version visible */
#hero-logo-default {
  opacity: 1;
  pointer-events: none;
}

/* Colored version stacked exactly on top, hidden initially */
#hero-logo-final {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

/* When JS swaps logos */
#hero-logo-final.visible {
  opacity: 1;
}
#hero-logo-default.visible {
  opacity: 1; /* if you ever reuse this */
}

#ahva-logo {
  position: relative;
  top: -55px;   /* moves the entire logo UP */
}

#secInsights{
  padding-top: 150px;
}

.header-actions{
  opacity: 1;
}

#site-header {
  height: 90px !important;
}

/* parent tile with dropdown */
.nav-tile.parent-tile.has-children {
  position: relative;
}

/* the subtile tray (hidden until activated) */
.subtile-group {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background: rgba(0,0,0,1);
  /* backdrop-filter: blur(12px); */
  border-radius: 16px;
  padding: 16px;
  z-index: 999999;
}

/* each subtile */
.subtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;

  padding: 14px 6px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;

  transition: background .25s, transform .18s;
}

.subtile:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
}

/* Prevents page click when submenu is open */
body.menu-lock {
  overflow: hidden;
}

/* Dim ONLY siblings of the active parent-tile */
/* .nav-grid.dim-siblings .parent-tile {
  opacity: 1;
  filter: blur(1px);
  pointer-events: none;
} */

/* Active tile stays bright */
.nav-grid.dim-siblings .parent-tile.active {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

/* Subtiles stay bright */
.subtile {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  z-index: 999999;
}

.nav-tile.parent-tile.active {
  z-index: 999998;
}

.nav-tile.parent-tile.dim {
    opacity: 0.25;
    filter: blur(1px);
}

.subtile-group {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  transition: opacity .25s ease;
}

.subtile-group.open {
    display: block;

}

.nav-tiles,
.nav-inner,
.nav {
  overflow: visible;
}


/* Full hero title container */
.ahva-hero.hero-title {
  font-size: calc(4.0rem * var(--hero-font-scale));
  line-height: 0.88;
}

/* Each hero letter (A, H, V, A) */
.ahva-hero-letter {
  font-size: 1em;  /* inherits from .hero-title */
  margin-right: -0.08em;
}

/* The plain words ("labama", "emp", "ape", etc.) */
.ahva-hero-rest {
  font-size: 0.52em;           /* sets ratio between big letter and following word */
  margin-left: 0.08em;
}

.hero-letter-wrap {
  display: inline-block;
  margin-right: 0;              
}

/* Line spacing across the stacked lines */
.ahva-hero.hero-title br {
  line-height: var(--hero-line-gap);
}

/* Base hero title */
.ahva-hero.hero-title {
  font-size: calc(4.0rem * var(--hero-font-scale));
  line-height: 0.88;
}

/* Big animated letters */
.ahva-hero-letter {
  font-size: .75em;
  margin-right: -0.08em;
}

/* The plain words (labama, emp, etc.) */
.ahva-hero-rest {
  color: #fff;
  font-size: .75em;
  margin-left: 0.08em;
}

/* Line spacing */
.ahva-hero.hero-title br {
  line-height: var(--hero-line-gap);
}

.nav-tile.parent-tile.has-children {
  position: relative;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.nav-tile.parent-tile.dim {
  opacity: 0.35;
  filter: saturate(0.6) brightness(0.85);
  transition: opacity 160ms ease, filter 160ms ease;
}

.ahva-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 999991;
  pointer-events: none;
}

.ahva-nav__overlay.active {
  pointer-events: auto;
}

/* NAV HEADER CLOSE BUTTON */
.nav-section {
  position: relative;
}

.nav-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 50%;

  background: #c62828; /* solid red */
  color: #fff;

  font-size: 20px;
  line-height: 1;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.nav-close-btn:hover {
  background: #b71c1c;
}

.nav-close-btn:focus {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}


/* ==========================
   BREAKPOINTS
   ========================== */

/* 1600px and up (prevent massive billboard text) */
@media (min-width: 1600px) {
  :root {
    --hero-font-scale: 1.7;
    --hero-line-gap: 0.20em;
  }

  .ahva-hero-rest{
    padding-left: 3rem;
  }

  .header-session.header-actions{
    padding-top: -4rem;
  }

  #menu-toggle{
    padding-top: 3rem;
  }
}

/* Standard desktops / laptops */
@media (min-width: 1200px) and (max-width: 1599px) {
  :root {
    --hero-font-scale: 1.5;
    --hero-line-gap: 0.22em;
  }

  .ahva-hero-rest{
    padding-left: 3rem;
  }

#site-header .header-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: left !important;
  gap: 0.25rem !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  margin-left: 9rem;
  margin-top: 0 !important;
  margin-bottom: auto !important;
}

.header-label{padding-top: 0.5rem}

  #menu-toggle{
    padding-top: 1rem;
  }

  .hero-main .hero-inner {
  position: absolute;
  top: 50%;
  left: 12vw;
  transform: translateY(20%);
  max-width: min(90vw, 900px);
  z-index: 10;
}
}

/* Smaller laptops and large tablets */
@media (min-width: 900px) and (max-width: 1199px) {
  :root {
    --hero-font-scale: 0.82;
    --hero-line-gap: 0.25em;
  }

  .ahva-hero-rest{ padding-left: 1.7rem; color: #fff; }
  .header-session.header-actions{

  }



}

/* Tablets (portrait + landscape) */
@media (min-width: 600px) and (max-width: 899px) {
  :root {
    --hero-font-scale: 0.63;
    --hero-line-gap: 0.28em;
  }

  .ahva-hero-rest{
    padding-left: 1.3rem;
  }
}

/* Mobile */
@media (max-width: 599px) {
  :root {
    --hero-font-scale: 1;
    --hero-line-gap: 0.32em;
  }

  .ahva-hero-rest {
    font-size: 0.65em;
    padding-left: 3rem;
  }

  .ahva-pill.insights-pill{
    border-radius: 16px;
  }

  .header-session.header-actions{display: inline-grid !important;gap: 0.25px;transform: scale(.85);display: none !important;}

.hero-main .hero-inner {
  position: absolute;
  top: 50%;
  left: -7vw;
  transform: translateY(70%);
  max-width: min(90vw, 900px);
  z-index: 10;
}

}

/* Make the NAVIGATION label row span the full drawer width */
.nav-grid .nav-section{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 2px;
}

/* Keep icon + text aligned */
.nav-grid .nav-label-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-grid .nav-label{
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 1;
}

.header-label{
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 1;
  color: white;
  padding-left: clamp(0, 2rem, 4rem);
  font-size: 1.5rem;
}

/* Drawer must scroll so “missing” tiles can actually be reached */
.ahva-nav__drawer{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px; /* keeps last row from kissing the bottom edge */
}

.nav-tile.parent-tile.dim,
.subtile.dim {
  opacity: 0.35;
  pointer-events: none;
}

.nav-tile.parent-tile.open,
.subtile-group.open .subtile {
  opacity: 1;
  pointer-events: auto;
}

/* NAV GRID BASELINE */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

.nav-tile.parent-tile {
  position: relative;
  width: 100%;
}

.subtile-group {
  display: none;
  grid-column: span 1;          /* same column as parent */
  width: 100%;
  margin-top: -6px;             /* visually snug under parent */
}

.subtile-group.open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.subtile {
  width: 100%;
  border-radius: 16px;
}

.nav-tile.parent-tile.open {
  opacity: 1 !important;
}

.subtile-group.open .subtile {
  opacity: 1 !important;
}

.subtile-group {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  z-index: 999999;
}

.subtile-group.open {
  display: block;
}


.subtile.dim {
  opacity: 1;
}

.nav-tile.parent-tile.has-children {
  position: relative;
}

.nav-tile.parent-tile.has-children {
  position: relative;
}

.subtile-group {
  display: none;
  margin-top: 12px;
}

.subtile-group .subtile {
  width: 100%;
}

.nav-tile.parent-tile.has-children.open .subtile-group {
  display: inline-flex;
}

/* dim rules */
.nav-tile.parent-tile.dim { opacity: 1; }
.nav-tile.parent-tile.open { opacity: 1; }

.nav-tile.parent-tile.open {
  opacity: 1;
}

.nav-tile.parent-tile.open .subtile-group,
.nav-tile.parent-tile.open .subtile {
  opacity: 1;
}

/* Ensure drawer is the stacking root */
#ahva-nav-list {
  position: fixed; /* or whatever you use */
  z-index: 9990;
}

/* Tiles are positioned so z-index works */
#ahva-nav-list .nav-tile {
  position: relative;
  z-index: 1;
}

/* Dimmed tiles stay behind */
#ahva-nav-list .nav-tile.dim {
  z-index: 1;
}

/* The active/open parent comes forward */
#ahva-nav-list .nav-tile.open {
  z-index: 10;
  opacity: 1;
}

/* The submenu group is above dimmed tiles */
#ahva-nav-list .subtile-group.open {
  position: absolute;     /* or fixed if you’re anchoring to viewport */
  z-index: 20;
  opacity: 1;
}

/* Subtiles themselves stay fully visible */
#ahva-nav-list .subtile-group.open .subtile {
  position: relative;
  z-index: 21;
  opacity: 1;
}

#ahva-nav-list .nav-tile.parent-tile.has-children {
  position: relative; /* makes submenu absolute anchor to tile */
}

/* tile must be an anchor */
#ahva-nav-list .nav-tile.has-children{
  position: relative;
}

/* hidden by default */
#ahva-nav-list .subtile-group{
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;      /* above dimmed tiles */
}

/* show when open */
#ahva-nav-list .nav-tile.open > .subtile-group{
  display: block;
}

/* keep active parent + its submenu fully visible */
#ahva-nav-list .nav-tile.open{
  opacity: 1 !important;
  z-index: 40;
}

/* dim everything else */
#ahva-nav-list .nav-tile.dim{
  opacity: 0.4;
}

/* parent dim to 60% when open (your requirement) */
#ahva-nav-list .nav-tile.open{
  opacity: 0.6;
}
#ahva-nav-list .nav-tile.open > .subtile-group,
#ahva-nav-list .nav-tile.open > .subtile-group .subtile{
  opacity: 1 !important;
}

/* prevent clipping */
#ahva-nav-list,
#ahva-nav-list .nav-grid{
  overflow: visible;
}

.donate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  margin-right: 12px;

  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(135deg, #4da2ff, #05b6e4);
  border-radius: 999px;

  box-shadow:
    0 0 0 rgba(255, 77, 77, 0.6),
    0 0 18px rgba(255, 77, 77, 0.35);

  text-decoration: none;
  cursor: pointer;
transform: translateY(1.6rem);

  animation: donate-pulse 2.5s infinite;
}

.donate-cta:hover {
  box-shadow:
    0 0 0 rgba(4, 227, 247, 0.8),
    0 0 28px rgba(239, 245, 248, 0.6);
}

@keyframes donate-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 196, 250, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(2, 85, 173, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 31, 57, 0); }
}

  .subtile-group{
    display: inline-flex;
    gap: 2rem;
    
  }

  .subtile{
    width: unset;
  }

  .donate-tile {
  background: linear-gradient(135deg, #0447ef, #86acf2);
  color: #fff;
}

/* Parent tile anchors submenu */
.nav-tile.has-children {
  position: relative;
}

/* Subtile group sits under parent */
.subtile-group {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;          /* inherits parent width */
  box-sizing: border-box;
}

/* Show when open */
.nav-tile.open > .subtile-group {
  display: block;
}

/* Subtiles scale to container */
.subtile {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   Global page background (home + all partials)
========================================================= */

#page-content {
  animation: pageFade 0.45s ease both;
  padding-top: 2;
  /* padding-top: 125px !important; */
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-controls{
  padding-top: 4rem;
}

.hero-quote{
  margin: 8px 1.5rem
}

/* ============================================================
   STRONG GRADIENT LETTER INK (used by hero + logo letters)
   These classes MUST exist or letters become transparent.
   ============================================================ */
.fg-strong-blu,
.fg-strong-grn,
.fg-strong-gryblu,
.fg-strong-red{
  display:inline-block;
  font-weight:900;
  position:relative;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

.fg-strong-blu{
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0) 45%),
    linear-gradient(to bottom, #46C8EA, #1a7ea6);
}

.fg-strong-grn{
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0) 45%),
    linear-gradient(to bottom, #A4D75B, #6b9d2c);
}

.fg-strong-gryblu{
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0) 45%),
    linear-gradient(to bottom, #FEAB39, #c97400);
}

/* Optional red variant (not currently used by core hero letters) */
.fg-strong-red{
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0) 45%),
    linear-gradient(to bottom, #ff5a6b, #b31323);
}

/* ===== MENU LABEL (TEXT) ===== */

/* ===== MENU LABEL (CLEAN, CRISP) ===== */

.header-label{
  font-weight: 450;
  letter-spacing: 0.03em;
  background: linear-gradient(
    90deg,
    #46C8EA 0%,
    #A4D75B 35%,
    #FEAB39 70%,
    #46C8EA 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  /* color: #ffffff00; */

  /* primary outline */
  -webkit-text-stroke: 0.25px #000;
  paint-order: stroke fill;
}

/* ===== FALLBACK ONLY WHEN STROKE IS NOT SUPPORTED ===== */

@supports not (-webkit-text-stroke: .25px black){
  .header-label{
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
  }
}


/* ===== HAMBURGER OUTLINE ===== */

.nav-toggle .navlbl-line{
  stroke: #000;
  stroke-width: .25;
  transition: stroke 0.25s ease;
}

/* ===== HOVER: OUTLINE TURNS WHITE ===== */

.nav-toggle:hover .navlbl-line{
  stroke: #fff;
}

.header-label{
  padding-top: 20px;
  padding-left: 2rem;
  display: none;
}

.hamburger{
  padding-top: .25em;
}
