/* ============================================
   SHARED NAV STYLES — Mobile hamburger
   ============================================ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(250,249,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.top-nav-logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: #db506f;
  text-decoration: none;
  flex-shrink: 0;
}

.top-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-nav-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: #3c3a38;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.top-nav-item:hover { color: #db506f; }

/* Icons hidden by default on desktop — only show in mobile dropdown */
.nav-icon { display: none; }

/* Hamburger button — hidden on desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: #3c3a38;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 640px) {
  /* Taller nav bar, bigger logo + hamburger */
  .top-nav {
    height: 72px;
    padding: 0 20px;
  }

  .top-nav-logo {
    font-size: 1.6rem;
  }

  .hamburger-btn {
    display: flex;
    gap: 7px;
    padding: 8px;
  }

  .hamburger-btn span {
    width: 36px;
    height: 3px;
  }

  /* Dropdown panel — opens below nav */
  .top-nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(252,250,248,0.99);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  }

  .top-nav-links.open { display: flex; }

  /* Each nav item: icon + label, full-width, left-aligned */
  .top-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: #3c3a38;
    text-align: left;
  }

  .top-nav-item:last-child { border-bottom: none; }

  /* Show icons inside the mobile dropdown only */
  .top-nav-links .nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #db506f;
  }

  /* Animate hamburger bars into X when open */
  .hamburger-btn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger-btn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

/* ============================================
   HERO MOBILE FIXES
   ============================================ */
@media (max-width: 640px) {
  /* Taller container so scaled images have room */
  .animated-hero-container {
    height: 520px !important;
  }

  /* Scale up images 2.1x via transform (avoids overflow clipping issues) */
  .hero-image-wrapper {
    transform: scale(1.38);
    transform-origin: center center;
  }

  /* Keep text anchored at bottom of the container, above the images */
  .maimai-overlay {
    bottom: 16px !important;
    z-index: 10;
    transform: scale(1.2);
    transform-origin: center bottom;
  }

  .maimai-heading {
    font-size: 2.8rem !important;
  }

  .maimai-prompt {
    font-size: 1.06rem !important;
  }

  .maimai-prompt-container {
    padding: 6px 14px;
    margin-bottom: 10px;
  }
}
