/* ─────────────────────────────────────────────────────────────────
   Kapulco – menu-page.css
   Authentic styling matching live reference https://kapulco-restaurant.com/
   Palette: Background #376066 | Text #fffbeb | Accent Gold #fee685 | Cards rgba(123,51,6,0.2)
   Fonts: Headings Optima, sans-serif | Intro Georgia, serif | Body Roboto, sans-serif
───────────────────────────────────────────────────────────────── */

/* ─── Google Fonts (Roboto) ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap');

/* ─── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #376066;
  color: #fffbeb;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Back Button (Floating top-left matching uploaded reference) ────── */
.back-btn {
  position: fixed;
  top: 1.2rem;
  left: 1.5rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  user-select: none;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fee685;
  border-color: rgba(254, 230, 133, 0.6);
  transform: translateY(-1px);
}

.back-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

@media (max-width: 767px) {
  .back-btn {
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }
}

/* ─── Category Hero ─────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 600px;
  height: 70vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #1c2326;
  padding-top: 64px; /* offset fixed header */
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 35, 38, 0.45) 0%,
    rgba(28, 35, 38, 0.78) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 2rem;
  max-width: 840px;
}

/* ✦ Star separator above H1 */
.hero-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1rem;
}

.hero-diamond::before,
.hero-diamond::after {
  content: '';
  width: 48px;
  height: 1px;
  background: rgba(254, 230, 133, 0.4);
}

.hero-diamond span {
  font-size: 20px;
  color: rgba(254, 230, 133, 0.6);
  line-height: 1;
}

.page-title {
  font-family: Optima, "Segoe UI", Candara, "Noto Sans", sans-serif;
  font-size: 72px;
  font-weight: 400;
  letter-spacing: 3.6px;
  line-height: 1.05;
  color: #fffbeb;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 520px;
    height: 65vh;
  }
  .page-title {
    font-size: 44px;
    letter-spacing: 2.2px;
  }
}

.page-subtitle {
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(254, 243, 198, 0.9);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

/* Scroll CTA button (DÉCOUVRIR / EXPLORER) */
.hero-scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(254, 230, 133, 0.6);
  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s, transform 0.25s;
}

.hero-scroll-btn:hover {
  color: #fee685;
  transform: translateY(2px);
}

.hero-scroll-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ─── Content Section ───────────────────────────────────────── */
.page-content {
  background-color: #376066;
  padding: 80px 16px 100px;
  min-height: 50vh;
}

.page-content-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Section divider with star */
.section-star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px auto 36px;
  max-width: 320px;
}

.section-star-divider::before,
.section-star-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(254, 230, 133, 0.4);
}

.section-star-divider span {
  color: rgba(254, 230, 133, 0.6);
  font-size: 16px;
  line-height: 1;
}

/* Sub-heading for dishes section (e.g. TAPAS, SUSHI FRIT) */
.sub-section-title {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: #fff2c7;
  margin-bottom: 40px;
}

/* Offer subtitle under section heading (e.g. Verre de vin marocain) */
.section-offer-title {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  color: #fee685;
  margin-top: -24px;
  margin-bottom: 30px;
}

/* Sub-sub heading (e.g. BLANC, ROUGE under VINS MAROCAINS) */
.sub-sub-section-title {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  color: #fee685;
  margin: 36px 0 24px;
}

/* ─── Dishes Grid ───────────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

@media (max-width: 767px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sub-section-title {
    font-size: 24px;
    margin-bottom: 28px;
  }
  .section-offer-title {
    font-size: 15px;
    margin-top: -16px;
    margin-bottom: 22px;
  }
  .page-content {
    padding: 60px 14px 80px;
  }
}

/* Individual Dish Card */
.menu-item {
  background-color: rgba(123, 51, 6, 0.2);
  border: 1px solid rgba(254, 230, 133, 0.25);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
  transition: background-color 0.25s, border-color 0.25s;
}

.menu-item:hover {
  background-color: rgba(123, 51, 6, 0.32);
  border-color: rgba(254, 230, 133, 0.45);
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.menu-item-title-column {
  flex: 1 1 0;
  min-width: 0;
}

.menu-item-name {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1.35;
  color: #fff2c7;
}

.menu-item-price {
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffe586;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: flex-start;
}

.menu-item-desc {
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(254, 243, 198, 0.7);
  margin-top: 6px;
}

/* ─── Ingredients & Allergens Line ──────────────────────────── */
.menu-item-ingredients {
  margin-top: 8px;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(254, 243, 198, 0.72);
  line-height: 1.45;
  word-break: break-word;
}

.ingredients-label {
  font-weight: 500;
  color: rgba(254, 230, 133, 0.88);
  margin-right: 4px;
}

.menu-item-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.allergen-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  text-transform: capitalize;
  cursor: help;
}

/* ─── Section-Bottom Alcohol & Allergy Notice ────────────────── */
.menu-alcohol-notice {
  margin: 40px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(254, 230, 133, 0.3);
  border-radius: 6px;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(254, 243, 198, 0.9);
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.menu-alcohol-notice .notice-icon {
  color: #fee685;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .menu-item-ingredients {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
  }
  .menu-alcohol-notice {
    margin-top: 28px;
    padding: 12px 16px;
    font-size: 12.5px;
    gap: 8px;
  }
}

/* ─── Multi-Price Layout (Wines, Champagnes, Tequilas, Spirits) ─ */
.multi-price-header-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.multi-price-header {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 22px 10px;
  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fee685;
}

.multi-price-header span {
  width: 90px;
  text-align: right;
  white-space: nowrap;
}

.menu-item.multi-price {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.menu-item.multi-price .menu-item-name {
  flex: 1;
  padding-right: 12px;
}

.menu-item-prices {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

.menu-item-prices span {
  width: 90px;
  text-align: right;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffe586;
  white-space: nowrap;
}

.menu-item-prices span.dash {
  color: rgba(255, 229, 134, 0.45);
}

@media (max-width: 767px) {
  .multi-price-header-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .multi-price-header-row .multi-price-header:nth-child(2) {
    display: none;
  }
}

@media (max-width: 580px) {
  .multi-price-header span,
  .menu-item-prices span {
    width: 72px;
    font-size: 14px;
  }
  .multi-price-header {
    gap: 12px;
    padding: 0 22px 8px;
  }
  .menu-item-prices {
    gap: 12px;
  }
  .menu-item-name {
    font-size: 18px;
  }
}

/* ─── Category Footer & Allergy Notice ──────────────────────── */
.category-footer {
  background-color: #376066;
  padding: 40px 16px 60px;
  text-align: center;
  border-top: 1px solid rgba(254, 230, 133, 0.15);
}

.allergie-box {
  display: inline-block;
  max-width: 640px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(254, 230, 133, 0.35);
  border-radius: 6px;
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(254, 243, 198, 0.88);
  line-height: 1.55;
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 24px;
}

.social-links a {
  color: rgba(254, 230, 133, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(254, 230, 133, 0.3);
  transition: color 0.25s, transform 0.2s, border-color 0.25s, background-color 0.25s;
}

.social-links a:hover {
  color: #fee685;
  border-color: #fee685;
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copy {
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 251, 235, 0.5);
  letter-spacing: 0.05em;
}
