/* ==========================================================================
   Restaurant 3P — brand stylesheet
   Direction: family restaurant in Princeville, Québec ("Pizza • Poulet • Poutine").
   Colours from the printed menu: deep brick-red lettering band, tomato red,
   pizza-box yellow highlights, green from the "3P" mark. Light paper base,
   red reserved for ordering actions. One display face + one text face.
   Palette matches the redrawn logo (orange #E8781E/#F7A24A, brick #5E1A10, red #E3262B, green #3BA935).
   Shared by index.html, En.html and the legal pages.
   ========================================================================== */

:root {
  /* palette */
  --navy-900: #3F110A;
  --navy-800: #5E1A10;
  --navy-700: #7A2414;
  --navy-100: #F4E5DB;
  --navy-50:  #FAF3EE;
  --red-600:  #D7261E;
  --red-700:  #B01C15;
  --paper:    #FFFCF8;
  --white:    #FFFFFF;
  --ink:      #2A1712;
  --ink-soft: #6A5249;
  --line:     #EADCD3;

  /* semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --brand: var(--navy-800);
  --accent: var(--red-600);
  --accent-hover: var(--red-700);

  /* type: Bricolage Grotesque (display) + DM Sans (text) */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-12: .75rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem;
  --fs-24: 1.5rem; --fs-32: 2rem; --fs-48: 3rem; --fs-64: 4rem;

  /* space (4/8 scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 8px;
  --radius: 12px;
  --tap: 48px;
  --maxw: 1200px;
  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 104px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-text); font-size: var(--fs-16); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 4px; }
.ic { flex: 0 0 auto; }
.muted { color: var(--muted); }
.tp-shell { width: min(100% - 2 * var(--pad-x), var(--maxw)); margin-inline: auto; }

/* buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-5);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--f-text); font-weight: 700; font-size: var(--fs-16); line-height: 1;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--line { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--line:hover { background: var(--brand); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-14); }
.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: var(--fs-18); }

/* header ---------------------------------------------------------------- */
.tp-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.tp-header__row, .tp-header:not(:has(.tp-header__row)) {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 72px;
}
.tp-header:not(:has(.tp-header__row)) { padding-inline: var(--pad-x); }
.tp-header__brand { display: flex; align-items: center; text-decoration: none; }
.tp-header__logo { height: 60px; width: auto; }
.tp-header__name { display: none; }
.tp-header__nav { display: flex; align-items: center; gap: var(--s-5); }
.tp-header__link {
  font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap;
  padding: var(--s-2) 0; border-bottom: 2px solid transparent;
  transition: border-color .15s var(--ease-out);
}
.tp-header__link:hover { border-bottom-color: var(--brand); }
.tp-header__phone {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; text-decoration: none; color: var(--brand);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tp-lang { display: flex; gap: 2px; }
.tp-lang a {
  display: grid; place-items: center; min-width: 40px; min-height: 40px;
  font-size: var(--fs-14); font-weight: 700; text-decoration: none; color: var(--muted);
  border-radius: var(--radius-sm);
}
.tp-lang a:hover { color: var(--brand); background: var(--navy-50); }
.tp-lang a[aria-current="true"] { color: var(--white); background: var(--brand); }
.tp-lang span { display: none; }

@media (max-width: 1023px) {
  .tp-header__link, .tp-header__phone span { display: none; }
}
@media (max-width: 639px) {
  .tp-header__row { min-height: 64px; }
  .tp-header__logo { height: 42px; }
  .tp-header__phone, .tp-header__cta { display: none; }
}

/* hero ------------------------------------------------------------------
   Dark brick-red stage from the menu. Motion here answers "what is this place?":
   title lines unmask once, real dishes cross-fade, the delivery stamp turns.
   Everything is transform/opacity and stops under reduced motion. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: var(--white);
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
}
.hero::before {
  /* soft red light behind the photo, static */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -20%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(215,38,30,.28), rgba(215,38,30,0));
}
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1.05fr; } }

.kicker {
  font-size: var(--fs-14); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-700); margin-bottom: var(--s-4);
}
.hero .kicker { color: #F2C39A; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; color: var(--white);
  font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1; letter-spacing: -.025em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: inline-block; }
.hero__title .ln:last-child > span { color: #FFC93C; }
.hero__lead {
  margin-top: var(--s-5); max-width: 50ch;
  font-size: var(--fs-18); color: #F1DCCD; text-wrap: pretty;
}
.hero__title .star { color: inherit; text-decoration: none; font-size: .55em; vertical-align: .75em; margin-left: .04em; }
.star-note { margin-top: var(--s-4); font-size: var(--fs-14); color: #F2C39A; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__actions .btn--line { color: var(--white); border-color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.hero__actions .btn--line:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.facts {
  display: grid; gap: var(--s-4); margin-top: var(--s-7);
  padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.16);
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; gap: var(--s-3); align-items: flex-start; }
.fact .ic { color: #FFC93C; margin-top: 2px; }
.fact strong { display: block; font-weight: 700; }
.fact span span { display: block; font-size: var(--fs-14); color: #F2C39A; }

.hero__stage { position: relative; }
.hero__media {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--navy-800);
  aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .9s var(--ease-out), transform 6s linear;
}
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__cap {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  padding: var(--s-2) var(--s-4); border-radius: 999px;
  background: rgba(63,17,10,.82); color: var(--white); font-weight: 700; font-size: var(--fs-14);
}
.hero__cap span { display: inline-block; }
.hero__cap span.is-swap { animation: cap-in .35s var(--ease-out); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stamp {
  position: absolute; width: clamp(112px, 13vw, 150px); aspect-ratio: 1;
  right: clamp(-8px, -1vw, -16px); top: clamp(-20px, -2vw, -32px);
  border-radius: 50%; background: var(--red-600); color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.55);
}
.stamp svg { width: 100%; height: 100%; display: block; }
.stamp__ring { transform-origin: 100px 100px; animation: stamp-spin 24s linear infinite; }
.stamp__ring text { fill: currentColor; font: 700 15px var(--f-text); letter-spacing: .12em; }
.stamp__s { fill: currentColor; font: 700 14px var(--f-text); letter-spacing: .14em; }
.stamp__b { fill: currentColor; font: 800 38px var(--f-display); }
@keyframes stamp-spin { to { transform: rotate(360deg); } }

@media (max-width: 959px) {
  .hero__stage { order: -1; }
  .hero__media { aspect-ratio: 16 / 11; }
  .stamp { right: 8px; top: -18px; }
}

/* one-time entrance (≤ 900ms total) */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .ln > span { animation: ln-up .7s var(--ease-out) both; animation-delay: calc(80ms * var(--i) + 60ms); }
  .hero .kicker, .hero__lead, .hero__actions, .facts { animation: fade-up .6s var(--ease-out) both; }
  .hero__lead { animation-delay: .32s; }
  .hero__actions { animation-delay: .4s; }
  .facts { animation-delay: .48s; }
  .hero__media { animation: media-in .8s var(--ease-out) both .1s; }
  .stamp { animation: stamp-in .5s var(--ease-out) both .55s; }
}
@keyframes ln-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes media-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(.85) rotate(-20deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .stamp__ring { animation: none; }
  .hero__slide { transition: opacity .01ms; transform: none; }
}

/* kitchen gallery: native scroll-snap strip, arrows only nudge it.
   No autoplay; the visitor drives it. */
.gal { padding: 0 0 clamp(56px, 8vw, 96px); }
.gal__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.gal__nav { display: flex; gap: var(--s-2); }
.gal__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--navy-900); border: 1px solid var(--line);
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), transform .12s var(--ease-out);
}
.gal__btn[data-gal="-1"] svg { transform: scaleX(-1); }
.gal__btn:active { transform: scale(.95); }
.gal__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .gal__btn:not(:disabled):hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); } }
.gal__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 300px); gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 4px max(var(--s-5), calc((100vw - 1200px) / 2)); scroll-padding-inline: max(var(--s-5), calc((100vw - 1200px) / 2));
  list-style: none; margin: 0;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 2px; }
.gal__item { scroll-snap-align: start; }
.gal__item figure { margin: 0; }
.gal__item img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.gal__item figcaption { margin-top: var(--s-2); font-size: var(--fs-14); font-weight: 600; color: var(--ink-soft); }

/* delivery zone strip ---------------------------------------------------- */
.zone { background: var(--navy-800); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.zone__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  padding: var(--s-4) 0;
}
.zone__label { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; }
.zone__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: #F1DCCD; }
.zone__list li { position: relative; }
.zone__list li + li::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-4) / 2 - 2px); top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--red-600); transform: translateY(-50%);
}

/* section heads --------------------------------------------------------- */
.sec-head { max-width: 60ch; margin-bottom: var(--s-6); }
.sec-title {
  font-family: var(--f-display); font-weight: 800; color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.015em;
}
.sec-sub { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-18); }

/* menu categories ------------------------------------------------------- */
.menu { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.cats { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cat__btn {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0;
  text-align: left; cursor: pointer; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s var(--ease-out);
}
.cat__btn:hover { border-color: var(--navy-700); }
.cat__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-50); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cat__btn:hover .cat__media img { transform: scale(1.03); }
}
.cat__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-5); }
.cat__name { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-24); line-height: 1.15; color: var(--navy-900); }
.cat__desc { color: var(--muted); font-size: var(--fs-16); }
.cat__go {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3);
  font-weight: 700; color: var(--accent);
}
.cat__go .ic { transition: transform .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cat__btn:hover .cat__go .ic { transform: translateX(3px); } }
.menu__more { margin-top: var(--s-5); color: var(--muted); }

/* promos ---------------------------------------------------------------- */
.promos { background: var(--navy-900); color: var(--white); padding: var(--section-y) 0; }
.promos__grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .promos__grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.sec-head--inv .sec-title { color: var(--white); }
.sec-head--inv .sec-sub { color: #F1DCCD; margin-bottom: var(--s-5); }
.promo-list { border-top: 1px solid rgba(255,255,255,.18); }
.promo {
  display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-5) 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
@media (min-width: 640px) { .promo { grid-template-columns: 200px 1fr; align-items: baseline; } }
.promo__name { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-24); line-height: 1.15; }
.promo__desc { color: #F6E6DA; }

/* FAQ (markup written by scripts/seo.py) ------------------------------- */
.tp-faq { padding: var(--section-y) 0 0; }
.tp-faq .tp-eyebrow { display: none; }
.tp-faq__title {
  font-family: var(--f-display); font-weight: 800; color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin-bottom: var(--s-5);
}
.tp-faq__list { max-width: 820px; border-top: 1px solid var(--line); }
.tp-faq__item { border-bottom: 1px solid var(--line); }
.tp-faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-18);
}
.tp-faq__q::-webkit-details-marker { display: none; }
.tp-faq__q::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s var(--ease-out);
}
.tp-faq__item[open] .tp-faq__q::after { transform: rotate(-135deg) translate(-2px, -2px); }
.tp-faq__a { padding: 0 0 var(--s-5); color: var(--muted); max-width: 68ch; }

/* visit ---------------------------------------------------------------- */
.tp-visit { padding: var(--section-y) 0; }
.visit__grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .visit__grid { grid-template-columns: 1fr 1.3fr; align-items: stretch; } }
.visit__list { display: grid; gap: var(--s-4); margin: var(--s-5) 0 var(--s-6); }
.visit__list div { display: flex; gap: var(--s-3); }
.visit__list dt { color: var(--navy-700); padding-top: 2px; }
.visit__list a { color: var(--brand); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tp-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--navy-50); border: 1px solid var(--line); }
.tp-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* footer --------------------------------------------------------------- */
.tp-footer { background: var(--navy-50); border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.tp-footer__row { display: grid; gap: var(--s-4); justify-items: start; }
.tp-footer__logo { width: 200px; height: auto; }
.tp-footer__text { color: var(--muted); }
.tp-footer__text a, .tp-footer__links a { color: var(--brand); }
.tp-footer__links { font-size: var(--fs-14); color: var(--muted); }

/* mobile order bar ------------------------------------------------------ */
.tp-orderbar { display: none; }
@media (max-width: 767px) {
  .tp-orderbar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: flex; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .tp-orderbar__call {
    display: grid; place-items: center; width: 52px; min-height: 52px; flex: 0 0 auto;
    color: var(--brand); border: 2px solid var(--brand); border-radius: var(--radius-sm);
  }
  .tp-orderbar__cta { flex: 1; min-height: 52px; }
  body { padding-bottom: 76px; }
}

/* legal pages ---------------------------------------------------------- */
.tp-legal { padding: var(--s-7) 0 var(--section-y); max-width: 760px; }
.tp-legal__title { font-family: var(--f-display); font-weight: 800; color: var(--navy-900); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin-bottom: var(--s-5); }
.tp-legal__h2 { font-family: var(--f-display); font-weight: 800; color: var(--navy-900); font-size: var(--fs-20); margin: var(--s-6) 0 var(--s-2); }
.tp-legal p { margin-bottom: var(--s-3); }
.tp-legal__list { padding-left: 1.2em; list-style: disc; margin-bottom: var(--s-3); }

/* reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
