/* =============================================================
   style.css  |  DK's Mappillai Mess - Main Stylesheet
   Shared by: index.html (homepage) + menu.html (full menu page)
   Design: Comic/Neobrutalist - high contrast, thick borders,
           hard shadows, vibrant yellows, reds and purples.
   ---------------------------------------------------------------
   TABLE OF CONTENTS:
     01. Design Tokens     — CSS custom properties / variables
     02. Reset & Base      — box-sizing, html, body, links
     03. Global Utilities  — containers, buttons, badges, eyebrow
     04. Navbar            — top nav bar + hamburger (mobile)
     05. Contact Us Btn    — red rectangular navbar CTA
     06. Back to Top       — floating fixed yellow button
     07. Hero Section      — landing area with banana leaf visual
     08. Craving Clock     — time-of-day expandable cards
     09. Signature Picks   — marquee carousel sticker board
     10. Menu Wall         — homepage preview + full menu page
     11. Build Your Virundhu — interactive banana leaf builder
     12. Social Section    — Instagram + Facebook cards
     13. Reviews Section   — customer testimonial cards
     14. Visit / Contact   — address, hours, Google Maps
     15. Footer            — brand, phone, social icons
     16. Mobile Action Bar — fixed bottom quick-action strip
     17. Responsive        — tablet (max 960px) + mobile (768px)
   ============================================================= */

/* =============================================================
   01. DESIGN TOKENS
   All brand colours, shadow shorthands, radius and spacing.
   To retheme the entire site, update ONLY these variables.
   ============================================================= */
:root {
  --yellow: #ffb000;
  --orange: #f77f00;
  --red: #d62828;
  --purple: #3c2f72;
  --green: #168b3a;
  --cream: #fff2c6;
  --ink: #151515;
  --white: #ffffff;
  --leaf: #0f7d35;
  --shadow: 8px 8px 0 var(--ink);
  --small-shadow: 5px 5px 0 var(--ink);
  --outline: 3px solid var(--ink);
  --radius: 8px;
  --section: clamp(4rem, 8vw, 7.5rem);
  /* Navbar height — updated via JS for sticky offsets */
  --navbar-h: 82px;
}

/* =============================================================
   02. RESET & BASE STYLES
   ============================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  background:
    radial-gradient(
        circle at 12px 12px,
        rgba(21, 21, 21, 0.11) 2px,
        transparent 2.5px
      )
      0 0 / 34px 34px,
    linear-gradient(135deg, #fff8dc 0%, var(--cream) 48%, #ffe296 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background: conic-gradient(
    from 90deg,
    var(--green),
    transparent 28%,
    var(--red),
    transparent 58%,
    var(--purple),
    transparent 82%,
    var(--yellow)
  );
  clip-path: polygon(
    47% 0,
    56% 33%,
    92% 18%,
    68% 48%,
    100% 62%,
    62% 62%,
    75% 100%,
    48% 70%,
    22% 100%,
    35% 63%,
    0 62%,
    31% 48%,
    7% 18%,
    43% 33%
  );
  filter: saturate(1.1);
}

.site-shell::before {
  top: 8rem;
  right: -8rem;
  transform: rotate(14deg);
}

.site-shell::after {
  bottom: 18rem;
  left: -10rem;
  transform: rotate(-21deg);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: var(--section) 0;
  position: relative;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
  max-width: 760px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.72rem;
  color: var(--white);
  background: var(--purple);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bungee", "Baloo 2", "Noto Sans Tamil", sans-serif;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(3rem, 7.2vw, 6.55rem);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    5px 5px 0 var(--yellow),
    9px 9px 0 var(--ink);
}

.hero-title-word {
  display: block;
}

h2 {
  font-size: clamp(2.2rem, 5.8vw, 5rem);
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--yellow),
    7px 7px 0 rgba(21, 21, 21, 0.16);
  text-wrap: balance;
}

h3 {
  font-family: "Lilita One", "Baloo 2", "Noto Sans Tamil", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

p {
  margin: 0;
  line-height: 1.7;
}

.lead {
  max-width: 710px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 600;
}

.btn,
.icon-btn,
.filter-btn,
.builder-btn {
  border: var(--outline);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--small-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.86rem 1.12rem;
  border-radius: var(--radius);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.btn:hover,
.btn:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible,
.filter-btn:hover,
.filter-btn:focus-visible,
.builder-btn:hover,
.builder-btn:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn:active,
.icon-btn:active,
.filter-btn:active,
.builder-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.primary {
  background: var(--red);
  color: var(--white);
}

.btn.yellow {
  background: var(--yellow);
}

.btn.green {
  background: var(--green);
  color: var(--white);
}

.btn.purple {
  background: var(--purple);
  color: var(--white);
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.pattern-band {
  border-block: var(--outline);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(21, 21, 21, 0.12) 0 10px,
      transparent 10px 22px
    ),
    linear-gradient(
      90deg,
      var(--green),
      var(--purple),
      var(--red),
      var(--orange),
      var(--yellow)
    );
  height: 1rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.96), rgba(255, 242, 198, 0.98)),
    radial-gradient(
        circle at 20px 20px,
        rgba(21, 21, 21, 0.18) 2px,
        transparent 3px
      )
      0 0 / 28px 28px;
  border-bottom: var(--outline);
  box-shadow: 0 6px 0 rgba(21, 21, 21, 0.16);
  backdrop-filter: blur(12px);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  width: 4.1rem;
  height: 4.1rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--white);
  border: var(--outline);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand-name {
  font-family: "Lilita One", "Baloo 2", "Noto Sans Tamil", sans-serif;
  font-size: clamp(1.08rem, 2.2vw, 1.65rem);
  line-height: 0.95;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a {
  position: relative;
  padding: 0.75rem 0.78rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.42rem;
  height: 0.28rem;
  background: var(--red);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* ── Contact Us — red rectangular CTA button in navbar ── */
.nav-contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 1.1rem !important;
  margin-left: 0.35rem;
  background: var(--red) !important;
  color: var(--white) !important;
  border: var(--outline) !important;
  border-radius: var(--radius) !important;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 160ms ease,
    background 160ms ease;
  position: relative;
  overflow: hidden;
}

.nav-contact-btn::after {
  /* underline override — remove the red underline bar */
  display: none !important;
}

.nav-contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 280ms ease;
  border-radius: inherit;
  pointer-events: none;
}

.nav-contact-btn:hover,
.nav-contact-btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #b51b1b !important;
}

.nav-contact-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Click ripple flash */
.nav-contact-btn.is-clicked::before {
  background: rgba(255, 255, 255, 0.28);
}

.nav-contact-btn svg {
  flex: 0 0 auto;
  opacity: 0.9;
}

/* ── Back to Top — floating fixed button ── */
.back-to-top {
  position: fixed;
  bottom: 2.2rem;
  right: 1.8rem;
  z-index: 9000;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  /* Yellow bg — always visible against dark footer AND light sections */
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  /* White glow + ink offset so it stands out on dark AND light backgrounds */
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  font-family: inherit;
  /* Hidden by default — shown via JS scroll listener */
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.2rem);
  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
  overflow: hidden;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 8px 8px 0 var(--yellow);
  outline: none;
}

.back-to-top:active {
  transform: translateY(2px) scale(0.92);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Ripple pseudo-element on click */
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 50% 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0ms, height 0ms, opacity 400ms ease;
  opacity: 0;
}

.back-to-top.ripple::before {
  width: 120%;
  height: 120%;
  opacity: 0;
  transition: width 420ms ease, height 420ms ease, opacity 420ms ease;
}

.back-to-top svg {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  z-index: 1;
}

/* Push the button up on mobile so it sits above the mobile action bar */
@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 2.8rem;
    height: 2.8rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.hamburger {
  display: none;
  width: 3.2rem;
  height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--small-shadow);
}

.hamburger-lines {
  width: 1.45rem;
  display: grid;
  gap: 0.28rem;
}

.hamburger-lines span {
  height: 0.2rem;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: clamp(2.8rem, 6vw, 5.5rem) 0 3rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  pointer-events: none;
  border: 4px dashed rgba(21, 21, 21, 0.16);
  border-radius: 18px;
}

.hero-grid {
  display: grid;
  /* Use minmax(0,...) on both sides to prevent overflow on narrow phones */
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.hero-subtitle {
  width: min(100%, 700px);
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--small-shadow);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  align-items: center;
}

.hero-visual {
  min-height: 630px;
  position: relative;
  isolation: isolate;
}

.hero-logo-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.1rem;
  width: clamp(7.5rem, 15vw, 11rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 5;
  transform: rotate(8deg);
  filter: drop-shadow(5px 5px 0 var(--ink));
}

.hero-logo-badge img {
  width: 96%;
  height: 96%;
  object-fit: contain;
}

.plate-stage {
  position: absolute;
  inset: 5rem 0 0;
  display: grid;
  place-items: center;
}

.banana-plate {
  width: min(92vw, 530px);
  aspect-ratio: 1.55 / 1;
  position: relative;
  border: var(--outline);
  border-radius: 52% 48% 52% 48% / 24% 27% 73% 76%;
  background:
    radial-gradient(
      ellipse at 50% 54%,
      rgba(255, 255, 255, 0.18) 0 24%,
      transparent 24%
    ),
    linear-gradient(
      95deg,
      #0d6f2f 0%,
      var(--green) 42%,
      #37af4f 58%,
      #0e6f31 100%
    );
  box-shadow: 14px 16px 0 var(--ink);
  transform: rotate(-8deg);
  overflow: hidden;
}

.banana-plate::before {
  content: "";
  position: absolute;
  inset: 12% 7%;
  border-radius: inherit;
  border: 2px dashed rgba(255, 242, 198, 0.58);
}

.banana-plate::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 4px;
  background: rgba(255, 242, 198, 0.54);
  transform: rotate(3deg);
  box-shadow:
    0 -42px 0 rgba(255, 242, 198, 0.19),
    0 42px 0 rgba(255, 242, 198, 0.18);
}

.leaf-food {
  position: absolute;
  z-index: 2;
  border: var(--outline);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(var(--tilt));
}

.rice-mound {
  width: 7.4rem;
  height: 5.1rem;
  left: 39%;
  top: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 28%, #fff 0 4px, transparent 4.5px),
    radial-gradient(circle at 55% 35%, #fff 0 5px, transparent 5.5px),
    radial-gradient(circle at 72% 59%, #fff 0 3.5px, transparent 4px), #fff9e8;
  --tilt: -4deg;
}

.curry-pool {
  width: 5.8rem;
  height: 4.5rem;
  left: 27%;
  top: 46%;
  border-radius: 46% 54% 42% 58%;
  background:
    radial-gradient(circle at 33% 44%, #7b230f 0 7px, transparent 7.5px),
    var(--orange);
  --tilt: 10deg;
}

.poriyal-scoop {
  width: 4.9rem;
  height: 4rem;
  left: 58%;
  top: 49%;
  border-radius: 42% 58% 48% 52%;
  background:
    radial-gradient(circle at 22% 31%, #fee24b 0 5px, transparent 5.5px),
    radial-gradient(circle at 65% 52%, #0f7d35 0 5px, transparent 5.5px),
    #f6a53b;
  --tilt: -15deg;
}

.appalam-disc {
  width: 6rem;
  height: 6rem;
  right: 13%;
  top: 21%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(21, 21, 21, 0.12) 0 5px,
      transparent 5.5px
    ),
    radial-gradient(
      circle at 65% 65%,
      rgba(21, 21, 21, 0.14) 0 4px,
      transparent 4.5px
    ),
    #ffe7a6;
  --tilt: 12deg;
}

.pickle-dot {
  width: 3.7rem;
  height: 3rem;
  left: 20%;
  top: 27%;
  border-radius: 52% 48% 43% 57%;
  background:
    radial-gradient(circle at 30% 50%, #ffdd00 0 5px, transparent 5.5px),
    var(--red);
  --tilt: -22deg;
}

.float-food {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: rotate(var(--rotate));
  /* will-change only when GSAP is active — toggled via .is-animating class */
  filter: drop-shadow(4px 4px 0 var(--ink));
}

.float-food.is-animating,
.floaty.is-animating,
.float-slow.is-animating {
  will-change: transform;
}

.float-food svg {
  width: 100%;
  height: auto;
}

.float-dosa {
  width: clamp(6.5rem, 12vw, 9rem);
  aspect-ratio: 140 / 92;
  left: 2%;
  top: 10%;
  --rotate: -14deg;
}

.float-idli {
  width: clamp(5.2rem, 9.5vw, 7.2rem);
  aspect-ratio: 100 / 92;
  right: 6%;
  top: 34%;
  --rotate: 9deg;
}

.float-parotta {
  width: clamp(5.5rem, 10vw, 7.5rem);
  aspect-ratio: 1;
  left: 11%;
  bottom: 12%;
  --rotate: 12deg;
}

.float-pot {
  width: clamp(6rem, 11vw, 8rem);
  aspect-ratio: 110 / 95;
  right: 4%;
  bottom: 12%;
  --rotate: -12deg;
}

.float-tea {
  width: clamp(4rem, 7vw, 5.5rem);
  aspect-ratio: 78 / 110;
  right: 32%;
  top: 2%;
  --rotate: 7deg;
}

.tiny-particle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  /* will-change promoted via .is-animating only */
}

.chilli {
  width: 1.1rem;
  height: 4.2rem;
  border: 2px solid var(--ink);
  border-radius: 80% 20% 80% 20%;
  background: var(--red);
}

.chilli::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 0.36rem;
  width: 0.62rem;
  height: 0.85rem;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: var(--green);
  transform: rotate(21deg);
}

.lemon {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  background-image:
    linear-gradient(
      45deg,
      transparent 48%,
      rgba(21, 21, 21, 0.35) 49% 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      rgba(21, 21, 21, 0.22) 49% 51%,
      transparent 52%
    );
}

.leaflet {
  width: 1.5rem;
  height: 3.2rem;
  border: 2px solid var(--ink);
  border-radius: 100% 0 100% 0;
  background: #2ca24c;
}

.particle-1 {
  left: 45%;
  top: 9%;
}
.particle-2 {
  right: 1%;
  top: 60%;
  transform: rotate(-21deg);
}
.particle-3 {
  left: 3%;
  top: 57%;
  transform: rotate(31deg);
}
.particle-4 {
  right: 25%;
  bottom: 5%;
  transform: rotate(12deg);
}
.particle-5 {
  left: 34%;
  bottom: 0;
  transform: rotate(-26deg);
}

.food-time {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 176, 0, 0.2)),
    radial-gradient(
        circle at 12px 12px,
        rgba(21, 21, 21, 0.13) 2px,
        transparent 2.6px
      )
      0 0 / 30px 30px;
  border-block: var(--outline);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.time-card {
  position: relative;
  min-height: 27rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(var(--tilt));
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.time-card::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 2px dashed rgba(21, 21, 21, 0.28);
  border-radius: var(--radius);
  pointer-events: none;
}

.time-card:hover,
.time-card:focus-within,
.time-card.is-open {
  transform: translateY(-0.45rem) rotate(0deg) scale(1.02);
  box-shadow: 13px 13px 0 var(--ink);
}

.time-card button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: transparent;
  color: transparent;
}

.time-card h3,
.time-card p,
.time-card ul,
.time-illustration {
  position: relative;
  z-index: 1;
}

.time-card p {
  font-weight: 700;
}

.time-illustration {
  width: 100%;
  aspect-ratio: 1.42;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.time-illustration svg,
.time-illustration img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.time-items {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 3rem;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.time-card:hover .time-items,
.time-card:focus-within .time-items,
.time-card.is-open .time-items {
  max-height: 10rem;
}

.time-items li {
  padding: 0.38rem 0.52rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

.signatures {
  background:
    linear-gradient(90deg, rgba(60, 47, 114, 0.09), rgba(214, 40, 40, 0.08)),
    var(--cream);
  overflow: hidden;
}

.signature-board {
  position: relative;
  padding: 1.4rem 0;
  border-block: 5px solid var(--ink);
  background:
    linear-gradient(0deg, rgba(21, 21, 21, 0.08) 0 4px, transparent 4px 18px),
    var(--yellow);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  /* will-change promoted only when animation runs */
}

.signature-card {
  width: clamp(13rem, 22vw, 18rem);
  min-height: 12.5rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--small-shadow);
  transform: rotate(var(--tilt));
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.signature-card:hover,
.signature-card:focus-within {
  transform: rotate(0deg) translateY(-0.35rem);
  background: #fff8dc;
}

.sticker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.sticker-icon {
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50%;
  background: var(--sticker);
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
}

.sticker-icon svg,
.sticker-icon img,
.sticker-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sticker-pin {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 2px 2px 0 var(--ink);
}

.signature-card h3 {
  font-size: 1.5rem;
}

.signature-card p {
  font-size: 0.92rem;
  font-weight: 800;
}

/* =============================================================
   10. FEATURED DISHES
   Homepage replacement for the old menu preview. Cards use
   optimized AI-generated WebP food images and hide prices.
   ============================================================= */
.featured-dishes,
.menu-wall {
  background:
    linear-gradient(135deg, rgba(22, 139, 58, 0.15), rgba(255, 255, 255, 0.22)),
    radial-gradient(
        circle at 16px 16px,
        rgba(21, 21, 21, 0.1) 2px,
        transparent 2.8px
      )
      0 0 / 32px 32px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.featured-card:hover,
.featured-card:focus-within {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: 11px 11px 0 var(--ink);
}

.featured-image {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: var(--outline);
  background: var(--cream);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.04);
}

.featured-content {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  padding: clamp(0.9rem, 2vw, 1.15rem);
}

.featured-content h3 {
  color: var(--purple);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.featured-content p {
  font-weight: 700;
  line-height: 1.55;
}

.dish-label,
.dish-type {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.dish-type.non-veg {
  background: #ffc7c7;
  color: var(--ink);
}

.featured-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 0;
  text-align: center;
}

.featured-note {
  max-width: 720px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--purple);
}

/* =============================================================
   10b. MENU UTILITIES
   Shared controls/item styles retained for menu.html and legacy
   menu rendering helpers.
   ============================================================= */

.menu-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
  position: sticky;
  /* Use CSS variable so JS can set it accurately per viewport */
  top: calc(var(--navbar-h) + 12px);
  z-index: 20;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: rgba(255, 242, 198, 0.94);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(14px);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.6rem 0.85rem;
}

.search-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.filter-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.2rem 0;
}

.filter-btn {
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--white);
}

.filter-btn.is-active {
  background: var(--purple);
  color: var(--white);
}

.menu-note {
  display: inline-flex;
  width: fit-content;
  padding: 0.6rem 0.82rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: var(--small-shadow);
  font-weight: 900;
}

.menu-groups {
  display: block;
  columns: 3 320px;
  column-gap: 1.2rem;
}

.menu-group {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--small-shadow);
  break-inside: avoid;
  margin-bottom: 1.2rem;
}

.menu-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 3px dashed rgba(21, 21, 21, 0.28);
  color: var(--purple);
  font-size: 1.34rem;
}

.menu-count {
  min-width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 3.3rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(21, 21, 21, 0.18);
  border-radius: var(--radius);
  background: #fffaf0;
}

.menu-item-name {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.food-badge {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.food-badge::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--badge);
}

.price {
  min-width: 3.1rem;
  padding: 0.22rem 0.38rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.empty-menu {
  grid-column: 1 / -1;
  padding: 2rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--small-shadow);
  font-weight: 900;
  text-align: center;
}

/* ── Menu preview footer (homepage) ── */
.menu-preview-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 0;
  text-align: center;
}

.menu-preview-note {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple);
  opacity: 0.75;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--yellow);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-more-btn:hover,
.view-more-btn:focus-visible {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 11px 11px 0 var(--ink);
}

.view-more-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.view-more-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.builder {
  background:
    linear-gradient(135deg, rgba(214, 40, 40, 0.11), rgba(60, 47, 114, 0.14)),
    var(--cream);
  border-block: var(--outline);
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.builder-stage {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: var(--outline);
  border-radius: var(--radius);
  background:
    radial-gradient(
        circle at 28px 28px,
        rgba(255, 255, 255, 0.28) 0 8px,
        transparent 8.5px
      )
      0 0 / 58px 58px,
    var(--purple);
  box-shadow: var(--shadow);
}

.builder-leaf {
  width: min(100%, 640px);
  aspect-ratio: 1.58 / 1;
  position: relative;
  border: var(--outline);
  border-radius: 54% 46% 53% 47% / 24% 26% 74% 76%;
  background: linear-gradient(
    95deg,
    #0e6b31 0%,
    var(--green) 40%,
    #35b04d 55%,
    #0e7b34 100%
  );
  box-shadow: 13px 15px 0 var(--ink);
  overflow: hidden;
  container-type: inline-size;
}

.builder-leaf::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: inherit;
  border: 2px dashed rgba(255, 242, 198, 0.52);
}

.builder-leaf::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 4px;
  background: rgba(255, 242, 198, 0.5);
  box-shadow:
    0 -3.1rem 0 rgba(255, 242, 198, 0.16),
    0 3.1rem 0 rgba(255, 242, 198, 0.17);
  transform: rotate(-1deg);
}

.builder-food {
  position: absolute;
  z-index: 2;
  /* No blob border/bg — SVG illustration provides its own visual */
  border: none;
  background: transparent;
  box-shadow: none;
  /* Drop shadow to match the site's neobrutalist style */
  filter: drop-shadow(3px 3px 0 rgba(21, 21, 21, 0.7));
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center center;
  pointer-events: none;
  overflow: visible;
  /* Ensure smooth SVG scaling */
  image-rendering: crisp-edges;
}

.builder-food svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.builder-controls {
  display: grid;
  gap: 0.9rem;
}

.builder-controls .lead {
  font-weight: 700;
}

.builder-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.builder-btn {
  min-height: 3.15rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-btn[data-food="rice"] {
  background: #fff9e8;
}
.builder-btn[data-food="curry"] {
  background: #f8a836;
}
.builder-btn[data-food="poriyal"] {
  background: #8ed14b;
}
.builder-btn[data-food="appalam"] {
  background: #ffe7a6;
}
.builder-btn[data-food="pickle"] {
  background: #ef4141;
  color: var(--white);
}
.builder-btn[data-food="chicken"] {
  background: #b95324;
  color: var(--white);
}
.builder-btn[data-food="fish"] {
  background: #6ac4ff;
}
.builder-btn[data-food="sweet"] {
  background: #fdb5d9;
}

.social {
  background:
    radial-gradient(
        circle at 18px 18px,
        rgba(255, 255, 255, 0.26) 0 6px,
        transparent 6.5px
      )
      0 0 / 44px 44px,
    var(--green);
  color: var(--white);
  border-block: var(--outline);
}

.social h2 {
  color: var(--white);
  text-shadow:
    4px 4px 0 var(--red),
    7px 7px 0 var(--ink);
}

.social .lead {
  color: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.social-card {
  min-height: 17rem;
  display: grid;
  gap: 1rem;
  align-content: space-between;
  padding: 1.2rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -2.4rem;
  top: -2.3rem;
  border: var(--outline);
  border-radius: 50%;
  background: var(--social);
  opacity: 0.95;
}

.social-card > * {
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--social);
  box-shadow: var(--small-shadow);
}

.social-icon svg {
  width: 3rem;
  height: 3rem;
}

.social-card h3 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.social-card p {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.visit {
  background:
    linear-gradient(135deg, rgba(247, 127, 0, 0.2), rgba(255, 255, 255, 0.28)),
    var(--cream);
}

.visit-grid {
  display: grid;
  /* Prevent the map card from forcing overflow on narrow viewports */
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-panel,
.map-card {
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.4rem);
}

.contact-panel {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.phone-number {
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: var(--small-shadow);
  font-family: "Bungee", "Baloo 2", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.map-card {
  min-height: 24rem;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 0;
  display: flex;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  flex-grow: 1;
}

.map-route {
  position: absolute;
  inset: 12%;
  border: 8px dashed var(--red);
  border-right-color: transparent;
  border-bottom-color: var(--green);
  border-radius: 54% 46% 48% 52%;
  transform: rotate(-9deg);
}

.map-pin {
  position: absolute;
  left: 48%;
  top: 43%;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: var(--small-shadow);
  transform: rotate(-45deg);
}

.map-pin svg {
  width: 2.2rem;
  height: 2.2rem;
  transform: rotate(45deg);
}

.map-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--small-shadow);
}

.map-label h3 {
  color: var(--purple);
}

.site-footer {
  padding: 3.5rem 0 6rem;
  border-top: var(--outline);
  background:
    radial-gradient(
        circle at 18px 18px,
        rgba(255, 176, 0, 0.2) 0 7px,
        transparent 7.5px
      )
      0 0 / 44px 44px,
    var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 100%;
}

.footer-brand-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.footer-brand-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 560px;
}

.footer-logo {
  width: 6rem;
  height: 6rem;
  border: var(--outline);
  border-color: var(--white);
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--yellow);
}

.footer-brand h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--white);
  white-space: nowrap;
  text-shadow:
    4px 4px 0 #d4af37,
    7px 7px 0 var(--purple);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-family: "Lilita One", "Baloo 2", sans-serif;
  font-size: 1.35rem;
  color: var(--white);
}

.footer-contact svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--yellow);
}

.footer-contact a {
  font-weight: 800;
  transition: color 180ms ease;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-social-icons {
  display: flex;
  gap: 0.95rem;
  justify-content: flex-end;
}

.footer-social-stack {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  max-width: 720px;
}

.footer-contact-list {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  color: var(--cream);
  font-weight: 700;
  text-align: right;
  margin-top: 0.2rem;
  margin-left: auto;
  max-width: 460px;
}

.footer-contact-list p {
  line-height: 1.45;
}

.footer-contact-list span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact-list a {
  color: var(--white);
  font-weight: 900;
  transition: color 180ms ease;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--yellow);
}

.footer-social-icons a {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--small-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.footer-social-icons svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-social-icons a:hover {
  transform: translate(-2px, -2px) rotate(-3deg);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--white);
}

.footer-social-icons a[aria-label="Instagram"]:hover {
  background: #e1306c;
}

.footer-social-icons a[aria-label="Facebook"]:hover {
  background: #1877f2;
}

.footer-social-icons a[aria-label="WhatsApp"]:hover {
  background: #25d366;
}

.footer-bottom {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.24);
}

.credit {
  font-weight: 800;
  color: var(--cream);
  margin: 0;
}

.credit strong {
  color: var(--yellow);
  font-weight: 900;
}

.footer-copyright {
  grid-column: 1 / -1;
  width: 100%;
  padding: 1rem 0 0;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 242, 198, 0.5);
  letter-spacing: 0.03em;
}

.footer-copyright strong {
  color: var(--yellow);
  font-weight: 900;
}

.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0.7rem;
  right: 0.7rem;
  /* iOS safe area inset for home bar */
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 70;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.5rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 8px 0 var(--ink);
}

.mobile-action-bar a {
  min-height: 3.1rem;
  display: grid;
  place-items: center;
  gap: 0.14rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.mobile-action-bar a:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.mobile-action-bar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-action-bar a:nth-child(1) {
  background: var(--yellow);
}
.mobile-action-bar a:nth-child(2) {
  background: #dbffd9;
}
.mobile-action-bar a:nth-child(3) {
  background: #ffe2e2;
}
.mobile-action-bar a:nth-child(4) {
  background: #e9e0ff;
}

.shape-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.34;
}

.doodle-ring {
  width: 5rem;
  height: 5rem;
  border: 8px solid var(--red);
  border-radius: 50%;
}

.doodle-zig {
  width: 8rem;
  height: 3rem;
  background: repeating-linear-gradient(
    135deg,
    var(--purple) 0 8px,
    transparent 8px 16px
  );
  clip-path: polygon(
    0 40%,
    14% 0,
    28% 40%,
    42% 0,
    56% 40%,
    70% 0,
    84% 40%,
    100% 0,
    100% 55%,
    84% 95%,
    70% 55%,
    56% 95%,
    42% 55%,
    28% 95%,
    14% 55%,
    0 95%
  );
}

.break-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: 1rem;
    background:
      radial-gradient(
          circle at 16px 16px,
          rgba(21, 21, 21, 0.12) 2px,
          transparent 2.6px
        )
        0 0 / 30px 30px,
      var(--cream);
    border-top: var(--outline);
    transform: translateX(105%);
    transition: transform 240ms ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 1.2rem;
    border: var(--outline);
    background: var(--white);
    box-shadow: var(--small-shadow);
  }

  .hamburger {
    display: inline-flex;
  }

  .hero-grid,
  .builder-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-groups {
    display: block;
    columns: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --shadow: 6px 6px 0 var(--ink);
    --small-shadow: 4px 4px 0 var(--ink);
  }

  .container {
    width: min(100% - 1rem, 720px);
  }

  .nav-inner {
    min-height: 72px;
    gap: 0.45rem;
  }

  .nav-links {
    top: 72px;
  }

  .nav-actions {
    margin-left: auto;
    position: relative;
    z-index: 80;
  }

  .hamburger {
    display: inline-flex !important;
    flex: 0 0 2.85rem;
    height: 2.85rem;
  }

  .brand-mark {
    width: 3.45rem;
    height: 3.45rem;
  }

  .brand-text {
    max-width: min(56vw, 13rem);
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero::before {
    inset: 0.55rem;
  }

  h1 {
    font-size: clamp(1.92rem, 8.8vw, 3.25rem);
    text-shadow:
      3px 3px 0 var(--yellow),
      6px 6px 0 var(--ink);
    text-wrap: auto;
  }

  h2 {
    font-size: clamp(2.12rem, 12vw, 3.7rem);
  }

  .hero-subtitle {
    padding: 0.85rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
    overflow: hidden;
  }

  .plate-stage {
    inset: 4.2rem 0 0;
  }

  .hero-logo-badge {
    top: 0;
    right: 0.3rem;
    width: 7rem;
  }
  .float-dosa {
    width: 5.9rem;
    height: auto;
    left: 0;
  }

  .float-idli {
    width: 4.8rem;
    height: auto;
    right: 0;
    top: 39%;
  }

  .float-parotta {
    width: 4.9rem;
    height: auto;
    left: 12%;
  }

  .float-pot {
    width: 5.3rem;
    height: auto;
  }

  .float-tea {
    width: 3.6rem;
    height: auto;
    right: 39%;
  }
  .time-grid,
  .featured-grid,
  .social-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-groups {
    display: block;
    columns: 1;
  }

  .time-card {
    min-height: 24rem;
    transform: rotate(0deg);
  }

  .menu-controls {
    /* top is now driven by --navbar-h CSS variable updated by JS */
    padding: 0.75rem;
  }

  .filter-tags-wrap {
    /* Horizontal scroll on mobile to prevent tag pile-up */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.2rem 0;
    scrollbar-width: none; /* Firefox */
  }

  .filter-tags-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-btn {
    flex-shrink: 0; /* Prevent filter buttons from shrinking */
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    min-height: 2.75rem;
  }

  .builder-buttons {
    /* Keep 2 columns on mobile — 1 col is too tall */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-stage {
    min-height: 330px;
  }

  .map-card {
    min-height: 21rem;
  }

  .footer-grid {
    gap: 1.4rem;
  }

  .footer-brand h2 {
    white-space: normal;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }

  .footer-social-stack,
  .footer-contact-list {
    justify-items: start;
    text-align: left;
    max-width: 100%;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .footer-brand-main {
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
  }

  .footer-contact-list {
    margin-left: 0;
  }

  .footer-social-icons {
    justify-content: flex-start;
    margin-top: 0;
  }

  .mobile-action-bar {
    display: grid;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 1.4rem), 480px);
    max-width: min(calc(100vw - 1.4rem), 480px);
    min-width: 0;
    overflow: hidden;
  }

  .mobile-action-bar a {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.58rem;
  }

  .break-mobile {
    display: block;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 3.05rem;
    height: 3.05rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hamburger {
    width: 2.85rem;
    height: 2.85rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .phone-number {
    width: 100%;
    text-align: center;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* CRO Updates: Best Seller Tag, Opening Hours & Reviews Section */
.menu-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.best-seller-tag {
  font-family: "Lilita One", "Baloo 2", sans-serif;
  font-size: 0.68rem;
  color: var(--white);
  background: var(--orange);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.opening-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--cream);
  font-weight: 800;
  font-size: 0.95rem;
  width: fit-content;
  box-shadow: var(--small-shadow);
  margin-top: 0.5rem;
}

.hours-label {
  color: var(--red);
  text-transform: uppercase;
  font-family: "Lilita One", sans-serif;
  font-size: 1.05rem;
}

.reviews {
  background: linear-gradient(135deg, rgba(60, 47, 114, 0.06), rgba(255, 255, 255, 0.28)), var(--white);
  border-top: var(--outline);
  border-bottom: var(--outline);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2.2rem);
  margin-bottom: 2.5rem;
}

.review-card {
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--card-bg, var(--white));
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
  transform: rotate(var(--tilt));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.review-card:hover {
  transform: scale(1.02) rotate(0deg);
  box-shadow: 10px 10px 0 var(--ink);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.review-header .stars {
  color: var(--orange);
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 var(--ink);
}

.review-date {
  color: var(--purple);
  font-family: "Lilita One", sans-serif;
  text-transform: uppercase;
}

.review-text {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.review-author {
  font-family: "Lilita One", "Baloo 2", sans-serif;
  color: var(--purple);
  text-align: right;
  margin: 0;
  font-size: 1.15rem;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.reviews-summary-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  margin: 2rem auto 0;
  padding: 0.8rem 1.4rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--small-shadow);
}

.rating-number {
  font-family: "Bungee", sans-serif;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}

.rating-details {
  display: grid;
  gap: 0.15rem;
}

.rating-details .stars {
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 0 var(--ink);
}

.rating-count {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    transform: rotate(0deg) !important;
  }
  .reviews-summary-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   MAGNETIC BUTTONS
   .magnetic elements follow the cursor with a subtle translate.
   The transition is intentionally loose so the spring-back feels
   organic rather than snappy.
   JS in Section 14 of script.js handles the mousemove/mouseleave.
   ================================================================ */
.magnetic {
  /* Spring-back easing on mouseleave */
  transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.magnetic:hover {
  will-change: transform;
  /* transition is tighter on follow so it feels responsive */
  transition: transform 80ms linear;
}
