﻿/* ============================================================
   Page layouts — minimal, photography first
   ============================================================ */

/* -------------------------------------------------- banner */

.announce {
  background: var(--forest);
  color: var(--saffron-soft);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: center;
  padding: 0.45rem var(--gutter);
  line-height: 1.6;
}


/* ---------------------------------------------------- hero */

.hero {
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
}

.hero__inner {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}

/* The real badge logo, sized to sit as a brand mark above the headline
   rather than dominating the hero the way the old disc did. */
.hero__logo {
  width: clamp(76px, 14vw, 112px);
  height: auto;
  margin-bottom: var(--sp-3);
}

.hero h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 em { font-style: normal; color: var(--saffron-dark); }

.hero__lead {
  font-size: var(--text-md);
  color: var(--ink-soft);
  margin-top: var(--sp-3);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.hero__note {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

/* Two-photo composition — the food is the artwork, not a logo. */
.hero__art {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--sp-2);
  aspect-ratio: 4 / 3;
  max-height: 380px;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.hero__art img:first-child { grid-row: span 2; }

/* ------------------------------------------- category tiles */

.cat-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

.cat-tile {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: border-color 0.18s var(--ease);
}

.cat-tile:hover { border-color: var(--line); }

.cat-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-deep);
}

.cat-tile__body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }

.cat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.cat-tile span { font-size: var(--text-xs); color: var(--ink-faint); }

/* ------------------------------------------------- grids */

.dish-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }

/* Featured cards stay two-up even on a narrow phone — the photo is the
   point, and a single tall column makes the home page endless. */
.dish-grid--tall {
  gap: var(--sp-2);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 620px) { .dish-grid--tall { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } }
@media (min-width: 900px) { .dish-grid--tall { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 480px) {
  .dish--tall .dish__photo { height: 120px; }
  .dish--tall .dish__body { padding: var(--sp-2); }
}

.empty-state {
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  color: var(--ink-faint);
}

.empty-state h3 { font-size: var(--text-md); margin-bottom: 0.25rem; color: var(--ink); }
.empty-state p { font-size: var(--text-sm); }

/* ------------------------------------------------ page head */

.page-head {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--sp-5);
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; color: var(--ink); }
.page-head p { color: var(--ink-faint); font-size: var(--text-sm); margin-top: 0.3rem; max-width: 52ch; }

/* ------------------------------------------------ menu page */

.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding-block: var(--sp-3);
}

.search-box { position: relative; margin-bottom: var(--sp-2); }

.search-box input {
  width: 100%;
  padding: 0.6rem 2.4rem 0.6rem 0.9rem;
  font-size: max(16px, var(--text-sm));
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

.search-box input:focus { outline: none; border-color: var(--forest); }

.search-box__icon {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.menu-section + .menu-section { margin-top: var(--sp-6); }

.menu-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-3);
}

.menu-section__head h2 { font-size: var(--text-lg); color: var(--ink); }
.menu-section__head p { font-size: var(--text-xs); color: var(--ink-faint); }

/* ----------------------------------------------- order page */

.order-layout { display: grid; gap: var(--sp-4); align-items: start; }

@media (min-width: 940px) {
  .order-layout { grid-template-columns: 1fr 340px; gap: var(--sp-5); }
  .order-summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
}

.cart-line {
  display: grid;
  /* minmax(0, 1fr) — not 1fr — or a long dish name sets the track's minimum
     to its own width and pushes the price column off a narrow screen. */
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
}

.cart-line__body { min-width: 0; }
.cart-line:last-child { border-bottom: none; }

/* Below ~400px the three columns leave the name barely 80px, so the photo
   and gaps give some of it back. */
@media (max-width: 400px) {
  .cart-line { grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--sp-2); }
  .cart-line__photo { width: 44px; height: 44px; }
}

.cart-line__photo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-deep);
}

.cart-line__name { font-weight: 600; color: var(--ink); font-size: var(--text-sm); line-height: 1.4; }
.cart-line__unit { font-size: var(--text-xs); color: var(--ink-faint); }

.cart-line__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
}

.cart-line__total { font-weight: 700; color: var(--forest); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: var(--text-sm); }

.link-remove { color: var(--ink-faint); font-size: var(--text-xs); padding: 2px; }
.link-remove:hover { color: var(--danger); }

.totals { display: grid; gap: var(--sp-2); }

.totals__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.totals__row--grand {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
}

.totals__row b { font-variant-numeric: tabular-nums; }

.order-success { text-align: center; padding: var(--sp-6) var(--sp-4); }

.order-success__mark {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--sp-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background: var(--success-mist);
}

.order-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--forest);
  background: var(--cream-deep);
  border-radius: 8px;
  padding: 0.35em 0.9em;
  margin-block: var(--sp-3);
  direction: ltr;
}

/* --------------------------------------------- reviews page */

.rating-summary {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .rating-summary { grid-template-columns: auto 1fr; } }

.rating-score {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.rating-bars { display: grid; gap: 5px; }

.rating-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.rating-bar__track { height: 6px; border-radius: var(--radius-pill); background: var(--cream-deep); overflow: hidden; }
.rating-bar__fill { height: 100%; border-radius: var(--radius-pill); background: var(--saffron); transition: width 0.7s var(--ease); }

.review-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 660px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-4);
}

.review__head { display: flex; align-items: center; gap: var(--sp-2); }

.review__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.review__name { font-weight: 600; color: var(--ink); font-size: var(--text-sm); line-height: 1.3; }
.review__date { font-size: var(--text-xs); color: var(--ink-faint); }
.review__text { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.75; white-space: pre-wrap; }

.review--featured { border-color: var(--saffron); background: var(--saffron-mist); }
.review__pin { margin-inline-start: auto; font-size: 0.9rem; }

/* ---------------------------------------- review photos & voice */

.review__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: var(--sp-2);
}

/* One screenshot gets room to be readable instead of a stamp-sized square. */
.review__photos--single { grid-template-columns: minmax(0, 190px); }

.review__photo {
  display: block;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--line-soft);
  aspect-ratio: 1;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.review__photo:hover { border-color: var(--forest); transform: translateY(-1px); }

/* `contain`, never `cover`: these are usually WhatsApp screenshots, and
   cropping one to fill a square cuts off the very message worth showing. The
   tinted panel behind it makes the letterboxing look deliberate. */
.review__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream-deep);
}

/* A lone screenshot gets its natural shape instead of being squeezed into a
   thumbnail — tall enough to actually read. */
.review__photos--single { grid-template-columns: minmax(0, 280px); }
.review__photos--single .review__photo { aspect-ratio: auto; }

.review__photos--single .review__photo img {
  height: auto;
  max-height: 460px;
  display: block;
}

.review__more { font-size: var(--text-xs); color: var(--ink-faint); }

.review__voice {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2);
  border-radius: 12px;
  background: var(--fresh-mist);
}

.review__voice-mark { font-size: 1.1rem; flex: 0 0 auto; }
.review__voice-body { flex: 1; min-width: 0; }

.review__voice-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fresh-deep);
  margin-bottom: 2px;
}

.review__voice-label small { font-weight: 500; color: var(--ink-faint); }
.review__audio { width: 100%; height: 34px; }

/* ------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 8, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  max-width: min(100%, 720px);
  max-height: 92dvh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78dvh;
  width: auto;
  border-radius: var(--radius);
  background: var(--paper);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lightbox__close:hover { background: var(--danger); color: #fff; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--cream);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.lightbox__nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.16);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox__nav:hover { background: rgba(255, 252, 247, 0.3); color: #fff; }

/* ------------------------------------------ special offers */

.offer-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }

.offer {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.offer:hover { border-color: var(--saffron); transform: translateY(-2px); }

.offer__media { position: relative; }

.offer__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--cream-deep);
}

.offer__badge {
  position: absolute;
  top: var(--sp-2);
  inset-inline-start: var(--sp-2);
  background: var(--terracotta);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.offer__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  flex: 1;
}

.offer__title { font-size: var(--text-md); color: var(--ink); line-height: 1.35; }
.offer__desc { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }

.offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2); }
.offer__was { font-size: var(--text-sm); color: var(--ink-faint); text-decoration: line-through; }

.offer__saving {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--fresh-deep);
  background: var(--fresh-mist);
  padding: 0.1em 0.55em;
  border-radius: 5px;
}

.offer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
}

.offer__ends { font-size: var(--text-xs); color: var(--ink-faint); }

/* On the home and menu strips the cards sit beside other content, so they
   stay a little tighter than on the dedicated offers page. */
.offer-grid--home .offer__media img { aspect-ratio: 16 / 9; }
.offer-grid--home .offer__desc { display: none; }

@media (min-width: 620px) {
  .offer-grid--home { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------- pickup appointment */

.field__label-static {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink);
}

/* Wrapping grid rather than a horizontal scroller: on a phone every option
   has to be visible without discovering that a row scrolls sideways. */
.pickup-dates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: var(--sp-2);
}

.pickup-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 54px;
  padding: 0.45rem 0.3rem;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  line-height: 1.35;
  text-align: center;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.pickup-date:hover { border-color: var(--line); }

.pickup-date__day {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
}

.pickup-date__date {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  white-space: nowrap;
}

.pickup-date[aria-pressed='true'] {
  background: var(--forest);
  border-color: var(--forest);
}

.pickup-date[aria-pressed='true'] .pickup-date__day { color: #fff; }
.pickup-date[aria-pressed='true'] .pickup-date__date { color: var(--saffron-soft); }

/* iOS sizes a date input to its content unless told otherwise, which
   overflows the card in RTL. */
.field input[type='date'] {
  width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.pickup-confirm {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: var(--sp-2) auto 0;
  padding: 0.45em 0.9em;
  border-radius: var(--radius);
  background: var(--fresh-mist);
  color: var(--fresh-deep);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.6;
}

/* --------------------------------------------- contact page */

.contact-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-3);
  transition: border-color 0.18s var(--ease);
}

.contact-card:hover { border-color: var(--line); }

.contact-card__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--forest);
}

.contact-card__icon svg { width: 18px; height: 18px; }
.contact-card strong { display: block; color: var(--ink); font-size: var(--text-sm); }
.contact-card span { font-size: var(--text-xs); color: var(--ink-faint); word-break: break-word; }

.qr-row {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.qr-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-3);
}

.qr-card img { width: min(150px, 100%); margin-inline: auto; }
.qr-card strong { display: block; margin-top: var(--sp-2); color: var(--ink); font-size: var(--text-sm); }
.qr-card span { font-size: var(--text-xs); color: var(--ink-faint); }

.hours-list { display: grid; gap: var(--sp-2); }

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.hours-list li:last-child { border-bottom: none; }
.hours-list b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------ 404 page */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-6) var(--gutter);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 6rem);
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}

/* ------------------------------------------- sticky cart bar */

.cart-bar {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  z-index: 95;
  padding: var(--sp-3) var(--gutter);
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.cart-bar strong { font-family: var(--font-display); font-size: var(--text-sm); }
.cart-bar span { font-size: var(--text-xs); opacity: 0.8; display: block; }
