/* ═══════════════════════════════════════════════════
   home.css — Hero + featured dishes teaser
═══════════════════════════════════════════════════ */

/* ── HERO ──
   Generated pop-art canvas background + circular floating logo plate.
   Canvas is scoped inside #hero (NOT page-fixed), so the teal/rays
   background ends where the hero ends and the red band + Featured + Vibes
   sections render normally below. */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero__plate {
  position: relative;
  z-index: 1;
  width: min(300px, 75vw);
  aspect-ratio: 1;
  background: #F7C948;
  border-radius: 50%;
  border: 8px solid #000;
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
  flex-shrink: 0;
  animation:
    plateSpin .8s ease .4s both,
    logoFloat 3.5s ease-in-out 1.5s infinite;
}
.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MENU CATEGORIES (was HIT DISHES) ── */
#categories {
  background-color: #fff;
  /* Same tiny pop-art halftone as #vibes for visual continuity. */
  background-image: radial-gradient(circle, rgba(0,0,0,.13) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  padding-bottom: 2rem;
}

/* Section header — readable on white. */
#categories .section-tag    { color: var(--red); }
#categories .section-title  { color: var(--black); }
#categories .section-divider {
  background: repeating-linear-gradient(
    90deg,
    var(--red)   0,   var(--red)   20px,
    var(--black) 20px, var(--black) 40px
  );
}

/* "VIEW FULL MENU" CTA inherits the global text-link button style from base.css.
   (Previous #categories scoped override removed — now site-wide default.) */

/* Category grid — exactly 3 cards per row at every viewport. */
.cat-card--full {
  grid-column: 1 / -1;
}

.cat-card--full .cat-card__img {
  aspect-ratio: 3 / 1; /* same visual height as 3 normal cards */
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Category card — image on top, slim title bar below. Whole card is a
   link to /menu/#slug. Pop-art style: thick black border + offset shadow.
   Hover: lift + tilt + yellow border glow + image zoom + scan-line wipe. */
.cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  background: #161616;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow:
    10px 10px 0 var(--black),
    0 0 0 4px var(--yellow) inset;
  border-color: var(--yellow);
}

/* Image area — taller (square) so more of the photo is visible. */
.cat-card__img {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: #1c1c1c;
  overflow: hidden;            /* clips the scale-on-hover effect */
  position: relative;
}
.cat-card__img img {
  width: 100%; height: 100%;
  object-fit: contain;          /* show the whole photo, no cropping */
  display: block;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card__img img { transform: scale(1.08); }

/* Diagonal yellow "scan line" that wipes across on hover. */
.cat-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 214, 0, .35) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.cat-card:hover .cat-card__img::after { transform: translateX(120%); }

/* Slim title bar — reduced padding so the photo gets more of the card. */
.cat-card__overlay {
  background: rgba(0, 0, 0, .9);
  padding: .45rem .8rem;
  text-align: center;
  border-top: 2px solid var(--red);
  transition: background .25s ease, border-top-color .25s ease;
}
.cat-card:hover .cat-card__overlay {
  background: var(--black);
  border-top-color: var(--yellow);
}

.cat-card__name {
  font-family: var(--font-head);
  font-size: 1rem; letter-spacing: 3px;
  color: var(--white);
  display: inline-block;
  animation: catNamePulse 1.6s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(255, 255, 255, .35);
  transition: color .25s ease, letter-spacing .25s ease;
}
.cat-card:hover .cat-card__name {
  color: var(--yellow);
  letter-spacing: 4px;
}
@keyframes catNamePulse {
  0%, 100% { transform: scale(1);    text-shadow: 0 0 6px  rgba(255,255,255,.35); }
  50%      { transform: scale(1.06); text-shadow: 0 0 14px rgba(255,255,255,.75); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card, .cat-card__img img, .cat-card__img::after,
  .cat-card__overlay, .cat-card__name { transition: none; animation: none; }
}

/* ── OUR VIBES ── */
#vibes {
  background-color: #fff;
  /* Tiny pop-art halftone dots over the white background. */
  background-image: radial-gradient(circle, rgba(0,0,0,.13) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  padding-bottom: var(--space-md);
}

/* Section header — colors picked for contrast against the white background.
   (Default body text is var(--white), which would be invisible here.) */
#vibes .section-tag   { color: var(--red); }
#vibes .section-title { color: var(--black); }      /* .rd accent stays red */
#vibes .section-divider {
  background: repeating-linear-gradient(
    90deg,
    var(--red)   0,   var(--red)   20px,
    var(--black) 20px, var(--black) 40px
  );
}

/* Slider — shows 1 full slide + a peek (~20%) of the next.
   Track translates horizontally; auto-advance + manual nav handled in home.js. */
.vibes-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 1rem;
  overflow: hidden;
}
.vibes-slider__track {
  display: flex;
  gap: 1rem;
  transition: transform .5s ease;
  will-change: transform;
}
/* JS adds this class for the silent snap from a clone to its real twin. */
.vibes-slider__track.vibes-no-anim { transition: none; }
.vibes-slide {
  flex: 0 0 80%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  background: #161616;
}
.vibes-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.vibes-slide__title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-family: var(--font-head);
  font-size: 1.2rem; letter-spacing: 2px;
  color: var(--yellow);
}

/* ── SHOWCASE (two 2:1 landscape photos on yellow-dots bg) ── */
#showcase {
  position: relative;
  padding: 3rem 2rem;
  overflow: hidden;
}
#showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.showcase-pair {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.showcase-photo {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 3px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
  background: #161616;
}
.showcase-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── KEYFRAMES ── */
@keyframes plateSpin { from {opacity:0; transform:scale(.3) rotate(-180deg)} to {opacity:1; transform:scale(1) rotate(0)} }
@keyframes logoFloat { 0%,100% {transform:translateY(0)} 50% {transform:translateY(-18px)} }

/* ── Responsive ──
   Category grid stays 3 cols at every viewport per design spec.
   The Vibes slider scales naturally (slides are % of container width).
   Showcase pair stacks on small screens. */
@media (max-width: 900px) {
  .vibes-slide { flex: 0 0 85%; }            /* slightly bigger main slide on tablet */
  .vibes-slider { padding: 0 1.5rem 1rem; }
}

@media (max-width: 700px) {
  .showcase-pair { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cat-grid { gap: .6rem; padding: 0 1rem; }
  .cat-card__name { font-size: .8rem; letter-spacing: 1.5px; }
  .vibes-slide { flex: 0 0 90%; }
}
