/* Mobile Navigation Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001; /* Increased to be above fixed elements */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #111;
  z-index: 999;
  padding: 80px 24px 30px;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  display: none; /* Hidden on desktop by default */
}

.mobile-nav-section {
  margin-bottom: 24px;
}

.mobile-nav-section-title {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  margin-bottom: 12px;
  padding-left: 4px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0e0e0;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  background: transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: rgba(76, 175, 80, 0.12);
}

.mobile-nav a.active {
  color: #4CAF50;
}

.mobile-nav a .nav-icon {
  font-size: 1.2em;
  width: 24px;
  text-align: center;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.mobile-nav a.cta-btn {
  margin: 8px 0;
  text-align: center;
  justify-content: center;
  padding: 14px 20px;
}

.mobile-nav a.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav a.cta-btn.primary {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-nav-overlay {
  display: block;
  opacity: 1;
}

body.menu-open .mobile-nav {
  right: 0;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
}

body.menu-open .hamburger-menu span:first-child {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .hamburger-menu span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger-menu span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries for Mobile Navigation */
/* Using 900px to catch in-app browsers (Twitter, Instagram) that report larger viewports */
@media (max-width: 900px) {
  .hamburger-menu {
    display: flex !important;
  }
  
  .mobile-nav {
    display: block; /* Show mobile nav on mobile */
  }
  
  .nav-cta {
    display: none !important;
  }
  
  .nav-links {
    display: none !important;
  }
  
  header .container {
    padding: 10px 20px;
  }
  
  .offer-banner {
    font-size: 0.85em;
    padding: 5px 15px;
    text-align: center;
    height: 31px; /* Explicitly set height to remove any gap */
    box-sizing: border-box;
    position: fixed;
    width: 100%;
    top: 0;
  }
  
  /* Padding managed in the combined selector below */
  
  .offer-banner p {
    white-space: normal;
  }
  
  header {
    padding: 5px 0;
    top: 0;
    position: fixed;
    width: 100%;
    left: 0;
  }
  
  /* Additional body padding to account for fixed header */
  body {
    padding-top: 55px;
  }
  
  header .logo a {
    font-size: 1.3em;
  }
  
  header .logo img {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 85%;
    right: -85%;
  }
  
  header .logo a {
    font-size: 1.3em;
  }
}
