/* Global Shared Navbar Styling */

/* Google Fonts Import for Bebas Neue and DM Sans if not already present */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Color Variables - Fallbacks mapped to Brand Colors */
:root {
  --nav-pink: #b52775;
  --nav-coral: #f66b52;
  --nav-gold: #d6ad60;
  --nav-navy: #2c3e91;
  --nav-blush: #f7e4d2;
  --nav-dark: #0c0c18;
  --nav-white: #ffffff;
}

/* Base body spacing offsets */
body.global-navbar-active {
  padding-top: 70px !important;
}

/* On landing pages (like Unstuck) with multiple stacked headers, handle offset styling explicitly */
body.global-navbar-active:has(.landing-page) {
  padding-top: 0 !important;
}

/* Base resets for navbar to ensure isolated display */
.global-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 173, 96, 0.2);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s ease;
}

.global-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Logo */
.global-nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--nav-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.global-nav-brand:hover {
  opacity: 0.9;
}

.global-nav-brand .line-coral {
  color: var(--nav-coral);
}

.global-nav-brand .line-pink {
  color: var(--nav-pink);
}

/* Desktop Links */
.global-desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nav-blush);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.global-nav-link:hover {
  color: var(--nav-gold);
}

/* CTA Button */
.global-nav-cta {
  background: var(--nav-pink);
  color: var(--nav-white);
  padding: 10px 26px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.global-nav-cta:hover {
  background: var(--nav-coral);
  box-shadow: 0 4px 15px rgba(246, 107, 82, 0.4);
}

/* Pulse animation for CTA */
.global-pulse-glow {
  animation: global-pulse 2s infinite;
}

@keyframes global-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(181, 39, 117, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(181, 39, 117, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(181, 39, 117, 0);
  }
}

/* Mobile Toggle Trigger */
.global-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nav-white);
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}

.global-mobile-toggle:focus {
  outline: none;
}

/* Mobile Drawer Nav */
.global-mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(12, 12, 24, 0.98);
  border-top: 1px solid rgba(214, 173, 96, 0.1);
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-mobile-nav.open {
  display: flex;
  max-height: 400px;
}

.global-mobile-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-blush);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease;
}

.global-mobile-nav-link:hover {
  color: var(--nav-gold);
}

.global-mobile-cta {
  background: var(--nav-coral);
  color: var(--nav-white);
  padding: 12px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.global-mobile-cta:hover {
  background: var(--nav-pink);
}

/* Hide/Show states */
.global-hidden {
  display: none !important;
}

/* ═══════════════════════════════ NESTED SUB-HEADER OFFSETS ═══════════════════════════════ */
/* Keep global navbar fixed at the top, make the local navbar and banner scrollable (go under) */
.landing-page .global-site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000 !important;
}

/* .landing-page .urgency-banner {
  position: absolute !important;
  top: 70px !important;
  left: 0;
  right: 0;
  z-index: 900 !important;
}

.landing-page .site-header {
  position: absolute !important;
  top: 110px !important;
  margin-top: 0 !important;
  width: 100%;
  z-index: 800 !important;
} */

.landing-page .hero-section {
  padding-top: 180px !important;
}

/* Hide floating back arrow when full global navbar is active */
body.global-navbar-active .back-home {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .global-nav-container {
    padding: 14px 24px;
  }

  .global-desktop-nav {
    display: none;
  }

  .global-nav-cta {
    display: none;
  }

  .global-mobile-toggle {
    display: block;
  }

  /* On mobile, adjust the sub-header offsets slightly */
  .landing-page .urgency-banner {
    top: 60px !important;
  }

  .landing-page .site-header {
    top: 100px !important;
    margin-top: 0 !important;
  }

  .landing-page .hero-section {
    padding-top: 200px !important;
  }
}