.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800
}
@font-face {
  font-family: 'Norwester';
  src: url('/fonts/norwester.woff') format('woff');
  font-style: normal;
}

body {
  font-family: 'Norwester', sans-serif;
}
.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 120deg, var(--blue), var(--green), var(--gold));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

/* Base Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100px;
  transition: background 0.3s ease;
}

/* Container */
.navcontainer {
width: 100%;
    padding: 0rem 0rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}

/* Menu (desktop default) */
.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}



/* Links */
.nav-link {
  position: relative;
  font-family: "Norwester", sans-serif;
  font-size: 1rem;
  font-weight: 100;
  text-transform: uppercase;
  color: #0a0a0a;
  letter-spacing: .5px;
  transition: color .3s ease, transform .3s ease;
}

/* Hover Animation */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #1E90FF;
  /* Ocean Blue */
  transition: width .3s ease;
}

.nav-link:hover {
  color: #1E90FF;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Gold CTA Button */
.btn.gold {
  background: #ff7917;
  color: #0a0a0a;
  font-weight: 100;
  padding: 0rem 1rem;
      border-radius: 84px;
  box-shadow: 0 4px 12px rgba(244, 164, 96, .4);
  transition: transform .3s ease, box-shadow .3s ease;
 font-family: 'Norwester', sans-serif;
}

.btn.gold:hover {
  color: white !important;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(244, 164, 96, 1.6);
  background-color: black;
  font-family: 'Norwester', sans-serif;
}

.menu a {
  opacity: .9
}

.menu a:hover {
  opacity: 1
}

.mobile-hide {
  display: none
}

@media (min-width:880px) {
  .mobile-hide {
    display: flex
  }
}

/* Nav links */
nav ul li a {
  color: #f9fafb;
  /* light text */
  text-decoration: none;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #f59e0b;
  /* mustard on hover */
}

/* Active link style */
nav ul li a.active {
  color: #1e3a8a;
  /* dark blue text */
  font-weight: 600;
  border-bottom: 3px solid #1e3a8a;
  /* underline */
}

/* Navbar active state */
.nav-link.active {
  color: #094afc;
  /* dark blue */
  font-weight: 600;
  border-bottom: 3px solid #0044ff;
  /* underline */
}



.GetBookBtn {
  color: rgb(255, 255, 255);
  /* after scroll */
}


/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav {
    height: 80px;
    position: absolute !important;
  }


  .brand-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
  }
  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;

    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .menu.open {
    max-height: 500px;
    /* expands */
    opacity: 1;
  }

  .menu a {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
  }

  .btn.gold {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
   font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1rem;
    font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
  }

  .hamburger {
    font-size: 1.8rem;
  }
}
/* --- NAV ON TOP OF VIDEO (home only) --- */
.nav{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
}

/* Transparent while over hero/video */
.nav.nav--over-hero{
  background: transparent;
  box-shadow: none;
  border-bottom: 0;
}

/* Make links readable on video */
.nav.nav--over-hero .brand-title,
.nav.nav--over-hero .nav-link,
.nav.nav--over-hero .GetBookBtn{
  color: #e8eef6;
}



/* --- Mobile menu --- */
.hamburger{ display: none; cursor: pointer; font-size: 28px; line-height: 1; }
@media (max-width: 900px){
  .hamburger{ display: block; color: #fff; }
  .menu{ display: none; }
  .menu.open{
    display: flex;
            width: 25rem;
    position: absolute;
    top: 64px; right: 16px; left: 16px;
    background: rgba(8,19,28,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
            width: 21rem;
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    z-index: 1200;
  }
  .menu.open .nav-link{
    color: #e6edf7;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .menu.open .nav-link:hover{ background: rgba(255,255,255,.06); }
}
/* ===============================
   NAVBAR RESPONSIVE IMPROVEMENTS
   =============================== */

/* Base adjustments */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 1rem;
  z-index: 1000;
}

/* Logo & brand */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.brand img.nav-logo {
  height: 55px;
  width: 55px;
}
.brand-title {
  font-size: 1.5rem;
  color: white;
  font-weight: 100;
}


/* Menu (desktop default) */
.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all .3s ease;
}

/* Mobile menu styling */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10, 37, 64, 0.97);
    padding: 1.5rem;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .4s ease;
  }

  .menu.open {
    max-height: 500px;
    opacity: 1;
  }

  .menu a {
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: .75rem;
  }

  .btn.gold {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.1rem;
  }
  .hamburger {
    font-size: 1.6rem;
  }
  .menu a {
    font-size: 0.9rem;
  }
}
/* ===== Kill horizontal overflow & clamp rogue widths ===== */
html, body {
  overflow-x: hidden;           /* band-aid to hide any residual overflow */
}

/* Make sure core containers never exceed the viewport */
.container,
.container-meet,
.wrap {
  max-width: min(1200px, 92%);
  margin-inline: auto;
}

/* Any wide grids/rows should never overflow */
.achievements-grid,
.genz-list,
.principles,
.connect-grid,
.footer-grid,
.footer-bottom,
.pete-container,
.timeline,
.NewsLettercontainer {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* HERO (Meet Pete D) – remove hard width from wrapper if present */
.Meethero > div {
  width: auto !important;
  margin: 0 auto !important;
}

/* Footer: remove negative margins that push content outside the viewport */
.site-footer .footer-brand,
footer .footer-brand {
  margin: 0 !important;
}

/* Footer bottom bar: avoid fixed widths that overflow */
footer .footer-bottom {
  width: 100% !important;
}

/* Avoid 100vw traps (if used anywhere); prefer 100% */
[class*="fullwidth"],
.nav,
header,
footer,
section {
  max-width: 100%;
}

/* If any element is using 100vw, force it to respect the viewport */
*[style*="100vw"] {
  width: 100% !important;
  max-width: 100% !important;
}
/* ====== NAV LINK HOVER: lift + underline slide ====== */
.nav-link{
  position: relative;
  transform: translateY(0);
  transition: transform .25s ease, color .25s ease;
}
.nav-link::after{
  content:"";
  position:absolute; left: 8px; right: 8px; bottom:-6px;
  height: 2px;
  background: linear-gradient(90deg, #1E90FF, #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  border-radius: 2px;
}
.nav-link:hover{
  transform: translateY(-2px);
  color:#1E90FF;
}
.nav-link:hover::after{ transform: scaleX(1); }

/* ====== CTA BUTTON: gentle shimmer + pulse on hover ====== */

.btn.gold::after{
  content:"";
  position:absolute; inset:-40% -60%;
  background: radial-gradient(30% 60% at -10% 50%, rgba(255,255,255,.35), transparent 60%);
  transform: translateX(-40%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn.gold:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,121,23,.5);
}
.btn.gold:hover::after{ transform: translateX(60%); }

/* ====== HAMBURGER (3 bars → X morph) ====== */
.hamburger{
  display: none;             /* shown via media query below */
  width: 36px; height: 28px;
  position: relative;
  border: 0; background: transparent;
  padding: 0; margin: 0;
  cursor: pointer;
}
.hamburger span{
  position: absolute; left: 0; right: 0;
  height: 3px; border-radius: 3px; background: #fff;
  transform-origin: center;
  transition: transform .3s ease, opacity .2s ease, top .3s ease, background .3s ease;
}
.hamburger span:nth-child(1){ top: 4px; }
.hamburger span:nth-child(2){ top: 12.5px; }
.hamburger span:nth-child(3){ top: 21px; }

/* On dark-on-light switch after scroll */
.nav.scrolled .hamburger span{ background: #0b0b0b; }

/* Morph to X */
.hamburger.is-active span:nth-child(1){ top: 12.5px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2){ opacity: 0; transform: translateX(8px); }
.hamburger.is-active span:nth-child(3){ top: 12.5px; transform: rotate(-45deg); }

/* Show hamburger on mobile */
@media (max-width: 900px){
  .hamburger{ display: inline-block; }
}

/* ====== MOBILE MENU OPEN ANIMATION ====== */
.menu{
  /* existing desktop styles stay; we animate in mobile state */
}
@media (max-width: 900px){
  .menu{
    transform-origin: top right;
    transform: scale(.96) translateY(-8px);
    opacity: 0;
    backdrop-filter: saturate(120%) blur(8px);
  }
  .menu.open{
    display: flex;
    animation: menuEnter .32s cubic-bezier(.2,.8,.2,1) forwards;
  }

  /* Stagger links on open */
  .menu a, .menu .btn{
    opacity: 0; transform: translateY(6px);
  }
  .menu.open .stagger-in{
    animation: itemRise .35s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(40ms * var(--stagger-i, 0));
  }
}

@keyframes menuEnter{
  to{ transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes itemRise{
  to{ transform: none; opacity: 1; }
}

/* ====== GLASSY MOBILE PANEL LOOK (nice on gradients) ====== */
@media (max-width: 900px){
  .menu.open{
            z-index: 1;
        background: rgb(0 124 247 / 0%);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 16px;
        box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  }
  .menu.open .nav-link{
    color: #e6edf7;
  }
  .menu.open .nav-link:hover{
    background: rgba(255,255,255,.06);
  }
}
/* --- base tokens --- */
.nav{
  --nav-fg: #ffffff;                    /* on hero */
}

/* text color flip after hero (keep this behavior) */
body.past-hero .nav{ --nav-fg: #0a0a0a; }

/* remove background + blur everywhere */
.nav, header nav{
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* nav typography: Norwester @ 400 only */
.nav, .nav *{
  font-family: 'Norwester', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 400 !important;          /* remove bold look */
  font-synthesis-weight: none;          /* don't fake bold */
  color: var(--nav-fg) !important;
}

/* hamburger bars follow text color */
.hamburger span{ background: var(--nav-fg); }

/* ----- burger: white card when open ----- */
.menu{ 
  /* your normal layout styles here */
  transition: background-color .2s ease, box-shadow .2s ease, border-radius .2s ease;
  z-index: 1000;
}
body.menu-open .nav .menu{
  background: #ffffff;                  /* white dropdown card */
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
/* make links readable on white */
body.menu-open .nav .menu a,
body.menu-open .nav .menu button{ color:#0a0a0a !important; }

/* desktop keeps your inline menu transparent */
@media (min-width: 1024px){
  body.menu-open .nav .menu{
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}
