/* Header base — no background set here; parent .header-bottom-wrap controls it */
.header {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* Desktop top bar */
.top-bar {
  background: #f8f9fa;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}

.top-bar a {
  color: #333;
  text-decoration: none;
}

.top-bar a:hover {
  color: #008037;
}

/* Bottom header */
.bottom-bar {
  background: #fff;
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* ── Mobile overlay ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  backdrop-filter: blur(2px);
  animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hamburger icon ── */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger-icon.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-icon.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-icon.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 82%;
  max-width: 320px;
  background: linear-gradient(170deg, #004d20 0%, #009a44 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

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

/* Drawer header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.mobile-drawer-logo {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus {
  background: rgba(255, 255, 255, 0.28);
}

/* Nav list */
.mobile-drawer-nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-drawer-nav li {
  margin: 0;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
}

.mobile-drawer-nav a svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mobile-drawer-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.mobile-drawer-nav a.active svg {
  opacity: 1;
}

/* Footer CTA */
.mobile-drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.mobile-drawer-cta {
  display: block;
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #009a44 !important;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
  box-sizing: border-box;
}

.mobile-drawer-cta:hover {
  background: #f0fff5;
}

.mobile-drawer-tagline {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Hide mobile elements on desktop */
@media (min-width: 992px) {
  .mobile-drawer,
  .mobile-overlay,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Hide desktop top-bar on mobile */
@media (max-width: 991px) {
  .top-bar {
    display: none;
  }
}
