/* one off brand instruments — full d'estils (substitueix la versió Flash) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --green: #7dba00;        /* verd de marca (logo) */
  --green-text: #679a00;   /* verd per a títols (contrast >= 3:1) */
  --green-small: #557f00;  /* verd per a text petit (contrast >= 4.5:1) */
  --ink: #4b4b4b;
  --ink-strong: #2d2c2e;
  --menu: #6f6d6f;
  --submenu: #757375;
  --tagline: #959595;
  --rule: #e6e6e6;
  --bg: #ffffff;
  --page-bg: #f3f3f3;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-strong); color: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; }

/* ---------- Estructura ---------- */
.page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "langs" "side" "main";
}
.langs { grid-area: langs; }
.side { grid-area: side; }
.main { grid-area: main; min-width: 0; }

/* barra d'idiomes / contacte, com a l'original:  | Contacte | Español | English | */
.langs ul {
  list-style: none; margin: 0; padding: 10px 0 8px;
  display: flex; justify-content: flex-end; flex-wrap: wrap;
  font-size: 13px; font-weight: 400;
}
.langs li { border-left: 1px solid var(--green); padding: 0 10px; line-height: 1; }
.langs li:last-child { border-right: 1px solid var(--green); }
.langs a { color: var(--green-small); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { text-decoration: underline; }

/* columna lateral: logo + menú */
.brandbar { display: flex; align-items: center; gap: 14px; }
.logo { display: block; width: 72px; flex: none; }
.logo img { width: 100%; }
.menu-toggle {
  margin-left: auto;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--menu);
  background: none; border: 1px solid #d0d0d0; border-radius: 4px;
  padding: 8px 14px; cursor: pointer;
  display: none;
}
.js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-toggle .bars::before { position: absolute; top: -5px; }
.menu-toggle .bars::after { position: absolute; top: 5px; }

.nav { margin: 14px 0 0; }
.js .nav { display: none; }
.js .nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul > li { margin: 0 0 6px; }
.nav > ul > li > a {
  color: var(--menu); text-decoration: none; font-size: 18px; font-weight: 300;
}
.nav > ul > li > a:hover { color: var(--ink-strong); }
.nav > ul > li.current > a { font-weight: 700; color: var(--ink); }
.nav > ul > li.current > a::before { content: "> "; font-weight: 300; }
.nav .sub { margin: 4px 0 10px 14px; }
.nav .sub li { margin: 0 0 2px; }
.nav .sub a {
  color: var(--submenu); text-decoration: none; font-size: 14px; font-weight: 400;
}
.nav .sub a:hover { color: var(--ink-strong); }
.nav .sub a[aria-current] { font-weight: 700; color: var(--ink); }

/* ---------- Contingut ---------- */
.main { padding: 28px 0 0 26px; }
.main > *:first-child { margin-top: 0; }

.kicker {
  color: var(--green-text); font-weight: 300; font-size: 24px; line-height: 1.12;
  margin: 0 0 34px;
}
.lead {
  position: relative;
  color: var(--green-text); font-weight: 700; font-size: 23px; line-height: 1.13;
  margin: 34px 0 12px;
  letter-spacing: -0.005em;
}
.lead::before {
  /* fletxa ↘ de l'original */
  content: ""; position: absolute; left: -26px; top: -12px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M2 2l11 11M13.5 5.5v8h-8' fill='none' stroke='%232d2c2e' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.kicker + .lead { margin-top: 0; }
.main p { margin: 0 0 14px; font-size: 21px; line-height: 1.17; max-width: 34em; }
.main p.small { font-size: 18px; }
.brand { color: var(--green-text); font-weight: 700; }
.main h3 { color: var(--green-text); font-size: 19px; font-weight: 700; margin: 26px 0 8px; }

.bullets { list-style: none; margin: 4px 0 18px; padding: 0; max-width: 36em; }
.bullets li {
  position: relative; padding-left: 16px; margin: 0 0 9px;
  font-size: 18px; line-height: 1.15;
}
.bullets li::before {
  content: ">"; position: absolute; left: 0; top: 0;
  color: var(--green-text); font-weight: 700;
}
.main a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; }
.main a:hover { color: var(--green-text); }

/* Portada */
.tagline {
  margin: 0 0 34px; color: var(--tagline);
  font-weight: 700; font-size: clamp(30px, 6.6vw, 50px); line-height: 1.02; letter-spacing: -0.015em;
}
.tagline span { display: block; margin-bottom: .45em; }
.tagline span:last-child { margin-bottom: 0; }
.home .lead { margin-top: 0; }
.home .lead::before { display: none; }

/* Eines per a la marca (diagrama) */
.cycle { display: grid; gap: 24px; margin: 28px 0 10px; }
.cycle svg { width: 230px; max-width: 70%; height: auto; margin: 0 auto; display: block; }
.cycle .center { font-weight: 700; fill: var(--green-text); font-family: var(--font); }
.phases { display: grid; gap: 18px; }
.phase { border-top: 4px solid var(--green); padding-top: 10px; }
.phase-1 { border-top-color: #c3df85; }
.phase-2 { border-top-color: #9dcc3a; }
.phase-3 { border-top-color: #7dba00; }
.phase h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink-strong); font-weight: 600; }
.phase ul { list-style: none; margin: 0; padding: 0; }
.phase li { font-size: 15.5px; line-height: 1.25; margin: 0 0 6px; padding-left: 12px; position: relative; }
.phase li::before { content: "•"; position: absolute; left: 0; color: var(--green-text); font-weight: 700; }

/* Partners */
.partners-title { margin: 24px 0 12px; }
.partners { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 12px; }
.partners li { border-left: 3px solid var(--green); padding: 2px 0 2px 12px; }
.partners .name { display: block; font-weight: 700; font-size: 18px; color: var(--ink-strong); }
.partners .what { display: block; font-size: 15.5px; color: var(--ink); }

/* Logos ESOMAR / AEDEMO */
.seals { display: flex; align-items: center; gap: 36px; margin: 26px 0 0; flex-wrap: wrap; }
.seals img { height: 90px; width: auto; }

/* Contacte */
address { font-style: normal; font-size: 18px; line-height: 1.2; margin: 0 0 16px; }
.contact-brand { font-size: 21px; margin: 0 0 18px; }
.contact-brand .rest { color: var(--ink); font-weight: 300; }

/* Anterior / següent */
.pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 40px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 15px; font-weight: 400;
}
.pager a { color: var(--menu); text-decoration: none; max-width: 48%; }
.pager a:hover { color: var(--green-text); }
.pager .next { margin-left: auto; text-align: right; }

.footer {
  max-width: 1024px; margin: 0 auto; padding: 18px 16px 28px;
  font-size: 13px; font-weight: 400; color: var(--menu);
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--menu); }

/* ---------- Escriptori: maqueta de dues columnes com l'original ---------- */
@media (min-width: 820px) {
  .page {
    grid-template-columns: minmax(0, 1fr) 294px;
    grid-template-areas: "langs langs" "main side";
    column-gap: 44px;
    padding: 0 20px 40px;
  }
  .langs ul { padding: 10px 314px 8px 0; margin-right: 0; }
  .side { padding-top: 6px; }
  .brandbar { display: block; }
  .logo { width: 294px; }
  .js .menu-toggle { display: none; }
  .js .nav, .nav { display: block; margin-top: 22px; }
  .main { padding: 24px 0 0 26px; }
  .main p { font-size: 22px; }
  .lead { font-size: 24px; }
  .cycle { grid-template-columns: 230px 1fr; align-items: start; }
  .cycle svg { max-width: none; margin: 0; }
  .partners { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .langs ul { padding-right: 330px; }
  .page { column-gap: 60px; }
}
@media print {
  .nav, .langs, .menu-toggle, .pager { display: none !important; }
  .page { display: block; }
  .logo { width: 120px; }
}
