/* Landsproject — estils generals */
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  margin: 0;
  font-weight: 300;
  background: #F2F0EB;
  color: #22405E;
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #22405E; text-decoration: none; }
a:hover { color: #2F6F9A; }
*, *::before, *::after { box-sizing: border-box; }
button, input, textarea { font-family: inherit; }
::selection { background: #BFD9EA; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #2F6F9A; outline-offset: 3px; }

.salta { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #22405E; color: #F2F0EB; padding: 10px 14px; }
.salta:focus { left: 8px; color: #F2F0EB; }

/* Portada */
#portada-imatges img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1);
  transition: opacity 1.4s ease, transform 8s linear;
}
#portada-imatges img.activa { opacity: 1; transform: scale(1.06); }
.punt { width: 40px; height: 24px; padding: 0; background: none; border: none; cursor: pointer; display: flex; align-items: center; }
.punt span { display: block; width: 100%; height: 2px; background: #F2F0EB; opacity: .4; transition: opacity .3s; }
.punt[aria-current="true"] span { opacity: 1; background: #E39441; }

/* Serveis */
.enllac-servei:hover { color: #BFD9EA !important; border-color: #BFD9EA !important; }

/* Filtres */
.filtre {
  padding: 8px 14px; border-radius: 999px; border: 1px solid #C9C1B2;
  background: transparent; color: #22405E; font-size: 13px; cursor: pointer;
}
.filtre:hover { border-color: #22405E; }
.filtre[aria-pressed="true"] { background: #22405E; border-color: #22405E; color: #F2F0EB; }

/* Llista de projectes */
.projecte { border-bottom: 1px solid #D8D1C4; }
.projecte-cap {
  width: 100%; background: none; border: none; padding: 22px 0; cursor: pointer; text-align: left;
  color: #22405E; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: baseline;
}
.projecte-cap:hover { color: #2F6F9A; }
.projecte-num { font-weight: 400; font-size: 12px; color: #7A8594; }
.projecte-titols { display: flex; flex-direction: column; gap: 6px; }
.projecte-titol { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; text-wrap: pretty; font-weight: 300; }
.projecte-client { font-size: 13px; color: #56657A; }
.projecte-any { display: flex; align-items: baseline; gap: 16px; font-weight: 400; font-size: 12px; color: #56657A; }
.projecte-signe { font-size: 16px; color: #22405E; }
.projecte-detall { padding: 4px 0 44px clamp(0px, 5vw, 76px); display: flex; flex-direction: column; gap: 32px; }
.projecte-detall[hidden] { display: none; }
.projecte-imatge {
  position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; overflow: hidden;
  background: repeating-linear-gradient(135deg, #E4DED3 0 10px, #ECE8E0 10px 20px);
}
.projecte-imatge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projecte-imatge .pendent { position: absolute; left: 14px; bottom: 12px; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7A8594; }
.projecte-cos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 56px; align-items: start; }
.projecte-cos > div { display: flex; flex-direction: column; gap: 18px; }
.projecte-amb { margin: 0; font-weight: 400; font-size: 12px; color: #2F6F9A; text-transform: uppercase; letter-spacing: .06em; }
.projecte-text { margin: 0; font-size: 17px; line-height: 1.7; color: #2F3E52; text-wrap: pretty; }
.projecte-fitxa { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; padding-top: 16px; border-top: 1px solid #D8D1C4; }
.projecte-fitxa dt { font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7A8594; padding-top: 2px; }
.projecte-fitxa dd { margin: 0; }
.projecte-collab { margin: 0; font-size: 13px; line-height: 1.55; color: #56657A; }

/* Botons i targetes */
.boto-fosc { background: #22405E; }
.boto-fosc:hover { background: #2F6F9A; }
.boto-clar { background: #BFD9EA; }
.boto-clar:hover { background: #F2F0EB; }
.targeta-enllac:hover { background: #E8E3D9 !important; }

/* Formulari */
#form-contacte input:focus, #form-contacte textarea:focus { outline: none; border-bottom-color: #BFD9EA !important; }

/* Blog-Actualitat */
.entrades { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 40px; }
.entrada-targeta { display: flex; flex-direction: column; gap: 14px; color: #22405E; }
.entrada-targeta:hover .entrada-titol { color: #2F6F9A; }
.entrada-targeta:hover .entrada-imatge img { transform: scale(1.03); }
.entrada-imatge { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: repeating-linear-gradient(135deg, #E4DED3 0 10px, #ECE8E0 10px 20px); }
.entrada-imatge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.entrada-meta { margin: 0; display: flex; gap: 14px; align-items: baseline; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #56657A; }
.entrada-tipus { color: #2F6F9A; }
.entrada-titol { margin: 0; font-weight: 300; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; text-wrap: pretty; transition: color .2s; }
.entrada-resum { margin: 0; font-size: 15px; line-height: 1.6; color: #3A4B5F; text-wrap: pretty; }
.entrada-llegir { margin-top: auto; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.entrada-buida { margin: 0; font-size: 16px; color: #56657A; }
.entrada-h1 { margin: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.entrada-entradeta { margin: 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: #3A4B5F; text-wrap: pretty; }
.entrada-figura { margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.entrada-figura img { width: 100%; height: auto; display: block; }
.entrada-figura figcaption { font-weight: 400; font-size: 12px; color: #56657A; letter-spacing: .03em; }
.entrada-cos { display: flex; flex-direction: column; gap: 22px; max-width: 68ch; }
.entrada-cos p { margin: 0; font-size: 18px; line-height: 1.75; color: #2F3E52; text-wrap: pretty; }
.entrada-cos h2 { margin: 18px 0 -4px; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.01em; color: #22405E; }
.entrada-cos ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.entrada-cos li { font-size: 18px; line-height: 1.6; color: #2F3E52; }
.entrada-cos li::marker { color: #2F6F9A; }
.entrada-enllac { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.entrada-tornar { align-self: flex-start; margin-top: 24px; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

@media (max-width: 640px) {
  .capcalera img[src*="logo-horitzontal"] { height: 88px !important; }
  .capcalera nav { font-size: 16px !important; gap: 22px !important; }
  .projecte-cap { grid-template-columns: 32px minmax(0, 1fr); }
  .projecte-any { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #portada-imatges img { transition: opacity .3s ease; transform: none !important; }
}
