/* Hamburger Menu Component */

/* Hamburger Button - Right Side */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: fixed;
  top: max(0.8rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { margin-bottom: 6px; }
.hamburger span:nth-child(3) { margin-top: 6px; }

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #f6ffe8;
  z-index: 1000;
  padding: 5rem 2rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  overflow-y: auto;
}

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

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Links */
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: #111;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: #666;
}

.mobile-menu a.mobile-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: #c8ff00;
  color: #0a0a0a;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  border-bottom: none;
}

.mobile-menu a.mobile-cta:hover {
  background: #deff55;
}

/* Contact Form in Mobile Menu */
.mobile-menu .contact-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(0,0,0,0.1);
}

.mobile-menu .contact-section h3 {
  font-family: 'Heebo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c8ff00;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 0.9rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #333;
}

/* Desktop: Hide hamburger, show nav-links */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
  .nav-links { display: flex !important; }
}

/* Mobile: Show hamburger, hide nav-links */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none !important; }
  nav { padding-right: 60px; }
}
