/* Enguixats Lapeira — full d'estils compartit (generat per _build/build.py) */

/* ─── Paleta de colors ─────────────────────────────────────────────────── */
:root {
  --color-primary: #0089B9;
  /* celeste oscuro */
  --color-navy: #0A2342;
  /* azul marino */
  --color-silver: #9BA7B0;
  /* gris plata */
  --color-bg: #FFFFFF;
  --color-bg-alt: #EEF4F8;
  --color-text: #1A2A3A;
  --color-text-light: #6B7A85;
  --color-white: #FFFFFF;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 35, 66, .07);
  --shadow-md: 0 4px 20px rgba(10, 35, 66, .12);
  --shadow-lg: 0 8px 40px rgba(10, 35, 66, .18);
  --radius: 8px;
  --transition: .3s ease;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ─── Utilitats ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 580px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #006fa0;
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #071929;
}

/* ─── Fade-in ────────────────────────────────────────────────────────────── */
.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

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

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}

#header.scrolled {
  background: rgba(10, 35, 66, .97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-white);
  line-height: 1;
}

.logo-name span {
  color: var(--color-primary);
}

.logo-tag {
  font-size: .7rem;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-head);
  letter-spacing: .06em;
  margin-top: 3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav-list a:hover {
  color: var(--color-white);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: .82rem;
}

/* Language toggle */
.lang-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  padding: 6px 11px;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, .22);
  color: var(--color-white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10, 35, 66, .98);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  padding: 100px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav .btn {
  margin-top: 24px;
  text-align: center;
  justify-content: center;
}

.mobile-nav .lang-btn {
  margin-top: 12px;
  width: fit-content;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 35, 66, .88) 40%, rgba(10, 35, 66, .55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 137, 185, .18);
  border: 1px solid rgba(0, 137, 185, .4);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero-badge span {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

#hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

#hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .82);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
  font-family: var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  animation: scrollArrow 1.4s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    opacity: .55
  }

  50% {
    opacity: 1
  }
}

@keyframes scrollArrow {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(5px)
  }
}

/* ════════════════════════════════
   CREDENTIALS
════════════════════════════════ */
#credentials {
  background: var(--color-navy);
  padding: 56px 0;
}

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

.cred-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.cred-item:last-child {
  border-right: none;
}

.cred-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.cred-label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 8px;
  display: block;
}

/* ════════════════════════════════
   SERVEIS
════════════════════════════════ */
#serveis {
  padding: 96px 0;
  background: var(--color-bg);
}

.serveis-header {
  text-align: center;
  margin-bottom: 56px;
}

.serveis-header .section-sub {
  margin: 12px auto 0;
}

.serveis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 137, 185, .25);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 137, 185, .1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  color: var(--color-primary);
}

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ════════════════════════════════
   GALERIA
════════════════════════════════ */
#treballs {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.treballs-header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-navy);
}

.gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-item:nth-child(5) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  opacity: .72;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 35, 66, .88));
  padding: 32px 16px 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 35, 66, .95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  opacity: .8;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-head);
  font-size: .85rem;
  margin-top: 12px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 2rem;
  opacity: .7;
  transition: opacity var(--transition);
  padding: 8px;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  right: calc(100% + 12px);
}

.lightbox-next {
  left: calc(100% + 12px);
}

/* ════════════════════════════════
   NOSALTRES
════════════════════════════════ */
#nosaltres {
  padding: 96px 0;
  background: var(--color-bg);
}

.nosaltres-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosaltres-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: .95rem;
}

.nosaltres-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.nosaltres-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.point-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(0, 137, 185, .1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-icon svg {
  color: var(--color-primary);
}

.nosaltres-point h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-navy);
  margin-bottom: 3px;
}

.nosaltres-point p {
  font-size: .8rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

.nosaltres-img {
  position: relative;
}

.nosaltres-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.nosaltres-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-navy);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.nosaltres-badge .big {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.nosaltres-badge .small {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ════════════════════════════════
   TESTIMONIS
════════════════════════════════ */
#testimonis {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.testimonis-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimoni-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimoni-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimoni-stars svg {
  color: var(--color-primary);
}

.testimoni-card blockquote {
  font-size: .92rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimoni-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 137, 185, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimoni-avatar svg {
  color: var(--color-primary);
}

.author-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-navy);
}

.author-role {
  font-size: .78rem;
  color: var(--color-text-light);
}

.quote-mark {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(0, 137, 185, .1);
  line-height: 1;
}

/* ════════════════════════════════
   CONTACTE
════════════════════════════════ */
#contacte {
  padding: 96px 0;
  background: var(--color-bg);
}

.contacte-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}

.contacte-header {
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  letter-spacing: .03em;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d5dde5;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 137, 185, .12);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox label {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin: 0;
  letter-spacing: 0;
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: .95rem;
}

.contacte-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 24px;
}

.contacte-info-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 137, 185, .1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  color: var(--color-primary);
}

.info-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.info-item span,
.info-item a {
  font-size: .88rem;
  color: var(--color-text-light);
}

.info-item a:hover {
  color: var(--color-primary);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, .6);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
}

.footer-logo span {
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .83rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: .78rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .65);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .serveis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosaltres-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .nav-list,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .cred-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .cred-item:last-child {
    border-bottom: none;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-row: span 1;
  }

  .nosaltres-inner {
    grid-template-columns: 1fr;
  }

  .nosaltres-img {
    order: -1;
  }

  .nosaltres-img img {
    height: 320px;
  }

  .nosaltres-badge {
    bottom: -16px;
    left: 16px;
  }

  .nosaltres-points {
    grid-template-columns: 1fr;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    justify-content: center;
  }
}

/* ════════════════════════════════
   AFEGITS: MULTIPÀGINA, SEO I CONVERSIÓ
════════════════════════════════ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.lang-btn {
  display: inline-block;
}

.hero-phone {
  margin-top: 22px;
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
}

.hero-phone a {
  color: var(--color-white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}

/* Targetes de servei com a enllaç */
a.service-card {
  display: flex;
  flex-direction: column;
}

.service-more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  color: var(--color-primary);
  letter-spacing: .03em;
}

a.service-card:hover .service-more {
  text-decoration: underline;
}

.treballs-header .section-sub {
  margin: 12px auto 0;
}

/* La foto de l'equip té l'operari a la dreta */
.nosaltres-img img {
  object-position: 85% center;
}

/* Zona de treball */
#zona {
  padding: 88px 0;
  background: var(--color-navy);
}

.zona-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

#zona .section-title {
  color: var(--color-white);
}

#zona .section-sub {
  color: rgba(255, 255, 255, .72);
}

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.towns li {
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
}

.towns li.main {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.towns-more {
  margin-top: 14px;
  color: rgba(255, 255, 255, .6);
  font-size: .85rem;
}

/* Preguntes freqüents */
#preguntes {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.faq-list details[open] {
  border-color: rgba(0, 137, 185, .3);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  color: var(--color-navy);
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
}

.faq-list details[open] summary::after {
  content: '–';
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.75;
  font-size: .93rem;
  margin: 0;
}

.faq-answer a,
.prose a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
}

.faq-inline {
  max-width: none;
  margin: 0;
}

.faq-inline details {
  background: var(--color-bg-alt);
  box-shadow: none;
}

/* Formulari */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--color-text-light);
  text-align: center;
}

.form-note a,
.section-sub a {
  color: var(--color-primary);
  font-weight: 600;
}

#contacte .section-sub {
  margin-top: 12px;
}

/* Mapa sota demanda */
.map-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-navy), #12365f);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: opacity var(--transition);
}

.map-facade:hover {
  opacity: .92;
}

.map-facade svg {
  color: var(--color-primary);
}

.map-facade small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
}

/* Capçalera de les pàgines internes */
.page-hero {
  position: relative;
  background: var(--color-navy);
  padding: 150px 0 72px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 35, 66, .93) 35%, rgba(10, 35, 66, .6) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 18px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, .85);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 30px;
}

/* Cos de les pàgines internes */
.page-body {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.prose h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 48px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose ul.checks {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
}

.prose ul.checks li {
  position: relative;
  padding-left: 28px;
  line-height: 1.65;
}

.prose ul.checks li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.prose ol.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 6px 0 20px;
  list-style: none;
}

.prose ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  min-height: 32px;
  line-height: 1.65;
}

.prose ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 10px 0 20px;
}

.note p {
  margin: 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.photo-strip figure {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.photo-strip figcaption {
  padding: 10px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  color: var(--color-text-light);
}

.aside-card {
  position: sticky;
  top: 96px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
}

.aside-card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.aside-card p {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  margin-bottom: 18px;
}

.aside-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.aside-card small {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, .6);
  font-size: .78rem;
}

.aside-phone {
  display: block;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-white);
  margin: 2px 0;
}

.aside-card ul {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .82);
}

.aside-card ul li::before {
  content: '✓ ';
  color: var(--color-primary);
  font-weight: 800;
}

/* Serveis relacionats */
.related {
  padding: 72px 0;
  background: var(--color-bg-alt);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.related-grid a {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-navy);
  transition: transform var(--transition), box-shadow var(--transition);
}

.related-grid a span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .85rem;
  color: var(--color-text-light);
}

.related-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Pàgines legals, gràcies i 404 */
.legal {
  padding: 150px 0 80px;
}

.legal .prose {
  max-width: 780px;
}

.legal .prose ul.checks li::before {
  content: '·';
}

.solid-header #header {
  background: rgba(10, 35, 66, .97);
  box-shadow: var(--shadow-md);
}

.footer-legal a {
  font-size: .75rem;
}

.footer-copy a {
  color: rgba(255, 255, 255, .5);
}

/* Barra fixa de contacte al mòbil */
.mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 850;
    background: var(--color-navy);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    color: var(--color-white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
  }

  .mobile-bar a + a {
    background: var(--color-primary);
  }

  .mobile-nav.open ~ .mobile-bar {
    display: none;
  }

  body {
    padding-bottom: 54px;
  }

  .zona-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .aside-card {
    position: static;
  }

  .page-hero {
    padding: 120px 0 56px;
  }

  .page-body {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
