/* ═══ CONTACTE DE SERVEI · «Escriu-nos» (10 nov 2026) ═══════════════════════
   Pàgines de servei en tots els idiomes (CA, ES, EN, FR, DE: 23 pàgines) i el formulari
   de la pàgina /contacte (5 idiomes; l'usuari,
   10 nov: «uniforme en toda la web»). No depèn de la capa plana [data-tone] del català.
   Cap text canviat. A l'esquerra la presentació i les vies directes; a la dreta
   el formulari dins un plafó de contorn. Només dos colors: verd #002819 i el menta
   #d9e4e0 del tancament (l'usuari, 10 nov: «en 2 colores, no 3»). El botó d'enviar
   és l'únic botó ple de la secció: és l'acció principal.
   Especificitat: tokens.css força el verd a tot el text del tancament amb un id
   dins :is() (1,3,5); aquí es guanya amb #contacte-servei + classe triple (1,3,2 + html body), sense dependre de [data-tone]. */

html body #contacte-servei.svc-contact.svc-contact.svc-contact {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: calc(56px + clamp(56px, 6vw, 88px));
}
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 6vw, 112px);
  align-items: start;
  /* ES/EN/FR/DE hi afegien el marge intern de targeta (--card-inset-x): fora, alineat amb la nota legal com en català */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── Presentació ─────────────────────────────────────────────────────────── */
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__intro { padding-top: 8px; }
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__intro .rl-combo__label { margin-bottom: 14px; color: #002819 !important; }
/* ES/EN/FR/DE: rl-system pinta el titulí de blanc (secció pensada verda) i quedava blanc sobre menta */
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__title { margin: 0 0 18px; }
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__trust {
  margin: 0 0 clamp(36px, 4vw, 48px);
  font-size: 16px;
  line-height: 1.55;
  max-width: 34em;
  text-wrap: balance;
}
/* Vies directes: dues files amb la inicial com a titulí */
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #002819;
}
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__links a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid #002819;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  text-decoration: none;
  transition: padding-left 250ms ease;
}
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__links a:hover { opacity: 1; padding-left: 6px; }
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__k {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Calculadora: botó secundari de contorn (com el de la capçalera) */
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__intro .rl-combo__btn {
  display: inline-flex !important;
  align-items: center;
  min-height: 46px;
  margin-top: 32px !important;
  padding: 12px 22px !important;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #002819;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 250ms ease, color 250ms ease;
}
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__intro .rl-combo__btn::after { content: none !important; display: none !important; }
html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__intro .rl-combo__btn:hover { background: #002819; color: #d9e4e0 !important; }

/* ── Formulari dins plafó de contorn (sense blanc) ──────────────────────────────────────────── */
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__form {
  display: grid;
  gap: 28px;
  background: transparent;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #002819;
  padding: clamp(28px, 3.4vw, 48px);
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__field { display: flex; flex-direction: column; gap: 6px; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__field label {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__field :is(input, textarea) {
  width: 100%;
  padding: 10px 0 12px;
  border: 0 !important;
  border-bottom: 1px solid #002819 !important;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__field textarea { min-height: 112px; resize: vertical; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__field :is(input, textarea):focus {
  outline: none;
  box-shadow: inset 0 -1px 0 #002819;
}
/* Consentiment amb casella pròpia */
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #002819 !important;
  border-radius: 5px;
  background: transparent no-repeat center / 12px 12px !important;
  cursor: pointer;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__consent input:checked {
  background-color: #002819 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23d9e4e0' stroke-width='1.6'/%3E%3C/svg%3E") !important;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__consent a { color: #002819; text-decoration: underline; text-underline-offset: 2px; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__consent input:focus-visible { outline: 2px solid #002819; outline-offset: 2px; }
/* Enviar: l'únic botó ple de la secció */
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: start;
  min-height: 50px !important;
  min-width: 220px;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  background: #002819 !important;
  box-shadow: inset 0 0 0 1px #002819 !important;
  color: #d9e4e0 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.02em !important;
  transition: background 250ms ease, color 250ms ease !important;
}
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__submit::after { content: none !important; display: none !important; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__submit:hover { background: transparent !important; color: #002819 !important; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__submit:disabled { cursor: progress; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__status { margin: -12px 0 0; font-size: 14px; min-height: 0; }
html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__status:empty { display: none; }

/* ── Nota legal: alineada amb el contingut, no centrada ───────────────────── */
html body #contacte-servei.svc-contact.svc-contact.svc-contact > .legal-note {
  max-width: none !important;
  margin: clamp(56px, 6vw, 80px) 0 0 !important;
  padding: 20px 0 0;
  border-top: 1px solid #002819;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ── Pàgina /contacte (5 idiomes): mateix formulari i vies directes en files ──
   Cap text afegit: aquí no hi ha inicials T/M, les files van sense titulí. */
html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct { margin-top: 0; }
html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct-t { color: #002819; margin: 0 0 14px; }
html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct a {
  display: block;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #002819;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  color: #002819;
  text-decoration: none;
  transition: padding-left 250ms ease;
}
html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct-t + a { border-top: 1px solid #002819; }
html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct a:hover { padding-left: 6px; text-decoration: none; }
html body #contacte.contact-sec.contact-sec.contact-sec .contact__addr { margin-top: 18px; color: #002819; }
html body #contacte.contact-sec.contact-sec.contact-sec .contact__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 112px); }
html body #contacte.contact-sec.contact-sec.contact-sec :is(.contact__lead, .contact__kicker, .contact__title) { color: #002819; }
@media (max-width: 900px) {
  html body #contacte.contact-sec.contact-sec.contact-sec .contact__inner { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}
@media (max-width: 600px) {
  html body #contacte.contact-sec.contact-sec.contact-sec .contact__direct a { padding: 16px 0; }
}

/* ── Tauleta i mòbil ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__container { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}
@media (max-width: 600px) {
  html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__form { gap: 24px; padding: 28px 22px; }
  html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) .contact__submit { width: 100%; justify-self: stretch; }
  html body #contacte-servei.svc-contact.svc-contact.svc-contact .svc-contact__links a { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#contacte-servei.svc-contact.svc-contact.svc-contact, #contacte.contact-sec.contact-sec.contact-sec) :is(.svc-contact__links a, .contact__direct a, .contact__submit, .rl-combo__btn) { transition: none !important; }
}
