/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  --bg:          #fff6ea;
  --text:        #5a3a1e;
  --accent:      #da6a91;
  --accent-dark: #c55880;
  --accent-dim:  rgba(218, 106, 145, 0.15);
  --border:      rgba(218, 106, 145, 0.22);
  --card-bg:     #fffdf9;
  --white:       #ffffff;

  --font-display: 'Pacifico', cursive;
  --font-accent: 'Kaushan Script', cursive;
  --font-body:    'Lato', sans-serif;

  --shadow-sm: 0 2px 8px  rgba(90, 58, 30, 0.08);
  --shadow-md: 0 4px 20px rgba(90, 58, 30, 0.12);
  --shadow-lg: 0 8px 40px rgba(90, 58, 30, 0.18);

  --radius:    16px;
  --radius-sm: 8px;
  --ease:      0.3s ease;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-link {
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin: 0;
  background: rgba(255, 246, 234, 0.98);
  border-bottom: 1px solid rgba(90, 58, 30, 0.08);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.top-link:hover {
  color: var(--accent);
}

.privacy-page .section-title {
  color: rgba(90, 58, 30, 0.92);
}

.privacy-page .section-subtitle {
  color: rgba(90, 58, 30, 0.68);
}

.section { padding: 88px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.section-title.left  { text-align: left; }
.section-title.light { color: var(--white); }

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.68;
  margin-bottom: 60px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(218, 106, 145, 0.42);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
}

.btn-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: var(--white);
}
.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(131, 58, 180, 0.4);
  filter: brightness(1.08);
}

.btn-facebook {
  background: #1877F2;
  color: var(--white);
}
.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.4);
}

/* ================================================
   NAV
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: rgba(255, 246, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

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

.nav-links a {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--accent); }

.nav-links li:last-child {
  margin-left: 16px;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background var(--ease), transform var(--ease) !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Social icons (footer only) */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  transition: color var(--ease), background var(--ease), transform var(--ease);
}
.social-icon:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}
.social-icon--whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(90, 58, 30, 0.45) 0%,
    rgba(30, 15, 5, 0.78) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.hero-location {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 38px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* ================================================
   MENU
   ================================================ */
.menu-section { background: var(--bg); }

.menu-category { margin-bottom: 68px; }
.menu-category:last-child { margin-bottom: 0; }

.category-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--accent);
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon { font-size: 1.4rem; }

.menu-grid-wrap {
  position: relative;
  /* Headroom on the three non-clipped sides so the hover lift and the card
     box-shadow aren't cut by overflow:hidden in the collapsed state. The
     matching negative margins keep the grid's visual position unchanged, and
     initShowMore() reads this padding back (getComputedStyle) so max-height
     stays in sync. Bottom stays flush — that's the edge the collapse clips. */
  padding: 16px 16px 0;
  margin: -16px -16px 0;
  transition: max-height 0.45s ease;
}
.menu-grid-wrap.collapsed,
.menu-grid-wrap.transitioning {
  overflow: hidden;
}
.menu-grid-wrap.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    rgba(255, 246, 234, 0) 0%,
    rgba(255, 246, 234, 0.08) 25%,
    rgba(255, 246, 234, 0.32) 50%,
    rgba(255, 246, 234, 0.7) 75%,
    rgba(255, 246, 234, 1) 100%
  );
  pointer-events: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.show-more-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 32px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.show-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

.show-less-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.45;
  transition: opacity var(--ease);
}
.show-less-btn::before,
.show-less-btn::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}
.show-less-btn span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.show-less-btn:hover {
  opacity: 0.75;
}

/* Card */
.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(90, 58, 30, 0.05),
    0 2px 6px rgba(90, 58, 30, 0.06);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(90, 58, 30, 0.08),
    0 14px 32px rgba(90, 58, 30, 0.14);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

/* Single image — keep zoom on hover */
.card-image:not(.has-carousel) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.menu-card:hover .card-image:not(.has-carousel) img { transform: scale(1.07); }

/* Carousel */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0s linear 0.4s;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 0.4s ease 0s;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 246, 234, 0.82);
  border: none;
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease), background var(--ease);
  padding: 0;
}
.card-image:hover .carousel-btn { opacity: 1; }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }
.carousel-btn:hover { background: var(--white); }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease);
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.menu-card { display: flex; flex-direction: column; }

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-family: var(--font-accent);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.72;
  margin-bottom: 14px;
  flex: 1;
}

.card-price {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.card-price--link {
  opacity: 0.7;
  transition: opacity var(--ease);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.card-price--link:hover { opacity: 1; }

/* ================================================
   ABOUT
   ================================================ */
.about-section { background: var(--white); }

.about-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 72px;
}

.about-image img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(218, 106, 145, 0.2));
}

.about-text p {
  margin-bottom: 18px;
  opacity: 0.82;
  line-height: 1.8;
}
.about-text .btn { margin-top: 8px; }

/* ================================================
   ORDER
   ================================================ */
.order-section {
  background: linear-gradient(135deg, var(--text) 0%, #3a2212 100%);
  text-align: center;
}

.order-container { max-width: 620px; }

.order-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.order-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.order-note {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}

.footer-logo {
  height: 72px;
  margin: 0 auto 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 16px;
}

.footer-social .social-icon {
  color: var(--text);
  opacity: 0.5;
}
.footer-social .social-icon:hover {
  opacity: 1;
  background: var(--accent-dim);
  color: var(--accent);
}

.footer-links {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(90, 58, 30, 0.68);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-updated {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.45;
}

/* ================================================
   MODAL
   ================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 5, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  z-index: 1;
}

.modal-content {
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-content::-webkit-scrollbar { width: 0; height: 0; display: none; }

.modal-scrollbar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 4px;
  width: 8px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-box.is-scrolling .modal-scrollbar,
.modal-box.is-dragging .modal-scrollbar {
  opacity: 1;
  transition: opacity 0.15s ease;
}
.modal-scrollbar-thumb {
  position: absolute;
  left: 1px;
  right: 1px;
  background: rgba(90, 58, 30, 0.4);
  border-radius: 3px;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s ease, left 0.15s ease, right 0.15s ease;
}
.modal-scrollbar-thumb:hover,
.modal-box.is-dragging .modal-scrollbar-thumb {
  background: rgba(90, 58, 30, 0.65);
  left: 0;
  right: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 246, 234, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease);
}
.modal-close:hover {
  background: rgba(255, 246, 234, 0.85);
  transform: scale(1.08);
}

.modal-images {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 70vh;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg);
}
.modal-images img,
.modal-images video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-images--contain img,
.modal-images--contain video {
  object-fit: contain;
}

.modal-images .carousel-btn {
  opacity: 1;
  background: rgba(255, 246, 234, 0.88);
}
.modal-images .carousel-btn--prev { left: 12px; }
.modal-images .carousel-btn--next { right: 12px; }

.modal-images .carousel-dots {
  bottom: 12px;
}

.modal-body {
  padding: 24px 24px 28px;
}

.modal-name {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-price {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.menu-card.clickable { cursor: pointer; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ================================================
   RESPONSIVE — TABLET
   ================================================ */
@media (max-width: 768px) {
  .nav { padding: 10px 20px; position: relative; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 246, 234, 0.98);
    padding: 24px 24px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .section-title.left { text-align: center; }
  .about-text .btn { display: inline-block; }
}

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 480px) {
  .section { padding: 60px 0; }

  .menu-grid { grid-template-columns: 1fr; gap: 20px; }

  .hero-title { font-size: 2rem; }

  .order-buttons { flex-direction: column; align-items: center; }

  .btn { width: 100%; justify-content: center; }
}
