/* ===================================================== */
/* HEADER */
/* ===================================================== */

.site-header {
  background: var(--color-primary);
  position: relative;
  z-index: 1000;
}

.header-background {
  position: relative;
  z-index: 999;
  background: var(--color-primary);

  /* softer, more premium shadow */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-1) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== */
/* LOGO */
/* ===================== */

.header-logo-img {
  display: block;
  max-height: 32px;
  width: auto;
}

@media (max-width: 768px) {
  .header-logo-img {
    max-height: 26px;
  }
}

/* ===================== */
/* NAVIGATION */
/* ===================== */

.header-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.header-nav .nav-menu li a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav .nav-menu li a:hover {
  color: var(--yellow-500);
}

/* ===================== */
/* INSIDER CTA */
/* ===================== */

.header-cta {
  background: var(--color-info);
  display: flex;
  justify-content: center;
  align-items: center;
}

.insider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  padding: var(--space-1);

  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: white;

  position: relative;
  background: linear-gradient(180deg, var(--sky-500), 
color-mix(in srgb, var(--sky-500) 85%, black));
  transition: background 0.2s ease;
}

.insider-link:hover {
  background: var(--yellow-500);
}

/* underline sweep */
.insider-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--yellow-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* ===================== */
/* MOBILE TOGGLE */
/* ===================== */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: white;
}

/* ===================================================== */
/* MOBILE NAV DRAWER (Premium) */
/* ===================================================== */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  /* darker + slightly softer */
  background: rgba(0, 0, 0, 0.62);
  z-index: 9998;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(88vw, 380px);

  z-index: 9999;

  /* elevated panel */
  background: #e01e45c9;
  backdrop-filter: blur(14px);

  transform: translateX(102%);
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1);

  display: flex;
  flex-direction: column;

  padding: var(--space-4);
  gap: var(--space-4);

  /* premium edge accent */
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

/* subtle salsa accent strip */
/* .mobile-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--yellow-500),
    var(--color-info)
  );
  opacity: 0.9;
} */

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Top row */
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);

  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-nav__title {
  font-family: var(--font-heading);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Close button */
.mobile-nav__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease;
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.mobile-nav__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: white;
  transform-origin: center;
}

.mobile-nav__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Menu list */
.mobile-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Premium menu item */
.mobile-nav__menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 14px;
  border-radius: 14px;

  text-decoration: none;
  color: white;

  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.02rem;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.mobile-nav__menu li a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Current/active page highlight (WordPress adds these classes) */
.mobile-nav__menu li.current-menu-item > a,
.mobile-nav__menu li.current_page_item > a,
.mobile-nav__menu li.current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  position: relative;
}

/* Tiny right chevron for “premium nav” feel */
.mobile-nav__menu li a::after {
  content: "›";
  font-size: 1.2rem;
  opacity: 0.65;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-nav__menu li a:hover::after {
  transform: translateX(2px);
  opacity: 0.9;
}

/* Drawer CTA */
.mobile-nav__cta {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-nav__insider {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 16px;
  border-radius: 999px;

  background: var(--color-info);
  color: white;
  text-decoration: none;

  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, background 180ms ease;
}

.mobile-nav__insider:hover {
  background: var(--yellow-500);
  transform: translateY(-1px);
}

/* ===================================================== */
/* Stagger animation (applies only when drawer opens) */
/* ===================================================== */

.mobile-nav__menu li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.mobile-nav.is-open .mobile-nav__menu li {
  opacity: 1;
  transform: translateY(0);
}

/* stagger steps */
.mobile-nav.is-open .mobile-nav__menu li:nth-child(1) { transition-delay: 60ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(2) { transition-delay: 90ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(3) { transition-delay: 120ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(4) { transition-delay: 150ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(5) { transition-delay: 180ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(6) { transition-delay: 210ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(7) { transition-delay: 240ms; }
.mobile-nav.is-open .mobile-nav__menu li:nth-child(8) { transition-delay: 270ms; }

/* keep drawer hidden on desktop */
@media (min-width: 769px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }
}

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

@media (max-width: 1100px) {
  .header-nav .nav-menu {
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-2) var(--space-4);
  }
  .header-nav,.header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    order: 3;
  }
}
