@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700&display=swap");

:root{
  --black:#050505;
  --white:#fff;
  --text:#555751;
  --muted:#8a8c86;
  --line:#e6e6e0;
  --soft:#f7f7f4;
  --shell:min(1320px,calc(100% - 40px));
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:#fff;
  color:var(--black);
  font-family:Inter,Arial,sans-serif;
}

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

/* =========================================================
   HERO
   ========================================================= */

.services-hero{
  min-height:calc(100vh - 72px);
  display:flex;
  align-items:stretch;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.services-hero__grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.services-hero__col{
  position:relative;
  padding:110px 34px 50px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:
    background-color .25s ease,
    border-color .25s ease;
  overflow:hidden;
  color:#050505 !important;
  background:#fff;
}

.services-hero__col:last-child{
  border-right:0;
}

.services-hero__num{
  font-size:10px;
  color:#8a8c86 !important;
}

.services-hero__col h1{
  margin:0;
  font:600 clamp(50px,5.8vw,92px)/.86 "Inter Tight",Inter,sans-serif;
  letter-spacing:-.06em;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  color:#050505 !important;
}

.services-hero__col p{
  margin:0;
  max-width:280px;
  color:#555751 !important;
  font-size:12px;
  line-height:1.6;
}

.services-hero__col:hover{
  background:#050505;
  color:#fff !important;
  border-color:#050505;
}

.services-hero__col:hover h1{
  color:#fff !important;
}

.services-hero__col:hover .services-hero__num{
  color:#a5a7a1 !important;
}

.services-hero__col:hover p{
  color:#d0d1cd !important;
}

/* =========================================================
   FAMÍLIES
   ========================================================= */

.family{
  border-bottom:1px solid var(--line);
  background:#fff !important;
  color:#050505 !important;
}

/* Totes les seccions blanques */
.family:nth-child(even),
.family:nth-child(odd){
  background:#fff !important;
}

.family__inner{
  width:var(--shell);
  margin:auto;
  padding:105px 0;
}

.family__head{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:70px;
  margin-bottom:46px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#8a8c86 !important;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.kicker:before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#111;
}

.family__title h2{
  margin:10px 0 0;
  font:600 clamp(66px,8vw,118px)/.84 "Inter Tight",Inter,sans-serif;
  letter-spacing:-.065em;
  color:#050505 !important;
}

.family__desc{
  align-self:end;
  color:#555751 !important;
  font-size:15px;
  line-height:1.7;
  max-width:650px;
}

/* =========================================================
   ENLLAÇOS DE SERVEI
   ========================================================= */

.service-links{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  border-top:1px solid var(--line);
}

.service-link{
  min-height:108px;
  padding:18px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  border-bottom:1px solid var(--line);
  color:#050505 !important;
  background:#fff;
  transition:background-color .2s ease;
}

.service-link:nth-child(odd){
  border-right:1px solid var(--line);
  padding-right:26px;
}

.service-link:nth-child(even){
  padding-left:26px;
}

.service-link:hover{
  background:#fafafa;
}

.service-link__content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.service-link__title{
  color:#050505 !important;
  font-size:14px;
  line-height:1.3;
  font-weight:600;
}

.service-link__desc{
  max-width:520px;
  color:#777973 !important;
  font-size:11px;
  line-height:1.55;
  font-weight:400;
}

.arrow{
  flex:0 0 auto;
  color:#8a8c86 !important;
  font-size:14px;
  transition:
    transform .2s ease,
    color .2s ease;
}

.service-link:hover .arrow{
  transform:translate(3px,-3px);
  color:#050505 !important;
}

/* =========================================================
   NETEJA GLOBAL
   ========================================================= */

.services-hero,
.family,
.family__inner,
.service-links,
.service-link{
  box-shadow:none !important;
}

.services-hero,
.family{
  background:#fff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

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

  .services-hero__col{
    min-height:42vh;
  }

  .services-hero__col h1{
    writing-mode:initial;
    transform:none;
  }

  .family__head{
    grid-template-columns:1fr;
    gap:28px;
  }
}

@media(max-width:650px){
  :root{
    --shell:calc(100% - 24px);
  }

  .services-hero{
    min-height:auto;
  }

  .services-hero__grid{
    grid-template-columns:1fr;
  }

  .services-hero__col{
    min-height:230px;
    padding:34px 20px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .family__inner{
    padding:76px 0;
  }

  .service-links{
    grid-template-columns:1fr;
  }

  .service-link:nth-child(odd),
  .service-link:nth-child(even){
    border-right:0;
    padding:18px 4px;
  }

  .service-link{
    min-height:0;
  }

  .service-link__desc{
    max-width:none;
  }
}
