/* ==========================================================================
   Llenyes Santacreu · sistema visual
   Marró carbó del logotip, paper càlid i el taronja de la brasa.
   ========================================================================== */

:root {
  --ink: #2a1a13;
  --ink-2: #352219;
  --ink-3: #4a3125;
  --ink-deep: #1d120d;
  --paper: #f6efe4;
  --paper-2: #efe4d3;
  --paper-3: #e2d2bb;
  --cream: #fbf6ee;
  --white: #fffdf9;

  --text: #2a1a13;
  --muted: #6b5546;
  --muted-light: rgba(251, 246, 238, 0.72);

  --ember: #d9531e;
  --ember-hover: #c2471a;
  --ember-2: #f08a3c;
  --ember-3: #ffb36b;
  --ember-ink: #a8401a;          /* taronja amb contrast sobre paper */
  --ember-tint: rgba(217, 83, 30, 0.08);

  --open: #2f8a45;
  --open-light: #74d68a;
  --closing: #d9930f;
  --closing-light: #ffc45a;
  --closed: #c2412c;
  --closed-light: #ff8a73;

  --wa: #1d8f4e;
  --wa-hover: #167a42;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(42, 26, 19, 0.06), 0 4px 12px -6px rgba(42, 26, 19, 0.18);
  --shadow: 0 1px 2px rgba(42, 26, 19, 0.06), 0 18px 40px -18px rgba(42, 26, 19, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(20, 10, 5, 0.6);

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);

  /* Gra suau de paper (SVG feTurbulence) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .1 0 0 0 0 .07 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { flex: none; }
.icon.flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- tipus */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
}
.eyebrow--light { color: var(--ember-3); }

.section-title {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.section-title--light { color: var(--cream); }

.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ember-ink);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow:hover { gap: 0.7rem; color: var(--ember); }

/* --------------------------------------------------------------- botons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.65rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn--ember { --btn-bg: var(--ember); --btn-fg: #fff; box-shadow: 0 10px 24px -12px rgba(217, 83, 30, 0.7); }
.btn--ember:hover { --btn-bg: var(--ember-hover); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--ink:hover { --btn-bg: var(--ink-3); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: var(--wa-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--paper-3); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--glass {
  --btn-bg: rgba(251, 246, 238, 0.08);
  --btn-fg: var(--cream);
  border-color: rgba(251, 246, 238, 0.28);
  backdrop-filter: blur(6px);
}
.btn--glass:hover { --btn-bg: rgba(251, 246, 238, 0.16); border-color: rgba(251, 246, 238, 0.5); }

.link-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0; border: 0; background: none;
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--closed); }

/* -------------------------------------------------------- estat (obert) */
.status-dot {
  --dot: var(--closed);
  --dot-light: var(--closed-light);
  position: relative;
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}
[data-state="open"] .status-dot { --dot: var(--open); --dot-light: var(--open-light); }
[data-state="closing"] .status-dot { --dot: var(--closing); --dot-light: var(--closing-light); }
[data-state="open"] .status-dot::after,
[data-state="closing"] .status-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--dot);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}
.status-dot--lg { width: 16px; height: 16px; }

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  background: var(--paper-2);
  color: var(--ink);
  transition: background-color 0.2s;
}
.status-pill--header {
  background: rgba(251, 246, 238, 0.1);
  color: var(--cream);
  border: 1px solid rgba(251, 246, 238, 0.18);
}
.status-pill--header:hover { background: rgba(251, 246, 238, 0.18); }
.status-pill--footer { margin-top: 1rem; background: rgba(251, 246, 238, 0.08); color: var(--cream); }
[data-state="open"].status-pill--header .status-dot,
[data-state="open"].status-pill--footer .status-dot,
[data-state="open"].status-pill--bar .status-dot { --dot: var(--open-light); }

/* ------------------------------------------------------------ capçalera */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--cream);
  transition: background-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.is-inner .site-header,
.site-header.is-scrolled {
  background: rgba(42, 26, 19, 0.94);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.header-call { white-space: nowrap; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
}
.brand__place {
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-3);
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.nav__list a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  color: rgba(251, 246, 238, 0.88);
  transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover { color: #fff; background: rgba(251, 246, 238, 0.08); }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(251, 246, 238, 0.2);
}
.lang a {
  min-width: 34px;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  color: rgba(251, 246, 238, 0.7);
}
.lang a[aria-current] { background: var(--cream); color: var(--ink); }
.lang a:not([aria-current]):hover { color: #fff; }

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.2s;
}
.cart-link:hover { background: rgba(251, 246, 238, 0.1); }
.cart-link__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.cart-link__count.is-bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.45); } }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(251, 246, 238, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 6px; justify-items: center; }
.menu-toggle__bars span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ------------------------------------------------------------------ avís */
.notice {
  position: relative;
  z-index: 60;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.notice__inner { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding-block: 6px; }
.notice p { margin: 0; line-height: 1.35; }
/* Quan hi ha avís, la capçalera fa més alçada: tot el que hi ha sota baixa igual */
.has-notice { --notice-h: 56px; }
.has-notice .hero,
.has-notice .page-head { margin-top: var(--notice-h); }

/* =================================================================== HERO */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px));
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(74, 49, 37, 0.65), transparent 60%),
    linear-gradient(180deg, #24160f 0%, var(--ink) 55%, #331f15 100%);
}
.hero::before {
  /* gra subtil també al fosc */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__embers {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  left: 50%; bottom: -38vh;
  z-index: -1;
  width: 150vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 138, 60, 0.42), rgba(217, 83, 30, 0.16) 45%, transparent 75%);
  filter: blur(6px);
  animation: flicker 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flicker {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  18% { opacity: 1; transform: translateX(-50%) scale(1.03); }
  32% { opacity: 0.78; }
  51% { opacity: 0.95; transform: translateX(-50%) scale(1.015); }
  70% { opacity: 0.82; }
  86% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 24px;
}

.hero__eyebrow {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.05s both;
}
/* El nom de l'empresa és l'h1; el lema va a sota en cursiva color de brasa */
.hero__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(3.2rem, 7.6vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  margin: 0 0 1.1rem;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.02em 0 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.24s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.36s; }
.hero__slogan {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  animation: fade-up 0.9s var(--ease-out) 0.42s both;
  text-wrap: balance;
}
.hero__slogan em {
  font-style: italic;
  font-weight: 560;
  color: var(--ember-2);
  background: linear-gradient(100deg, var(--ember-3) 0%, var(--ember-2) 45%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}
@keyframes rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  color: var(--muted-light);
  animation: fade-up 0.9s var(--ease-out) 0.55s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fade-up 0.9s var(--ease-out) 0.7s both;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  animation: fade-up 1.1s var(--ease-out) 0.3s both;
}
.hero__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(251, 246, 238, 0.08);
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 18s var(--ease-out) both;
}
.hero__photo::after {
  /* la llum del foc sobre la llenya */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(217, 83, 30, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(42, 26, 19, 0.25), transparent 30%);
  mix-blend-mode: soft-light;
  animation: flicker-soft 5s ease-in-out infinite;
}
@keyframes kenburns {
  from { transform: scale(1.16) translateY(2%); }
  to { transform: scale(1.02); }
}
@keyframes flicker-soft {
  0%, 100% { opacity: 0.85; }
  30% { opacity: 1; }
  55% { opacity: 0.75; }
  80% { opacity: 0.95; }
}

/* Rètol d'horari dins del hero */
.status-card {
  position: absolute;
  /* Sobresurt de la foto, però sempre menys que l'espai entre columnes (el gap del hero):
     així mai no tapa el text de l'esquerra, a cap amplada. */
  left: calc(16px - clamp(32px, 5vw, 80px));
  bottom: 28px;
  width: min(300px, 86%);
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: fade-up 0.9s var(--ease-out) 0.9s both;
}
.status-card__date {
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-card__headline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.7rem;
  line-height: 1.1;
  font-variation-settings: "SOFT" 100;
}
[data-state="closed"] .status-card__headline,
[data-state="closed"] .hours__now-headline { color: var(--closed); }
[data-state="open"] .status-card__headline,
[data-state="open"] .hours__now-headline { color: var(--open); }
[data-state="closing"] .status-card__headline,
[data-state="closing"] .hours__now-headline { color: #a86b00; }
.status-card__detail { margin: 0.2rem 0 0.9rem; font-weight: 600; color: var(--ink-3); }

.mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}
.mini-week li {
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 8px;
  background: rgba(47, 138, 69, 0.12);
  color: var(--open);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.85rem;
}
.mini-week li.is-closed { background: var(--paper-2); color: #a08a7a; }
.mini-week li.is-today { outline: 2px solid var(--ember); outline-offset: 1px; }
.status-card__link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 650; font-size: 0.95rem;
  color: var(--ember-ink);
  text-decoration: none;
}
.status-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Carretera i camió */
.hero__road {
  position: relative;
  z-index: 2;
  height: 110px;
}
.hero__road::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(251, 246, 238, 0.25) 0 26px, transparent 26px 46px);
}
.hero__road-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  height: 100%;
  padding-bottom: 8px;
}
.hero__road-label {
  margin: 0 0 22px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-3);
  animation: fade-up 0.8s var(--ease-out) 3.3s both;
}

.truck { width: 190px; height: auto; overflow: visible; }
.truck .log { fill: #c4692f; stroke: var(--cream); stroke-width: 1.6; }
.truck .log-ring { fill: none; stroke: rgba(251, 246, 238, 0.7); stroke-width: 1.2; }
.truck__bed, .truck__cab { fill: var(--ink-2); stroke: var(--cream); stroke-width: 2.2; stroke-linejoin: round; }
.truck__window { fill: rgba(255, 179, 107, 0.22); stroke: var(--cream); stroke-width: 1.8; stroke-linejoin: round; }
.truck__line { fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; }
.truck .wheel { fill: var(--ink); stroke: var(--cream); stroke-width: 2.2; }
.truck .hub { fill: var(--cream); }
.truck__light { fill: var(--ember-3); }

.truck--hero { animation: drive-in 2.9s var(--ease-out) 0.9s both; }
.truck--hero .truck__wheel { animation: wheel-roll 2.9s var(--ease-out) 0.9s both; }
.truck--hero .truck__body { animation: chug 0.32s ease-in-out 0.9s 9 alternate; }
.truck--hero .truck__light { animation: headlight 2.9s ease-out 0.9s both; }

@keyframes drive-in {
  from { transform: translateX(-110vw); }
  to { transform: none; }
}
@keyframes wheel-roll {
  from { transform: rotate(-1800deg); }
  to { transform: none; }
}
@keyframes chug {
  from { transform: translateY(0); }
  to { transform: translateY(-1.6px); }
}
@keyframes headlight {
  0%, 85% { fill: #ffe2b8; filter: drop-shadow(0 0 6px #ffb36b); }
  100% { fill: var(--ember-3); filter: none; }
}

/* ============================================================== SECCIONS */
.section { position: relative; padding-block: clamp(72px, 10vw, 136px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Aparició en entrar a pantalla (només si hi ha JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- horari */
.hours { background: transparent; }
.hours__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.hours__now {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--closed);
}
.hours__now[data-state="open"] { border-left-color: var(--open); }
.hours__now[data-state="closing"] { border-left-color: var(--closing); }
.hours__now-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  font-variation-settings: "SOFT" 100;
}
.hours__now-detail { margin: 0.15rem 0 0; font-weight: 600; color: var(--ink-3); }

.hours__card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.week { width: 100%; border-collapse: collapse; }
.week th, .week td {
  padding: 1rem 0.9rem;
  border-bottom: 1px dashed var(--paper-3);
  vertical-align: middle;
}
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.week th {
  text-align: left;
  font-weight: 650;
  font-size: 1.08rem;
}
.week td {
  text-align: right;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.week tr.is-closed th, .week tr.is-closed td { color: #9a8474; }
.week tr.is-closed td { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.week tr.is-today { background: var(--ember-tint); }
.week tr.is-today th { box-shadow: inset 4px 0 0 var(--ember); }
.week tr.is-today th, .week tr.is-today td { border-bottom-color: transparent; }
.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.week__note {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ember-ink);
}

.special { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--paper-2); }
.special__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.special ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.special li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.97rem; }
.special__when { font-weight: 650; }
.special__what { color: var(--muted); text-align: right; }

/* -------------------------------------------------------------- productes */
.products { background: var(--paper-2) var(--grain); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;   /* totes les targetes, la mateixa alçada */
}
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.04); }
.product__kicker {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(42, 26, 19, 0.88);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.product__media--empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(217, 83, 30, 0.35), transparent 60%), var(--ink); }
.product__placeholder { width: 34%; opacity: 0.85; }
.item.is-soldout .item__name { color: var(--muted); }
.item__tag {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--closed);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opt--off { cursor: default; opacity: 0.55; grid-template-areas: "label label" "price price"; background: var(--paper); }
.opt--off:hover { border-color: var(--paper-3); background: var(--paper); transform: none; box-shadow: none; }
.opt--off .opt__price { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.product__body { display: flex; flex-direction: column; gap: 0.25rem; padding: clamp(20px, 2.4vw, 28px); flex: 1; }
.product__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 2rem;
  line-height: 1.05;
  font-variation-settings: "SOFT" 100;
}
.product__text { color: var(--muted); font-size: 0.99rem; margin: 0.35rem 0 0.75rem; }
.product__items { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.item { padding: 0.9rem 0; border-top: 1px dashed var(--paper-3); }
.item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
.item__name { flex: none; font-family: var(--font-display); font-weight: 620; font-size: 1.22rem; white-space: nowrap; font-variation-settings: "SOFT" 100; }
.item__note { min-width: 0; font-size: 0.86rem; color: var(--muted); text-align: right; }

/* Caixes de preu: sempre dues columnes iguals, encara que el producte només tingui un
   format, perquè totes les caixes de totes les targetes facin el mateix ample i alçada. */
.item__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.add-form { display: flex; margin: 0; min-width: 0; }

.opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "price add";
  align-items: center;
  row-gap: 0.2rem;
  column-gap: 0.3rem;
  width: 100%;
  min-width: 0;
  height: 76px;
  padding: 0.6rem 0.5rem 0.5rem 0.7rem;
  border: 1.5px solid var(--paper-3);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.opt:hover { border-color: var(--ember); background: #fff8f1; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.opt { position: relative; }
/* Descompte per quantitat: etiqueta a la cantonada, fora del flux (no canvia la mida de la caixa) */
.opt__save {
  position: absolute;
  top: -9px;
  right: 10px;
  z-index: 1;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--open);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px -2px rgba(31, 95, 48, 0.6);
}
.opt--off .opt__save { background: var(--muted); box-shadow: none; }
.item__opts > * { container-type: inline-size; }
/* Si les caixes queden estretes, el preu es redueix a totes per igual (totes fan el mateix ample) */
@container (max-width: 150px) {
  .opt__price { font-size: 1.06rem; }
  .opt__price small { font-size: 0.68rem; }
}
.opt__label {
  grid-area: label;
  align-self: start;
  overflow: hidden;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.opt__price {
  grid-area: price;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.opt__price small { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.opt__add {
  grid-area: add;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.opt:hover .opt__add { background: var(--ember-hover); }
.opt.is-added .opt__add { background: var(--open); transform: scale(1.08); }

.product__ask { margin-top: auto; align-self: flex-start; color: var(--wa); }
.product__ask:hover { color: var(--wa-hover); }

.extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--paper-3);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.6);
}
.extras__title { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; font-variation-settings: "SOFT" 100; }
.extras__list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; flex: 1; }
.extras__list span { color: var(--muted); }

.price-note {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ------------------------------------------------------- com comprar */
.buy { padding-top: 0; background: var(--paper-2) var(--grain); }
.buy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); max-width: 980px; margin-inline: auto; }
.buy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.buy-card__num {
  position: absolute;
  right: 18px; top: -18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8rem;
  line-height: 1;
  color: var(--paper-2);
  pointer-events: none;
}
.buy-card__icon { position: relative; color: var(--ember); margin-bottom: 1rem; }
.buy-card--wa .buy-card__icon { color: var(--wa); }
.buy-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-variation-settings: "SOFT" 100;
}
.buy-card p { position: relative; color: var(--muted); margin-bottom: 1.5rem; }
.buy-card .btn { margin-top: auto; }

/* ----------------------------------------------------------------- servei */
.service {
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(217, 83, 30, 0.22), transparent 70%),
    var(--ink);
}
.service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.service__truck { margin: 1rem 0 2rem; max-width: 420px; }
.service__truck .truck { width: 100%; }
.js .service__intro.reveal .truck { transform: translateX(-60px); opacity: 0; transition: transform 1.6s var(--ease-out) 0.2s, opacity 0.8s 0.2s; }
.js .service__intro.reveal.is-visible .truck { transform: none; opacity: 1; }
.js .service__intro.reveal .truck__wheel { transition: transform 1.6s var(--ease-out) 0.2s; transform: rotate(-540deg); }
.js .service__intro.reveal.is-visible .truck__wheel { transform: none; }

.service__quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--ember); }
.service__quote p {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: var(--cream);
}
.service__quote footer { color: var(--ember-3); font-family: var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }

.service__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.service-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 246, 238, 0.12);
  background: rgba(251, 246, 238, 0.03);
}
.service-item--main {
  border-color: rgba(240, 138, 60, 0.55);
  background: linear-gradient(135deg, rgba(217, 83, 30, 0.18), rgba(217, 83, 30, 0.04));
}
.service-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(240, 138, 60, 0.14);
  color: var(--ember-3);
}
.service-item h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-variation-settings: "SOFT" 100;
}
.service-item--main h3 { font-size: 1.65rem; }
.service-item p { margin: 0; color: var(--muted-light); }

/* ----------------------------------------------------------------- on som */
.where__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.where__map {
  position: relative;
  /* Leaflet posa z-index de 400 a 1000 a les capes i controls: que no surtin d'aquí
     i passin per sobre de la capçalera fixa (50) */
  z-index: 0;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-3);
}
.map { width: 100%; height: clamp(320px, 42vw, 500px); }
/* avís en pantalla tàctil fins que s'hi toca (vegeu app.js) */
.map[data-locked]::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(42, 26, 19, 0.82);
  color: var(--cream);
  font: 600 0.85rem/1.2 var(--font-body);
  white-space: nowrap;
  pointer-events: none;
}
.map .leaflet-tile-pane { filter: sepia(0.35) saturate(0.8) brightness(1.03) contrast(0.95); }
.map-pin { display: grid; place-items: center; background: none; border: 0; }
.map-pin span {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--ink);
  border: 3px solid var(--cream);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.6);
}
.leaflet-container .leaflet-marker-pane .map-pin img { width: 36px; transform: rotate(45deg); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-weight: 600; }

.where__address { margin: 1.5rem 0; font-size: 1.1rem; line-height: 1.55; }
.where__hours, .footer-hours { margin: 0 0 1.75rem; }
.where__hours div, .footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--paper-3);
}
.where__hours dt, .footer-hours dt { font-weight: 600; }
.where__hours dd, .footer-hours dd { margin: 0; font-family: var(--font-label); font-weight: 600; font-size: 1.1rem; }
.where__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------------------------------------------------------- FAQ */
.faq { background: var(--paper-2) var(--grain); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-item { border-bottom: 1.5px solid var(--paper-3); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  font-variation-settings: "SOFT" 100;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  display: grid; place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ember);
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--ember); color: #fff; }
.faq-item p { margin: 0 0 1.4rem; color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------------------ crida final */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 150px);
  text-align: center;
  color: var(--cream);
  background: var(--ink);
}
.final__glow {
  position: absolute;
  left: 50%; bottom: -60%;
  z-index: -1;
  width: 120%; height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 138, 60, 0.4), rgba(217, 83, 30, 0.12) 50%, transparent 75%);
  animation: flicker 8s ease-in-out infinite;
}
.final__title {
  max-width: 16ch;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  text-wrap: balance;
}
.final__text { max-width: 46ch; margin: 0 auto 2.25rem; color: var(--muted-light); font-size: 1.15rem; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* -------------------------------------------------------------------- peu */
.site-footer {
  padding-top: clamp(56px, 8vw, 96px);
  background: var(--ink-deep);
  color: var(--muted-light);
  font-size: 0.97rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.15fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-hours dd, .where__hours dd { white-space: nowrap; }
.site-footer__brand img { width: 120px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 26ch; }
.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-3);
}
.footer-hours div { border-bottom-color: rgba(251, 246, 238, 0.12); }
.footer-hours dt { color: var(--cream); font-weight: 500; }
.footer-hours dd { color: var(--cream); }
.footer-links { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--cream); word-break: break-word; }
.footer-links a:hover { color: var(--ember-3); }
.footer-address { margin-bottom: 1rem; color: var(--cream); }
.site-footer .link-arrow { color: var(--ember-3); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(40px, 6vw, 72px);
  /* espai de més a baix perquè el botó de WhatsApp no tapi res quan s'arriba al final */
  padding-block: 1.5rem calc(1.5rem + 72px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(251, 246, 238, 0.1);
  font-size: 0.9rem;
}
.site-footer__bottom p { margin: 0 auto 0 0; }
.site-footer__bottom a { color: var(--cream); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(42, 26, 19, 0.15); }

/* ---------------------------------------------------- barra fixa (mòbil) */
.action-bar { display: none; }

/* ------------------------------------------------ botó flotant de WhatsApp */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  animation: fab-in 0.6s var(--ease-out) 1.2s both;
}
.wa-fab__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(15, 80, 42, 0.75), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
/* un parell de batecs suaus perquè es vegi, i després quiet */
.wa-fab__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0;
  animation: fab-ping 1.8s ease-out 3s 2;
  pointer-events: none;
}
.wa-fab:hover .wa-fab__btn { transform: scale(1.07); background: var(--wa-hover); }
.wa-fab:active .wa-fab__btn { transform: scale(0.96); }
.wa-fab:focus-visible { outline: none; }
.wa-fab:focus-visible .wa-fab__btn { outline: 3px solid var(--ember-2); outline-offset: 3px; }
.wa-fab__label {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .wa-fab:hover .wa-fab__label { opacity: 1; transform: none; }
}
.wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: none; }
.menu-open .wa-fab { visibility: hidden; }   /* amb el menú del mòbil obert, fora */
@keyframes fab-in { from { opacity: 0; transform: translateY(24px) scale(0.8); } }
@keyframes fab-ping {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.65); opacity: 0; }
}
@media print { .wa-fab, .action-bar { display: none; } }

/* ------------------------------------------------------------------ avís */
.toast {
  position: fixed;
  right: 20px; bottom: 100px;   /* per sobre del botó de WhatsApp */
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(440px, calc(100vw - 32px));
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.45s var(--ease-out);
}
.toast[hidden] { display: none; }
.toast p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.toast a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  flex: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

.flash {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  z-index: 70;
  width: auto;
  max-width: min(560px, calc(100vw - 32px));
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  font-weight: 600;
  animation: toast-in 0.45s var(--ease-out);
}
.flash p { margin: 0; }

/* ========================================================= PÀGINES INTERIORS */
.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(40px, 6vw, 64px);
  color: var(--cream);
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(217, 83, 30, 0.25), transparent 70%),
    var(--ink);
}
.page-head__title {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.page-head__text { max-width: 48ch; margin-top: 1rem; color: var(--muted-light); font-size: 1.15rem; }
.page-head--error { min-height: 70svh; display: flex; align-items: center; }
.page-head__truck { position: absolute; right: var(--gutter); bottom: 12px; width: 200px; opacity: 0.9; }
.page-head__truck .truck { animation: drive-in 2.2s var(--ease-out) 0.2s both; }
.page-head__truck .truck__wheel { animation: wheel-roll 2.2s var(--ease-out) 0.2s both; }

.empty { max-width: 560px; margin: 0 auto; padding: 3rem 0; text-align: center; }
.empty h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.empty p { color: var(--muted); }

/* --------------------------------------------------------------- cistella */
.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.checkout__cart, .checkout__form, .order__summary {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.checkout__cart { position: sticky; top: calc(var(--header-h) + 20px); }
.checkout__h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.6rem;
  font-variation-settings: "SOFT" 100;
}
.step__n {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "info stepper total" "info remove remove";
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--paper-3);
}
.cart-lines--compact .cart-line { grid-template-columns: 1fr auto; grid-template-areas: "info total"; }
.cart-line__info { grid-area: info; }
.cart-line__name { margin: 0; font-weight: 700; line-height: 1.3; }
.cart-line__opt { margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--muted); }
.cart-line__total { grid-area: total; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line__remove { grid-area: remove; justify-self: end; margin: 0; }

.stepper {
  grid-area: stepper;
  display: inline-grid;
  grid-template-columns: 36px auto 36px;
  grid-template-areas: "less value more";
  align-items: center;
  border: 1.5px solid var(--paper-3);
  border-radius: 999px;
  background: var(--white);
}
.stepper__form { margin: 0; }
.stepper__form--less { grid-area: less; }
.stepper__form--more { grid-area: more; }
.stepper button {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent;
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { color: var(--paper-3); cursor: default; }
.stepper__value { grid-area: value; min-width: 2.6rem; padding: 0 0.25rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.cart-total strong { font-family: var(--font-display); font-size: 2rem; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 0.9rem; color: var(--muted); }

.wa-alt {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(29, 143, 78, 0.07);
  border: 1.5px solid rgba(29, 143, 78, 0.25);
}
.wa-alt__title { margin: 0 0 0.25rem; font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; }
.wa-alt p { font-size: 0.95rem; color: var(--muted); }

.step { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.choice__card { position: relative; display: block; cursor: pointer; }
.choice__card input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 2px solid var(--paper-3);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice__card:hover .choice__body { border-color: var(--ember-2); }
.choice__card input:checked + .choice__body {
  border-color: var(--ember);
  background: #fff6ee;
  box-shadow: 0 0 0 4px rgba(217, 83, 30, 0.12);
}
.choice__card input:focus-visible + .choice__body { outline: 3px solid var(--ember-2); outline-offset: 2px; }
.choice__card input:checked + .choice__body::after {
  content: "✓";
  position: absolute;
  top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-size: 0.8rem; font-weight: 800;
}
.choice__card.is-disabled { cursor: not-allowed; opacity: 0.6; }
.choice__icon { color: var(--ember); }
.choice__title { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; line-height: 1.2; }
.choice__text { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

.panel[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field-row > .field__error { grid-column: 1 / -1; margin-top: -0.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 650; font-size: 0.97rem; }
.field__opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232a1a13' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(217, 83, 30, 0.14);
}
.field [aria-invalid="true"] { border-color: var(--closed); }
.field__error { margin: 0.35rem 0 0; color: var(--closed); font-size: 0.9rem; font-weight: 600; }
.field__hint { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.7rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ember); }
.field--check label { font-weight: 500; margin: 0; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(194, 65, 44, 0.08);
  color: var(--closed);
  font-weight: 650;
}
.checkout__submit .btn { font-size: 1.1rem; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.9rem 0 0; font-size: 0.93rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- comanda */
.order { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.order__pickup {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--ember);
}
.order__pickup p { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font-weight: 650; font-size: 1.1rem; }
.order__pickup .icon { color: var(--ember); }
.order__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ------------------------------------------------------------------ legal */
.prose { max-width: 72ch; }
.prose h2 {
  margin: 2.2rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.6rem;
  font-variation-settings: "SOFT" 100;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-3); }
.prose a { color: var(--ember-ink); }

/* ============================================================ RESPONSIVE */
/* Amb poc espai, el botó de trucar de la capçalera queda només amb la icona */
@media (max-width: 1400px) {
  .site-header__inner { gap: 1rem; }
  .nav__list a { padding-inline: 0.6rem; }
  .header-call { width: 44px; min-height: 44px; padding: 0; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 1180px) {
  /* tres targetes de producte no hi caben amb caixes de preu còmodes: dues per fila */
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0.25rem; }
  .nav__list a {
    padding: 0.4rem 0;
    font-family: var(--font-display);
    font-weight: 620;
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.15;
    border-radius: 0;
    font-variation-settings: "SOFT" 100;
  }
  .nav__list a:hover { background: none; color: var(--ember-3); }
  .nav__mobile-extra { display: grid; gap: 1rem; justify-items: start; max-width: 360px; }
  .menu-toggle { display: grid; place-items: center; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--ink); }
}

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  /* l'espai per a la barra fixa de baix, dins del peu (al body quedava una franja clara sota el peu fosc) */
  .site-footer__bottom { padding-bottom: calc(1.5rem + 76px + env(safe-area-inset-bottom)); }

  .header-call, .lang--header, .status-pill--header { display: none; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: 1.1rem; }

  /* En mòbil, l'horari puja just sota el titular: és el que la gent ve a buscar */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy, .hero__visual { display: contents; }
  .hero__eyebrow { order: 1; }
  .hero__title { order: 2; font-size: clamp(3rem, 15vw, 5rem); margin-bottom: 0.7rem; }
  .hero__slogan { order: 2; margin-bottom: 1.25rem; font-size: clamp(1.45rem, 6.6vw, 2.2rem); }
  .status-card { order: 3; position: relative; left: auto; bottom: auto; width: auto; margin: 0 0 1.5rem; }
  .hero__lead { order: 4; }
  .hero__actions { order: 5; margin-top: 1.25rem; }
  .hero__photo { order: 6; margin-top: 2rem; aspect-ratio: 16 / 10; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .hero__road { height: 96px; }
  .truck { width: 150px; }

  .hours__grid, .service__grid, .where__grid, .faq__grid, .checkout__grid, .order { grid-template-columns: 1fr; }
  .checkout__cart { position: static; }
  .buy__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .service__truck { max-width: 300px; }
  .page-head__truck { position: static; width: 160px; margin-top: 1.5rem; }

  /* l'avís de la cistella, just per sobre de la barra */
  .toast { left: 16px; right: 16px; bottom: calc(76px + 12px + env(safe-area-inset-bottom)); max-width: none; justify-content: space-between; }

  /* al mòbil el WhatsApp és dins de la barra fixa: el botó rodó taparia el contingut */
  .wa-fab { display: none; }

  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(29, 18, 13, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, 0.6);
  }
  .action-bar .status-pill { flex: 1 1 auto; min-width: 0; justify-content: center; background: rgba(251, 246, 238, 0.08); color: var(--cream); min-height: 46px; }
  .status-pill__text { overflow: hidden; text-overflow: ellipsis; }
  .action-bar__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: var(--ember);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .action-bar__num { font-variant-numeric: tabular-nums; }
  .action-bar__num::before { content: "·"; margin: 0 0.35rem 0 0.05rem; opacity: 0.7; }
  .action-bar__wa {
    display: inline-grid; place-items: center;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
  }
  .action-bar__wa:active { background: var(--wa-hover); }
}

@media (max-width: 430px) {
  /* amb el WhatsApp a la barra no hi cap el número: només «Truca» (el telèfon ja el marca) */
  .action-bar__num { display: none; }
}

@media (max-width: 360px) {
  /* mòbils molt estrets (320 px): que el nom no trepitgi la cistella */
  .brand { gap: 0.5rem; }
  .brand__mark { width: 34px; }
  .brand__name { font-size: 0.98rem; }
  .brand__place { font-size: 0.7rem; letter-spacing: 0.12em; }
}

@media (max-width: 560px) {
  .choice, .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .week th, .week td { padding: 0.85rem 0.6rem; }
  .week td { font-size: 1.15rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr auto; grid-template-areas: "info info" "stepper total" "remove remove"; }
  .extras { padding: 1.1rem; }
  .hero__road-label { font-size: 0.85rem; letter-spacing: 0.1em; }
}

/* Moviment reduït: tot quiet, res amaga contingut */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__photo { transform: none !important; }
}
