/* ===== Mobile Menu Overlay ===== */
/* Hide hamburger on desktop */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  padding: 16px 14px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
  right: 0;
}

/* Menu content styling */
.mobile-menu-content {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-logo {
  margin-bottom: 16px;
}

.mobile-menu-logo img {
  max-width: 96px;
  height: auto;
  margin-bottom: 10px;
}

.mobile-menu-subheading {
  color: #7ac943;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.mobile-nav {
  /* prevent stretching that creates large gap above the CTA */
  flex-grow: 0;
  margin-bottom: 8px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 8px;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* If Get Quote is placed inside the list, ensure it aligns and has no divider */
.mobile-nav .mobile-quote-btn {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  border-bottom: none;
}

/* Tighten last item spacing */
.mobile-nav li:last-child { margin-bottom: 0; }

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #7ac943;
}

.mobile-quote-btn {
  background: #7ac943;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  /* place button right after the nav, not pinned to bottom */
  margin-top: 8px;
  width: 100%;
  max-width: none;
  align-self: center;
}

.mobile-quote-btn:hover {
  background: #68b036;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Overlay when menu is open */
.overlay-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.overlay-bg.active {
  display: block;
  opacity: 1;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive styles */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  
  .navbar {
    display: none;
  }
}
