/* =============================================================
   Majik Pizza — Page layer
   Hero, menu tables, about, contact, order.
   ============================================================= */

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 100svh, 1000px);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: var(--ink);
}

.hero--short { min-height: clamp(380px, 62vh, 560px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.7) 100%);
}

/* `place-items: center` on .hero sizes this to max-content, which overflows
   narrow screens — pin it to the grid area and cap it with max-width instead. */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__title {
  margin: 0;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.hero__text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin: 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  animation: bob 2.4s var(--ease) infinite;
}

.hero__scroll svg { width: 26px; height: 40px; }

@media (max-width: 620px) {
  .hero__sub { letter-spacing: 0.14em; font-size: 0.95rem; }
  .hero__inner { gap: 1.15rem; }
  .hero__scroll { display: none; }
  .hero .btn { flex: 1 1 100%; }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ---------- Split feature (video + text) ---------- */

.split {
  display: grid;
  align-items: stretch;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.split__media {
  position: relative;
  min-height: 340px;
  background: var(--ink);
}

.split__media video,
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
}

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

.promo {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.promo__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 0.6rem;
}

.promo__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  margin: 0.2em 0;
}

.promo__note { font-size: 0.9rem; opacity: 0.85; margin: 0.6rem 0 0; }

/* ---------- Menu page ---------- */

.menu-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.85rem;
}

.menu-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.chip:hover { background: rgba(20, 22, 26, 0.07); }

.chip.is-active,
.chip[aria-current="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.menu-search {
  flex: 1 1 200px;
  min-width: 180px;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 1em;
  border: 2px solid var(--rule);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
}

.menu-search::placeholder { color: var(--muted); }

/* Base add-on banner */
.base-banner {
  background: var(--green);
  color: var(--white);
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.base-banner__grid {
  display: grid;
  gap: 1rem 2.5rem;
}

@media (min-width: 760px) {
  .base-banner__grid { grid-template-columns: repeat(2, 1fr); }
}

.base-banner strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

/* Menu sections + rows */

.menu-section { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.menu-section:last-child { margin-bottom: 0; }

.menu-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.menu-section__head h2 { margin: 0; }

.size-head {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  text-align: right;
}

.size-head--2 { grid-template-columns: repeat(2, 62px); }
.size-head span { display: block; }
.size-head small { display: block; font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.04em; }

.menu-list { list-style: none; margin: 0; padding: 0; }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
}

.menu-item[hidden] { display: none; }

.menu-item__main { min-width: 0; }

.menu-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
}

.menu-item__num { color: var(--muted); margin-right: 0.35em; font-size: 0.95em; }

.menu-item__desc { color: var(--muted); font-size: 0.95rem; }

.menu-item__prices {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 0.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.menu-item__prices--2 { grid-template-columns: repeat(2, 62px); }
.menu-item__prices--1 { grid-template-columns: 62px; }
.menu-item__prices span::before { content: "R"; font-size: 0.72em; opacity: 0.55; margin-right: 0.08em; }
.menu-item__prices .na::before { content: none; }
.menu-item__prices .na { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.menu-item__prices .plus::before { content: "+R"; }

@media (max-width: 640px) {
  .size-head,
  .menu-item__prices { grid-template-columns: repeat(3, 52px); gap: 0.35rem; }
  .size-head--2,
  .menu-item__prices--2 { grid-template-columns: repeat(2, 52px); }
  .menu-item__prices { font-size: 1.05rem; }
}

/* Tags */

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15em 0.55em;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.4em;
  color: var(--white);
}

.tag--v { background: var(--red); border-radius: 100px; }
.tag--new { background: var(--green); }

.menu-note {
  background: var(--cream);
  border-left: 5px solid var(--red);
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.menu-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Order page ---------- */

.order-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }

/* Four ordering channels: 2x2 on tablet, one row on desktop. Explicit tracks
   beat auto-fit here — the 1144px content box can't reach four 280px columns. */
@media (min-width: 760px) {
  .order-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1140px) {
  .order-grid { grid-template-columns: repeat(4, 1fr); }
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.order-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 22, 26, 0.1);
}

.order-card__badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 100px;
  background: var(--cream);
  color: var(--muted);
}

.order-card__badge--best { background: var(--green); color: var(--white); }

.order-card h3 { margin: 0; }
.order-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
/* Four cards across leaves a narrow button — ease off the tracking so the
   labels stay on one line. */
.order-card .btn {
  width: 100%;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding-inline: 1rem;
}

/* ---------- Map ---------- */

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.25);
  background: var(--cream);
}

@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- Reviews ---------- */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating__score { font-size: 2rem; color: var(--red); line-height: 1; }
.stars { color: #f5a623; letter-spacing: 0.1em; font-size: 1.1rem; }

.quote {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text);
  margin: 0 0 1rem;
}

.quote__author {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { width: 26px; height: 26px; flex: none; color: var(--red); margin-top: 2px; }
.contact-line h4 { margin: 0 0 0.15rem; font-size: 1.05rem; letter-spacing: 0.1em; }
.contact-line p { margin: 0; color: var(--muted); }
.contact-line a:hover { color: var(--red); }
