/* Mobile UX Enhancements */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(185, 160, 126, 0.12), transparent 60%), rgba(10, 10, 10, 0.98);
  display: flex;
  flex-direction: column;
  /* Override the vertical-centering inherited from style.css: with a scrolling
     container that clips the top of tall menu lists on short screens. */
  align-items: stretch;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 320ms ease;
  z-index: 120;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav__drawer-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: calc(5rem + env(safe-area-inset-top, 0px)) 1.6rem calc(2rem + env(safe-area-inset-bottom, 0px));
  gap: 0;
}

.nav__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.nav__drawer-link {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 9vw, 2.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
}

.nav__drawer-divider {
  width: 100%;
  height: 1px;
  margin: 1.6rem 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.nav__drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.2rem;
}

.nav__drawer-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-2);
  text-align: left;
}

.nav__drawer-info a {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-height: 48px;
  line-height: 1.7;
  padding: 0.4rem 0;
}

.nav__drawer-info i {
  margin-top: 0.2rem;
  color: var(--accent);
}

.nav__drawer-cta {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 2rem;
}

/* ---------- Brand name: full wording on desktop, short mark on mobile ---------- */

.nav__brand--short {
  display: none;
}

@media (max-width: 768px) {
  .nav__brand--full {
    display: none;
  }
  .nav__logo .nav__brand--short {
    display: inline;
    letter-spacing: 0.16em;
  }
}

/* ---------- Sticky mobile action bar (Call · WhatsApp · Order) ---------- */

.mobile-cta {
  display: none;
}

.mobile-cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 64px;
  padding: 0.5rem 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  border-right: 1px solid var(--border-2);
  -webkit-tap-highlight-color: transparent;
}

.mobile-cta__item:last-child {
  border-right: none;
}

.mobile-cta__item i {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.mobile-cta__item:active {
  background: rgba(185, 160, 126, 0.14);
}

.mobile-cta__item--primary {
  background: linear-gradient(120deg, rgba(185, 160, 126, 0.24), rgba(185, 160, 126, 0.06));
  color: var(--text);
}

.mobile-cta__item--primary i {
  color: var(--accent-2);
}

/* Show the bar whenever the desktop nav links are hidden (the hamburger is in
   use). z-index stays below the cart pill (40) and every overlay so those
   cover it naturally when opened. */
@media (max-width: 1080px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(15, 15, 15, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(0);
    transition: transform 280ms cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* Slide away when the floating cart pill takes over the bottom slot. */
  .mobile-cta.is-hidden {
    transform: translateY(110%);
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .carousel {
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }
  .carousel__item {
    min-width: 88vw;
    scroll-snap-align: start;
  }
  .hero__text h1,
  .page-hero__content h1 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }
  .btn,
  .nav__toggle,
  .nav__icon-btn {
    min-height: 48px;
    min-width: 48px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .grid--cards {
    grid-template-columns: 1fr;
  }
  .grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html, body {
    overflow-x: hidden;
  }
}
