@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&family=Playfair+Display:wght@700&display=swap");

:root {
  --black: #070605;
  --black-2: #0d0a08;
  --charcoal: #14110e;
  --charcoal-2: #1b1713;
  --cream: #fff8ee;
  --soft: rgba(255, 248, 238, 0.74);
  --muted: rgba(255, 248, 238, 0.58);
  --line: rgba(255, 248, 238, 0.12);
  --line-strong: rgba(255, 248, 238, 0.22);
  --red: #ff3636;
  --red-deep: #7a1815;
  --orange: #f0702f;
  --amber: #ffb000;
  --amber-soft: #c78a3a;
  --green: #2fa960;
  --font-display: "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-mark: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --shadow-red: 0 18px 46px rgba(255, 54, 54, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 2%, rgba(255, 176, 0, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--black), #030303 72%);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 248, 238, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 248, 238, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.announcement {
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  color: var(--black);
  text-align: center;
}

.announcement p {
  margin: 0;
  padding: 9px 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 5, 0.9);
  border-bottom: 1px solid rgba(255, 248, 238, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 32px, 1240px);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 247, 235, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    var(--shadow-red);
  color: var(--cream);
  font-family: var(--font-mark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  /* Playfair caps sit low in the line box; lift to optical centre */
  padding-bottom: 1px;
  /* letter-spacing adds a trailing gap; pull the word back to true centre */
  text-indent: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 248, 238, 0.68);
  font-size: 0.98rem;
  font-weight: 800;
}

.nav a {
  border-radius: 999px;
  padding: 10px 14px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream);
  background: rgba(255, 248, 238, 0.07);
}

.nav-order {
  min-width: 104px;
  display: inline-flex;
  justify-content: center;
  background: var(--red);
  color: var(--cream) !important;
  box-shadow: var(--shadow-red);
}

.nav-order:hover,
.nav-order:focus-visible {
  background: #ff4747;
  transform: translateY(-1px);
}

section {
  scroll-margin-top: 84px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  padding: 48px 0 56px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.98) 0%, rgba(7, 6, 5, 0.94) 31%, rgba(7, 6, 5, 0.64) 66%, rgba(7, 6, 5, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.22), rgba(7, 6, 5, 0.82)),
    url("assets/hero-tacos.png") center / cover no-repeat,
    var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 54, 54, 0.13), transparent 26rem),
    radial-gradient(circle at 82% 70%, rgba(255, 176, 0, 0.18), transparent 28rem),
    linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.06) 52%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--black));
}

.hero-layout {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.about-section [data-about-text] {
  white-space: pre-line;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: clamp(0.72rem, 2.2vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.018em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--cream);
  font-size: clamp(4.6rem, 18vw, 8.1rem);
}

h1 span {
  display: block;
  color: var(--red);
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: clamp(2.5rem, 9vw, 5.2rem);
}

h3 {
  margin: 0 0 18px;
  color: var(--cream);
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

.lead {
  max-width: 680px;
  margin-bottom: 6px;
  color: rgba(255, 248, 238, 0.72);
  font-size: clamp(1.12rem, 2.7vw, 1.35rem);
  font-weight: 600;
}

.tagline {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--amber);
  font-size: clamp(1.55rem, 6.2vw, 3rem);
  font-weight: 500;
  line-height: 1.16;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button,
.text-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button {
  border: 1px solid transparent;
  padding: 13px 24px;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: var(--shadow-red);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ff4747;
}

.button.gold {
  background: var(--amber);
  color: #110b04;
  box-shadow: 0 18px 42px rgba(255, 176, 0, 0.15);
}

.button.gold:hover,
.button.gold:focus-visible {
  background: #ffc04a;
}

.button.cream {
  background: var(--cream);
  color: var(--black);
}

.button.cream:hover,
.button.cream:focus-visible {
  background: #fff0d7;
}

.button.outline {
  border-color: rgba(255, 248, 238, 0.2);
  background: rgba(7, 6, 5, 0.36);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.button.outline:hover,
.button.outline:focus-visible {
  border-color: rgba(255, 176, 0, 0.62);
  background: rgba(255, 248, 238, 0.06);
}

.hero-panel {
  position: relative;
  min-height: 430px;
}

.hero-photo {
  min-height: 430px;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.08), rgba(7, 6, 5, 0.35)),
    url("assets/pastor-trompo.png") center / cover no-repeat,
    var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(100%, 360px);
  margin: -92px auto 0;
  position: relative;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 18px;
  background: rgba(18, 14, 11, 0.92);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card span,
.hero-card strong,
.hero-card small {
  display: block;
}

.hero-card span {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-card strong {
  max-width: 320px;
  margin-bottom: 12px;
  color: var(--cream);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero-card small {
  max-width: 320px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.55;
}

.section {
  padding: 72px 0;
}

.menu-section {
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 176, 0, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--black), var(--black-2));
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head::after {
  content: "";
  width: 86px;
  height: 1px;
  display: block;
  margin-top: 24px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.section-head.centered::after {
  margin-inline: auto;
}

.section-head p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 500;
}

.section-head.centered p:not(.eyebrow) {
  margin-inline: auto;
}

/*
 * Columns, not grid. The categories vary from one item to seven, and a grid
 * stretched every card to the row height, leaving Tortas and Burritas mostly
 * empty next to Tacos. In a column layout each card is only as tall as its
 * own contents and short ones stack instead of padding out dead space.
 */
.menu-grid {
  columns: 1;
  column-gap: 14px;
}

.menu-card {
  position: relative;
  /* Columns have no row-gap, so the rhythm comes from the card margin. */
  margin-bottom: 14px;
  overflow: hidden;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.045), rgba(255, 248, 238, 0.015)),
    var(--charcoal);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

/*
 * Fewer than three rows: pull in the vertical padding so the card is not
 * mostly air. Horizontal padding stays at 24px, so names and prices line up
 * on the same edges as the taller cards stacked above and below.
 */
.menu-card:not(:has(ul > li:nth-child(3))) {
  padding: 18px 24px;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 0, 0.42);
  background-color: var(--charcoal-2);
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.66), transparent);
}

.menu-card h3 {
  margin-bottom: 20px;
  font-size: 1.65rem;
}

.menu-card h3::after {
  content: "";
  width: 42px;
  height: 2px;
  display: block;
  margin-top: 14px;
  background: var(--amber-soft);
}

/* Category-level note, e.g. "El precio es por pieza." Sits between the
   heading and the first row, quieter than the item names. */
.menu-card .menu-note {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  font-style: italic;
}

.menu-card ul {
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
  color: var(--soft);
  font-weight: 600;
}

/*
 * Grid rather than flex: name and price share the first row, and an optional
 * description spans a second one underneath. Rows without a description keep
 * their old single-line look, held at min-height.
 */
.menu-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 14px;
  min-height: 40px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.08);
}

.menu-card li .item-desc {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.menu-card li small {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.menu-card li.unavailable {
  color: rgba(255, 248, 238, 0.38);
  text-decoration: line-through;
}

.menu-card li:last-child {
  border-bottom: 0;
}

.api-fallback {
  width: fit-content;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 176, 0, 0.26);
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.08);
  color: var(--soft);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/*
 * Branch switcher above the menu cards. A segmented control rather than a
 * dropdown: with two branches both names stay on screen, so the choice is
 * visible instead of hidden behind a click.
 */
.location-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.04);
  padding: 6px;
}

.location-pill {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 22px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 170ms ease,
    color 170ms ease;
}

.location-pill:hover {
  color: var(--cream);
}

.location-pill.is-active {
  background: linear-gradient(135deg, var(--amber), #ff7a18);
  color: #23150a;
}

/* Address and schedule of the branch currently on screen. */
.location-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.location-address {
  color: var(--soft);
  transition: color 160ms ease;
}

a.location-address {
  border-bottom: 1px dotted rgba(255, 248, 238, 0.28);
}

a.location-address:hover,
a.location-address:focus-visible {
  color: var(--cream);
  border-color: var(--cream);
}

/* Schedules are typed on several lines in the admin; honour the newlines. */
.location-hours {
  white-space: pre-line;
  line-height: 1.6;
}

.menu-download {
  margin: 18px 0 0;
  text-align: center;
}

/*
 * A small amber pill with a download arrow. Reads as an action next to the
 * body copy without competing with the WhatsApp buttons, which are filled.
 */
.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 176, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.1);
  color: var(--amber);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.pdf-button:hover,
.pdf-button:focus-visible {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.18);
  color: var(--cream);
}

.pdf-button.small {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.pdf-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.note {
  margin: 24px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.promo-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.98), rgba(7, 6, 5, 0.9)),
    url("assets/grill-fire.png") center / cover no-repeat,
    var(--black);
  color: var(--cream);
  border-block: 1px solid var(--line);
}

.promo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 54, 54, 0.08), transparent 24rem),
    radial-gradient(circle at 90% 72%, rgba(255, 176, 0, 0.12), transparent 24rem);
}

.promo-section .container {
  position: relative;
}

.promo-grid {
  display: grid;
  gap: 16px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20, 17, 14, 0.84);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.58), transparent);
}

.promo-card h3 {
  max-width: 520px;
}

.promo-card p:not(.card-label) {
  max-width: 560px;
  color: var(--soft);
}

.text-link {
  justify-content: flex-start;
  width: fit-content;
  min-height: auto;
  border-bottom: 1px solid rgba(255, 176, 0, 0.72);
  border-radius: 0;
  color: var(--cream);
  padding: 0 0 5px;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
  color: var(--amber);
}

.footer {
  padding: 36px 0;
  background: #080706;
  border-top: 1px solid var(--line);
  color: var(--cream);
}

.footer-layout {
  display: grid;
  gap: 22px;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 1.55rem;
  font-weight: 900;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-location {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.footer-location a {
  color: inherit;
  transition: color 160ms ease;
}

.footer-location a:hover,
.footer-location a:focus-visible {
  color: var(--cream);
}

.footer-location > span {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/*
 * One column per branch, side by side.
 *
 * auto-fit with a minmax track is what makes this hold for any number of
 * branches: a third location added through the admin gets its own equal
 * column with no CSS change, and when the columns can no longer hold 220px
 * they wrap instead of crushing. Single column on phones.
 */
.footer-branches {
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .footer-branches {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px 34px;
  }
}

.footer-branch {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.footer-branch-name {
  display: block;
  margin: 0;
  color: var(--cream);
  font-size: 0.98rem;
  font-weight: 900;
}

.footer-branch-address {
  color: var(--muted);
  font-weight: 600;
}

/*
 * Values come from the admin via textContent, so a schedule typed on several
 * lines arrives with real newlines. pre-line honours those while still
 * collapsing the stray spaces people leave at the end of a line.
 */
.footer-branch-hours {
  white-space: pre-line;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.footer-branch .pdf-button {
  margin-top: 4px;
}

.footer-location .footer-detail {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/*
 * Values come from admin settings via textContent, so a schedule typed on
 * several lines arrives with real newlines. pre-line honours those while
 * still collapsing the stray spaces people leave at the end of a line.
 */
.footer-location .footer-detail-value {
  display: block;
  white-space: pre-line;
  /* --soft, not --muted: that is what .footer a resolves to, so the value
     sits at the same weight of grey as the address above it. */
  color: var(--soft);
  line-height: 1.7;
}

.footer-location .footer-detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/*
 * Facebook and Instagram under the brand block. They were the other half of
 * the footer's third column; the WhatsApp link that shared it is gone, since
 * the floating button and the header's Ordenar already cover it.
 */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.footer a {
  color: var(--soft);
  font-weight: 800;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--amber);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(47, 169, 96, 0.96);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav-shell {
    width: min(100% - 20px, 1240px);
    min-height: 66px;
  }

  .brand {
    gap: 10px;
    letter-spacing: 0.025em;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .nav a:not(.nav-order) {
    display: none;
  }

  .nav-order {
    min-width: 92px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 48px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 6, 5, 0.74), rgba(7, 6, 5, 0.96)),
      url("assets/hero-tacos.png") 58% 20% / cover no-repeat,
      var(--black);
  }

  .tagline {
    margin-bottom: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-photo {
    min-height: 310px;
    border-radius: 18px;
  }

  .hero-card {
    margin-top: -56px;
    padding: 20px;
  }

  .section {
    padding: 58px 0;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button {
    min-width: 156px;
  }

  .menu-grid {
    columns: 2;
  }

  /*
   * A branch with fewer cards than the grid has columns would otherwise sit
   * hard against the left with dead space beside it. Narrow the track to
   * exactly the width those cards occupy and centre it, so the cards keep the
   * same width as on the full menu -- they are centred, not stretched.
   *
   * The count comes from [data-cards], which renderMenu() sets from whatever
   * /api/menu returned, so adding or removing a category in the admin changes
   * this with no code change. Counts at or above the column count match
   * nothing here and lay out exactly as before.
   */
  .menu-grid[data-cards="1"] {
    columns: 1;
    max-width: calc((100% - 14px) / 2);
    margin-inline: auto;
  }

  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-panel {
    min-height: 520px;
  }

  .hero-photo {
    min-height: 500px;
  }

  .hero-card {
    margin: -158px 24px 0 auto;
    width: min(430px, 78%);
    padding: 30px;
  }

  .menu-grid {
    columns: 3;
  }

  /* Same idea at three columns. One gap of 14px between two cards. */
  .menu-grid[data-cards="1"] {
    columns: 1;
    max-width: calc((100% - 28px) / 3);
  }

  .menu-grid[data-cards="2"] {
    columns: 2;
    max-width: calc((100% - 28px) / 3 * 2 + 14px);
    margin-inline: auto;
  }

  .footer-layout {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2.3fr);
    gap: 22px 48px;
    align-items: start;
  }
}

@media (min-width: 1260px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.93fr) minmax(500px, 0.84fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
