/* Luigi's Pizza — site styles.
   Palette taken from the new printed menu: parchment, fire-engine red, ink black. */

:root {
  --red: #C1121F;
  --red-dark: #8E0C17;
  --ink: #1E1712;
  --ink-soft: #5A4C40;
  --parch: #F5EBDA;
  --parch-2: #EADCC4;
  --paper: #FCF7EE;
  --black: #141110;
  --rule: #D9C7A8;
  --gold: #B98D3E;

  --maxw: 68rem;
  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 2px 4px rgba(30,23,18,.06), 0 18px 40px -22px rgba(30,23,18,.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 200; }
.skip:focus { left: 0; top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: .82rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 2px solid var(--red); background: var(--red); color: #fff;
  transition: background .15s, transform .1s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: transparent; color: var(--paper); border-color: rgba(252,247,238,.45); }
.btn-light:hover { background: rgba(252,247,238,.14); border-color: var(--paper); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(30rem, 78vh, 46rem);
  display: grid; place-items: center;
  text-align: center;
  padding: 5rem 1.25rem 5.5rem;
  color: var(--paper);
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 55%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,8,8,.62) 0%, rgba(10,8,8,.28) 42%, rgba(10,8,8,.78) 100%),
    radial-gradient(ellipse at 50% 46%, rgba(10,8,8,.05), rgba(10,8,8,.62) 82%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 7px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--red) 0 26px, #fff 26px 52px);
}
.hero-inner { position: relative; max-width: 42rem; }
.hero-logo {
  width: clamp(190px, 30vw, 340px); margin: 0 auto 1.25rem;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.7));
}
.hero h1 {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.7rem, 9vw, 5rem); line-height: 1.02;
  margin: 0 0 1.4rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 6px 34px rgba(0,0,0,.7), 2px 3px 0 rgba(193,18,31,.9);
}
.hero .kicker {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(252,247,238,.75); font-weight: 700; margin: 0 0 1.4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.hero p.lede {
  max-width: 34rem; margin: 0 auto 2.25rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem); color: rgba(252,247,238,.94);
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 18px rgba(0,0,0,.85);
}
.hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* compact variant for interior pages */
.hero.hero-sm { min-height: clamp(20rem, 44vh, 26rem); padding: 4rem 1.25rem 4rem; }

/* Medium hero: enough height for a wide food shot without eating the screen. */
.hero.hero-md { min-height: clamp(24rem, 58vh, 34rem); padding: 4rem 1.25rem 4rem; }

/* Text-only header: no photo, so no reason to reserve viewport height. */
.hero.hero-text {
  min-height: 0;
  padding: 3rem 1.25rem 3.25rem;
}
.hero.hero-text h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); margin-bottom: .4rem; }
.hero.hero-text .kicker { margin-bottom: .9rem; }
.hero.hero-text p.lede { margin-bottom: 0; font-size: clamp(.98rem, 2.2vw, 1.08rem); }
.hero.hero-text .hero-actions { margin-top: 1.5rem; }

/* A hero whose photo is of people: keep heads in frame, give it room, and
   move the copy down out of their faces. */
/* Aspect-driven like the bands: a capped height meant the crop tightened as
   the screen widened. object-position 46% lifts the group up the frame —
   15% was showing a wall of brick above their heads. */
.hero.hero-people {
  --people-ar: 3 / 2;
  width: 100%;                 /* without this, aspect-ratio + min-height
                                  drives the WIDTH from the height and the
                                  hero renders narrower than the page */
  min-height: clamp(24rem, 52vh, 30rem);
  aspect-ratio: var(--people-ar);
  align-items: end; padding-bottom: 3rem;
}
.hero.hero-people .hero-media { object-position: center 46%; }
@media (max-width: 46rem) {
  .hero.hero-people { aspect-ratio: auto; min-height: clamp(22rem, 62vh, 28rem); }
  .hero.hero-people .hero-media { object-position: center 40%; }
}
.hero.hero-people::before {
  background: linear-gradient(180deg,
    rgba(10,8,8,.34) 0%,
    rgba(10,8,8,.36) 30%,
    rgba(10,8,8,.80) 66%,
    rgba(10,8,8,.93) 100%);
}

/* ---------- full-width image band ---------- */

/* Wide: full-bleed, sized close to the photo's own 1.73 aspect so `cover`
   trims very little. Narrow: stop cropping altogether — show the whole frame
   and put the copy underneath. A tall band on a phone would crop a wide photo
   sideways and lose the subject entirely. */
.band {
  /* Height comes from the photo's own aspect, never from a fixed clamp.
     A capped height meant the wider the screen, the harsher the crop —
     44% of the frame lost at 1990px. --band-ar is set per band. */
  --band-ar: 16 / 9;
  position: relative;
  width: 100%;
  aspect-ratio: var(--band-ar);
  min-height: 26rem;
  display: grid; align-items: end; justify-items: center; text-align: center;
  padding: 4rem 1.25rem 3rem; color: var(--paper);
  overflow: hidden; isolation: isolate;
  background: var(--black);
}
.band img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
}
/* Light at the top so faces read; dark at the bottom where the copy sits. */
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10,8,8,.28) 0%,
    rgba(10,8,8,.30) 38%,
    rgba(10,8,8,.78) 70%,
    rgba(10,8,8,.93) 100%);
}
.band h2, .band p, .band .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.9); }

@media (max-width: 46rem) {
  .band {
    display: block; min-height: 0; aspect-ratio: auto; padding: 0;
  }
  .band img { position: static; width: 100%; height: auto; object-fit: contain; }
  .band::before { display: none; }
  .band-inner { padding: 2rem 1.25rem 2.75rem; max-width: none; }
  .band h2, .band p, .band .eyebrow { text-shadow: none; }
}

.band-inner { max-width: 40rem; }
.band h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem,5vw,3rem); margin: 0 0 .6rem; color: #fff; }
.band p { margin: 0 0 1.5rem; color: rgba(252,247,238,.9); }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-parch { background: var(--parch); }
.section-dark { background: var(--black); color: var(--paper); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 700; color: var(--red); margin: 0 0 .6rem;
}
.section-dark .eyebrow { color: #E8A0A6; }
h2.script {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem); color: var(--ink);
  margin: 0 0 .75rem; line-height: 1.1;
}
.section-dark h2.script { color: var(--paper); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.03rem; }
.section-dark .section-head p { color: rgba(252,247,238,.75); }

/* ---------- QR panel ---------- */

.qr-panel {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px;
  padding: 2.5rem; box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .qr-panel { grid-template-columns: auto 1fr; } }
.qr-panel img { width: 210px; margin: 0 auto; border-radius: 12px; }
.qr-panel h3 { font-family: var(--font-script); font-size: 2rem; font-weight: 400; margin: 0 0 .5rem; }
.qr-panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.qr-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.qr-steps li { padding: .35rem 0 .35rem 1.8rem; position: relative; font-size: .95rem; }
.qr-steps li::before {
  content: counter(qr); counter-increment: qr;
  position: absolute; left: 0; top: .45rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
}
.qr-steps { counter-reset: qr; }

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

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .6rem; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px dashed var(--rule); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed td { color: var(--red); font-weight: 700; }

/* ---------- Story ---------- */

.timeline { max-width: 46rem; margin: 0 auto; }
.beat { display: grid; gap: 1.25rem; padding: 2.25rem 0; border-bottom: 1px dashed var(--rule); }
.beat:last-child { border-bottom: 0; }
.beat .year {
  font-family: var(--font-script); font-size: 2.6rem; color: var(--red); line-height: 1;
}
.beat p { margin: 0 0 .9rem; }
.beat p:last-child { margin-bottom: 0; }
.beat figure { margin: 0; }
.beat figure img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.beat figcaption { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: .6rem; }

blockquote.pull {
  margin: 2rem 0; padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--red); background: var(--parch);
  border-radius: 0 12px 12px 0;
}
blockquote.pull p { font-size: 1.12rem; font-style: italic; margin: 0 0 .5rem; }
blockquote.pull cite { font-size: .85rem; color: var(--ink-soft); font-style: normal; font-weight: 600; }

/* ---------- Dish strip ---------- */

.dishes {
  display: grid; gap: 1.25rem; align-items: stretch;
  grid-template-columns: 1fr;
}
/* Explicit steps rather than auto-fit: auto-fit produced three columns and
   orphaned the fourth card on its own row. */
@media (min-width: 34rem) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .dishes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Cards share a row, so they share a height: image fixed, body flexes.
   Ragged bottoms across a four-up row read as a mistake. */
.dish {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.dish-body { flex: 1; }
.dish-body { padding: 1.1rem 1.25rem 1.35rem; }
.dish h3 { margin: 0 0 .25rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.dish .price { color: var(--red); font-weight: 800; }
.dish p { margin: .4rem 0 0; font-size: .88rem; color: var(--ink-soft); }
.dish-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--parch-2); }

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

.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.review {
  background: rgba(252,247,238,.06); border: 1px solid rgba(252,247,238,.14);
  border-radius: 14px; padding: 1.5rem;
}
.review p { margin: 0 0 .9rem; font-size: .95rem; color: rgba(252,247,238,.9); font-style: italic; }
.review cite { font-size: .8rem; color: #E8A0A6; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .6rem; font-size: .9rem; }

/* ---------- CTA + footer ---------- */

.cta-band { background: var(--red); color: #fff; text-align: center; padding: 3.5rem 1.25rem; }
.cta-band h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem,5vw,2.8rem); margin: 0 0 .5rem; }
.cta-band p { margin: 0 0 1.5rem; opacity: .92; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.foot { background: var(--black); color: rgba(252,247,238,.7); padding: 3rem 1.25rem 2rem; }
.foot-grid {
  display: grid; gap: 1.75rem 1.5rem;
  /* minmax(0,1fr) so columns can shrink below their content on narrow phones */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--maxw); margin: 0 auto 2.5rem;
}
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { width: clamp(140px, 26vw, 190px); height: auto; }
@media (min-width: 44rem) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .foot-grid { grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; align-items: start; }
  .foot-brand { grid-column: auto; padding-right: 1rem; }
}
.foot h4 { color: var(--paper); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem; }
.foot a { color: rgba(252,247,238,.85); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }
.foot-bottom { border-top: 1px solid rgba(252,247,238,.14); padding-top: 1.5rem; text-align: center; font-size: .8rem; opacity: .6; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Install prompt ---------- */

.install-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: .9rem 1rem; display: none; align-items: center; gap: .85rem;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.6); max-width: 30rem; margin: 0 auto;
}
.install-bar.is-on { display: flex; }
.install-bar p { margin: 0; font-size: .87rem; flex: 1; }
.install-bar button {
  border: 0; border-radius: 999px; padding: .5rem 1rem; font: inherit;
  font-weight: 700; font-size: .82rem; cursor: pointer;
  background: var(--red); color: #fff;
}
.install-bar .dismiss { background: transparent; color: rgba(252,247,238,.6); padding: .5rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- specials band ---------- */
.specials-band {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--paper); border: 2px solid var(--red);
  border-radius: 18px; padding: 1.75rem 2rem;
  box-shadow: 0 8px 28px -18px rgba(193,18,31,.7);
}
@media (min-width: 46rem) {
  .specials-band { grid-template-columns: 1fr auto; }
}

/* ---------- image + text split ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 46rem) { .split { grid-template-columns: 1fr 1fr; } }
.split-img {
  width: 100%; border-radius: 16px; box-shadow: var(--shadow);
  aspect-ratio: 16/10; object-fit: cover;
}

/* ---------- narrow content column ---------- */
.wrap-narrow { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field > span em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 10px;
  padding: .75rem .9rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,18,31,.13);
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; margin-top: .4rem; }
.form-note {
  margin: 0; padding: .85rem 1rem; border-radius: 10px;
  font-size: .9rem; background: var(--parch); border: 1px solid var(--rule);
}
.form-note.is-error { background: #FDECEC; border-color: #E9A9A9; color: #8E0C17; }

/* ============ Motion ============
   Restrained on purpose: a 56-year-old family restaurant should feel warm,
   not animated. Everything here is short, subtle, and fully disabled under
   prefers-reduced-motion. */

@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal — content rises slightly into place, once. */
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1),
                transform .6s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Children of a revealed grid come in one after another, briefly. */
  .reveal.is-in > * { animation: rise .55s cubic-bezier(.22,.61,.36,1) backwards; }
  .reveal.is-in > *:nth-child(2) { animation-delay: .07s; }
  .reveal.is-in > *:nth-child(3) { animation-delay: .14s; }
  .reveal.is-in > *:nth-child(4) { animation-delay: .21s; }
  .reveal.is-in > *:nth-child(5) { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }

  /* Cards lift a touch and the photo eases in behind them. */
  .dish { transition: transform .25s ease, box-shadow .25s ease; }
  .dish:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(30,23,18,.08), 0 26px 50px -26px rgba(30,23,18,.5); }
  .dish-img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
  .dish:hover .dish-img { transform: scale(1.04); }

  .card { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-3px); }

  /* Hero photo drifts almost imperceptibly. */
  .hero-media { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

  /* Nav gains a shadow once you leave the top. */
  .nav { transition: box-shadow .3s ease, background-color .3s ease; }
  .nav.is-stuck { box-shadow: 0 6px 26px -12px rgba(0,0,0,.75); }

  .btn { transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }

  .split-img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
  .split-img:hover { transform: scale(1.02); }
}

/* Belt and braces: honour the OS setting even if something above changes. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-media { animation: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- rating + review call-to-action ---------- */
.rating {
  margin: 1rem 0 0; font-size: .95rem;
  display: flex; align-items: center; gap: .5rem; justify-content: center; flex-wrap: wrap;
}
.rating .stars { color: var(--gold); letter-spacing: .08em; }
.rating strong { color: var(--paper); }
.rating a { color: #E8A0A6; }
.review-cta {
  margin: 2.5rem 0 0; text-align: center;
  display: flex; align-items: center; gap: 1rem; justify-content: center; flex-wrap: wrap;
  color: rgba(252,247,238,.8); font-size: .95rem;
}

/* ---------- full-bleed feature (image one side, copy the other) ---------- */
.feature-wrap { background: var(--parch); }
.feature {
  display: grid; gap: 0; align-items: stretch;
  grid-template-columns: 1fr;
}
.feature-img {
  width: 100%; height: 100%;
  min-height: clamp(17rem, 54vw, 24rem);
  object-fit: cover; object-position: center 55%;
}
.feature-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.feature-body h2.script { margin-bottom: 1rem; }
.feature-body p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1.03rem; }
.feature-body p:last-child { margin-bottom: 0; margin-top: .75rem; }
.feature-note {
  border-left: 3px solid var(--red); padding-left: 1rem;
  font-style: italic; color: var(--ink) !important;
}
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature-img { min-height: clamp(26rem, 40vw, 38rem); }
  .feature-body { padding-right: max(1.25rem, calc((100vw - var(--maxw)) / 2 + 1.25rem)); }
}

/* ---------- testimonial carousel ----------
   Scroll-snap based: it works with no JS, keeps native touch physics on a
   phone, and stays keyboard- and screen-reader-navigable. JS only adds the
   arrows and dots. */
.carousel { position: relative; }
/* Flex, not grid: minmax(0,…) let the columns shrink to fit the container,
   so nothing ever overflowed and the carousel couldn't scroll. A fixed
   flex-basis forces the overflow that scroll-snap needs. */
.carousel-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding: .25rem;
}
.carousel-track > .review { flex: 0 0 100%; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 16px; }
.carousel-track > .review { scroll-snap-align: center; }

@media (min-width: 46rem)  { .carousel-track > .review { flex-basis: calc(50% - .625rem); } }
@media (min-width: 68rem)  { .carousel-track > .review { flex-basis: calc(33.333% - .834rem); } }

.review {
  background: rgba(252,247,238,.06); border: 1px solid rgba(252,247,238,.14);
  border-radius: 14px; padding: 1.75rem; margin: 0;
  display: flex; flex-direction: column;
}
.review p { margin: 0 0 1.1rem; font-size: .97rem; color: rgba(252,247,238,.92); font-style: italic; line-height: 1.6; flex: 1; }
.review cite { font-size: .8rem; color: #E8A0A6; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .75rem; font-size: .9rem; }

/* Controls sit under the track, not on top of the cards. Overlaid arrows
   covered the review text and hung off the container edge. */
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin-top: 1.75rem;
}
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(252,247,238,.32);
  color: var(--paper);
  transition: background .18s, border-color .18s, opacity .18s;
}
.carousel-btn:hover:not([disabled]) { background: var(--red); border-color: var(--red); }
.carousel-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.carousel-btn[disabled] { opacity: .22; cursor: default; }
.carousel-btn svg { width: 19px; height: 19px; }

.carousel-dots { display: flex; gap: .5rem; align-items: center; }
.carousel-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(252,247,238,.3); transition: background .2s, transform .2s;
}
.carousel-dots button[aria-selected="true"] { background: var(--red); transform: scale(1.35); }
.carousel-dots[hidden] { display: none; }
