/*
 * Secção Porquê a Altéria?
 */

.section--why {
    position: relative;
    overflow: hidden;
    padding-block: 76px;
    background-color: var(--color-navy);
    background-image:
        linear-gradient(
            rgba(5, 16, 35, 0.94),
            rgba(5, 16, 35, 0.94)
        ),
        url("../images/why-background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-white);
}

.why-alteria__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
}

.section--why .section__label {
    color: var(--color-gold);
}

.section--why .section__title {
    max-width: none;
    color: var(--color-white);
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    line-height: 1.08;
}

.section--why .section__title span {
    display: block;
    margin-top: 8px;
    color: var(--color-gold);
    font-style: italic;
    white-space: nowrap;
}

.why-alteria__intro .button {
    margin-top: 42px;
}

.why-alteria__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.why-card {
    min-height: 180px;
    padding: 20px 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.why-card:nth-child(3n) {
    border-right: 0;
}

.why-card:nth-child(n + 4) {
    border-bottom: 0;
}

.why-card__number {
    display: block;
    margin-bottom: 16px;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1;
}

.why-card h3 {
    margin-bottom: 12px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
}

.why-card p {
    color: var(--color-white);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .why-alteria__layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .section--why .section__title span {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .section--why {
        padding-block: 60px;
    }

    .why-alteria__items {
        grid-template-columns: 1fr 1fr;
    }

    .why-card {
        min-height: 160px;
        padding: 16px;
    }

    .why-card:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .why-card:nth-child(2n) {
        border-right: 0;
    }

    .why-card:nth-child(n + 4) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .why-card:nth-child(n + 5) {
        border-bottom: 0;
    }
}