/* Catàleg de nàutica d'Instaquim (01/11/2026, v2): l'estil d'instaquim.com i del catàleg d'automoció (Helvetica Neue fina,
   capçalera negra, llima #b1c800, verd #009036), més fotogràfic i amb més aire. Les fonts són les del mateix domini. */
@font-face { font-family: hn; src: url(/fonts/hn-th-webfont.woff2) format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: hn; src: url(/fonts/hn-md-webfont.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: hn; src: url(/fonts/hn-lt-webfont.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: hn; src: url(/fonts/hn-bd-webfont.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --font: hn, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lime: #b1c800; --lime-d: #9fb400; --green: #009036; --green-d: #007a2d;
  --black: #111; --strong: #1a1a1a; --text: #333; --muted: #5f6368; --ink: #2a3a1a;
  --soft: #f7f9ef; --rule: #e8eed4; --chip: #d9e2b8;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 200; color: var(--strong); text-wrap: balance; letter-spacing: -.01em; }
.in { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; }

/* capçalera (com instaquim.com) */
.top { position: sticky; top: 0; z-index: 5; background: #000; color: #fff; }
.top .in { display: flex; align-items: stretch; gap: 32px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.logo-m { display: block; width: 142px; height: 40px; flex-shrink: 0;
          background-image: linear-gradient(to bottom right, #b1c800 0, #b1c800 15%, #009036 25%, #b1c800 35%, #b1c800 45%, #009036 55%, #b1c800 65%, #b1c800 70%, #009036 80%, #b1c800 95%, #b1c800 100%);
          background-size: 500%; animation: grad 15s ease-in-out infinite;
          /* el SVG és un rectangle negre amb les lletres foradades: màscara invertida → només les lletres, sense retallar la ® */
          -webkit-mask: url(/img/logo-instaquim-mask.svg) center / 100% 100% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: url(/img/logo-instaquim-mask.svg) center / 100% 100% no-repeat exclude, linear-gradient(#000 0 0); }
@keyframes grad { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.logo-t { font-size: 13px; color: var(--lime); padding-left: 14px; border-left: 1px solid #3a3a3a; letter-spacing: .02em; }
.top nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.top nav a { color: #fff; text-decoration: none; font-size: 13px; }
.top nav a:hover { color: var(--lime); }
.cta { display: flex; align-items: center; background: linear-gradient(110deg, var(--lime), #6fae2a); color: #fff; text-decoration: none; font-size: 13px; padding-inline: 22px; white-space: nowrap; }
.cta:hover { background: var(--lime-d); }

/* botons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font: inherit; font-size: 14px; padding: 12px 22px;
       border-radius: 3px; border: 1px solid var(--green); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--chip); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.lt { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.lt:hover { background: #fff; color: var(--strong); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* portada: foto a tota l'amplada + bloc llima */
.hero-f { position: relative; min-height: clamp(460px, 74vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-f > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.42) 42%, rgba(0,0,0,0) 72%); }
.hero-f .in { position: relative; z-index: 1; padding-block: 64px 0; }
.hero-f h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: 1.02; max-width: 12ch; }
.hero-f .sub { color: #f1f4ea; font-size: 18px; font-weight: 300; max-width: 46ch; margin: 18px 0 28px; }
.hero-f .acts { margin-bottom: 40px; }
.panel { position: relative; z-index: 1; display: inline-block; background: var(--lime); color: #fff; padding: 22px 28px 24px; max-width: 420px; }
.panel p { margin: 0 0 4px; font-size: 20px; font-weight: 200; line-height: 1.25; }
.panel small { font-size: 13px; opacity: .92; }

/* xifres */
.facts { border-bottom: 1px solid var(--rule); }
.facts .in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 40px; padding-block: 36px; }
.facts p { margin: 0; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 2px solid var(--lime); }
.facts b { display: block; color: var(--strong); font-weight: 500; font-size: 15px; }

/* seccions */
.sec { padding-block: clamp(56px, 7vw, 88px); }
.sec.soft { background: var(--soft); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.sec h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); }
.sec-h p { margin: 0; color: var(--muted); max-width: 52ch; }

/* famílies amb foto */
.fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.fam { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .2s; }
.fam:hover { border-color: var(--lime); transform: translateY(-2px); }
.fam figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.fam figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fam:hover figure img { transform: scale(1.03); }
.fam .fb { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; align-content: start; }
.fam .cn { font-size: 34px; font-weight: 300; color: var(--lime); line-height: 1; }
.fam .fn { font-size: 18px; font-weight: 500; color: var(--strong); }
.fam .fd { font-size: 14px; color: var(--ink); }
.fam .fp { font-size: 12.5px; color: var(--muted); }
.fam .more { font-size: 13px; color: var(--green); margin-top: 4px; }

/* línies */
.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 3px 10px; border-radius: 3px; }
.tag-wave { background: #e3f1e6; color: var(--green-d); }
.tag-sail { background: #f1f5d6; color: #5d6a00; }
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.ln { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 14px; }
.ln img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.ln h3 { font-size: 24px; font-weight: 300; margin-top: 6px; }
.ln p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* filtre i targetes de producte */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
.chips-l { font-size: 13px; color: var(--muted); margin-right: 6px; }
.chip { font: inherit; font-size: 13px; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--chip); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--lime); }
.card[hidden] { display: none; }
.ph { aspect-ratio: 3 / 2; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--rule); }
.ph img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-own .ph img { object-fit: cover; padding: 0; }
.ph img[src*="/envas/"], .prod-img img[src*="/envas/"] { padding: 4px; }
.cb { display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; flex: 1; }
.cb .tag, .fb .tag { justify-self: start; }
.nm { font-size: 17px; font-weight: 500; color: var(--strong); }
.sd { font-size: 13.5px; line-height: 1.5; }
.fm { font-size: 12px; color: var(--muted); letter-spacing: .3px; }

/* producte nou sense etiqueta */
.tile { width: 100%; height: 100%; display: grid; place-items: center; background: var(--soft); }
.tile-n { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 200; color: var(--strong); text-align: center; padding: 0 12px; }
.tile-n::after { content: ""; display: block; width: 44px; height: 3px; background: var(--lime); margin: 12px auto 0; }

/* pàgina de família */
.hero-c { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 8px 48px; }
.hero-c h1, .prod-i h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); line-height: 1.05; }
.hero-c .sub, .prod-i .sub { font-size: 16px; color: var(--muted); margin: 16px 0 22px; max-width: 54ch; }
.hero-c figure { margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; }
.hero-c figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-c .cn { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.hero-c .cn b { font-size: 34px; font-weight: 300; color: var(--lime); margin-right: 6px; }
.crumbs { font-size: 13px; color: var(--muted); padding-block: 22px 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.famlist { display: flex; flex-wrap: wrap; gap: 8px; }
.famlist a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--chip); text-decoration: none; color: var(--ink); background: #fff; font-size: 14px; }
.famlist a:hover { border-color: var(--green); color: var(--green); }
.famlist a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }

/* fitxa */
.prod-g { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 48px; }
.prod-img { margin: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; display: grid; place-items: center; background: #fff; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.prod-img.own img { object-fit: cover; padding: 0; }
.prod-i h1 { margin-top: 10px; }
.facts-p { margin: 0 0 26px; }
.facts-p > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts-p dt { font-size: 13px; color: var(--muted); }
.facts-p dd { margin: 0; font-size: 14px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 3px 10px; border-radius: 3px; background: var(--soft); border: 1px solid var(--rule); font-size: 13px; }
.blks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule); padding-top: 8px; }
.blk { padding: 22px 0; }
.blk h2 { font-size: 22px; font-weight: 300; margin-bottom: 12px; padding-top: 14px; border-top: 2px solid var(--lime); display: inline-block; }
.blk p { margin: 0 0 .7em; font-size: 15px; max-width: 64ch; }
.tech { margin: 0; }
.tech > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.tech dt { color: var(--muted); }
.tech dd { margin: 0; color: var(--strong); }
.prec { margin: 0; padding-left: 1.1em; font-size: 13.5px; color: var(--muted); }
.prec li { margin-bottom: .35em; }

/* tarifa (com el catàleg d'automoció) */
.lead { margin: 0 auto clamp(56px, 7vw, 88px); background: var(--black); color: #e8eed4; border-radius: 8px; }
.lead-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding: clamp(28px, 4vw, 52px); }
.lead h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.15; }
.lead p { margin: 14px 0 0; font-size: 15px; max-width: 44ch; }
.lead .tel a { color: var(--lime); text-decoration: none; }
.lead-f { display: grid; gap: 12px; }
.lead-f .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-f label { display: grid; gap: 5px; font-size: 13px; color: #b9c2ad; }
.lead-f input, .lead-f textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #3a3a3a; border-radius: 3px; background: #262626; color: #fff; }
.lead-f input:focus, .lead-f textarea:focus { outline: 2px solid var(--lime); border-color: var(--lime); }
.lead-f button { justify-self: start; }
.lead-f .hp { position: absolute; left: -9999px; }
.msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--lime); }
.msg.err { color: #ff9f8f; }
.legal { font-size: 12px; color: #8f9887; margin: 0; }
.legal a { color: #b9c2ad; }

/* peu (com instaquim.com) */
.foot { background: var(--green); color: #fff; padding-block: 30px; }
.foot .in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.foot p { margin: 0; font-size: 13.5px; }
.foot a { color: #fff; }
.foot img { filter: brightness(0) invert(1); width: 140px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .top .in { gap: 16px; }
  .cta { margin-left: auto; }
  .hero-c, .prod-g, .lead-in { grid-template-columns: 1fr; gap: 28px; }
  .lead-f .row { grid-template-columns: 1fr; }
  .facts-p > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-f::after { background: linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%); }
  .panel { max-width: none; display: block; margin-inline: -24px; }
}
@media (max-width: 480px) {
  .logo-t { display: none; }
  .ln { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .logo-m { animation: none; } }
