/* =========================================================
   All Electric Motors · estils base (mobile-first)
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --accent: #C0182A;        /* vermell del logo */
  --accent-dark: #97262A;   /* granat de la web antiga: hover */
  --ink: #1B151B;           /* negre del text del logo */
  --ink-2: #4A4448;         /* text secundari */
  --muted: #6E686C;
  --line: #E6E2E4;
  --bg: #FFFFFF;
  --bg-alt: #F6F5F5;
  --footer-text: #D8D3D6;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --container: 1200px;

  --header-h: 64px;
  --brand-w: 76px;
  --brand-pad: 10px;

  --shadow-card: 0 10px 28px rgba(27, 21, 27, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; --brand-w: 112px; --brand-pad: 12px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(820px + 2 * var(--gutter)); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-stretch: 85%; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.5; max-width: 62ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
strong { font-weight: 700; }
strong.accent { color: var(--accent); }

/* Llistes: sempre punt simple, mai icones de tick */
.list-dot { list-style: none; margin: 0 0 1.25em; padding: 0; }
.list-dot li { position: relative; padding-left: 1.15em; margin-bottom: .35em; }
.list-dot li::before {
  content: ""; position: absolute; left: .2em; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;   /* sense backdrop-filter: trencaria el menú mòbil (position: fixed) */
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; height: var(--header-h); gap: 16px; }

/* Logo "sobresortit": targeta blanca que penja per sota de la capçalera */
.brand {
  position: absolute; top: 0; left: var(--gutter); z-index: 2;
  width: var(--brand-w);
  padding: var(--brand-pad) var(--brand-pad) calc(var(--brand-pad) + 2px);
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
  transition: width .3s var(--ease), padding .3s var(--ease), box-shadow .3s, border-color .3s;
}
.brand img { width: 100%; }
.brand-compact { display: none; }

/* En fer scroll: logo horitzontal dins la barra */
.is-scrolled .brand, .nav-open .brand {
  width: auto; top: 50%; transform: translateY(-50%);
  padding: 0; box-shadow: none; border-bottom-color: transparent; border-radius: 0; background: transparent;
}
.is-scrolled .brand-full, .nav-open .brand-full { display: none; }
.is-scrolled .brand-compact, .nav-open .brand-compact { display: block; height: calc(var(--header-h) * .52); width: auto; }

.main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; text-decoration: none; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .92rem;
}
.nav-list a[aria-current="page"] { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.header-phone .icon { color: var(--accent); }
.header-phone:hover { color: var(--accent); }

.lang-switch { display: flex; align-items: center; }
.lang-switch a {
  padding: .35em .45em; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-decoration: none; color: var(--muted); border-radius: 4px;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-pending {
  padding: .35em .45em; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: #BDB7BA; cursor: not-allowed;
}
.nav-mobile-extra .lang-switch .is-pending { font-size: .95rem; padding: .5em .6em; }
.lang-switch a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.icon-link, .icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-link:hover, .icon-btn:hover { color: var(--accent); background: var(--bg-alt); }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Mòbil: menú hamburguesa */
@media (max-width: 1023.98px) {
  .header-tools > .header-phone,
  .header-tools > .lang-switch,
  .header-tools > .icon-link { display: none; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 56px var(--gutter) 32px;
    background: #fff; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 18px 0; font-size: 1.5rem; font-weight: 800; font-stretch: 75%; letter-spacing: .02em; }
  .nav-mobile-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 28px; }
  .nav-mobile-extra .header-phone { font-size: 1.25rem; width: 100%; }
  .nav-mobile-extra .lang-switch a { font-size: .95rem; padding: .5em .6em; }
}

/* Escriptori */
@media (min-width: 1024px) {
  .main-nav { margin-left: calc(var(--brand-w) + 40px); }
  .is-scrolled .main-nav { margin-left: 260px; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a { padding: .6em .85em; border-radius: 6px; }
  .nav-list a:hover { color: var(--accent); }
  .nav-mobile-extra, .phone-mobile, .nav-toggle { display: none; }
  .header-tools { gap: 10px; }
  .header-tools .lang-switch { padding-inline: 6px; border-inline: 1px solid var(--line); }
}

/* ---------- Page sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.page-head {
  padding-top: clamp(76px, 10vw, 120px);   /* deixa lloc a la targeta del logo */
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .35em; }

/* Placeholders provisionals (fase 1) */

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid; gap: 40px;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand a { display: inline-block; padding: 14px 16px 16px; background: #fff; border-radius: var(--radius); border-bottom: 3px solid var(--accent); }
.footer-brand img { width: 120px; }
.footer-title {
  color: #fff; font-size: 1rem; font-stretch: 85%; letter-spacing: .12em; margin-bottom: 1.1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer-list li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-list .icon { color: var(--accent); margin-top: .2em; width: 1.15em; height: 1.15em; }
.hours { margin: 0; display: grid; gap: .8rem; }
.hours div { display: grid; gap: .1rem; }
.hours dt { color: var(--footer-text); }
.hours dd { margin: 0; color: #fff; font-weight: 700; font-size: 1.1rem; }

.map-embed {
  position: relative; display: grid; place-items: center; align-content: center; gap: .6rem;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(rgba(27,21,27,.55), rgba(27,21,27,.55)),
    repeating-linear-gradient(45deg, #2a2328 0 12px, #241e23 12px 24px);
  text-align: center; padding: 1rem;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { margin: 0; font-size: .78rem; color: #A9A2A6; max-width: 26ch; }
.footer-maplink { display: inline-flex; align-items: center; gap: .4em; margin-top: .8rem; font-size: .9rem; }
.footer-maplink .icon { width: 1em; height: 1em; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: .8rem;
  padding-top: 1.4rem; padding-bottom: 150px; /* mòbil: espai per als botons flotants */
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; padding-bottom: 1.4rem; padding-right: calc(var(--gutter) + 170px); }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: .8fr 1.3fr 1fr 1.3fr; }
}

/* ---------- Floating buttons (sempre visibles) ---------- */
.floating-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .2s, transform .2s;
}
.nav-open .floating-actions { opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 54px; height: 54px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(27,21,27,.25);
  transition: background-color .2s, transform .2s var(--ease);
}
.fab:hover { transform: translateY(-2px); }
.fab span { display: none; }
.fab-phone { background: var(--accent); }
.fab-phone:hover { background: var(--accent-dark); }
.fab-contact { background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(27,21,27,.25), inset 0 0 0 1px var(--line); }
.fab-contact:hover { color: var(--accent); }
@media (min-width: 768px) {
  .floating-actions { right: 24px; bottom: 24px; }
  .fab { width: auto; padding: 0 1.25em 0 1.05em; }
  .fab span { display: inline; }
}

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

/* =========================================================
   FASE 2 · Hero slider
   ========================================================= */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-track { position: relative; height: min(calc(100vw * 4 / 3), 680px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; padding-top: 72px; }
.hero-content .container { width: 100%; }
.hero-title {
  max-width: 15ch; margin: 0 0 1rem; font-size: clamp(1.6rem, 6.4vw, 4rem);
  font-weight: 500; font-stretch: 72%; line-height: 1; text-transform: uppercase; color: var(--ink);
}
.hero-title strong { font-weight: 900; color: var(--accent); }
.hero-slide--photo .hero-content { align-items: flex-end; padding: 0 0 72px; }
.hero-slide--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,21,27,.82) 0%, rgba(27,21,27,.25) 55%, rgba(27,21,27,0) 75%); }
.hero-slide--photo .hero-title { color: rgba(255,255,255,.88); }
.hero-slide--photo .hero-title strong { color: #fff; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; transition: background-color .2s, transform .2s; }
.hero-dots button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.hero.is-photo .hero-dots button { border-color: #fff; }
.hero.is-photo .hero-dots button[aria-selected="true"] { background: #fff; }
@media (min-width: 768px) {
  .hero-track { height: clamp(440px, 40vw, 660px); }
  .hero-content { align-items: center; padding-top: 0; }
  .hero-slide--photo .hero-content { align-items: center; padding: 0; }
  .hero-slide--photo::after { background: linear-gradient(to right, rgba(27,21,27,.85) 0%, rgba(27,21,27,.55) 38%, rgba(27,21,27,0) 68%); }
  .hero-title { font-size: clamp(2.4rem, 3.7vw, 4rem); max-width: 17ch; }
  .hero { --hero-container: 1440px; --hero-text: min(36vw, 620px); }
  .hero .hero-content .container { max-width: calc(var(--hero-container) + 2 * var(--gutter)); }
  .hero-slide:not(.hero-slide--photo) .hero-content .container > * { max-width: var(--hero-text); }
  .hero-slide:not(.hero-slide--photo) .hero-content { align-items: flex-start; padding-top: clamp(68px, 5vw, 76px); }
}

/* =========================================================
   FASE 3 · Graella de productes (targetes)
   ========================================================= */
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head .lead { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: var(--ink);
  transition: background-color .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.card-title { display: block; padding: 12px 6px 6px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(.92rem, 1.6vw, 1.12rem); line-height: 1.15; transition: color .3s; }
.card-meta { display: block; padding: 0 6px 4px; font-size: .8rem; color: var(--muted); transition: color .3s; }
.card:hover, .card:focus-visible { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 28px rgba(192,24,42,.22); }
.card:hover .card-title, .card:focus-visible .card-title, .card:hover .card-meta, .card:focus-visible .card-meta { color: #fff; }
.card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.06); }

/* Serveis */
.services { display: grid; gap: 28px; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.service { padding-top: 18px; border-top: 3px solid var(--accent); }
.service h3 { margin-bottom: .5em; }
.service p { margin: 0; color: var(--ink-2); }

/* =========================================================
   FASE 4 · Marques oficials
   ========================================================= */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(7, 1fr); } }
.brands li { display: grid; place-items: center; height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brands img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brands li:hover img { filter: none; opacity: 1; }

/* =========================================================
   FASE 5 · Producte i sèrie
   ========================================================= */
.breadcrumb { margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 .4rem 0 .15rem; color: #B5AEB2; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.h-small { font-size: 1.05rem; font-stretch: 85%; letter-spacing: .1em; margin-bottom: 1.1rem; }
.intro { max-width: 70ch; color: var(--ink-2); margin-bottom: 2.5rem; }

.series-top { display: grid; gap: 28px; align-items: center; }
.series-media { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px; max-width: 460px; }
.series-media img { width: 100%; }
.series-info h1 { margin-bottom: .25em; }
.series-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 1.2rem 0 .4rem; }
.series-brands img { height: 34px; width: auto; }
@media (min-width: 768px) { .series-top { grid-template-columns: minmax(260px, 2fr) 3fr; gap: 48px; } }

.series-body { display: grid; gap: 40px; }
.series-features { max-width: 75ch; }
.series-features h3 { font-size: 1rem; font-stretch: 85%; letter-spacing: .08em; margin: 1.6rem 0 .6rem; }
@media (min-width: 1024px) { .series-body { grid-template-columns: 2fr 1fr; gap: 64px; } .series-docs { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.doc-list { display: flex; flex-direction: column; gap: .55rem; }
.doc-link { display: inline-flex; align-items: flex-start; gap: .5rem; text-decoration: none; font-size: .92rem; line-height: 1.35; }
.doc-link .icon { color: var(--accent); width: 1.15em; height: 1.15em; margin-top: .05em; }
.doc-link:hover span { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

.model-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .model-grid { grid-template-columns: repeat(4, 1fr); } }
.model { display: flex; flex-direction: column; gap: .6rem; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.model-img { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.model-img img { max-height: 100%; width: auto; object-fit: contain; }
.model-name { margin: .2rem 0 0; font-size: 1.15rem; color: var(--ink); }
.model .list-dot { margin: 0; font-size: .92rem; color: var(--ink-2); }
.model .doc-list { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 22px 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.cta-box p { margin: 0; font-weight: 600; max-width: 60ch; }

/* =========================================================
   FASE 6 · Sobre nosaltres, contacte, legals, galetes
   ========================================================= */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.rounded { border-radius: var(--radius); width: 100%; }
.split p { color: var(--ink-2); }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; gap: 64px; } }
.contact-form { position: relative; display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: .8em .95em; font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #CFC9CC; border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,24,42,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: .15em; accent-color: var(--accent); flex: none; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status.is-ok { background: #E8F5EC; color: #1C6B36; }
.form-status.is-error { background: #FCEBEC; color: var(--accent-dark); }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .75rem; align-items: flex-start; }
.info-list .icon { color: var(--accent); margin-top: .15em; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--accent); }

.legal-text h2 { font-size: 1.2rem; font-stretch: 85%; letter-spacing: .04em; margin: 2rem 0 .6rem; }
.legal-text p, .legal-text li { color: var(--ink-2); }
.legal-updated { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); }

.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .82rem; }
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(27,21,27,.25); border: 1px solid var(--line);
}
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; }
.cookie-inner p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.cookie-actions { display: flex; gap: 8px; }
@media (min-width: 768px) { .cookie-banner { left: 24px; right: auto; max-width: 640px; bottom: 24px; } }
.cookie-banner:not([hidden]) ~ .floating-actions { opacity: 0; pointer-events: none; }

/* Marques: oficials (en color, més grans) i altres */
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(4, 1fr); } }
.brands-official li { height: 120px; border-color: var(--ink); }
.brands-official img { max-height: 56px; filter: none; opacity: 1; }
.brands-sub { margin: 40px 0 16px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #666); }
.brands-other li { height: 84px; }
.brands-other img { max-height: 36px; }

/* Hero 1 · escriptori: les bombes s'escalen senceres a la dreta (mai es retallen, sigui quina sigui la pantalla) */
@media (min-width: 768px) {
  .hero-slide:not(.hero-slide--photo) .hero-img {
    --side: max(var(--gutter), (100% - var(--hero-container)) / 2);   /* marge lateral del contenidor del hero */
    --text: calc(var(--hero-text) + 32px);                            /* amplada reservada al text */
    --top: clamp(20px, 3vw, 48px);
    --bottom: 56px;                                              /* espai per als punts del slider */
    inset: auto;
    top: var(--top);
    left: calc(var(--side) + var(--text));
    width: calc(100% - 2 * var(--side) - var(--text));
    height: calc(100% - var(--top) - var(--bottom));
    object-fit: contain; object-position: right bottom;
  }
}
@media (min-width: 768px) { .hero-title { text-wrap: balance; } }
/* Hero 1 · mòbil: text a dalt, bombes senceres a baix (sense retallar) */
@media (max-width: 767px) {
  .hero-title { max-width: none; font-size: clamp(1.6rem, 8vw, 2.6rem); text-wrap: balance; }
  .hero-slide:not(.hero-slide--photo) { display: flex; flex-direction: column; padding-bottom: 52px; }  /* 52px: punts del slider */
  .hero-slide:not(.hero-slide--photo) .hero-content { position: static; order: 1; flex: none; }
  .hero-slide:not(.hero-slide--photo) picture { order: 2; flex: 1; min-height: 0; display: block; padding: 8px var(--gutter) 0; }
  .hero-slide:not(.hero-slide--photo) .hero-img { position: static; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
}

/* Inici · mòbil: 3 productes + targeta «Veure més productes» */
.card-more { display: none; }
@media (max-width: 767px) {
  .card-grid--limit > .card:nth-child(n+4):not(.card-more) { display: none; }
  .card-grid--limit > .card-more {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 100%; padding: 16px; text-align: center; background: var(--accent); border-color: var(--accent); color: #fff;
  }
  .card-more-label { font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; line-height: 1.15; }
  .card-more svg { width: 28px; height: 28px; }
}

/* Hero 1 · escriptori: fons gris; la foto de les bombes (fons blanc) es fon amb el gris via multiply */
@media (min-width: 768px) {
  .hero-slide:not(.hero-slide--photo) { background: linear-gradient(180deg, #E9E8EB 0%, #DBDADD 100%); }
  .hero-slide:not(.hero-slide--photo) .hero-img {
    top: 16px; height: calc(100% - 16px - 44px);
    left: auto; right: 0; width: auto; aspect-ratio: 1217 / 940;         /* proporció de la foto: mai es retalla */
    mix-blend-mode: multiply;                                            /* el fons blanc de la foto pren el gris del hero */
    max-width: calc(100% - var(--side) - var(--text));
    object-fit: contain; object-position: right center;
  }
}
