/* ── Hamburger Button ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
/* Animate to X when active */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Mobile Overlay ────────────────────────────────────────── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1001;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile Menu Drawer ────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 3px solid var(--green);
  background: var(--white);
}
.mobile-menu-logo img { height: 45px; width: auto; }
.mobile-menu-logo a { display: block; }

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1;
  padding: 0 .3rem;
  transition: color .2s;
}
.mobile-menu-close:hover { color: var(--green); }

/* Mobile nav links */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}
.mobile-nav a {
  display: block;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid #f0ece6;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--warm-gray);
  color: var(--green);
}
.mobile-cta {
  margin: 1.2rem 1.5rem 0;
  background: var(--green) !important;
  color: var(--white) !important;
  text-align: center;
  border-radius: 6px;
  border-bottom: none !important;
  padding: .9rem 1.5rem !important;
}
.mobile-cta:hover { background: #164d3e !important; }

.mobile-menu-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
  color: #888;
}
.mobile-menu-footer a { color: var(--green); text-decoration: none; font-weight: 600; }

/* ── Show hamburger on mobile ──────────────────────────────── */
@media(max-width: 700px) {
  .hamburger { display: flex; }
  .primary-nav { display: none; }
  .site-header { justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: 95px; }
}
