/* ==========================================================================
   Exquisitem — Hoja de estilos global
   Tipografía alineada con el catálogo de marca 2025/26:
   sans-serif geométrica para títulos (Poppins) + grotesca neutra para texto (Inter).

   Fuentes AUTOALOJADAS en /assets/fonts (.woff2). No hay ninguna petición a
   servidores de Google: evita la transferencia de IP a terceros (RGPD) y elimina
   el bloqueo de renderizado. Los `unicode-range` hacen que el navegador solo
   descargue el subconjunto que necesita (latin ~190 KB; latin-ext solo si hace falta).
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colores de marca (provisionales) */
  --color-primary: #4a2c1d;      /* chocolate oscuro */
  --color-primary-dark: #341f14;
  --color-secondary: #c8974d;    /* caramelo / dorado */
  --color-secondary-light: #e6c98f;
  --color-secondary-dark: #8a5f22;  /* caramel per a text sobre fons clar (5:1 sobre crema) */
  --color-bg: #fff8f0;           /* crema */
  --color-bg-alt: #f4e9db;
  --color-text: #2b1a10;
  --color-text-light: #6b5240;
  --color-white: #ffffff;
  --color-border: #e2d3c0;

  /* Tipografía (alineada con el catálogo de marca) */
  --font-heading: "Poppins", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 5px;
  --max-width: 1200px;
  --header-height: 88px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  /* Conté el menú off-canvas mòbil (.main-nav fixed a translateX(100%)) perquè no
     eixampli el document ni provoqui scroll horitzontal. `clip` no crea scroll-container,
     així que no trenca la capçalera `position: sticky`. */
  overflow-x: clip;
}

/* Superfícies del navegador temàtiques (selecció i scrollbar) */
::selection { background: var(--color-secondary-light); color: var(--color-primary-dark); }
html { scrollbar-color: var(--color-secondary) var(--color-bg-alt); scroll-behavior: smooth; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 999px;
  border: 3px solid var(--color-bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
img { max-width: 100%; display: block; object-fit: cover; }

/* Foto real dins d'una targeta o secció */
.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: var(--color-primary-dark);
  text-wrap: balance;
}
/* Títulos grandes: peso ligero y tracking ceñido, como el catálogo */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-sm); text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* El skip-link (únic .visually-hidden enfocable) es fa visible en rebre focus */
.visually-hidden:focus {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  width: auto; height: auto;
  clip: auto;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

/* Foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.btn-secondary:hover { background: var(--color-secondary-light); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-sm);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}
.logo img { height: 58px; width: auto; }

/* Navegación principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-list {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

/* Selector de idioma */
.lang-switcher {
  position: relative;
}
.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
/* Sense :hover el botó es llegia com a no clicable. */
.lang-switcher-toggle:hover {
  background: var(--color-white);
  border-color: var(--color-secondary);
}
/* Únic senyal visual d'obert, a banda del propi desplegable. */
.lang-chevron {
  display: inline-block;
  transition: transform .2s ease;
}
.lang-switcher-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .lang-switcher-toggle { transition: none; }
  .lang-chevron { transition: none; }
}
/* Icona de globus: universal, es reconeix sense saber l'idioma */
.lang-switcher-toggle::before {
  content: "";
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* En pantalles estretes es redueix, però NO s'amaga el text:
   el sentit d'aquest botó és que s'entengui sense saber català. */
@media (max-width: 520px) {
  .lang-switcher-toggle { font-size: 0.72rem; padding: 0.35rem 0.5rem; gap: 0.25rem; min-height: 44px; }
}
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  display: none;
  overflow: hidden;
}
.lang-switcher.is-open .lang-switcher-menu { display: block; }
.lang-switcher-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: 500;
}
.lang-switcher-menu a:hover,
.lang-switcher-menu a:focus-visible {
  background: var(--color-bg-alt);
}
/* L'idioma actual: el botó ja no mostra les inicials, així que cal
   que el desplegable indiqui inequívocament on ets. */
.lang-switcher-menu a[aria-current="page"] {
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-primary);
}
.lang-switcher-menu a[aria-current="page"]::after {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 700;
}

/* Catálogos PDF en el header */
.catalog-links {
  display: flex;
  gap: 0.5rem;
}
.catalog-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.catalog-links[hidden] { display: none; }

/* Botón menú móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  position: relative;
  transition: transform .2s ease;
}
.nav-toggle-bar::before { content: ""; position: absolute; top: -7px; }
.nav-toggle-bar::after { content: ""; position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: var(--space-sm); }
  .catalog-links { flex-direction: row; flex-wrap: wrap; }
  .catalog-links a { font-size: 0.78rem; padding: 0.35rem 0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-xl) 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-content p.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
@media (max-width: 800px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- Hero full-bleed (foto de vora a vora amb text a sobre) ---------- */
.hero-full {
  position: relative;
  min-height: 82vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
}
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,5,.35) 0%, rgba(20,10,5,.05) 55%, rgba(20,10,5,.15) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}
/* Quadre translúcid darrere del text per garantir la llegibilitat sobre la foto */
.hero-panel {
  max-width: 720px;
  padding: var(--space-md) var(--space-lg);
  background: rgba(20, 10, 5, 0.5);
  border-radius: var(--radius);
}
.hero-full h1 {
  color: var(--color-white);
  max-width: 18ch;
}
.hero-full .lead {
  color: var(--color-white);
  font-size: 1.25rem;
  max-width: 52ch;
  opacity: .97;
}
/* Hero més baix per a pàgines interiors (Productes, Bombons):
   la portada manté el 82vh, les secundàries no han de robar tant scroll. */
.hero-full--compact { min-height: 54vh; }
.hero-full.hero-full--slim { min-height: clamp(200px, 30vh, 300px); }

@media (max-width: 800px) {
  .hero-full { min-height: 68vh; }
  .hero-full--compact { min-height: 46vh; }
  .hero-panel { padding: var(--space-md); }
}

/* ---------- Personalització: productes (fotos de proporcions diferents) ---------- */
.pers-products .photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* ---------- Preguntes freqüents (details/summary, sense JS) ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-secondary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--color-primary-dark); }
.faq-item summary:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.faq-answer { padding: 0 0 var(--space-sm); color: var(--color-text-light); }
.faq-answer p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

/* ---------- Targetes d'exemple (personalització) ---------- */
.example-card {
  margin: 0;
  overflow: hidden;
}
.example-card .photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.example-card .card-body h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }

/* ---------- Banda "split" full-bleed (foto edge-to-edge + text) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.feature-split .feature-media {
  min-height: 460px;
  background-size: cover;
  background-position: center;
}
.feature-split .feature-text {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-split .feature-text-inner {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.feature-split.is-reversed .feature-media { order: 2; }
@media (max-width: 800px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split .feature-media { min-height: 300px; }
  .feature-split.is-reversed .feature-media { order: -1; }
}

/* ---------- Marca: isotip, eyebrow i franja de valors ---------- */
/* L'isotip (flor de 4 pètals del catàleg) s'usa com a màscara CSS per poder
   recolorar-lo segons el context amb 'color'. */
.isotype-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url(../images/shared/isotype.svg) center / contain no-repeat;
          mask: url(../images/shared/isotype.svg) center / contain no-repeat;
}

/* Eyebrow de marca (sobre el títol del hero) */
.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-eyebrow .isotype-mask { width: 20px; height: 20px; flex: 0 0 auto; }

/* Isotip gran com a marca d'aigua a la cantonada del hero */
.hero-full .brand-watermark {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);
  color: var(--color-white);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

/* Franja de marca fosca amb els valors del catàleg */
/* Franja de marca: frase a l'esquerra, tres valors en fila a la dreta */
.brand-band {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: clamp(2rem, 3.5vw, 3rem) var(--space-md);
}
.brand-band-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(auto, 22ch) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.brand-band .brand-tagline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-white);
}
.brand-band-mark {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex: 0 0 auto;
}
.brand-values {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
}
.brand-values li { flex: 1; }
.brand-values .value-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary-light);
  margin-bottom: 0.3rem;
}
.brand-values .value-desc {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 248, 240, 0.76);
}
@media (max-width: 760px) {
  .brand-band-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .brand-values { flex-direction: column; gap: var(--space-sm); }
}

/* ---------- Vídeo corporatiu ---------- */
.video-section {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.video-section h2 { color: var(--color-white); }
.video-section .section-header p { color: rgba(255, 255, 255, 0.82); }
.video-section .isotype-mask {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  color: var(--color-secondary);
}
.video-frame {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #000;
}
/* `aspect-ratio` reserva l'espai abans que carregui res: sense això el pòster
   provocaria un salt de disseny (CLS) en aparèixer. */
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-fallback {
  padding: var(--space-md);
  color: var(--color-white);
  text-align: center;
}

/* ==========================================================================
   Fons de les seccions full-bleed
   Abans anaven com a style="background-image:url(...)" a cada pàgina. Moure'ls
   aquí permet dues coses:
     1. Servir WebP amb image-set() i fallback automàtic a JPG (~31% menys pes).
     2. Treure 'unsafe-inline' de style-src a la CSP.
   ========================================================================== */
.bg-home-hero          { background-image: image-set(url('../images/home/hero.webp') type('image/webp'), url('../images/home/hero.jpg') type('image/jpeg')); }
.bg-home-about         { background-image: image-set(url('../images/home/about-preview.webp') type('image/webp'), url('../images/home/about-preview.jpg') type('image/jpeg')); }
.bg-home-personalizacion { background-image: image-set(url('../images/home/personalitza-bombo.webp') type('image/webp'), url('../images/home/personalitza-bombo.jpg') type('image/jpeg')); }
.bg-productos-hero     { background-image: image-set(url('../images/productos/hero.webp') type('image/webp'), url('../images/productos/hero.jpg') type('image/jpeg')); }
.bg-productos-catalogo { background-image: image-set(url('../images/productos/catalogo-cover.webp') type('image/webp'), url('../images/productos/catalogo-cover.jpg') type('image/jpeg')); }
.bg-bombones-hero      { background-image: image-set(url('../images/bombones/hero.webp') type('image/webp'), url('../images/bombones/hero.jpg') type('image/jpeg')); }
.bg-torrons-hero       { background-image: image-set(url('../images/torrons/hero.webp') type('image/webp'), url('../images/torrons/hero.jpg') type('image/jpeg')); }
.bg-rajoles-hero       { background-image: image-set(url('../images/rajoles/hero.webp') type('image/webp'), url('../images/rajoles/hero.jpg') type('image/jpeg')); }
.bg-xocolatejats-hero  { background-image: image-set(url('../images/xocolatejats/hero.webp') type('image/webp'), url('../images/xocolatejats/hero.jpg') type('image/jpeg')); }
.bg-fruites-hero       { background-image: image-set(url('../images/fruites-banyades/hero.webp') type('image/webp'), url('../images/fruites-banyades/hero.jpg') type('image/jpeg')); }
.bg-llengues-hero      { background-image: image-set(url('../images/llengues-de-gat/hero.webp') type('image/webp'), url('../images/llengues-de-gat/hero.jpg') type('image/jpeg')); }
.bg-bites-hero         { background-image: image-set(url('../images/bites/hero.webp') type('image/webp'), url('../images/bites/hero.jpg') type('image/jpeg')); }
.bg-lloses-hero        { background-image: image-set(url('../images/lloses/hero.webp') type('image/webp'), url('../images/lloses/hero.jpg') type('image/jpeg')); }
.bg-contacto-hero      { background-image: image-set(url('../images/contacto/hero.webp') type('image/webp'), url('../images/contacto/hero.jpg') type('image/jpeg')); }
.bg-bombones-vacblist  { background-image: image-set(url('../images/bombones/vacblist.webp') type('image/webp'), url('../images/bombones/vacblist.jpg') type('image/jpeg')); }
.bg-bombons-pers-hero  { background-image: image-set(url('../images/bombones/personalitzats-hero.webp') type('image/webp'), url('../images/bombones/personalitzats-hero.jpg') type('image/jpeg')); }
.bg-bombons-pers-foto  { background-image: image-set(url('../images/bombones/pers-foto.webp') type('image/webp'), url('../images/bombones/pers-foto.jpg') type('image/jpeg')); }
.bg-sobre-marca        { background-image: image-set(url('../images/sobre-nosotros/marca.webp') type('image/webp'), url('../images/sobre-nosotros/marca.jpg') type('image/jpeg')); }
.bg-sobre-hero         { background-image: image-set(url('../images/sobre-nosotros/hero.webp') type('image/webp'), url('../images/sobre-nosotros/hero.jpg') type('image/jpeg')); }
.bg-sobre-equip        { background-image: image-set(url('../images/sobre-nosotros/equip-1.webp') type('image/webp'), url('../images/sobre-nosotros/equip-1.jpg') type('image/jpeg')); }
/* Fotos de persones: ancora el cover a dalt perquè, en redimensionar, retalli de baix
   cap a dalt i les cares no quedin tallades (Sobre nosaltres, Contacte). */
.feature-media.bg-sobre-marca,
.feature-media.bg-sobre-equip { background-position: center top; }
.bg-personalizacion-hero { background-image: image-set(url('../images/personalizacion/hero.webp') type('image/webp'), url('../images/personalizacion/hero.jpg') type('image/jpeg')); }

/* ---------- Utilitats (substitueixen la resta d'estils inline) ---------- */
.hero-actions.is-centered { justify-content: center; flex-wrap: wrap; }
.btn-on-dark { border-color: #fff; color: #fff; }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.prose { max-width: 800px; }
/* Isotip decoratiu centrat sobre un títol de secció */
.isotype-lead {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  color: var(--color-secondary);
}

/* ---------- Graella de producte (catàleg) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-md);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(74, 44, 29, 0.08);
}
.product-card picture { display: block; }
.product-card .photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}
/* Placeholder quan un producte encara no té foto */
.product-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.product-body h3 { font-size: 1.05rem; margin: 0; }
.product-ref {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}
.product-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-light);
  margin: 0;
}
/* Les descripcions són el text literal del catàleg: es mostren senceres, sense retallar.
   L'alçada de les fitxes d'una mateixa fila ja la iguala la graella. */
.product-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.product-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.product-tag--format {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

/* ---------- Breadcrumb (subpàgines) ---------- */
.breadcrumb {
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-primary-dark); font-weight: 600; }

/* Pas numerat (Opció B del sistema Vacblist) */
/* `list-style: none` és imprescindible: el reset global només l'aplica a `ul`,
   i sense això l'<ol> pinta el seu marcador natiu A MÉS del cercle del comptador. */
.steps {
  counter-reset: step;
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 0 0 var(--space-sm) 3rem;
  line-height: 1.5;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-secondary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
}

/* ---------- Secciones genéricas ---------- */
.section { padding: var(--space-lg) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

/* ---------- Tarjetas (categorías, pasos, galería) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

/* Rejilla SIEMPRE completa: 3×2 → 2×3 → 1×6.
   `auto-fit` dejaría 4+2 (a 1200px caben justo 4 columnas de 260px),
   así que aquí se fija el número de columnas en lugar de deducirlo del ancho.
   Pensada para conjuntos de 6 elementos (las seis razones de Vacblist). */
.card-grid--3up { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .card-grid--3up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid--3up { grid-template-columns: 1fr; }
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(74, 44, 29, 0.08);
}
.card-body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-text-light); margin-bottom: 0; }

/* Targeta clicable sencera: patró d'enllaç estès accessible.
   El títol és l'únic enllaç real; el seu ::after cobreix tota la targeta. */
.card--link { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.card--link .card-body { flex: 1; display: flex; flex-direction: column; }
.card--link .card-cta {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}
.card--link:hover { box-shadow: 0 12px 30px rgba(74, 44, 29, 0.14); transform: translateY(-2px); }
.card--link:hover .card-cta { color: var(--color-primary-dark); }
.card--link:focus-within { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.card-cover-link { color: inherit; text-decoration: none; }
.card-cover-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Placeholder d'imatge per a categories que encara no tenen foto pròpia */
@media (prefers-reduced-motion: reduce) {
  .card--link { transition: none; }
  .card--link:hover { transform: none; }
}

/* ---------- Pasos (proceso personalización) ---------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: bold;
  margin-bottom: var(--space-sm);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: var(--color-white); }
.cta-banner .btn-secondary { color: var(--color-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-bg-alt);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.footer-grid h3 {
  color: var(--color-secondary-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-grid a {
  text-decoration: none;
  color: var(--color-bg-alt);
  opacity: .9;
}
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-logo img {
  height: 80px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1); /* logo es negro; se invierte a blanco sobre el footer oscuro */
}
.social-links { display: flex; gap: var(--space-sm); }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--color-bg-alt);
  border-radius: 50%;
}
/* Ajuts públics (publicitat obligatòria): discret, però llegible i sense alterar els logos */
.footer-ajuts {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  opacity: .9;
}
.footer-ajuts h3 {
  color: var(--color-secondary-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 0.5rem;
}
.footer-ajuts p { margin: 0.5rem 0 1rem; max-width: 70ch; }
.footer-ajuts a { color: var(--color-bg-alt); }
.ajuts-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: #fff;            /* els logos oficials són sobre fons blanc */
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
}
/* max-height + height:auto: si cal encongir per amplada, la proporció del logo es manté (mai deformat) */
.ajuts-logos img { width: auto; height: auto; max-height: 36px; max-width: 100%; }
.ajuts-logos--leader { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
/* Frase oficial de cada projecte, just damunt de la seva franja de logos (com a l'original) */
.footer-ajuts .ajuts-caption { margin: 1rem 0 0.4rem; }
.ajuts-logos--leader img { max-height: 30px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: var(--space-sm);
  font-size: 0.85rem;
  text-align: center;
  opacity: .8;
}

/* ---------- Contacto ---------- */
.contact-info-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

/* ---------- Formats (secció de dos formats, p. ex. xocolatejats) ---------- */
.formats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}
.formats-strip-photo { margin: 0; }
.formats-strip-photo picture { display: block; }
.formats-strip-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.formats-strip-text .brand-eyebrow { color: var(--color-secondary-dark); }
.formats-strip-text h3 { font-size: 1.3rem; margin: 0.3rem 0 0.4rem; }
.formats-strip-text p { color: var(--color-text-light); margin: 0; }
@media (max-width: 820px) {
  .formats-strip { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
}
@media (max-width: 520px) {
  .formats-strip { grid-template-columns: 1fr; }
}

/* ---------- Pager horitzontal entre categories (subpàgines de gamma) ---------- */
.gamma-pager { padding: var(--space-md) 0 var(--space-lg); }
.gamma-pager-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.gamma-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(74, 44, 29, 0.08);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.gamma-pager-next { text-align: right; }
.gamma-pager-btn:hover,
.gamma-pager-btn:focus-visible {
  box-shadow: 0 12px 30px rgba(74, 44, 29, 0.14);
  transform: translateY(-2px);
  border-color: var(--color-secondary);
}
.gamma-pager-arrow { flex: 0 0 auto; font-size: 1.3rem; line-height: 1; color: var(--color-secondary-dark); }
.gamma-pager-dir {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.gamma-pager-name { display: block; font-family: var(--font-heading); font-weight: 600; }

/* Índex de posició, estil paginació (indica on ets i salta a qualsevol categoria) */
.gamma-pager-index {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.gamma-pager-index a,
.gamma-pager-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gamma-pager-index a:hover,
.gamma-pager-index a:focus-visible {
  border-color: var(--color-secondary);
  color: var(--color-primary);
}
.gamma-pager-index .is-current span {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
@media (max-width: 640px) {
  .gamma-pager-index { order: 3; flex-basis: 100%; margin-top: var(--space-sm); }
}
@media (max-width: 460px) {
  .gamma-pager-dir { display: none; }
  .gamma-pager-btn { padding: 0.7rem 1rem; }
}

/* ---------- Graelles amb columnes fixes (minimitzen files incompletes) ---------- */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .grid-cols-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .grid-cols-4, .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   Moviment — contingut i editorial (impeccable /animate)
   Tot amb transform/opacity; entrada del hero al càrrega,
   zoom de foto en targetes-enllaç, i revelació per blocs en
   scroll (classes afegides per main.js). Guardes de
   prefers-reduced-motion a cada efecte.
   ============================================================ */

/* Moment focal: entrada escenificada del hero */
@keyframes exq-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-full .hero-panel > * {
  opacity: 0;
  animation: exq-hero-rise .7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-full .hero-panel > *:nth-child(1) { animation-delay: .06s; }
.hero-full .hero-panel > *:nth-child(2) { animation-delay: .17s; }
.hero-full .hero-panel > *:nth-child(3) { animation-delay: .28s; }
.hero-full .hero-panel > *:nth-child(4) { animation-delay: .39s; }
.hero-full .hero-panel > *:nth-child(n+5) { animation-delay: .48s; }

/* Signatura: zoom subtil de la foto dins de la targeta-enllaç (aparador) */
.card--link .photo { transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.card--link:hover .photo,
.card--link:focus-within .photo { transform: scale(1.045); }

/* Continuïtat: revelació per blocs en scroll (només elements amb .reveal via JS) */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
              transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-panel > * { opacity: 1; animation: none; }
  .card--link .photo { transition: none; }
  .card--link:hover .photo,
  .card--link:focus-within .photo { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
}

/* Arguments com a text directe sobre el fons (sense targeta), amb filet superior d'or */
.arg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.arg-item { padding-top: 0.9rem; border-top: 2px solid var(--color-secondary); }
.arg-item h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--color-primary-dark); }
.arg-item p { margin: 0; color: var(--color-text-light); line-height: 1.5; }
@media (max-width: 820px) { .arg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .arg-grid { grid-template-columns: 1fr; } }

/* Seccions a meitat/meitat: títol+text a un costat i punts 2x2 a l'altre, alineats a dalt */
.partner-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.partner-intro { grid-column: 2; grid-row: 1; }
.partner-intro p { color: var(--color-text-light); margin: 0; }
.partner-split .arg-grid { grid-column: 1; grid-row: 1; }
.arg-grid--2x2 { grid-template-columns: 1fr 1fr; }
/* Variant girada: títol+text a l'esquerra, punts a la dreta */
.partner-split--flip .partner-intro { grid-column: 1; }
.partner-split--flip .arg-grid { grid-column: 2; }
/* To fosc (només 'El teu partner') */
.partner-dark { background: var(--color-primary-dark); color: var(--color-white); }
.partner-dark .partner-intro h2 { color: var(--color-white); }
.partner-dark .partner-intro p { color: rgba(255, 255, 255, 0.82); }
.partner-dark .arg-item h3 { color: var(--color-white); }
.partner-dark .arg-item p { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 820px) {
  .partner-split { grid-template-columns: 1fr; gap: var(--space-md); }
  .partner-intro, .partner-split .arg-grid { grid-column: 1; grid-row: auto; }
}

/* ---------- Consentiment de cookies ---------- */
/* 1a capa: no bloqueja la navegació (sense "cookie wall"), però és visible a tota la pàgina.
   Acceptar i Rebutjar comparteixen estil (.btn-primary): mateix pes visual, com demana l'AEPD. */
.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--color-white);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -6px 24px rgba(52, 31, 20, .18);
  color: var(--color-text);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}
.consent-text { flex: 1 1 420px; }
.consent-text h2 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--color-primary);
}
.consent-text p { margin: 0; font-size: 0.85rem; line-height: 1.5; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.consent-actions .btn { padding: 0.6rem 1.25rem; }

/* 2a capa: diàleg modal natiu (trampa de focus i Escape inclosos) */
.consent-dialog {
  width: min(560px, calc(100% - 2 * var(--space-sm)));
  max-height: calc(100dvh - 2 * var(--space-sm));
  overflow-y: auto;
  border: none;
  border-radius: var(--radius);
  padding: var(--space-md);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 12px 40px rgba(52, 31, 20, .3);
}
.consent-dialog::backdrop { background: rgba(43, 26, 16, .55); }
.consent-dialog h2 { font-size: 1.3rem; margin: 0 2rem var(--space-xs) 0; color: var(--color-primary); }
.consent-dialog > p { font-size: 0.85rem; margin: 0 0 var(--space-sm); }
.consent-category {
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.consent-category h3 { font-size: 1rem; margin: 0; }
.consent-category h3 label { cursor: pointer; }
.consent-category p { font-size: 0.85rem; color: var(--color-text-light); margin: 0.4rem 0 0; }
.consent-always { font-size: 0.78rem; font-weight: 600; color: var(--color-text-light); white-space: nowrap; }
.consent-switch {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex: 0 0 auto;
}
.consent-policy-link { font-size: 0.85rem; margin: 0 0 var(--space-sm); }
.consent-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-light);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.consent-close:hover { background: var(--color-bg-alt); color: var(--color-primary); }

/* Enllaç "Configuració de cookies" del peu: és un <button> (obre el diàleg), amb aspecte d'enllaç */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
[data-consent-open][hidden] { display: none; }

@media (max-width: 640px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; text-align: center; }
  .consent-dialog { padding: var(--space-sm); }
}
@media print { .consent-banner, .consent-dialog { display: none !important; } }

/* ---------- Taules dins de textos legals ---------- */
.table-scroll { overflow-x: auto; margin: var(--space-sm) 0 var(--space-md); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.prose th { background: var(--color-bg-alt); color: var(--color-primary); font-weight: 600; }
.prose td code { font-size: 0.85em; white-space: nowrap; }
.bg-espelmes-hero      { background-image: image-set(url('../images/espelmes/hero.webp') type('image/webp'), url('../images/espelmes/hero.jpg') type('image/jpeg')); }
