/* 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: 70px 30px 30px;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-nav a {
  display: block;
  color: white;
  padding: 12px 0;
  text-decoration: none;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

.mobile-nav a.cta-btn {
  margin: 20px 0 10px;
  text-align: center;
  border: none;
}

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 */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .nav-cta {
    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: 31px; /* Adjust to match the height of offer banner on mobile */
    position: fixed;
    width: 100%;
    left: 0;
  }
  
  /* Additional body padding to account for fixed header */
  body {
    padding-top: 86px; /* 31px (banner) + ~55px (header) */
  }
  
  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;
  }
}
