/* ==========================================================================
   Pizza Milton — brand stylesheet
   Charcoal-black base; flame orange and parchment cream taken from the logo.
   Shared by index.html (FR) and En.html (EN) — never fork this file.
   ========================================================================== */

:root {
  --tp-base:      #0E0B09;
  --tp-base-soft: #17120E;
  --tp-surface:    #221B15;
  --tp-red:        #E2621B;
  --tp-red-deep:   #B84A0F;
  --tp-red-light:  #FFA66B;
  --tp-green:       #8A5A2B;
  --tp-green-deep:  #6B4420;
  --tp-green-light: #F2C98A;
  --tp-cream:      #F4EAD5;
  --tp-white:      #FFFFFF;
  --tp-text-dim:   #D8CCB6;
  --tp-ink:        #1E1914;
  --tp-ink-soft:   #5C5247;

  --tp-tap:         48px;
  --tp-maxw:        1200px;
  --tp-radius:      14px;
  --tp-radius-pill: 999px;
  --tp-gap:         clamp(16px, 2.5vw, 28px);
  --tp-section-y:   clamp(3.5rem, 9vw, 6.5rem);
  --tp-pad-x:       clamp(1.25rem, 4vw, 2rem);

  --tp-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --tp-script: "Kaushan Script", "Brush Script MT", cursive;

  --tp-scrim: linear-gradient(180deg,
    rgba(14,11,9,.72) 0%, rgba(14,11,9,.42) 38%,
    rgba(14,11,9,.55) 72%, rgba(14,11,9,.90) 100%);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--tp-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tp-cream);
  background: var(--tp-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--tp-green-light); outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(14,11,9,.95);
}

.tp-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tp-shell { width: min(100% - 2 * var(--tp-pad-x), var(--tp-maxw)); margin-inline: auto; }

.tp-eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-weight: 700;
  font-size: .8rem; color: var(--tp-red-light); margin-bottom: .7rem;
}

/* --------------------------------------------------------------------------
   Buttons — every order control carries the EasyOrder data attributes.
   48px min height clears the 44px WCAG floor.
   -------------------------------------------------------------------------- */

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--tp-tap);
  padding: .85em 1.9em;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  font-weight: 700;
  font-size: clamp(.9rem, 2.2vw, 1.02rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.tp-btn--primary {
  background: var(--tp-red); color: var(--tp-white);
  box-shadow: 0 6px 20px rgba(226,98,27,.32);
}
.tp-btn--primary:hover { background: var(--tp-red-deep); transform: translateY(-2px); }
.tp-btn--primary:active { background: var(--tp-red-deep); color: var(--tp-white); transform: translateY(0); }

.tp-btn--ghost { background: transparent; color: var(--tp-white); border-color: rgba(255,255,255,.6); }
.tp-btn--ghost:hover { background: var(--tp-white); color: var(--tp-base); }

.tp-btn--card { background: var(--tp-green); color: var(--tp-white); width: 100%; }
.tp-btn--card:hover { background: var(--tp-red-deep); color: var(--tp-white); }

.tp-cta-group { display: flex; flex-wrap: wrap; gap: .9rem; }

@media (max-width: 575px) {
  .tp-cta-group { flex-direction: column; align-items: stretch; }
  .tp-cta-group .tp-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Header — transparent over the hero, solid once scrolled
   -------------------------------------------------------------------------- */

.tp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--tp-pad-x);
  background: transparent;
  transition: background-color .28s ease, box-shadow .28s ease, padding .28s ease;
}
.tp-header.is-stuck {
  background: rgba(14,11,9,.94);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}

.tp-header__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.tp-header__logo {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

.tp-header__nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }

.tp-header__link {
  color: var(--tp-cream); text-decoration: none; font-weight: 600;
  font-size: .95rem; letter-spacing: .04em;
  padding: .5rem .2rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.tp-header__link:hover { color: var(--tp-white); border-bottom-color: var(--tp-red); }

.tp-lang { display: flex; align-items: center; gap: .1rem; font-weight: 700; font-size: .9rem; }
.tp-lang a {
  display: grid; place-items: center;
  min-width: var(--tp-tap); min-height: var(--tp-tap);
  color: var(--tp-text-dim); text-decoration: none;
  border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
.tp-lang a:hover { color: var(--tp-white); background: rgba(255,255,255,.1); }
.tp-lang a[aria-current="true"] { color: var(--tp-white); background: var(--tp-red); }
.tp-lang span { color: rgba(255,255,255,.3); }

@media (max-width: 767px) {
  .tp-header__logo { width: 46px; height: 46px; }
  .tp-header__brand { min-height: var(--tp-tap); align-items: center; }
  .tp-header__link--menu { display: none; }
}

@media (max-width: 359px) {
  .tp-header__logo { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   Hero — image carousel; scrim keeps the copy legible
   -------------------------------------------------------------------------- */

.tp-hero {
  position: relative; isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 8rem var(--tp-pad-x) 6rem;
  background: var(--tp-base);
  overflow: hidden;
  text-align: center;
}

.tp-hero__carousel,
.tp-hero__slide {
  position: absolute; inset: 0;
}

.tp-hero__carousel { z-index: 0; overflow: hidden; background: var(--tp-base); }
.tp-hero__slide {
  margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .36s ease-out, visibility .36s ease-out;
}
.tp-hero__slide.is-active { opacity: 1; visibility: visible; }
.tp-hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transform: scale(1.01);
}

.tp-hero__scrim { position: absolute; inset: 0; z-index: 1; background: var(--tp-scrim); pointer-events: none; }

.tp-hero__inner { position: relative; z-index: 2; width: min(100%, 900px); }

/* The round logo is drawn for a dark background: no plate, just a soft glow. */
.tp-hero__logo {
  width: clamp(200px, 28vw, 290px); height: auto;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(226,98,27,.55), 0 12px 40px rgba(0,0,0,.65), 0 0 60px rgba(226,98,27,.25);
}

.tp-hero .tp-cta-group { justify-content: center; }

.tp-hero__addr {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.8rem;
  color: var(--tp-cream); font-size: .95rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.tp-hero__addr svg { flex: 0 0 auto; }

.tp-hero__dot,
.tp-hero__toggle {
  position: relative;
  display: grid; place-items: center;
  width: var(--tp-tap); height: var(--tp-tap);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(14,11,9,.58); color: var(--tp-white);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tp-hero__toggle:hover { background: var(--tp-red); border-color: var(--tp-red); color: var(--tp-white); }

.tp-hero__pagination {
  position: absolute; z-index: 3;
  left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  width: max-content; max-width: calc(100% - 1rem);
  padding: .2rem; border-radius: var(--tp-radius-pill);
  background: rgba(14,11,9,.48); backdrop-filter: blur(8px);
}
.tp-hero__dot { border-color: transparent; background: transparent; }
.tp-hero__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.62);
  transition: transform .2s ease, background-color .2s ease;
}
.tp-hero__dot:hover::before { background: var(--tp-white); transform: scale(1.25); }
.tp-hero__dot.is-active::before { background: var(--tp-red); transform: scale(1.35); }
.tp-hero__toggle { margin-left: .15rem; border-color: transparent; background: transparent; }
.tp-hero__toggle .tp-icon-play { display: none; }
.tp-hero__toggle.is-paused .tp-icon-pause { display: none; }
.tp-hero__toggle.is-paused .tp-icon-play { display: block; }

@media (prefers-reduced-motion: reduce) {
  .tp-hero__slide { transition: none; }
}

@media (max-width: 767px) {
  .tp-hero { min-height: max(100svh, 760px); }
  .tp-hero__pagination { bottom: calc(var(--tp-tap) + 2.7rem); }
}

@media (max-width: 767px) and (orientation: landscape) {
  .tp-hero { min-height: 560px; }
  .tp-hero__inner { transform: translateY(-2.5rem); }
  .tp-hero__logo { width: 160px; margin-bottom: .5rem; }
}

/* --------------------------------------------------------------------------
   Hero motion — Ken Burns slides, staggered entrance, glowing headline,
   drifting brand-colour light and timed dots. Everything stops for
   prefers-reduced-motion (end of this block).
   -------------------------------------------------------------------------- */

.tp-hero { --tp-slide-dur: 5500ms; --tp-mx: 0; --tp-my: 0; }

/* Pointer parallax: brand.js sets --tp-mx / --tp-my in the -1..1 range. */
.tp-hero__carousel {
  inset: -24px;
  transform: translate3d(calc(var(--tp-mx) * -14px), calc(var(--tp-my) * -10px), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

/* Slow crossfade; the incoming slide sits above the outgoing one, which keeps
   its zoom running (.is-prev) so nothing jumps while it fades. */
.tp-hero__slide { transition: opacity 1.2s ease, visibility 1.2s ease; }
.tp-hero__slide.is-active { z-index: 2; }
.tp-hero__slide.is-prev { z-index: 1; visibility: visible; }
.tp-hero__slide.is-active img,
.tp-hero__slide.is-prev img { animation: tp-kenburns calc(var(--tp-slide-dur) + 1.5s) ease-out forwards; }
.tp-hero__slide:nth-child(even).is-active img,
.tp-hero__slide:nth-child(even).is-prev img { animation-name: tp-kenburns-alt; }

@keyframes tp-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-2%, -1.5%, 0); }
}
@keyframes tp-kenburns-alt {
  from { transform: scale(1.18) translate3d(2%, 1%, 0); }
  to   { transform: scale(1.04) translate3d(0, 0, 0); }
}

/* Vignette + darker centre so the headline always reads. */
.tp-hero__scrim {
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(14,11,9,.62) 0%, rgba(14,11,9,.25) 70%, rgba(14,11,9,0) 100%),
    var(--tp-scrim);
}

/* Drifting red and green light, blended over the photo. */
.tp-hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.tp-hero__glow span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(70px); opacity: .42;
}
.tp-hero__glow span:first-child {
  background: radial-gradient(circle, var(--tp-red) 0%, rgba(226,98,27,0) 68%);
  left: -14vmax; top: -10vmax;
  animation: tp-drift-a 16s ease-in-out infinite alternate;
}
.tp-hero__glow span:last-child {
  background: radial-gradient(circle, var(--tp-green) 0%, rgba(138,90,43,0) 68%);
  right: -16vmax; bottom: -14vmax; opacity: .55;
  animation: tp-drift-b 19s ease-in-out infinite alternate;
}
@keyframes tp-drift-a { to { transform: translate3d(22vw, 18vh, 0) scale(1.15); } }
@keyframes tp-drift-b { to { transform: translate3d(-24vw, -16vh, 0) scale(.9); } }

.tp-hero__inner {
  transform: translate3d(calc(var(--tp-mx) * 8px), calc(var(--tp-my) * 6px), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

/* Staggered entrance: logo, eyebrow, title lines, subtitle, buttons, address. */
.tp-hero__inner > * { animation: tp-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.tp-hero__inner > :nth-child(2) { animation-delay: .25s; }
.tp-hero__inner > :nth-child(3) { animation: none; }
.tp-hero__inner > :nth-child(4) { animation-delay: .85s; }
.tp-hero__inner > :nth-child(5) { animation-delay: 1s; }
.tp-hero__inner > :nth-child(6) { animation-delay: 1.15s; }
.tp-hero__line { display: inline-block; animation: tp-rise-blur 1s cubic-bezier(.2,.8,.2,1) .4s both; }

@keyframes tp-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes tp-rise-blur {
  from { opacity: 0; transform: translate3d(0, .5em, 0) skewY(4deg); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes tp-drop {
  0%   { opacity: 0; transform: translate3d(0, -40px, 0) scale(.85) rotate(-6deg); }
  60%  { opacity: 1; transform: translate3d(0, 6px, 0) scale(1.03) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

/* Logo: smaller plate that drops in, then gently floats. */
.tp-hero__inner > .tp-hero__logo {
  width: clamp(160px, 18vw, 210px);
  animation: tp-drop 1.1s cubic-bezier(.2,.8,.2,1) both, tp-float 5s ease-in-out 1.2s infinite;
}
@keyframes tp-float { 50% { transform: translate3d(0, -8px, 0) rotate(-1deg); } }

/* Pill eyebrow with a live "ping" dot. */
.tp-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem; padding: .4rem 1rem .4rem .8rem;
  border: 1px solid rgba(255,166,107,.55); border-radius: var(--tp-radius-pill);
  background: rgba(226,98,27,.14); backdrop-filter: blur(6px);
  color: var(--tp-white); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.tp-hero__ping { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tp-red-light); }
.tp-hero__ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--tp-red-light); animation: tp-ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes tp-ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

/* Big serif headline; the name glows with a slowly sweeping brand gradient. */
.tp-hero__title {
  font-family: var(--tp-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  line-height: 1.08; letter-spacing: -.01em;
  color: var(--tp-white); margin-bottom: 1.1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.tp-hero__line:first-child {
  display: block; margin-bottom: .14em;
  font-family: var(--tp-script); font-weight: 400; font-size: .52em; letter-spacing: .01em;
}
.tp-hero__shine {
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 30%, var(--tp-red-light) 45%, #FFFFFF 55%, var(--tp-green-light) 70%, #FFFFFF 85%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  padding-inline: .04em;
  animation: tp-rise-blur 1s cubic-bezier(.2,.8,.2,1) .58s both, tp-shine 6s linear 1.6s infinite;
}
.tp-hero__title { filter: drop-shadow(0 0 22px rgba(226,98,27,.28)); }
@keyframes tp-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.tp-hero__sub {
  max-width: 46ch; margin: 0 auto 1.8rem;
  color: var(--tp-cream); font-size: clamp(1rem, 2.2vw, 1.2rem);
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}

/* Pill CTAs; the order button glows and sends out a ring. */
.tp-hero .tp-btn { border-radius: var(--tp-radius-pill); padding-inline: 2.2em; }
.tp-hero .tp-btn--primary { position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 10px 36px rgba(226,98,27,.55); }
.tp-hero .tp-btn--primary::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid var(--tp-red-light); pointer-events: none; opacity: 0;
  animation: tp-ring 2.6s ease-out 2s infinite;
}
@keyframes tp-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.4); } }
.tp-hero .tp-btn--ghost { backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.tp-hero .tp-btn--ghost:hover { background: var(--tp-white); color: var(--tp-base); }

/* Timed dots: the active one stretches into a bar that fills per slide. */
.tp-hero__dot::before { width: 8px; height: 8px; border-radius: 99px; transition: width .35s ease, background-color .2s ease; }
.tp-hero__dot.is-active::before { width: 30px; transform: none; background: rgba(255,255,255,.3); }
.tp-hero__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 30px; height: 8px; margin: -4px 0 0 -15px; border-radius: 99px;
  background: var(--tp-red); transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.tp-hero__dot.is-active::after { opacity: 1; transform: scaleX(1); }
.tp-hero.is-running .tp-hero__dot.is-active::after { animation: tp-fill var(--tp-slide-dur) linear both; }
@keyframes tp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   Marquee band under the hero
   -------------------------------------------------------------------------- */

.tp-marquee {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--tp-red); color: var(--tp-white);
  border-block: 3px solid var(--tp-green);
  padding: .9rem 0;
}
.tp-marquee__track { display: flex; width: max-content; animation: tp-marquee 28s linear infinite; }
.tp-marquee:hover .tp-marquee__track { animation-play-state: paused; }
.tp-marquee__group { display: flex; flex: 0 0 auto; }
.tp-marquee__item {
  display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-family: var(--tp-display); font-weight: 700; font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem); letter-spacing: .01em;
  white-space: nowrap;
}
.tp-marquee__item::after {
  content: ""; width: .5em; height: .5em; border-radius: 50%;
  background: var(--tp-green); box-shadow: 0 0 0 3px var(--tp-white);
}
@keyframes tp-marquee { to { transform: translate3d(-50%, 0, 0); } }

@media (max-width: 575px) {
  .tp-hero__eyebrow { font-size: .62rem; letter-spacing: .06em; white-space: nowrap; padding-inline: .7rem .85rem; }
  .tp-hero__glow span { filter: blur(50px); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-hero__carousel, .tp-hero__inner { transform: none; transition: none; }
  .tp-hero__slide img, .tp-hero__glow span, .tp-hero__inner > *, .tp-hero__line,
  .tp-hero__inner > .tp-hero__logo, .tp-hero__shine, .tp-hero__ping::after,
  .tp-hero .tp-btn--primary::after, .tp-marquee__track { animation: none !important; }
  .tp-hero.is-running .tp-hero__dot.is-active::after { animation: none; }
  .tp-marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .tp-marquee__group + .tp-marquee__group { display: none; }
}

/* --------------------------------------------------------------------------
   Value strip
   -------------------------------------------------------------------------- */

.tp-values { background: var(--tp-base-soft); padding: clamp(2.5rem, 6vw, 4rem) 0; border-block: 1px solid rgba(255,255,255,.07); }
.tp-values__grid { display: grid; gap: var(--tp-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tp-value { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
.tp-value__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(226,98,27,.14); border: 2px solid var(--tp-red); color: var(--tp-white);
}
.tp-value__title { font-size: 1.1rem; font-weight: 700; color: var(--tp-white); }
.tp-value__text { font-size: .93rem; color: var(--tp-text-dim); max-width: 30ch; }

/* --------------------------------------------------------------------------
   Menu — light section. Photos are isolated on white, so cards are white.
   -------------------------------------------------------------------------- */

.tp-menu { background: var(--tp-cream); color: var(--tp-ink); padding: var(--tp-section-y) 0; }
.tp-menu__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }
.tp-menu__title { font-family: var(--tp-display); font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; color: var(--tp-ink); }
.tp-menu__sub { color: var(--tp-ink-soft); margin-top: .6rem; }
.tp-menu .tp-eyebrow { color: var(--tp-red-deep); }

/* Six category cards form one balanced grid. */
.tp-menu__grid {
  display: grid; gap: var(--tp-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.tp-card {
  display: flex; flex-direction: column; text-align: center;
  background: var(--tp-white);
  border-radius: var(--tp-radius);
  border-top: 4px solid var(--tp-red);
  padding: 1.2rem 1.2rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tp-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }

.tp-card__media { aspect-ratio: 4 / 3; margin: -.4rem -.4rem .8rem; border-radius: 8px; overflow: hidden; background: #fff; }
.tp-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tp-card:hover .tp-card__media img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .tp-card:hover .tp-card__media img { transform: none; } }

.tp-card__name { font-size: 1.25rem; font-weight: 700; color: var(--tp-ink); margin-bottom: .3rem; }
.tp-card__desc { font-size: .92rem; color: var(--tp-ink-soft); margin-bottom: 1.1rem; min-height: 2.8em; }
.tp-card .tp-btn { margin-top: auto; }

/* Phones: two per row. One full-width card per screen meant seven screens of
   scrolling to see the menu — the grid's 260px floor is too wide here. */
@media (max-width: 575px) {
  .tp-menu__grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .tp-card { padding: .85rem .85rem 1.1rem; border-radius: 12px; }
  .tp-card__media { margin: -.3rem -.3rem .5rem; }
  .tp-card__name { font-size: 1rem; }
  .tp-card__desc { font-size: .8rem; margin-bottom: .8rem; min-height: 3.6em; }
  .tp-card .tp-btn { padding: .7em .8em; font-size: .78rem; letter-spacing: .03em; }
}

/* Very narrow phones cannot fit two readable cards side by side. */
@media (max-width: 359px) {
  .tp-menu__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Online-ordering band
   -------------------------------------------------------------------------- */

.tp-order { background: var(--tp-base-soft); padding: var(--tp-section-y) 0; }
.tp-order__inner {
  max-width: 780px; margin-inline: auto; text-align: center;
  border-left: 4px solid var(--tp-red);
  background: var(--tp-surface);
  border-radius: var(--tp-radius);
  padding: clamp(2rem, 5vw, 3rem);
}
.tp-order__title { font-family: var(--tp-display); font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--tp-white); line-height: 1.15; }
.tp-order__text { color: var(--tp-text-dim); margin: 1rem 0 1.8rem; }
.tp-order .tp-cta-group { justify-content: center; }

/* --------------------------------------------------------------------------
   Split (about) — landscape interior photo
   -------------------------------------------------------------------------- */

.tp-split { background: var(--tp-base); padding: var(--tp-section-y) 0; }
.tp-split__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tp-split__grid { grid-template-columns: 1fr 1fr; } }
.tp-split__grid--solo { max-width: 46rem; margin-inline: auto; text-align: center; }
@media (min-width: 900px) { .tp-split__grid--solo { grid-template-columns: 1fr; } }

.tp-split__media { border-radius: var(--tp-radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); aspect-ratio: 3 / 2; }
.tp-split__media img { width: 100%; height: 100%; object-fit: cover; }
.tp-split__title { font-family: var(--tp-display); font-size: clamp(1.8rem, 4.5vw, 2.7rem); color: var(--tp-white); line-height: 1.15; margin-bottom: 1rem; }
.tp-split__text { color: var(--tp-text-dim); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Social links
   -------------------------------------------------------------------------- */

.tp-social { display: flex; justify-content: center; gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.tp-social a {
  display: grid; place-items: center;
  width: var(--tp-tap); height: var(--tp-tap);
  border-radius: 50%;
  background: var(--tp-surface); color: var(--tp-cream);
  border: 1px solid rgba(255,255,255,.12);
  transition: background-color .18s ease, transform .18s ease;
}
.tp-social a:hover { background: var(--tp-red); color: var(--tp-white); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Map + hours
   -------------------------------------------------------------------------- */

.tp-visit { background: var(--tp-base); padding: var(--tp-section-y) 0; }
.tp-visit__grid { display: grid; gap: var(--tp-gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .tp-visit__grid { grid-template-columns: 3fr 2fr; } }

/* Tall enough that Google's business info card (name, rating, reviews) has
   room to sit above the pin without being clipped at the top edge. */
.tp-map { border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-surface); min-height: 420px; }
.tp-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (min-width: 900px) { .tp-map, .tp-map iframe { min-height: 500px; } }

.tp-visit__panel { background: var(--tp-surface); border-radius: var(--tp-radius); padding: clamp(1.5rem, 4vw, 2.2rem); }
.tp-visit__title { font-family: var(--tp-display); font-size: 1.5rem; color: var(--tp-white); margin-bottom: 1.2rem; }

.tp-hours { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.tp-hours div { display: flex; justify-content: space-between; gap: 1rem; font-size: .94rem; color: var(--tp-text-dim); padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.tp-hours dt, .tp-hours span:first-child { color: var(--tp-cream); font-weight: 600; }

.tp-contact-line { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .5rem; color: var(--tp-text-dim); font-size: .95rem; }
.tp-contact-line svg { flex: 0 0 auto; margin-top: .75rem; color: var(--tp-red-light); }
/* Padding gives the tel: link a full-height tap target instead of the ~24px
   the text alone occupies. */
.tp-contact-line a {
  display: inline-flex; align-items: center; min-height: var(--tp-tap);
  padding-block: .5rem;
  color: var(--tp-cream); text-decoration: none;
}
.tp-contact-line a:hover { color: var(--tp-white); text-decoration: underline; }
.tp-contact-line span { padding-block: .55rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.tp-footer { background: var(--tp-base-soft); border-top: 1px solid rgba(255,255,255,.08); padding: var(--tp-section-y) 0 2rem; }
.tp-footer__grid { display: grid; gap: var(--tp-gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .tp-footer__grid { grid-template-columns: repeat(3, 1fr); } }

.tp-footer__logo {
  width: 170px; height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 50%;
}
.tp-footer__title { font-size: 1.05rem; font-weight: 700; color: var(--tp-white); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.tp-footer__text { color: var(--tp-text-dim); font-size: .94rem; }

.tp-footer__bottom {
  margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .88rem; color: var(--tp-text-dim);
}
.tp-footer__bottom a {
  display: inline-flex; align-items: center;
  min-height: var(--tp-tap); padding: .5rem .35rem;
  color: #49AD78; text-decoration: none; font-weight: 700;
}
.tp-footer__bottom a:hover { color: #70C797; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Sticky mobile order bar
   -------------------------------------------------------------------------- */

.tp-orderbar { display: none; }

@media (max-width: 767px) {
  .tp-orderbar {
    display: flex; align-items: center; gap: .6rem;
    position: fixed; inset: auto 0 0 0; z-index: 900;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(14,11,9,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .tp-orderbar__cta { flex: 1; padding-inline: 1rem; }
  .tp-orderbar__call {
    display: grid; place-items: center;
    flex: 0 0 var(--tp-tap); width: var(--tp-tap); height: var(--tp-tap);
    border-radius: 50%; border: 2px solid var(--tp-red);
    color: var(--tp-white); text-decoration: none;
  }
  /* stop the bar permanently covering the footer credit */
  body { padding-bottom: calc(var(--tp-tap) + 1.8rem); }
}

/* The logo and full name remain legible on compact screens. */
.tp-header { background: rgba(14,11,9,.88); }
.tp-header__name { color: var(--tp-white); font-family: var(--tp-display); font-size: 1.05rem; line-height: 1.15; }
.tp-header__name strong { display: block; color: var(--tp-red-light); font-size: 1.25rem; }
.tp-btn--ghost { border-color: var(--tp-white); }
.tp-card { border-top-color: var(--tp-green); }
.tp-order__inner { border-left-color: var(--tp-green); }
.tp-orderbar__call:hover { background: var(--tp-green); }
section[id] { scroll-margin-top: 110px; }
@media (max-width: 575px) {
  .tp-header { gap: .4rem; }
  .tp-header__brand { gap: .45rem; }
  .tp-header__name { font-size: .85rem; }
  .tp-header__name strong { font-size: 1rem; }
  .tp-header__nav { gap: 0; }
  .tp-hero__addr { font-size: .85rem; }
  .tp-hero { padding-bottom: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tp-card:hover, .tp-btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Scroll motion — only active once brand.js adds .tp-motion to <html>
   (never for reduced motion), so without JS everything is simply visible.
   -------------------------------------------------------------------------- */

/* Hero exit: copy lifts and fades, photo pushes in, scene darkens. */
.tp-hero { --tp-exit: 0; }
.tp-hero__carousel {
  transform: translate3d(calc(var(--tp-mx) * -14px), calc(var(--tp-my) * -10px), 0) scale(calc(1 + var(--tp-exit) * .12));
}
.tp-hero__inner {
  transform: translate3d(calc(var(--tp-mx) * 8px), calc(var(--tp-my) * 6px - var(--tp-exit) * 140px), 0);
  opacity: calc(1 - var(--tp-exit) * 1.6);
}
.tp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tp-base); opacity: calc(var(--tp-exit) * .5);
}

/* Reveal on enter; --tp-delay staggers siblings. */
.tp-motion .tp-reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  transition-delay: var(--tp-delay, 0ms);
}
.tp-motion .tp-reveal.is-visible { opacity: 1; transform: none; filter: none; }
.tp-motion .tp-reveal.is-settled { transition-delay: 0ms; }

/* Menu cards: tip up from a tilt, then follow the pointer in 3D. */
.tp-motion .tp-card.tp-reveal {
  transform-origin: 50% 100%;
  transform: perspective(900px) translate3d(0, 70px, 0) rotateX(22deg);
}
.tp-motion .tp-card.tp-reveal.is-visible {
  transform: perspective(900px) translate3d(0, var(--tp-lift, 0px), 0) rotateX(var(--tp-rx, 0deg)) rotateY(var(--tp-ry, 0deg));
}
.tp-motion .tp-card.is-settled { transition: transform .25s ease-out, box-shadow .25s ease; }
.tp-motion .tp-card.is-settled:hover { --tp-lift: -8px; }

/* About photo: curtain wipe, then slow parallax inside its frame. */
.tp-motion .tp-split__media.tp-reveal {
  opacity: 1; filter: none; transform: none;
  clip-path: inset(0 100% 0 0 round var(--tp-radius));
  transition: clip-path 1.3s cubic-bezier(.7,0,.2,1);
}
.tp-motion .tp-split__media.tp-reveal.is-visible { clip-path: inset(0 0 0 0 round var(--tp-radius)); }
.tp-motion .tp-split__media img {
  transform: translate3d(0, var(--tp-par, 0px), 0) scale(1.22);
  will-change: transform;
}

/* Marquee is driven by brand.js (speed follows scrolling). */
.tp-marquee.is-scroll-driven .tp-marquee__track { animation: none; will-change: transform; }

/* Reading progress */
.tp-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--tp-red), var(--tp-red-light) 45%, var(--tp-green-light));
  box-shadow: 0 0 10px rgba(226,98,27,.6);
  transform: scaleX(0); transform-origin: 0 50%;
}

@media (prefers-reduced-motion: reduce) {
  .tp-hero__carousel, .tp-hero__inner { transform: none; opacity: 1; }
  .tp-hero::after { display: none; }
}
