:root {
  --cocoa: #2d1b10;
  --charcoal: #1a1a1a;
  --marble: #f5f5f0;
  --cream: #fafaf6;
  --saffron: #e8a23d;
  --saffron-deep: #d4892a;
  --herb: #77a047;
  --earth: #6b3e26;
  --muted: #6b5e54;
  --line: rgba(45, 27, 16, 0.12);
  --whatsapp: #25d366;
  --font-brand: "Playball", cursive;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-weight: 400;
  background-color: var(--marble);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -10%, rgba(190, 186, 178, 0.28), transparent 52%),
    radial-gradient(ellipse 70% 45% at 96% 12%, rgba(168, 164, 156, 0.18), transparent 48%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(176, 170, 160, 0.2), transparent 50%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--saffron);
  color: var(--cocoa);
}

/* ——— Logo components ——— */

logo-seal,
logo-wordmark,
logo-lockup {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Hide parser leftover light-DOM text (upgrade runs before children attach). */
logo-wordmark,
logo-lockup {
  font-size: 0;
}

.logo-wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  color: var(--cocoa);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-wordmark--nav {
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
}

.logo-wordmark--md {
  font-size: 1.75rem;
}

.logo-wordmark--hero {
  font-size: clamp(2.6rem, 10vw, 5.6rem);
}

.logo-wordmark--footer {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.logo-tagline {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.72rem, 2.1vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--cocoa);
  white-space: nowrap;
}

.logo-lockup {
  flex-direction: column;
}

.logo-lockup--center {
  align-items: center;
  text-align: center;
}

.logo-lockup--left {
  align-items: flex-start;
  text-align: left;
}

.logo-seal {
  color: var(--cocoa);
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
}

.logo-seal-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-seal-text {
  font-family: var(--font-brand);
  letter-spacing: 0.35px;
}

.logo-seal-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo-seal--nav,
.logo-seal--icon,
.logo-seal--plain {
  width: 3rem;
  height: 3rem;
}

.logo-seal--md {
  width: 4.5rem;
  height: 4.5rem;
}

.logo-seal--footer {
  width: 5.25rem;
  height: 5.25rem;
}

.logo-seal--hero {
  width: clamp(5.5rem, 18vw, 8.5rem);
  height: clamp(5.5rem, 18vw, 8.5rem);
  z-index: 2;
}

.logo-wordmark-wrap {
  min-width: 0;
}

.brand-home {
  gap: 0.55rem;
}

h1 logo-wordmark,
h1 .logo-wordmark {
  display: block;
}

.hero-plate {
  isolation: isolate;
}

.hero-seal {
  z-index: 2;
}

.footer-brand {
  gap: 1rem;
}

@media (max-width: 767px) {
  .brand-home {
    max-width: calc(100% - 9.5rem);
  }
}

@media (max-width: 380px) {
  .logo-wordmark--nav {
    font-size: 1.05rem;
  }
  .logo-tagline {
    white-space: normal;
    max-width: 18rem;
  }
}

@media (max-width: 340px) {
  .logo-wordmark--nav {
    font-size: 0.95rem;
  }
  .logo-seal--nav,
  .logo-seal--icon,
  .logo-seal--plain {
    width: 2.5rem;
    height: 2.5rem;
  }
  .brand-home {
    gap: 0.4rem;
  }
}

/* ——— UI ——— */

.tap {
  min-height: 48px;
  min-width: 48px;
}

.btn-gold {
  background: var(--saffron);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 22px rgba(232, 162, 61, 0.28);
}

.btn-gold:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid rgba(107, 62, 38, 0.35);
  color: var(--cocoa);
  background: transparent;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(232, 162, 61, 0.12);
  border-color: var(--saffron);
}

.nav-glass {
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.hero-flyer {
  position: relative;
}

.hero-flyer--cinema {
  min-height: min(100svh, 58rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1008 url("../assets/rasa-biryani.png") center / cover no-repeat;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: contrast(1.14) saturate(1.28) sepia(0.14) brightness(0.88);
  transform: scale(1.08);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

.hero-media-grade,
.hero-media-vignette,
.hero-media-rays,
.hero-media-steam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media-grade {
  background:
    linear-gradient(180deg, rgba(18, 10, 5, 0.62) 0%, rgba(45, 27, 16, 0.28) 42%, rgba(18, 10, 5, 0.7) 100%),
    linear-gradient(90deg, rgba(18, 10, 5, 0.38), transparent 28%, transparent 72%, rgba(18, 10, 5, 0.38));
}

.hero-media-vignette {
  box-shadow: inset 0 0 140px 48px rgba(8, 4, 2, 0.58);
}

.hero-media-rays {
  inset: -12%;
  background:
    radial-gradient(ellipse 48% 36% at 72% 18%, rgba(232, 162, 61, 0.26), transparent 58%),
    radial-gradient(ellipse 36% 28% at 28% 78%, rgba(232, 162, 61, 0.1), transparent 52%);
  mix-blend-mode: screen;
  animation: hero-rays 14s ease-in-out infinite alternate;
}

.hero-media-steam {
  background: radial-gradient(ellipse 62% 38% at 50% 72%, rgba(255, 246, 228, 0.14), transparent 62%);
  mix-blend-mode: soft-light;
  animation: hero-steam 9s ease-in-out infinite alternate;
}

.hero-flyer--cinema .logo-wordmark,
.hero-flyer--cinema .promo-line {
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(8, 4, 2, 0.5);
}

.hero-flyer--cinema .logo-tagline {
  color: rgba(250, 250, 246, 0.9);
  text-shadow: 0 1px 14px rgba(8, 4, 2, 0.45);
}

.hero-flyer--cinema .hero-content .text-cocoa {
  color: #f3e6c8;
}

.hero-flyer--cinema .hero-content .text-earth {
  color: #efc56a;
}

.hero-flyer--cinema .hero-content a:not(.btn-gold) {
  color: inherit;
}

.hero-flyer--cinema .price-was {
  color: rgba(250, 250, 246, 0.55);
}

.hero-flyer--cinema .hero-food {
  box-shadow: 0 18px 56px rgba(8, 4, 2, 0.48);
}

@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.18); }
}

@keyframes hero-rays {
  from { opacity: 0.72; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(-2%, 1.5%, 0); }
}

@keyframes hero-steam {
  from { opacity: 0.55; transform: translateY(6px) scale(1); }
  to { opacity: 0.95; transform: translateY(-8px) scale(1.06); }
}

.hero-food {
  width: min(100%, 34rem);
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
  object-position: 42% 48%;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(45, 27, 16, 0.16);
}

.food-crop {
  object-fit: cover;
  object-position: 48% 42%;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--earth);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 2.25rem;
  background: currentColor;
  opacity: 0.55;
}

.timeline-track {
  position: relative;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--saffron), transparent);
}

@media (min-width: 768px) {
  .timeline-track::before {
    left: 0;
    right: 0;
    top: 1.35rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

.era-btn {
  min-height: 48px;
}

.era-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--saffron);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(232, 162, 61, 0.16);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.era-btn[aria-expanded="true"] .era-dot {
  background: var(--saffron);
  box-shadow: 0 0 0 6px rgba(232, 162, 61, 0.22);
}

.era-panel {
  display: none;
}

.era-btn[aria-expanded="true"] + .era-panel,
.era-panel.is-open {
  display: block;
}

@media (min-width: 768px) {
  .era-panel {
    display: block;
  }
}

.story-pickle {
  width: 100%;
}

.story-pickle-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(28rem, 70vw);
  object-fit: cover;
  object-position: 50% 42%;
}

.story-pickle-caption {
  margin: 0;
  padding: 0.9rem 1.15rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--muted);
  background: var(--cream);
}

.card-lux {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-lux:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 162, 61, 0.65);
  box-shadow: 0 16px 36px rgba(45, 27, 16, 0.08);
}

.card-lux.featured {
  border-color: rgba(232, 162, 61, 0.7);
  box-shadow: 0 0 0 1px rgba(232, 162, 61, 0.2), 0 14px 32px rgba(232, 162, 61, 0.12);
}

.section-kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--earth);
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  line-height: 1.2;
}

.promo-line {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.price-was {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.body-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  animation: toast-in 0.35s ease both;
  font-family: var(--font-sans);
}

.toast.out {
  animation: toast-out 0.28s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.cart-overlay {
  background: rgba(45, 27, 16, 0.45);
  backdrop-filter: blur(6px);
}

.cart-drawer {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--cocoa);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
}

.cart-badge[data-count="0"] {
  display: none;
}

.panel-soft {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

/* ——— Diet / allergen chips + nutrition panel ——— */

.diet-chips,
.allergen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.chip-diet {
  color: #3f5c24;
  background: rgba(119, 160, 71, 0.16);
  border: 1px solid rgba(119, 160, 71, 0.38);
}

.chip-allergen {
  color: var(--earth);
  background: rgba(107, 62, 38, 0.06);
  border: 1px solid rgba(107, 62, 38, 0.18);
}

.chip-meat {
  color: var(--cocoa);
  background: rgba(232, 162, 61, 0.14);
  border: 1px solid rgba(232, 162, 61, 0.4);
}

.nutrition-panel {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.nutrition-panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cocoa);
}

.nutrition-panel summary::-webkit-details-marker {
  display: none;
}

.nutrition-panel[open] summary .faq-chevron {
  transform: rotate(180deg);
}

.nutrition-body {
  padding: 0 0.85rem 0.95rem;
  border-top: 1px solid var(--line);
}

.nutrition-body h4 {
  margin: 0.85rem 0 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--earth);
}

.nutrition-body p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.kcal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-top: 0.15rem;
}

.kcal-line strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cocoa);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.macro-cell {
  margin: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  background: var(--marble);
  text-align: center;
}

.macro-cell dt {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
}

.macro-cell dd {
  margin: 0.12rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cocoa);
}

.nutrition-note {
  margin-top: 0.85rem !important;
  font-size: 0.7rem !important;
  font-style: italic;
}

.press-facts dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}

.press-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--earth);
}

.press-facts dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-credit {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.footer-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--earth);
}

@media (max-width: 420px) {
  .press-facts dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .press-facts dt {
    margin-top: 0.55rem;
  }

  .press-facts dt:first-child {
    margin-top: 0;
  }
}

/* ——— DuitNow checkout QR ——— */

.pay-qr {
  margin-top: 0.25rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.pay-qr h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--earth);
}

.pay-qr p {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.pay-qr-frame {
  display: block;
  width: min(100%, 17.5rem);
  margin: 0 auto 0.85rem;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid rgba(107, 62, 38, 0.18);
  border-radius: 8px;
}

.pay-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.pay-amount {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earth);
}

.cart-confirm {
  padding: 0.5rem 0 0.25rem;
}

.cart-confirm h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cocoa);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* ——— Biryani is Love / Crocherish gifts ——— */

.gifts-band {
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(232, 162, 61, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 96% 80%, rgba(119, 160, 71, 0.1), transparent 50%),
    var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gift-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gift-chip {
  border: 1px solid rgba(107, 62, 38, 0.22);
  background: #fff;
  color: var(--cocoa);
  border-radius: 999px;
  padding: 0 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 44px;
}

.gift-chip:hover {
  border-color: var(--saffron);
  background: rgba(232, 162, 61, 0.1);
}

.gift-chip.is-on {
  background: var(--saffron);
  border-color: var(--saffron-deep);
  color: var(--cocoa);
}

.gift-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gift-pack {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.gift-pack.is-dim {
  opacity: 0.42;
}

.gift-pack:hover,
.gift-pack:focus-within {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(45, 27, 16, 0.08);
}

.gift-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 11.5rem;
  background: var(--earth);
}

.gift-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-food {
  object-position: 48% 42%;
}

.gift-crochet {
  object-position: 50% 40%;
  border-left: 3px solid #fff;
}

.gift-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  border-radius: 4px;
  background: var(--saffron);
  padding: 0.2rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cocoa);
}

.gift-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.25rem;
}

.gift-packaging {
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: var(--marble);
  border: 1px dashed rgba(107, 62, 38, 0.28);
}

.gift-packaging h4 {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--earth);
}

.gift-packaging p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.gift-cart-occasion,
.gift-occasion {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.25rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(107, 62, 38, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.gift-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-lux,
  .btn-gold,
  .cart-drawer,
  .toast {
    transition: none;
    animation: none;
  }
  .hero-video {
    display: none;
  }
  .hero-media-rays,
  .hero-media-steam,
  .hero-video {
    animation: none;
  }
}
