:root {
  --navy: #05205A;
  --teal: #00A8AA;
  --gray: #6E6E6E;
  --black: #0F0F0F;
  --paper: #FFFFFF;
  --soft: #F6FAFB;
  --soft-teal: #EAF7F8;
  --line: #DDE7EA;
  --shadow: 0 24px 60px rgba(5, 32, 90, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, "Open Sans", Lato, Arial, sans-serif;
  color: var(--black);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 88px 0; }
.section-pad.slim { padding: 64px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,231,234,.88);
}
.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 188px; height: auto; }
.main-nav { display: flex; gap: 24px; font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.main-nav a { position: relative; padding: 32px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.hero {
  padding-top: 84px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,168,170,.09), transparent 28%),
    linear-gradient(115deg, #fff 0%, #fff 45%, #f7fbfc 45%, #f7fbfc 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
  color: var(--teal);
}
.eyebrow.light { color: #CFF8FA; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 900;
}
h2 {
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 900;
  margin-bottom: 18px;
}
h3 { color: var(--navy); line-height: 1.18; font-size: 18px; margin-bottom: 10px; }
.lead { font-size: 19px; color: #2a2a2a; max-width: 600px; }
.hero-media { margin: 0; position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -22px -22px auto auto;
  width: 160px;
  height: 160px;
  background: var(--teal);
  opacity: .12;
  border-radius: 34px;
  transform: rotate(12deg);
}
.hero-media img {
  position: relative;
  height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px 0 0 28px;
  box-shadow: var(--shadow);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.trust-row span:nth-child(n+2) { background: var(--soft-teal); color: var(--navy); }

.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.intro-grid p:not(.eyebrow) { font-size: 18px; color: var(--gray); margin: 12px 0 0; }

.services { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { color: var(--gray); font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(5,32,90,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(5,32,90,.12); }
.service-card img { width: 100%; height: 176px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { color: var(--gray); margin-bottom: 0; font-size: 15px; }

.experience {
  background:
    linear-gradient(90deg, rgba(5,32,90,.97), rgba(5,32,90,.92)),
    url("assets/contacte-deltax.jpg") center / cover;
  color: #fff;
}
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.dark-panel { padding: 42px; border-radius: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.dark-panel h2 { color: #fff; }
.dark-panel p { color: rgba(255,255,255,.82); font-size: 17px; }
.principles { display: grid; gap: 18px; }
.principles article { padding: 28px; background: #fff; border-radius: 22px; border: 1px solid rgba(255,255,255,.3); }
.principles span { display: inline-block; margin-bottom: 12px; color: var(--teal); font-weight: 900; }
.principles h3 { margin-bottom: 8px; }
.principles p { margin: 0; color: var(--gray); }

.method { background: #fff; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-steps article { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #fff, #f8fcfd); }
.method-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--soft-teal);
  color: var(--navy);
  font-weight: 900;
}
.method-steps p { color: var(--gray); margin-bottom: 0; }

.contact { background: var(--soft-teal); }
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 40px; align-items: center; }
.contact-grid p { color: var(--gray); font-size: 17px; max-width: 620px; }
.contact-card {
  font-style: normal;
  display: grid;
  gap: 12px;
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-card strong { color: var(--navy); font-size: 23px; }
.contact-card span { color: #303030; }
.contact-card a { color: var(--navy); font-weight: 800; }
.text-link { margin-top: 12px; display: inline-flex; width: fit-content; color: var(--teal) !important; font-size: 14px; font-weight: 900; border-bottom: 2px solid rgba(0,168,170,.25); }

.site-footer { padding: 34px 0; background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 230px 1.15fr 1fr; gap: 28px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 12px 14px; border-radius: 16px; box-shadow: 0 18px 36px rgba(0,0,0,.14); }
.footer-brand img { width: 190px; height: auto; }
.footer-copy { display: grid; gap: 8px; }
.footer-copy p, .footer-grid p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.footer-claim { color: #fff !important; font-weight: 900; font-size: 16px !important; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; font-size: 14px; }
.footer-contact a { color: #fff; opacity: .9; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-contact a:hover { opacity: 1; border-bottom-color: var(--teal); }

@media (max-width: 940px) {
  .nav-wrap { flex-direction: column; gap: 10px; padding: 16px 0; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .main-nav a { padding: 8px 0; }
  .main-nav a::after { bottom: 2px; }
  .hero-grid, .intro-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 360px; border-radius: 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1140px); }
  .section-pad { padding: 64px 0; }
  .main-nav { font-size: 11px; }
  .service-grid, .method-steps { grid-template-columns: 1fr; }
  .hero-media img { height: 280px; }
  .trust-row span { width: 100%; justify-content: center; }
}


/* Legal page */
.legal-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(0,168,170,.11), transparent 28%),
    linear-gradient(115deg, #fff 0%, #fff 48%, #f7fbfc 48%, #f7fbfc 100%);
}
.legal-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .55fr;
  gap: 48px;
  align-items: center;
}
.legal-hero h1 { max-width: 820px; }
.legal-summary {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.legal-summary strong { color: var(--navy); font-weight: 900; }
.legal-summary span { color: var(--gray); margin-bottom: 8px; }
.legal-page { background: var(--soft); }
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
}
.legal-index {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(5,32,90,.06);
}
.legal-index a {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.legal-index a:hover { background: var(--soft-teal); }
.legal-content { display: grid; gap: 22px; }
.legal-block {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(5,32,90,.055);
  scroll-margin-top: 112px;
}
.legal-block h2 { font-size: clamp(24px, 2.2vw, 34px); margin-bottom: 14px; }
.legal-block h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
}
.legal-block p, .legal-block li { color: #3d3d3d; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--navy); font-weight: 800; border-bottom: 1px solid rgba(5,32,90,.22); }
.legal-block ul { padding-left: 22px; margin: 0 0 8px; }
.legal-block li + li { margin-top: 8px; }
.legal-data {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.legal-data div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.legal-data div:nth-child(odd) { background: #fbfefe; }
.legal-data div:last-child { border-bottom: 0; }
.legal-data dt { color: var(--navy); font-weight: 900; }
.legal-data dd { margin: 0; color: #303030; }
.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: var(--soft-teal);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .main-nav { gap: 16px; font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-content: flex-start; }
}

@media (max-width: 940px) {
  .legal-hero-grid, .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; }
}

@media (max-width: 620px) {
  .brand img { width: 164px; }
  .footer-brand { width: fit-content; }
  .footer-brand img { width: 170px; }
  .legal-block { padding: 24px; }
  .legal-data div { grid-template-columns: 1fr; gap: 4px; }
}

/* Ajustos dades de contacte targeta */
.contact-card .service-line {
  color: var(--navy);
  font-weight: 800;
}
.contact-card .contact-claim {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-weight: 900;
  font-style: italic;
}

/* Franges de missatge: experiència i professionalitat */
.claim-band {
  padding: 34px 0;
  background: linear-gradient(90deg, var(--navy), #07377a);
  color: #fff;
}
.claim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.claim-grid article {
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.075);
}
.claim-grid span {
  display: block;
  margin-bottom: 12px;
  color: #CFF8FA;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.claim-grid strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.experience-claim {
  margin: 4px 0 18px;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 900;
  line-height: 1.32;
}

/* Peu simplificat sense dades de contacte */
.footer-grid.footer-grid-simple {
  grid-template-columns: 230px 1fr auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-size: 14px;
}
.footer-links a {
  color: #fff;
  opacity: .9;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.footer-links a:hover {
  opacity: 1;
  border-bottom-color: var(--teal);
}

@media (max-width: 940px) {
  .claim-grid { grid-template-columns: 1fr; }
  .footer-grid.footer-grid-simple { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
