/* ==========================================================================
   Seven Bites — Home page
   Matches showcase screen "1. Home Page" (desktop) and "15. Mobile" (phone).
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  color: var(--c-on-dark);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -2;
  overflow: hidden;
}

/* Slides crossfade: the new photo fades in on top of the previous one */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  transform-origin: 65% 60%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s var(--ease-in-out);
}

.hero__img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__img.is-leaving {
  opacity: 1;
  z-index: 0;
}

.hero__img.is-active,
.hero__img.is-leaving {
  animation: hero-zoom 6s var(--ease-out) forwards;
}

.hero__media::after {
  /* fades the photo into the navy on the left, like the showcase */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--c-navy) 0%, rgba(10, 21, 32, 0.85) 18%, rgba(10, 21, 32, 0.25) 48%, rgba(10, 21, 32, 0) 70%),
    linear-gradient(0deg, rgba(10, 21, 32, 0.55) 0%, rgba(10, 21, 32, 0) 30%);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  left: -10%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 210, 6, 0.1), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  min-height: clamp(340px, 52vw, 500px);
  padding-block: var(--sp-12);
}

.hero__content {
  max-width: 540px;
}

/* Headline + text for each slide, stacked; the active one fades in */
.hero__copies {
  display: grid;
}

.hero__copy {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}

.hero__copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) 0.3s,
    transform 0.9s var(--ease-out) 0.3s,
    visibility 0s;
}

.hero__text strong {
  color: var(--c-yellow);
  font-weight: var(--fw-semibold);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__title-line > span {
  display: block;
  animation: rise-in 900ms var(--ease-out) both;
}

.hero__title-line--accent > span {
  color: var(--c-yellow);
  animation-delay: 120ms;
}

.hero__text {
  max-width: 380px;
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: #dfe3e8;
  animation: fade-up 900ms 260ms var(--ease-out) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  animation: fade-up 900ms 380ms var(--ease-out) both;
}

.hero__actions .btn--ghost-dark .icon {
  width: 18px;
  height: 18px;
  color: var(--c-yellow);
}

/* "New here? Sign up / Sign in" pill (hero + video) */
.auth-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(10, 21, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-cta__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(252, 210, 6, 0.16);
  color: var(--c-yellow);
}

.auth-cta__icon .icon {
  width: 17px;
  height: 17px;
}

.auth-cta__text {
  padding-right: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-2);
}

.auth-cta__btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  color: var(--c-on-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.auth-cta__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-yellow);
}

.auth-cta__btn--up {
  background: var(--c-yellow);
  color: var(--c-navy);
  box-shadow: var(--sh-btn);
}

.auth-cta__btn--up:hover {
  background: var(--c-yellow-hover);
  color: var(--c-navy);
  transform: translateY(-1px);
}

/* Hero: the pill floats centred at the foot of the banner, with a slowly
   turning gold edge */
@property --auth-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero__auth-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-6);
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.hero__auth {
  margin-top: 0;
  padding: 6px 6px 6px 7px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(10, 21, 32, 0.82), rgba(10, 21, 32, 0.82)) padding-box,
    conic-gradient(from var(--auth-angle), rgba(252, 210, 6, 0.15), var(--c-yellow), rgba(252, 210, 6, 0.15) 40%, rgba(255, 255, 255, 0.35), rgba(252, 210, 6, 0.15) 80%) border-box;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation:
    fade-up 900ms 520ms var(--ease-out) both,
    auth-spin 6s linear infinite;
}

@keyframes auth-spin {
  to { --auth-angle: 360deg; }
}

/* leave room under the hero buttons for the pill */
.hero__inner {
  padding-bottom: calc(var(--sp-12) + 56px);
}

@media (max-width: 767.98px) {
  .auth-cta {
    margin-top: var(--sp-4);
  }
  .hero__auth-wrap {
    bottom: var(--sp-5);
  }
  .hero__auth .auth-cta__text {
    white-space: nowrap;
  }
  .auth-cta__text,
  .auth-cta__btn {
    font-size: var(--fs-xs);
  }
  .auth-cta__btn {
    min-height: 30px;
    padding: 0 var(--sp-3);
  }
  .auth-cta__icon {
    width: 28px;
    height: 28px;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@keyframes rise-in {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
  .hero__media {
    inset: 0 0 0 22%;
  }
  .hero__img {
    object-position: 75% 50%;
  }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--c-navy) 0%, rgba(10, 21, 32, 0.9) 22%, rgba(10, 21, 32, 0.35) 60%, rgba(10, 21, 32, 0.1) 100%),
      linear-gradient(0deg, rgba(10, 21, 32, 0.6) 0%, rgba(10, 21, 32, 0) 40%);
  }
  .hero__inner {
    min-height: 300px;
    padding-block: var(--sp-10) calc(var(--sp-10) + 52px); /* room for the sign-up pill */
  }
  .hero__title {
    font-size: 2.375rem;
  }
  .hero__text {
    max-width: 230px;
    margin-top: var(--sp-3);
    font-size: var(--fs-sm);
  }
  .hero__actions {
    margin-top: var(--sp-6);
    gap: var(--sp-2);
  }
  .hero__actions .btn {
    min-height: 44px;
    padding: 0 var(--sp-5);
    font-size: var(--fs-sm);
  }
}

/* ---------- Rows: grids on desktop, swipe sideways on phones ---------- */

.scroller {
  display: grid;
  gap: var(--sp-4);
}

@media (max-width: 767.98px) {
  .scroller {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) var(--sp-3);
    scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar {
    display: none;
  }
  .scroller > * {
    scroll-snap-align: start;
  }
}

/* ---------- Categories ---------- */

.categories {
  padding-top: var(--sp-8);
  padding-bottom: 0;
}

/* Always a single row. From 1440px all nine fit, each tile sized to its
   name; below that the row swipes sideways (drag with the mouse too). */
.categories__grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: var(--sp-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.categories__grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1440px) {
  .categories__grid {
    display: flex;
    overflow: visible;
    mask-image: none;
  }
  .categories__grid .cat-tile {
    flex: 1 1 auto;
  }
  .categories__grid .cat-tile__name {
    white-space: nowrap;
  }
}

/* 1440–1699px: slightly more compact so all nine fit in one row */
@media (min-width: 1440px) and (max-width: 1699.98px) {
  .categories__grid {
    gap: 10px;
  }
  .categories__grid .cat-tile {
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }
  .categories__grid .cat-tile__media {
    width: 42px;
    height: 42px;
  }
  .categories__grid .cat-tile__name {
    font-size: 0.8125rem;
  }
  .categories__grid .cat-tile__count {
    font-size: 0.6875rem;
  }
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  padding: 10px var(--sp-3) 10px 10px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
  transition:
    transform var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    border-color var(--t-slow) var(--ease-out);
}

.cat-tile__media {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--c-yellow-tint), 0 4px 12px rgba(18, 26, 36, 0.14);
}

.cat-tile__media img {
  transition: transform 900ms var(--ease-out);
}

.cat-tile__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-tile__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--c-text);
}

.cat-tile__count {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  white-space: nowrap;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-yellow);
  box-shadow: var(--sh-card-hover);
}

.cat-tile:hover .cat-tile__media img {
  transform: scale(1.1);
}

/* Phones: swipe row of tiles, photo above the name */
@media (max-width: 767.98px) {
  .categories {
    padding-top: var(--sp-6);
  }
  .categories__grid {
    grid-template-columns: none;
    grid-auto-columns: 96px;
    gap: var(--sp-3);
    mask-image: none;
  }
  .cat-tile {
    flex-direction: column;
    gap: 6px;
    padding: var(--sp-3) var(--sp-1);
    text-align: center;
  }
  .cat-tile__media {
    width: 56px;
    height: 56px;
  }
  .cat-tile__text {
    align-items: center;
  }
  .cat-tile__name {
    font-size: var(--fs-xs);
  }
  .cat-tile__count {
    font-size: 0.625rem;
  }
}

/* ---------- Popular items ---------- */

.popular__grid,
.product-row {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.popular__grid > *,
.product-row > * {
  display: flex;
}

.popular__grid .product-card,
.product-row .product-card {
  flex: 1;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .popular__grid,
  .product-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-3);
  }
}

/* ---------- Events ---------- */

.events__grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition:
    transform var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover);
}

.event-card__media {
  aspect-ratio: 4 / 3;
}

.event-card__media img {
  transition: transform 900ms var(--ease-out);
}

.event-card:hover .event-card__media img {
  transform: scale(1.05);
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-4);
}

.event-card__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-yellow-soft);
  color: var(--c-navy);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.event-card__text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.event-card__cta {
  margin-top: var(--sp-2);
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .events__grid {
    grid-template-columns: none;
    grid-auto-columns: 80%;
    gap: var(--sp-3);
  }
}

/* ---------- Promotions banner ----------
   The yellow card stays still; only its content changes. The old deal
   slides out, the new one slides in piece by piece: the badge rolls up,
   the text follows, the food photo spins onto its plate, and a soft shine
   sweeps across the card. */

.rewards-section {
  padding-block: var(--sp-6) 0;
}

.promos {
  --badge-w: 168px;
  position: relative;
  display: grid;
  min-height: 180px;
  border-radius: var(--r-lg);
  background: var(--c-yellow);
  box-shadow: var(--sh-card);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}

.promos:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
}

/* static navy badge column */
.promos::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--badge-w);
  background: var(--c-navy);
  z-index: -1;
}

/* static navy circle behind the photo */
.promos::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: var(--c-navy);
  transform: translateY(-50%);
  z-index: -1;
}

.promo {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: var(--badge-w) 1fr 250px;
  align-items: center;
  visibility: hidden;
  overflow: hidden;
}

.promo.is-active,
.promo.is-leaving {
  visibility: visible;
}

.promo.is-leaving {
  pointer-events: none;
}

/* shine sweep each time a deal arrives */
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: translateX(-110%);
  pointer-events: none;
  z-index: 2;
}

.promo.is-active::before {
  animation: promo-shine 1.2s 0.35s ease-out;
}

@keyframes promo-shine {
  to { transform: translateX(110%); }
}

/* --- badge column --- */
.promo__badge-col {
  display: grid;
  place-items: center;
  align-self: stretch;
  overflow: hidden;
}

.promo__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--c-yellow);
  text-align: center;
  opacity: 0;
  transform: translateY(80%);
}

.promo.is-active .promo__badge {
  opacity: 1;
  transform: none;
  transition:
    transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
    opacity 0.4s ease 0.1s;
}

.promo.is-leaving .promo__badge {
  opacity: 0;
  transform: translateY(-80%);
  transition: transform 0.45s ease-in, opacity 0.35s ease-in;
}

.promo__big {
  font-size: 2.25rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
}

.promo__small {
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.3em;
  color: var(--c-on-dark);
}

/* --- text column --- */
.promo__body {
  min-width: 0;
  padding: var(--sp-5) var(--sp-8);
}

.promo__body > * {
  opacity: 0;
  transform: translateX(36px);
}

.promo.is-active .promo__body > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo.is-active .promo__body > :nth-child(1) { transition-delay: 0.15s; }
.promo.is-active .promo__body > :nth-child(2) { transition-delay: 0.22s; }
.promo.is-active .promo__body > :nth-child(3) { transition-delay: 0.29s; }
.promo.is-active .promo__body > :nth-child(4) { transition-delay: 0.36s; }

.promo.is-leaving .promo__body > * {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.3s ease-in, transform 0.4s ease-in;
}

.promo__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(10, 21, 32, 0.75);
}

.promo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  animation: promo-pulse 1.6s ease-out infinite;
}

@keyframes promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
}

.promo__timer {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-yellow);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.promo__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  line-height: 1.15;
  color: var(--c-navy);
}

.promo__text {
  margin-top: 4px;
  font-size: var(--fs-base);
  color: rgba(10, 21, 32, 0.75);
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}

.promo__code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--c-navy);
  background: rgba(255, 255, 255, 0.45);
  color: var(--c-navy);
  font-size: var(--fs-sm);
  transition: background-color var(--t-base) var(--ease-out);
}

.promo__code:hover {
  background: rgba(255, 255, 255, 0.8);
}

.promo__code strong {
  letter-spacing: 0.06em;
}

.promo__code .icon {
  width: 16px;
  height: 16px;
}

/* --- photo column --- */
.promo__art {
  position: relative;
  align-self: stretch;
}

.promo__plate {
  position: absolute;
  right: 30px;
  top: 50%;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 3px solid var(--c-yellow);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-50%) rotate(140deg) scale(0.4);
}

.promo.is-active .promo__plate {
  opacity: 1;
  transform: translateY(-50%);
  transition:
    transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
    opacity 0.4s ease 0.2s;
}

.promo.is-leaving .promo__plate {
  opacity: 0;
  transform: translateY(-50%) rotate(-140deg) scale(0.4);
  transition: transform 0.5s ease-in, opacity 0.4s ease-in;
}

/* Phones: a medium card — timer replaces the tag label, the description is
   dropped (the title says the deal), and the photo gets more room */
@media (max-width: 767.98px) {
  .promos {
    --badge-w: 64px;
    min-height: 0;
    border-radius: var(--r-md);
  }
  .promos::after {
    width: 150px;
    height: 150px;
    right: -52px;
  }
  .promo {
    grid-template-columns: var(--badge-w) 1fr 92px;
  }
  .promo__tag--timed .promo__tag-label {
    display: none;
  }
  .promo__big {
    font-size: 1.25rem;
  }
  .promo__small {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }
  .promo__body {
    padding: var(--sp-3) var(--sp-1) var(--sp-3) var(--sp-3);
  }
  .promo__tag {
    margin-bottom: 2px;
    font-size: 0.625rem;
  }
  .promo__title {
    font-size: 0.9375rem;
  }
  .promo__text {
    display: none;
  }
  .promo__actions {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: var(--sp-2);
  }
  .promo__actions .btn,
  .promo__code {
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.6875rem;
  }
  .promo__code .icon {
    display: none; /* tapping still copies; the toast confirms */
  }
  .promo__code > span {
    display: none;
  }
  .promo__plate {
    right: 8px;
    width: 80px;
    height: 80px;
  }
}

/* ---------- Reviews ---------- */

.reviews__grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
}

.review-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.review-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.review-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.review-card__item {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.review-card__text {
  display: -webkit-box;
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.review-card__date {
  white-space: nowrap;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .reviews__grid {
    grid-template-columns: none;
    grid-auto-columns: 86%;
    gap: var(--sp-3);
  }
}

/* ---------- Good times video ----------
   Full-width dark card: the video plays muted on a loop behind a navy fade,
   headline in the hero's white + yellow. Behaviour in components/vibe-reel.js. */

.vibe {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  border-radius: var(--r-xl);
  background: var(--c-navy);
  color: var(--c-on-dark);
  box-shadow: var(--sh-float);
  overflow: hidden;
  isolation: isolate;
}

.vibe::after {
  /* thin gold frame */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(252, 210, 6, 0.35);
  pointer-events: none;
  z-index: 3;
}

.vibe__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.vibe__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* keep faces in frame on wide screens */
}

@media (min-width: 1024px) {
  .vibe {
    min-height: 560px;
  }
}

.vibe__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 21, 32, 0.92) 0%, rgba(10, 21, 32, 0.6) 40%, rgba(10, 21, 32, 0) 75%),
    linear-gradient(0deg, rgba(10, 21, 32, 0.85) 0%, rgba(10, 21, 32, 0) 55%),
    radial-gradient(circle at 15% 85%, rgba(252, 210, 6, 0.18), transparent 45%);
}

.vibe__content {
  position: relative;
  max-width: 560px;
  padding: var(--sp-12);
}

.vibe__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(10, 21, 32, 0.55);
  border: 1px solid rgba(252, 210, 6, 0.4);
  backdrop-filter: blur(6px);
  color: var(--c-yellow);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vibe__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  animation: promo-pulse 1.6s ease-out infinite;
}

.vibe__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem);
  font-weight: var(--fw-black);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.vibe__accent {
  color: var(--c-yellow);
}

.vibe__text {
  max-width: 440px;
  margin-top: var(--sp-3);
  font-size: var(--fs-md);
  color: var(--c-on-dark-2);
}

.vibe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

@media (max-width: 767.98px) {
  .vibe {
    min-height: 380px;
    border-radius: var(--r-lg);
  }
  .vibe__shade {
    background:
      linear-gradient(0deg, rgba(10, 21, 32, 0.95) 0%, rgba(10, 21, 32, 0.55) 55%, rgba(10, 21, 32, 0.1) 100%),
      radial-gradient(circle at 20% 90%, rgba(252, 210, 6, 0.16), transparent 50%);
  }
  .vibe__content {
    padding: var(--sp-6) var(--sp-5);
  }
  .vibe__eyebrow {
    font-size: 0.625rem;
  }
  .vibe__text {
    font-size: var(--fs-sm);
  }
  .vibe__actions {
    margin-top: var(--sp-4);
  }
}

/* ---------- Find us (Google Maps) ----------
   Phones/tablets: a slim strip under the promotions (mini map, address,
   directions). Desktop: a map card beside the promotions — see the
   "Advert + Find us row" block below. */

.deal-row {
  display: grid;
  gap: var(--sp-4);
}

.deal-row > .promos {
  min-width: 0;
}

.find-us {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2);
  padding-right: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
}

.find-us__map {
  position: relative;
  flex-shrink: 0;
  width: 132px;
  height: 72px;
  border-radius: var(--r-md);
  background: var(--c-tile);
  overflow: hidden;
}

.find-us__map iframe {
  position: absolute;
  inset: -60px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 120px);
  border: 0;
  pointer-events: none; /* the whole thumbnail is a link to Google Maps */
}

.find-us__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-navy);
  border: 2px solid var(--c-yellow);
  box-shadow: 0 0 0 5px rgba(252, 210, 6, 0.3), 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  animation: find-us-bob 2.4s var(--ease-in-out) infinite;
}

.find-us__pin img {
  width: 15px;
  height: auto;
}

@keyframes find-us-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

.find-us__info {
  flex: 1;
  min-width: 0;
}

.find-us__title {
  font-family: var(--font-brand);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-navy);
}

.find-us__address {
  margin-top: 2px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--c-text);
}

.find-us__go {
  flex-shrink: 0;
  gap: 6px;
}

.find-us__go .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 767.98px) {
  .find-us {
    gap: var(--sp-3);
    padding-right: var(--sp-2);
    border-radius: var(--r-md);
  }
  .find-us__map {
    width: 76px;
    height: 56px;
    border-radius: var(--r-sm);
  }
  .find-us__title {
    font-size: 1rem;
  }
  .find-us__address {
    font-size: var(--fs-sm);
    line-height: 1.35;
  }
  /* round arrow button on phones */
  .find-us__go {
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
  }
  .find-us__go span {
    display: none;
  }
}

/* ---------- Advert + Find us row (desktop and wider) ----------
   One container, flex row, small gap. The advert takes the room; Find us
   becomes a navy map card of the same height: the live map fills it under a
   navy fade, a pulsing yellow pin marks the shop, address and a round
   directions button sit at the bottom, all framed in a thin gold line. */

@media (min-width: 1024px) {
  .deal-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--sp-4);
  }

  .deal-row > .promos {
    flex: 1.18 1 0;
    --badge-w: 118px;
  }

  .deal-row .promo {
    grid-template-columns: var(--badge-w) 1fr 176px;
  }

  .deal-row .promos::after {
    width: 210px;
    height: 210px;
  }

  .deal-row .promo__plate {
    right: 18px;
    width: 136px;
    height: 136px;
  }

  .deal-row .promo__big {
    font-size: 1.875rem;
  }

  .deal-row .promo__title {
    font-size: var(--fs-lg);
  }

  .deal-row .promo__text {
    font-size: var(--fs-sm);
  }

  .deal-row .promo__body {
    padding-inline: var(--sp-5);
  }

  .deal-row > .find-us {
    position: relative;
    flex: 1 1 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--c-navy);
    color: var(--c-on-dark);
    box-shadow: var(--sh-card);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
  }

  .deal-row > .find-us:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-card-hover);
  }

  /* gold frame */
  .deal-row > .find-us::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(252, 210, 6, 0.45);
    pointer-events: none;
    z-index: 3;
  }

  /* navy fade so the text reads over the map */
  .deal-row > .find-us::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(0deg, rgba(10, 21, 32, 0.96) 0%, rgba(10, 21, 32, 0.75) 32%, rgba(10, 21, 32, 0.05) 70%),
      linear-gradient(180deg, rgba(10, 21, 32, 0.18) 0%, rgba(10, 21, 32, 0) 25%);
    pointer-events: none;
    z-index: 1;
  }

  .deal-row .find-us__map {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: var(--c-navy-3);
  }

  /* map centred under the pin (38% down); Google's info box pushed out of view */
  .deal-row .find-us__map iframe {
    inset: auto;
    top: calc(38% - (100% + 200px) / 2);
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 200px);
    transition: transform 900ms var(--ease-out);
  }

  .deal-row > .find-us:hover .find-us__map iframe {
    transform: scale(1.06);
  }

  .deal-row .find-us__pin {
    top: 38%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-width: 3px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .deal-row .find-us__pin img {
    width: 20px;
  }

  /* radar pulse around the pin */
  .deal-row .find-us__pin::before,
  .deal-row .find-us__pin::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--c-yellow);
    animation: find-us-ping 2.4s ease-out infinite;
  }

  .deal-row .find-us__pin::after {
    animation-delay: 1.2s;
  }

  .deal-row .find-us__info {
    position: absolute;
    left: var(--sp-5);
    right: 76px;
    bottom: var(--sp-5);
    z-index: 2;
    pointer-events: none;
  }

  .deal-row .find-us__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-yellow);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
  }

  .deal-row .find-us__title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
    animation: promo-pulse 1.6s ease-out infinite;
  }

  .deal-row .find-us__address {
    margin-top: 4px;
    color: var(--c-on-dark);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.35;
  }

  .deal-row .find-us__go {
    position: absolute;
    right: var(--sp-5);
    bottom: var(--sp-5);
    z-index: 2;
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--c-navy);
    box-shadow: 0 6px 18px rgba(252, 210, 6, 0.35);
    transition: transform var(--t-base) var(--ease-out);
  }

  .deal-row .find-us__go:hover {
    transform: translateX(3px) rotate(-45deg);
  }

  .deal-row .find-us__go .icon {
    width: 20px;
    height: 20px;
  }

  .deal-row .find-us__go span {
    display: none;
  }
}

/* Small laptops: tighter advert so its buttons stay on one row */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .deal-row > .promos {
    --badge-w: 96px;
  }
  .deal-row .promo {
    grid-template-columns: var(--badge-w) 1fr 140px;
  }
  .deal-row .promos::after {
    width: 170px;
    height: 170px;
  }
  .deal-row .promo__plate {
    right: 14px;
    width: 108px;
    height: 108px;
  }
  .deal-row .promo__big {
    font-size: 1.5rem;
  }
  .deal-row .promo__body {
    padding-inline: var(--sp-4);
  }
  .deal-row .promo__text,
  .deal-row .promo__code > span {
    display: none;
  }
}

@keyframes find-us-ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- Delivery & tracking (illustrated mini-city map, delivery bike) ----------
   Map on the left (illustration — never presented as live), text, step
   tracker and "Track order" box on the right. Phones: map on top.
   Behaviour in components/delivery-promo.js. */

.delivery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--r-xl);
  background: var(--c-navy);
  color: var(--c-on-dark);
  box-shadow: var(--sh-float);
  overflow: hidden;
  isolation: isolate;
}

.delivery__map {
  position: relative;
  min-height: 380px;
  background: #eef0e6;
}

/* floating status chip on the map */
.delivery__status {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-navy);
  box-shadow: var(--sh-float);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.delivery__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: 0 0 0 0 rgba(252, 210, 6, 0.6);
  animation: dlv-dot 1.6s ease-out infinite;
}

.delivery[data-stage="delivered"] .delivery__status-dot {
  background: var(--c-green);
  animation: none;
}

@keyframes dlv-dot {
  to { box-shadow: 0 0 0 9px rgba(252, 210, 6, 0); }
}

.delivery__note {
  position: absolute;
  right: var(--sp-3);
  top: var(--sp-3);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--c-text-2);
  font-size: 0.625rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
}

/* text side */
.delivery__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-10);
  background: radial-gradient(circle at 100% 0%, rgba(252, 210, 6, 0.12), transparent 50%);
}

.delivery__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-yellow);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.delivery__eyebrow .icon {
  width: 16px;
  height: 16px;
}

.delivery__title {
  margin-top: var(--sp-2);
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: var(--fw-black);
  line-height: 1.1;
}

.delivery__title span {
  color: var(--c-yellow);
}

.delivery__text {
  margin-top: var(--sp-3);
  color: var(--c-on-dark-2);
  font-size: var(--fs-base);
}

/* step tracker */
.delivery__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--sp-6);
  list-style: none;
}

.delivery__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-on-dark-2);
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  text-align: center;
  transition: color var(--t-base) var(--ease-out);
}

/* connector line to the next step */
.delivery__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-yellow) 50%, rgba(255, 255, 255, 0.15) 50%) right / 200% 100%;
  transition: background-position 0.6s var(--ease-out);
}

.delivery__step.is-done::after {
  background-position: left;
}

.delivery__step-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

.delivery__step-dot .icon {
  width: 15px;
  height: 15px;
}

.delivery__step.is-done,
.delivery__step.is-current {
  color: var(--c-on-dark);
}

.delivery__step.is-done .delivery__step-dot {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-navy);
}

.delivery__step.is-current .delivery__step-dot {
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 0 rgba(252, 210, 6, 0.5);
  animation: dlv-dot 1.6s ease-out infinite;
}

/* track-an-order box */
.delivery__track {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding: 5px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery__track:focus-within {
  border-color: var(--c-yellow);
}

.delivery__track input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--sp-3);
  border: 0;
  background: transparent;
  color: var(--c-on-dark);
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
}

.delivery__track input::placeholder {
  color: var(--c-on-dark-2);
}

.delivery__track .btn {
  flex-shrink: 0;
  gap: 6px;
}

.delivery__track .btn .icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 1023.98px) {
  .delivery {
    grid-template-columns: none;
  }
  .delivery__map {
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .delivery {
    border-radius: var(--r-lg);
  }
  .delivery__map {
    min-height: 220px;
  }
  .delivery__status {
    left: var(--sp-3);
    bottom: var(--sp-3);
    padding: 6px 12px;
    font-size: var(--fs-xs);
  }
  .delivery__body {
    padding: var(--sp-6) var(--sp-5);
  }
  .delivery__text {
    font-size: var(--fs-sm);
  }
  .delivery__step {
    font-size: 0.625rem;
  }
  .delivery__track .btn {
    padding: 0 var(--sp-4);
  }
}

/* "Delivery" label on review cards */
.review-card__topic {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--c-yellow-soft);
  color: var(--c-navy);
  font-size: 0.625rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
