/* ============================================================
   TROPICANA — components.css
   Menu, category tabs, item rows, gallery, forms, about.
   ============================================================ */

/* ---------------- Sticky category tabs (menu page) ---------------- */
.cat-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(251, 246, 236, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: .8rem;
}
.cat-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s var(--ease);
  background: var(--white);
}
.cat-tab svg { width: 16px; height: 16px; color: var(--gold); }
.cat-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-tab.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(168, 134, 63, .35);
}
.cat-tab.is-active svg { color: var(--white); }

/* ---------------- Menu section ---------------- */
.menu-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  font-style: italic;
  margin-top: .6rem;
}

.menu-cat { margin-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--header-h) + 90px); }
.menu-cat__head { text-align: center; margin-bottom: 2rem; }
.menu-cat__title {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  color: var(--gold-dark);
  line-height: 1.1;
}
.menu-cat__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto .5rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: var(--white);
}
.menu-cat__icon svg { width: 26px; height: 26px; }
.menu-cat__icon .emoji { font-size: 1.6rem; }
.cat-tab .emoji { font-size: 1.05rem; }

/* Featured card visual placeholder (real photo on top, emoji behind) */
.dish-card__ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--cream-deep));
  border-bottom: 1px solid var(--line);
}
.dish-card__emoji { font-size: 3.4rem; filter: drop-shadow(0 4px 10px rgba(46,36,23,.22)); }
.emoji { font-style: normal; }
.menu-cat__rule {
  display: flex; align-items: center; gap: .9rem;
  justify-content: center; margin-top: .6rem;
}
.menu-cat__rule::before, .menu-cat__rule::after {
  content: "";
  height: 1px; width: 70px;
}
.menu-cat__rule::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.menu-cat__rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.menu-cat__rule svg { width: 22px; height: 22px; color: var(--gold); }

/* Group (sub-category) */
.menu-group { margin-bottom: 2.2rem; }
.menu-group__head {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.1rem;
}
.menu-group__head h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.menu-group__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.menu-group__count {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.25rem;
  margin-inline-start: auto;
}

/* Menu item row */
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; }

.menu-item {
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.menu-item:hover {
  background: var(--white);
  border-color: var(--line);
  transform: translateY(-2px);
}
.menu-item__top { display: flex; align-items: baseline; gap: .6rem; }
.menu-item__name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.menu-item__dots {
  flex: 1;
  border-bottom: 2px dotted var(--gold-light);
  transform: translateY(-4px);
}
.menu-item__price {
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
  font-size: .98rem;
}
.menu-item__desc { color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }

/* Size chips */
.sizes { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.size-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.size-chip b { color: var(--gold-dark); font-weight: 700; }

/* Order link on hover */
.menu-item__order {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.menu-item__order svg { width: 14px; height: 14px; }
.menu-item:hover .menu-item__order { opacity: 1; transform: none; }
.menu-item__order:hover { text-decoration: underline; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder tile (real photo on top, emoji behind) */
.gallery-item__ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--g1, var(--gold-light)), var(--g2, var(--cream-deep)));
  transition: transform .5s var(--ease);
}
.gallery-item:hover .gallery-item__ph { transform: scale(1.06); }
.gallery-item__emoji { font-size: 3.6rem; filter: drop-shadow(0 4px 10px rgba(46, 36, 23, .2)); }
.gallery-item__tag {
  position: absolute;
  inset-inline-start: .8rem;
  bottom: .8rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(46, 36, 23, .72);
  color: var(--cream);
  font-size: .74rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(46, 36, 23, .9);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(900px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.4rem;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox__close:hover { color: var(--gold-light); }
.lightbox__stage .gallery-item__ph {
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1.1rem; }
.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-row__icon {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: .2rem; }
.contact-row p, .contact-row a { color: var(--ink); font-weight: 600; }
.contact-row a:hover { color: var(--gold-dark); }

.contact-socials { display: flex; gap: .6rem; margin-top: .4rem; }

/* WhatsApp order card */
.wa-card {
  background: linear-gradient(160deg, var(--white), var(--cream-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.wa-card h2 { color: var(--gold-dark); }
.wa-card p { color: var(--ink-soft); margin: .4rem 0 1.4rem; }

.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input, .form textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, .18);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }

/* Google Maps embed */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------------- About page ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-dark);
  line-height: 1;
}
.stat__label { color: var(--ink-soft); font-size: .9rem; margin-top: .35rem; }

/* ---------------- Reveal helper (components) ---------------- */
.stack { display: grid; gap: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ============================================================
   RESPONSIVE (components)
   ============================================================ */
@media (max-width: 900px) {
  .menu-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .menu-item__dots { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
