/* ---- NOSSA HISTÓRIA ---- */

.nossa-historia {
    width: 100%;
    min-height: max(550px, calc(100vh - 120px));
    display: flex;
    align-items: center;

    background-image: url("../../../img/empresa/bg-nossa-historia.png");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 5%;
}

.nossa-historia::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.85) 45%, rgba(10, 22, 40, 0.2));
    z-index: 1;
}

.historia-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
    max-width: 580px;
    gap: 16px;
}

.historia-tag {
    font-size: 0.85rem !important;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.historia-conteudo h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 8px;
}

.historia-conteudo h1 span {
    background: linear-gradient(90deg, #027dc8, #013d9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.historia-conteudo p {
    font-size: 1.07rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- NOSSAS UNIDADES ---- */

.nossas-unidades {
    padding: 60px 5% 90px 5%;
    background: white;
}

.unidades-titulo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.unidades-titulo h2 {
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 4px solid #006aac;
}

.unidades-titulo h2 span {
    background: linear-gradient(90deg, #027dc8, #002764);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.unidades-titulo div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unidades-titulo div > img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

.unidades-titulo div > p {
    font-size: 0.88rem;
    letter-spacing: 1px;
    color: #888;
    line-height: 1.6;
    font-weight: 600;
}

.unidades-titulo div > p span {
    color: var(--primary, #006aac);
}

.unidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 25px; /* Evita que o badge flutuante invada a próxima seção */
}

.unidade {
    position: relative;
    border-radius: 12px;
    overflow: visible;
}

.unidade img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 10px;
    display: block;
}

.unidade:hover img {
    transform: scale(1.03);
}

.unidade span {
    position: absolute;
    bottom: -22px;
    left: 8%;
    right: 8%;

    padding: 12px 14px;
    background: #2167df;
    color: #fff;

    font-size: clamp(1.1rem, 1.4vw, 1.5rem);
    font-weight: 700;
    text-align: center;

    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    z-index: 2;
}

/* ---- QUALIDADE ---- */

.qualidade {
    width: 100%;
    min-height: max(550px, calc(100vh - 100px));
    display: flex;
    align-items: center;

    background-image: url("../../../img/empresa/bg-qualidade.png");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 5%;
}

.qualidade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.85) 50%, rgba(10, 22, 40, 0.3));
    z-index: 1;
}

.qualidade-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
    max-width: 630px;
    gap: 16px;
}

.qualidade-tag {
    font-size: 0.85rem !important;
    letter-spacing: 3px;
    color: white !important;
    text-transform: uppercase;
    font-weight: 600;
}

.qualidade-texto h2 {
    font-size: clamp(2.5rem, 3.8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 8px;
}

.qualidade-texto h2 span {
    background: linear-gradient(90deg, #027dc8, #004bc5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qualidade-texto p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.logos-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.logos-list li a img {
    height: 85px;
    width: 85px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logos-list li a:hover img {
    transform: scale(1.1);
}

/* ---- RESPONSIVO ---- */

/* Notebooks Menores e Tablets Grandes */
@media (max-width: 1024px) {
    .unidades-grid {
        gap: 20px;
    }

    .unidade img {
        height: 220px;
    }

}

/* Tablets */
@media (max-width: 768px) {
    .nossa-historia,
    .qualidade {
        min-height: auto;
        padding: 60px 24px;
    }

    .unidades-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .unidade img {
        height: 260px;
    }

    .unidades-titulo {
        flex-direction: column;
        align-items: flex-start;
    }

    .unidades-titulo div > p {
        text-align: right;
    }

    .logos-list li a img {
        height: 64px;
        width: 64px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .historia-conteudo h1,
    .unidades-titulo h2,
    .qualidade-texto h2 {
        font-size: 2.2rem;
    }

    .unidades-titulo div {
        flex-direction: column;
        align-items: flex-end;
    }

    .logos-list li a img {
        height: 52px;
        width: 52px;
    }
}