/* ================================================================
   THE JERK SHAC — DISH PAGE STYLES
   Shared stylesheet for all individual dish pages.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --teal:       #1e3530;
  --teal-mid:   #2a4a44;
  --teal-light: #3a6058;
  --gold:       #c9a435;
  --gold-light: #e8c96a;
  --gold-dim:   rgba(201,164,53,0.2);
  --orange:     #e87820;
  --cream:      #fdf6e3;
  --cream-d:    #f0e8d0;
  --ink:        #141414;
  --ink-60:     rgba(20,20,20,0.60);
  --ink-10:     rgba(20,20,20,0.10);
  --w-90:       rgba(255,255,255,0.90);
  --w-65:       rgba(255,255,255,0.65);
  --w-35:       rgba(255,255,255,0.35);
  --w-25:       rgba(255,255,255,0.25);
  --w-12:       rgba(255,255,255,0.12);
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 68px;
  --pad:   clamp(1.5rem, 7vw, 6rem);
  --dish-frame-outer: #13352f;
  --dish-frame-inner: #fbf3dd;
  --dish-frame-shadow: rgba(20, 20, 20, 0.28);
}

/* ── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

.dish-page {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── DISH NAV ────────────────────────────────────────────────────── */
.dish-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--teal);
  border-bottom: 1px solid var(--gold-dim);
  overflow: hidden;
}

.dish-nav::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('../assets/img/patterns/jamaican-pattern-large.png');
  background-size: 100% auto;
  background-repeat: repeat;
  opacity: 0.045;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

.dish-nav > * { position: relative; z-index: 1; }

/* back link */
.dish-back {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--w-65);
  transition: color 0.3s;
}
.dish-back:hover { color: var(--gold); }

/* logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s var(--ease);
}
.nav-logo:hover .nav-logo-img { transform: rotate(-4deg) scale(1.08); }

/* reserve button */
.nav-book {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--teal);
  background: var(--gold);
  padding: 0.5rem 1.3rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}
.nav-book:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── DISH HERO ───────────────────────────────────────────────────── */
.dish-hero {
  position: relative;
  background: var(--teal);
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  padding-left: var(--pad);
  padding-right: var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 380px;
}

.dish-hero::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('../assets/img/patterns/jamaican-pattern-large.png');
  background-size: 100% auto;
  background-repeat: repeat;
  opacity: 0.045;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

.dish-hero > * { position: relative; z-index: 1; }

/* label shared with main site */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.label--light { color: var(--gold-light); }

.dish-hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  color: #fff;
  margin: 0.8rem 0 2rem;
  letter-spacing: 0.03em;
}

.dish-hero-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.75;
  margin: 0.6rem 0 0;
}

.dish-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.dish-hero-price {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, #a87920 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 12px rgba(201,164,53,0.45));
}

/* ── SPICE METER ─────────────────────────────────────────────────── */
.spice-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.spice-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--w-35);
}

.spice-dots {
  display: flex;
  gap: 0.4rem;
}

.spice-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  display: block;
}

.spice-dot.filled {
  background: var(--gold);
}

/* ── DISH SPLIT ──────────────────────────────────────────────────── */
.dish-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dish-illustration {
  position: relative;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem 3rem 3.5rem;
  border-right: 4px solid var(--gold);
  gap: 2.5rem;
  overflow: hidden;
}
.dish-illustration::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('../assets/img/patterns/beige-pattern.png');
  background-size: 100% auto;
  background-repeat: repeat;
  opacity: 0.015;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}
.dish-illustration > * { position: relative; z-index: 1; }

.dish-illus-img,
.dish-photo {
  border: 1px solid rgba(201,164,53,0.78);
  outline: 10px solid var(--dish-frame-inner);
  box-shadow:
    0 0 0 12px var(--dish-frame-outer),
    0 0 0 13px rgba(232,201,106,0.76),
    0 24px 54px var(--dish-frame-shadow),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

.dish-illus-img {
  background: var(--cream);
}

.dish-photo {
  overflow: hidden;
  min-height: 100%;
  margin: 2rem;
  background: var(--dish-frame-outer);
}

.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.9s var(--ease);
}

.dish-photo:hover img {
  transform: scale(1.04);
}

/* ── STORY (inside illustration panel) ───────────────────────────── */
.dish-story h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 1.2rem;
  text-align: center;
}

.dish-story p {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.9;
}

.dish-story p + p { margin-top: 1rem; }

/* ── DISH CTA ────────────────────────────────────────────────────── */
.dish-cta {
  position: relative;
  background: var(--teal);
  padding: 4rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.dish-cta::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('../assets/img/patterns/jamaican-pattern-large.png');
  background-size: 100% auto;
  background-repeat: repeat;
  opacity: 0.045;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

.dish-cta > * { position: relative; z-index: 1; }

.cta-menu,
.cta-reserve {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
}

.cta-menu {
  color: var(--w-65);
  border: 1px solid var(--w-25);
}
.cta-menu:hover {
  color: #fff;
  border-color: #fff;
}

.cta-reserve {
  background: var(--gold);
  color: var(--teal);
  border: 1px solid var(--gold);
}
.cta-reserve:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dish-split {
    grid-template-columns: 1fr;
  }
  .dish-photo {
    min-height: 360px;
    order: -1;
    margin: 1.5rem;
  }
  .dish-story {
    text-align: center;
  }
  .dish-illustration {
    border-right: none;
    border-bottom: 4px solid var(--gold);
    padding: 1.5rem 1.5rem 2.5rem;
    order: 0;
  }
}

.dish-illus-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* multiply removes the white paper bg, blending it into the cream panel */
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.dish-illus-img:hover { opacity: 0.85; }

/* ── LIGHTBOX ─────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* blurred backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: zoom-out;
}

/* the enlarged image */
.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: scale(0.88);
  transition: transform 0.4s var(--ease);
  mix-blend-mode: normal;
  filter: grayscale(100%);
}
.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

/* close button */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
