/* Burger menu styles */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 50;
}
.burger span {
  display: block;
  height: 0.25rem;
  width: 2rem;
  background: #222;
  border-radius: 2px;
  margin: 0.22rem 0;
  transition: 0.3s;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 75vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 40;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #222;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: #25D366;
}
.mobile-nav .close-btn {
  align-self: flex-end;
  font-size: 2rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .burger {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
}

/* Hide burger icon when menu is open */
.burger.hide-when-open {
  display: none !important;
}
