/* ===================================================================
   AC SISTEM — Página "Quem Somos"
   CSS Nesting nativo — conforme modelo-css.md
   =================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------- Banner da página -------- */
.page-banner {
    background: #f2f2f2;
    border-bottom: 8px solid var(--cor-primaria);
    padding-block: 60px;

    .page-banner__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .page-banner__eyebrow {
        justify-content: center;
    }

    .page-banner__title {
        max-width: 820px;
        font-weight: 700;
        font-size: clamp(1.75rem, 3.4vw, 2.625rem);
        line-height: 1.3;
        color: var(--cor-secundaria);

        .accent {
            color: var(--cor-primaria);
        }
    }

    .page-banner__crumb {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        color: var(--cor-secundaria);

        a {
            transition: color 0.2s ease;
        }

        a:hover {
            color: var(--cor-primaria);
        }

        span[aria-hidden] {
            opacity: 0.5;
        }

        [aria-current] {
            opacity: 0.6;
        }
    }
}

/* -------- Sobre / Fundadores -------- */
.about {
    position: relative;
    overflow: hidden;
    background: var(--cor-branco);
    padding-block: 100px;

    .about__vector {
        position: absolute;
        top: 140px;
        right: 140px;
        width: min(624px, 48vw);
        height: auto;
        pointer-events: none;
        z-index: 0;
    }

    .about__grid {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 80px;
        align-items: center;
    }

    .about__text {
        display: flex;
        flex-direction: column;
        gap: 24px;

        p {
            font-weight: 300;
            font-size: clamp(1rem, 1.4vw, 1.25rem);
            line-height: 1.4;
            opacity: 0.8;
        }
    }

    .about__aside {
        padding: 40px;
        border-radius: 24px;
        background: var(--cor-branco);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .about__metrics {
        display: flex;
        flex-direction: column;
        gap: 28px;

        li {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            font-size: 18px;
        }
    }

    .about__metric-ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        background: var(--cor-fundo1);

        img {
            width: 24px;
            height: 24px;
        }
    }
}

/* -------- Marcas / Unidades -------- */
.brands {
    background: var(--cor-fundo1);
    padding-block: 100px;

    .brands__head {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;

        .section-eyebrow {
            justify-content: center;
        }
    }

    .brands__subtitle {
        max-width: 800px;
        font-weight: 300;
        font-size: clamp(1rem, 1.4vw, 1.25rem);
        line-height: 1.4;
        opacity: 0.8;
    }

    .brands__units {
        display: flex;
        gap: 20px;
        margin-top: 40px;
    }

    .brands__more {
        margin-top: 40px;
        font-weight: 700;
        font-size: clamp(1.25rem, 2vw, 1.625rem);
        text-align: center;
    }

    .brands__strip {
        display: flex;
        gap: 20px;
        margin-top: 24px;
    }
}

.unit-card {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 16px;
    padding: 24px;
    background: var(--cor-branco);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    }

    .unit-card__count {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;

        strong {
            font-weight: 700;
            font-size: 48px;
            line-height: 1;
            color: var(--cor-primaria);
        }

        span {
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 0.84px;
            text-transform: uppercase;
            opacity: 0.6;
        }
    }

    .unit-card__logos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;

        img {
            width: 100%;
            max-width: 176px;
            max-height: 56px;
            object-fit: contain;
        }

        &.is-stack {
            flex-direction: column;

            img {
                max-height: 34px;
            }
        }
    }
}

.brands__strip li {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    aspect-ratio: 183 / 116;
    padding: 12px;
    background: var(--cor-branco);
    border: 1px solid var(--cor-fundo1);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    }

    img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* -------- CTA final -------- */
.about-cta {
    position: relative;
    overflow: hidden;
    background: var(--cor-branco);
    padding-block: 100px;

    .about-cta__vector {
        position: absolute;
        left: -280px;
        bottom: -150px;
        width: min(700px, 60vw);
        height: auto;
        pointer-events: none;
        z-index: 0;
    }

    .about-cta__inner {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .about-cta__head {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;

        .section-eyebrow {
            justify-content: center;
        }

        .section-title {
            max-width: 800px;
            font-size: clamp(1.6rem, 3vw, 2.25rem);
        }
    }

    .about-cta__cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .about-cta__card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 280px;
        padding: 24px;
        text-align: center;
        background: #f1f4f6;
        border: 1px solid rgba(59, 81, 92, 0.2);
        border-radius: 20px;
        transition: transform 0.25s ease, box-shadow 0.25s ease;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 26px rgba(59, 81, 92, 0.12);
        }

        img {
            width: 48px;
            height: 46px;
        }

        p {
            font-weight: 700;
            font-size: 18px;
        }
    }
}

/* -------- Responsivo -------- */
@media (max-width: 900px) {
    .about .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brands .brands__units {
        flex-wrap: wrap;
    }

    .brands .unit-card {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 150px;
    }

    .brands__strip {
        flex-wrap: wrap;
    }

    .brands__strip li {
        flex: 1 1 calc(25% - 15px);
    }
}

/* -------- Mobile (Figma: 402px, 50px/20px) -------- */
@media (max-width: 600px) {

    .page-banner .container,
    .about .container,
    .brands .container,
    .about-cta .container {
        padding-inline: 20px;
    }

    /* Banner */
    .page-banner {
        padding-block: 40px;

        .page-banner__title {
            font-size: 26px;
        }

        .page-banner__crumb {
            font-size: 16px;
        }
    }

    /* Sobre / Fundadores */
    .about {
        padding-block: 50px;

        .about__vector {
            top: 100px;
            right: -100px;
            width: 300px;
        }

        .about__text {
            text-align: center;

            p {
                font-size: clamp(1rem, 5vw, 1.25rem);
            }
        }

        .about__aside {
            padding: 28px 20px;
        }

        .about__metrics {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;

            li {
                justify-content: center;
            }
        }
    }

    /* Marcas / Unidades */
    .brands {
        padding-block: 50px;

        .brands__subtitle {
            font-size: clamp(1rem, 5vw, 1.25rem);
        }

        .brands__units {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .unit-card {
            min-width: 0;
        }

        .brands__more {
            font-size: 20px;
        }
    }

    .brands__strip {
        gap: 20px;
        justify-content: center;
    }

    .brands__strip li {
        flex: 0 1 calc(50% - 10px);
    }

    /* CTA final */
    .about-cta {
        padding-block: 50px;

        .about-cta__vector {
            left: -100px;
            bottom: auto;
            top: 50px;
            width: 300px;
        }

        .about-cta__head .section-title {
            font-size: 26px;
        }

        .about-cta__cards {
            flex-direction: column;
            flex-wrap: nowrap;
            width: 100%;
            gap: 12px;
        }

        .about-cta__card {
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 16px;
            width: 100%;
            max-width: none;
            text-align: left;

            img {
                flex-shrink: 0;
            }

            p {
                font-size: 17px;
            }
        }
    }
}