/* 🔹 HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url('../img/img14.webp') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.hero-title {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

/* 🔹 SEC2 */
.sec2 h2 {
    font-size: 3rem;
    color: var(--verd-clar);
    font-weight: 700;
}

.sec2 h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.sec2 p {
    font-size: 1.5rem;
}

/* 🔹 SEC3 */
.sec3 {
    background-color: #f8f9fa;
}

.sec3 h2 {
    font-size: 3rem;
    color: var(--verd-clar);
    font-weight: 700;
}

.sec3 h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.avantatge-box {
    background-color: white;
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
    box-shadow: var(--shadow-soft);
}

.avantatge-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green);
}

.avantatge-box i {
    color: var(--verd-clar);
    transition: color 0.3s ease;
}

.avantatge-box h5 {
    font-size: 1.5rem;
}

.avantatge-box p {
    font-size: 1.2rem;
    color: var(--gris);
}

/* 🔹 SEC4 - Tipus de projectes */

.sec4 {
  background-color: white;
}

.sec4 h2 {
  font-size: 3rem;
  color: var(--verd-clar);
  font-weight: 700;
}

.sec4 h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Targetes amb imatge de fons */
.card-construccio {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-construccio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-green);
}

/* Gradient fosc complet */
.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  z-index: 1;
  transition: background 0.3s ease;
}

.card-content {
  position: relative;
  z-index: 2;
  border-radius: 0 0 1rem 1rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
}

.card-text {
  font-size: 1.4rem;
  font-weight: 500;
  color: white;
}

/* 🔹 SEC5 */

.sec5 {
    background-color: #f8f9fa;
}

.sec5 h2{
    color: var(--verd-clar);
}



/* 🔹 SEC5-CTA */

.sec5-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
              url('../img/img41.webp') center center / cover no-repeat;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.sec5-cta h2 {
  font-size: 3rem;
  font-weight: 700;
}

.sec5-cta p {
  font-size: 2rem;
  font-weight: 500;
  color: var(--blanc);
}

/* Responsive */
@media (max-width: 575.98px) {
    .hero {
        background: url('../img/img14.webp') center center / cover no-repeat scroll;
        background-attachment: scroll;
        height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    /* 🔹 SEC2 */
    .sec2 h2 {
        font-size: 2rem;
    }

    .sec2 h3 {
        font-size: 1.5rem;
    }

    .sec2 p {
        font-size: 1.2rem;
    }

    /* 🔹 SEC3 */
    .sec3 h2 {
        font-size: 2rem;
    }

    .sec3 h3 {
        font-size: 1.5rem;
    }
    .avantatge-box h5 {
        font-size: 1.5rem;
    }

    .avantatge-box p {
        font-size: 1.2rem;
    }
    /* 🔹 SEC4 */
    .sec4 h2 {
        font-size: 2rem;
    }
    .sec4 h3 {
        font-size: 1.5rem;
    }
    .sec4 .card-title{
        font-size: 1.5rem;
    }

    .sec4 .card-text{
        font-size: 1.2rem;
    }
    /* 🔹 SEC5 */
    .sec5-cta h2 {
        font-size: 2rem;
    }

    .sec5-cta p {
        font-size: 1.5rem;
    }
}

