/* ============================================================
   ENVIROTECNIA — Stylesheet principal
   Stack: CSS3 pur, BEM, mobile-first
   ============================================================ */

/* --- @font-face --- */
@font-face {
  font-family: 'NotoSansEC';
  src: url('../fonts/NotoSansEC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSansEC';
  src: url('../fonts/NotoSansEC-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSansEC';
  src: url('../fonts/NotoSansEC-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSansEC';
  src: url('../fonts/NotoSansEC-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables :root --- */
:root {
  /* Colors corporatius */
  --verd: #006E5F;
  --verd-hover: #005548;
  --verd-clar: #d2e3d8;
  --fons: #fbf7f7;
  --negre: #0D0D0D;
  --gris: #666666;

  /* Colors complementaris */
  --verd-suau: #e8f2ed;
  --error: #c0392b;
  --exit: #27ae60;
  --avis: #e67e22;
  --blanc: #ffffff;
  --gris-clar: #f5f5f5;
  --gris-border: #e0e0e0;

  /* Tipografia */
  --font: 'NotoSansEC', sans-serif;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-hero: 2.75rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Layout */
  --max-w: 1140px;
  --nav-h: 64px;

  /* Transitions */
  --trans: 0.25s ease;
  --trans-slow: 0.4s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--negre);
  background-color: var(--fons);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--verd);
  text-decoration: none;
  transition: color var(--trans);
}

a:hover {
  color: var(--verd-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utilitats --- */
.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;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.text-center {
  text-align: center;
}

.cta-grup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
}

.projectes-cta {
  text-align: center;
  margin-top: var(--sp-xl);
}

/* --- Focus visible (WCAG 2.1 AA) --- */
.btn:focus-visible,
.nav__link:focus-visible,
.filtre__btn:focus-visible,
.faq__question:focus-visible,
.card:focus-visible,
.projecte:focus-visible,
.pressupost__opcio:focus-visible,
.footer__link:focus-visible,
.footer__xarxa:focus-visible,
.whatsapp-float:focus-visible {
  outline: 2px solid var(--verd);
  outline-offset: 2px;
}

.form-grup input:focus-visible,
.form-grup select:focus-visible,
.form-grup textarea:focus-visible {
  outline: none;
  border-color: var(--verd);
  box-shadow: 0 0 0 3px rgba(0, 110, 95, 0.12);
}

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  z-index: 1000;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--verd);
  color: var(--blanc);
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top var(--trans);
}

.skip-link:focus {
  top: 0;
  color: var(--blanc);
}

/* --- Seccions --- */
.seccio {
  padding: var(--sp-3xl) 0;
}

.seccio--alt {
  background-color: var(--verd-suau);
}

.seccio--fosc {
  background-color: var(--negre);
  color: var(--blanc);
}

.seccio__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verd);
  margin-bottom: var(--sp-sm);
}

.seccio__titol {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-sm);
  color: var(--negre);
}

.seccio__titol--ample {
  margin-bottom: var(--sp-2xl);
}

.seccio__subtitol {
  font-size: var(--fs-lg);
  color: var(--gris);
  max-width: 640px;
  margin-bottom: var(--sp-xl);
}

.seccio__subtitol--center {
  margin-inline: auto;
}

/* --- Navegació --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--fons);
  z-index: 100;
  transition: box-shadow var(--trans);
}

.nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.nav__logo {
  height: 36px;
  width: auto;
}

.nav__logo--icon {
  display: none;
  height: 32px;
  width: auto;
}

.nav--scrolled .nav__logo--full {
  display: none;
}

.nav--scrolled .nav__logo--icon {
  display: block;
}

.nav__links {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--fons);
  padding: var(--sp-md) 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.nav__links--open {
  display: flex;
}

.nav__link {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--negre);
  transition: color var(--trans);
  position: relative;
}

.nav__link:hover {
  color: var(--verd);
}

.nav__link--active {
  font-weight: 700;
  color: var(--negre);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--sp-md);
  right: var(--sp-md);
  height: 2px;
  background: var(--verd);
  border-radius: 1px;
}

.nav__link--cta {
  background: var(--verd);
  color: var(--blanc);
  font-weight: 700;
  border-radius: 4px;
  padding: 0.5em 1.25em;
  margin-left: var(--sp-sm);
  transition: background var(--trans);
}

.nav__link--cta:hover {
  background: var(--verd-hover);
  color: var(--blanc);
}

.nav__link--cta.nav__link--active::after {
  display: none;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--negre);
}

.nav__toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--trans);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--trans);
}

.nav__toggle-icon::before {
  top: -7px;
}

.nav__toggle-icon::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--fons);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Màscara verda */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 110, 95, 0.30);
  z-index: 0;
}

/* Màscara degradat blanc (horitzontal + vertical) */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(251, 247, 247, 0.9) 0%, rgba(251, 247, 247, 0.6) 40%, transparent 60%);
  background-blend-mode: multiply;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 2.5rem 4rem;
  color: var(--negre);
  color: var(--blanc);
}

.hero__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verd);
  margin-bottom: var(--sp-md);
}

.hero__title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--negre);
  margin-bottom: var(--sp-md);
  max-width: 620px;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--negre);
  margin-bottom: var(--sp-xl);
  max-width: 540px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xl);
}

.hero__stat {
  text-align: left;
}

.hero__stat-num {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--negre);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris);
}

/* --- Valors banda (sota hero) --- */
.valors-banda {
  background: var(--verd);
  padding: var(--sp-xl) 0;
}

.valors-banda__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.valors-banda__item {
  padding: var(--sp-md) var(--sp-lg);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.valors-banda__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blanc);
  margin-bottom: var(--sp-xs);
}

.valors-banda__text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* --- Botons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75em 1.75em;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: all var(--trans);
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--verd);
  color: var(--blanc);
  border: 2px solid var(--verd);
}

.btn--primary:hover {
  background: var(--verd-hover);
  border-color: var(--verd-hover);
  color: var(--blanc);
}

/* Nomes per a fons foscos (hero, cta-banda). Per a fons clars, usar btn--outline-verd */
.btn--outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--verd);
  border: 2px solid transparent;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--blanc);
}

.btn--outline-verd {
  background: transparent;
  color: var(--verd);
  border: 2px solid var(--verd);
}

.btn--outline-verd:hover {
  background: var(--verd);
  color: var(--blanc);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--blanc);
  border: 2px solid #25D366;
}

.btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--blanc);
}

.btn--sm {
  padding: 0.5em 1.25em;
  font-size: var(--fs-xs);
}

/* --- Cards (serveis) --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

.card {
  background: var(--blanc);
  border-radius: 8px;
  padding: var(--sp-xl);
  border: 1px solid var(--gris-border);
  transition: transform var(--trans), box-shadow var(--trans);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-md);
}

.card__num {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--verd);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-xs);
}

.card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--gris);
  margin-bottom: var(--sp-md);
  line-height: 1.6;
}

.card__list {
  font-size: var(--fs-sm);
  color: var(--gris);
}

.card__list li {
  padding: var(--sp-xs) 0;
  padding-left: var(--sp-lg);
  position: relative;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verd);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--verd);
  margin-top: var(--sp-md);
}

.card__link:hover {
  gap: var(--sp-sm);
}

.card__link--cta {
  color: var(--negre);
  font-weight: 700;
}

.card__link--cta:hover {
  color: var(--verd);
}

/* --- Projectes (galeria) --- */
.projectes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.projecte {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.projecte__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.projecte:hover .projecte__img {
  transform: scale(1.05);
}

.projecte__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 110, 95, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-lg);
  opacity: 1;
  transition: background var(--trans);
}

.projecte:hover .projecte__overlay {
  background: rgba(0, 110, 95, 0.88);
}

.projecte__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: var(--sp-xs);
}

.projecte__meta {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Filtre (projectes/blog) --- */
.filtre {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.filtre__btn {
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  border: 1px solid var(--gris-border);
  color: var(--gris);
  background: var(--blanc);
  transition: all var(--trans);
}

.filtre__btn:hover {
  border-color: var(--verd);
  color: var(--verd);
}

.filtre__btn--active {
  background: var(--verd);
  border-color: var(--verd);
  color: var(--blanc);
}

/* --- CTA Banda --- */
.cta-banda {
  padding: var(--sp-3xl) 0;
  background: var(--verd);
  color: var(--blanc);
  text-align: center;
}

.cta-banda__titol {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.cta-banda__text {
  font-size: var(--fs-lg);
  opacity: 0.9;
  margin-bottom: var(--sp-xl);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banda .btn--primary {
  background: var(--blanc);
  color: var(--verd);
  border-color: var(--blanc);
}

.cta-banda .btn--primary:hover {
  background: var(--verd-clar);
  border-color: var(--verd-clar);
}

.cta-banda .btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-banda .btn--outline:hover {
  border-color: var(--blanc);
}

.cta-banda .btn--whatsapp {
  background: var(--blanc);
  color: #25D366;
  border-color: var(--blanc);
}

.cta-banda .btn--whatsapp:hover {
  background: var(--verd-clar);
  border-color: var(--verd-clar);
}

/* --- Mètode (4 passes) --- */
.metode__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.metode__desc {
  font-size: var(--fs-lg);
  color: var(--gris);
  line-height: 1.7;
  max-width: 540px;
}

/* Timeline */
.metode__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}

.metode__step {
  position: relative;
  padding-left: 3.5rem;
}

/* Línia vertical connector (mòbil) */
.metode__step::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: -2rem;
  width: 2px;
  background: var(--verd-clar);
}

.metode__step:last-child::before {
  display: none;
}

.metode__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verd);
  color: var(--blanc);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metode__fase {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verd);
  margin-bottom: var(--sp-xs);
}

.metode__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
  line-height: 1.2;
}

.metode__text {
  font-size: var(--fs-sm);
  color: var(--gris);
  line-height: 1.6;
}

/* --- Perfils client --- */
.perfils-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

.perfil {
  padding: var(--sp-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.perfil__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: var(--sp-sm);
}

.perfil__text {
  flex: 1;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.perfil__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--verd-clar);
  transition: color var(--trans);
}

.perfil__link:hover {
  color: var(--blanc);
}

/* --- Testimonis --- */
.testimonis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

.testimoni {
  background: var(--blanc);
  border-radius: 8px;
  padding: var(--sp-xl);
  border: 1px solid var(--gris-border);
  position: relative;
}

.testimoni::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-lg);
  font-size: 3rem;
  color: var(--verd-clar);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimoni__text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--gris);
  padding-top: var(--sp-lg);
  margin-bottom: var(--sp-md);
  font-style: italic;
}

.testimoni__autor {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--negre);
}

.testimoni__empresa {
  font-size: var(--fs-xs);
  color: var(--gris);
}

/* --- Xifres / Stats --- */
.xifres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  text-align: center;
}

.xifra__num {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--verd);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.xifra__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris);
}

/* --- Associats --- */
.associats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2xl);
}

.associats__logo {
  height: 48px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--trans);
  filter: grayscale(100%);
}

.associats__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- Blog / Actualitat --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

.blog-card {
  background: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gris-border);
  transition: transform var(--trans), box-shadow var(--trans);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--sp-lg);
}

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-sm);
}

.blog-card__tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--verd-suau);
  color: var(--verd);
  border-radius: 3px;
  margin-left: var(--sp-sm);
}

.blog-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--negre);
}

.blog-card__title a:hover {
  color: var(--verd);
}

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--gris);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

/* --- FAQ --- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--gris-border);
}

.faq__question {
  width: 100%;
  padding: var(--sp-lg) 0;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--negre);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
}

.faq__question::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--verd);
  transition: transform var(--trans);
  flex-shrink: 0;
}

.faq__item--open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--gris);
  line-height: 1.7;
}

.faq__item--open .faq__answer {
  display: block;
}

/* --- Capçalera interior --- */
.capcalera {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-3xl)) 0 var(--sp-3xl);
  background: var(--verd);
  color: var(--blanc);
  text-align: center;
  overflow: hidden;
}

.capcalera__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.capcalera__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 110, 95, 0.55);
}

.capcalera__content {
  position: relative;
  z-index: 1;
}

.capcalera__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.capcalera__sub {
  font-size: var(--fs-lg);
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto;
}

/* --- Contacte layout --- */
.contacte-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}

/* --- Formulari contacte --- */
.formulari {
  max-width: 600px;
}

.form-grup {
  margin-bottom: var(--sp-lg);
}

.form-grup label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--negre);
  margin-bottom: var(--sp-xs);
}

.form-grup input,
.form-grup select,
.form-grup textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font);
  font-size: var(--fs-body);
  border: 1px solid var(--gris-border);
  border-radius: 4px;
  background: var(--blanc);
  color: var(--negre);
  transition: border-color var(--trans);
}

.form-grup input:focus,
.form-grup select:focus,
.form-grup textarea:focus {
  outline: none;
  border-color: var(--verd);
  box-shadow: 0 0 0 3px rgba(0, 110, 95, 0.12);
}

.form-grup textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grup input[aria-invalid="true"],
.form-grup select[aria-invalid="true"],
.form-grup textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--gris);
  margin-bottom: var(--sp-lg);
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-msg {
  padding: var(--sp-md);
  border-radius: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--sp-md);
}

.form-msg--exit {
  background: #d4edda;
  color: #155724;
}

.form-msg--error {
  background: #f8d7da;
  color: #721c24;
}

/* --- Pressupost (calculador) --- */
.pressupost {
  background: var(--blanc);
  border-radius: 8px;
  border: 1px solid var(--gris-border);
  padding: var(--sp-xl);
}

.pressupost__progress {
  display: flex;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-xl);
}

.pressupost__step-indicator {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gris-border);
  transition: background var(--trans);
}

.pressupost__step-indicator--active {
  background: var(--verd);
}

.pressupost__step-indicator--done {
  background: var(--verd-clar);
}

.pressupost__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

.pressupost__opcions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.pressupost__opcio {
  padding: var(--sp-lg);
  border: 2px solid var(--gris-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans);
  text-align: left;
}

.pressupost__opcio:hover {
  border-color: var(--verd);
}

.pressupost__opcio--selected {
  border-color: var(--verd);
  background: var(--verd-suau);
}

.pressupost__opcio-title {
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.pressupost__opcio-desc {
  font-size: var(--fs-sm);
  color: var(--gris);
}

.pressupost__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
}

.pressupost__resultat {
  text-align: center;
  padding: var(--sp-xl) 0;
}

.pressupost__preu {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--verd);
  margin-bottom: var(--sp-sm);
}

.pressupost__nota {
  font-size: var(--fs-sm);
  color: var(--gris);
  font-style: italic;
  margin-bottom: var(--sp-xl);
}

/* --- Contacte info --- */
.contacte-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.contacte-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.contacte-info__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--verd);
}

.contacte-info__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.contacte-info__text a {
  color: var(--negre);
  font-weight: 600;
}

.contacte-info__text a:hover {
  color: var(--verd);
}

/* --- WhatsApp flotant --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: transform var(--trans);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--blanc);
}

/* --- Footer --- */
.footer {
  background: var(--negre);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--sp-md);
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blanc);
  margin-bottom: var(--sp-md);
}

.footer__link {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-xs) 0;
  transition: color var(--trans);
}

.footer__link:hover {
  color: var(--blanc);
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__xarxes {
  display: flex;
  gap: var(--sp-md);
}

.footer__xarxa {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--trans);
}

.footer__xarxa:hover {
  border-color: var(--verd);
  color: var(--verd);
}

.footer__xarxa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--negre);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-lg);
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform var(--trans-slow);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--verd-clar);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* --- Legal (privacitat, cookies) --- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
}

.legal h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}

.legal h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

.legal p {
  font-size: var(--fs-sm);
  color: var(--gris);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}

.legal ul {
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-xl);
}

.legal ul li {
  font-size: var(--fs-sm);
  color: var(--gris);
  line-height: 1.75;
  list-style: disc;
}

.legal a {
  color: var(--verd);
  text-decoration: underline;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-sm);
}

.legal th,
.legal td {
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--gris-border);
  text-align: left;
}

.legal th {
  background: var(--verd-suau);
  font-weight: 600;
}

/* --- Error 404 --- */
.error-404 {
  text-align: center;
  padding: calc(var(--nav-h) + var(--sp-4xl)) var(--sp-lg) var(--sp-4xl);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404__code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--verd-clar);
  line-height: 1;
}

.error-404__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

.error-404__text {
  font-size: var(--fs-lg);
  color: var(--gris);
  margin-bottom: var(--sp-xl);
  max-width: 480px;
}

/* --- Mapa --- */
.mapa {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  filter: grayscale(50%) contrast(1.1);
  transition: filter var(--trans);
}

.mapa:hover {
  filter: grayscale(0%) contrast(1);
}

/* --- Serveis detall (pagina serveis) --- */
.servei-area {
  margin-bottom: var(--sp-3xl);
}

.servei-area__header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 2px solid var(--verd);
}

.servei-area__num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--verd);
  line-height: 1;
}

.servei-area__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.servei-area__cta {
  margin-top: var(--sp-xl);
}

.subserveis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

/* --- Animacions --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* --- Qui som --- */
.quisom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}

.quisom__text {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--gris);
}

.quisom__text p {
  margin-bottom: var(--sp-md);
}

.valors-llista {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.valor {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md);
  background: var(--verd-suau);
  border-radius: 8px;
}

.valor__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--verd);
}

.valor__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --fs-hero: 3.5rem;
    --fs-3xl: 3rem;
    --fs-2xl: 2.25rem;
  }

  .nav__links {
    display: flex;
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav__toggle {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projectes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valors-banda__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .perfils-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bar {
    flex-direction: column;
    align-items: center;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner__text {
    flex: 1;
  }

  .xifres {
    grid-template-columns: repeat(4, 1fr);
  }

  .metode__header {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .contacte-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pressupost__opcions {
    grid-template-columns: repeat(2, 1fr);
  }

  .subserveis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quisom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .valors-llista {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --fs-hero: 4rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projectes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metode__timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
  }

  .metode__step {
    padding-left: 0;
    padding-top: 3.5rem;
    text-align: center;
  }

  /* Línia horitzontal connector (desktop) */
  .metode__step::before {
    left: 50%;
    top: 19px;
    bottom: auto;
    width: 100%;
    height: 1px;
  }

  .metode__step:last-child::before {
    display: none;
  }

  .metode__dot {
    left: 50%;
    transform: translateX(-50%);
  }

  .valors-banda__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .perfils-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .subserveis-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__stats {
    gap: var(--sp-2xl);
  }
}

/* --- Mòbil petit (max 600px) --- */
@media (max-width: 900px) {
  .hero__title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .hero__content {
    padding: 3rem 1.5rem;
  }

  .hero__title {
    font-size: 28px;
  }
}

/* --- Print --- */
@media print {
  .nav,
  .footer,
  .cookie-banner,
  .whatsapp-float,
  .cta-banda {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #fff;
    color: #000;
    padding: 2cm 0;
  }

  .hero__bg {
    display: none;
  }
}
