/* ==========================================================================
   Página Sobre
   ========================================================================== */

/* -------------------------------- História ------------------------------ */

.history-section {
    background-color: var(--bg-1);
}

.image-frame {
    position: relative;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.image-frame img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-card);
}

.premios {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 50px;
    gap: 20px;
}

/* ------------------- Missão, visão e valores (MVV) ---------------------- */

.mvv-grid {
    display: grid;
    /* min(): em telas menores que 300px o card ocupa a largura toda em vez de estourar. */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
}

.mvv-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.mvv-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-card);
}

.mvv-card .icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.mvv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--title-color);
}

.mvv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.values-list i {
    color: var(--accent-color);
}

/* ---------------------------- Sustentabilidade -------------------------- */

.sustentabilidade-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.sustentabilidade-section h2,
.sustentabilidade-section p {
    color: var(--text-dark);
}

/* ------------------------- Presença internacional ----------------------- */

.global-section {
    background-color: var(--bg-1);
}

/* Aproxima o mapa do texto, que tem margem interna larga. */
.global-section .col-img {
    margin-left: -100px;
}

.map-visual {
    /* Leve brilho dourado no mapa. */
    filter: drop-shadow(0 0 10px rgba(191, 152, 83, 0.1));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-visual:hover {
    opacity: 1;
}

.offices-row {
    align-items: stretch;
    gap: 30px;
}

.offices-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    width: 50%;
}

.offices-container h3 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.offices-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.offices-list li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.offices-list i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* ---------------------------- Conexão com o Sul ------------------------- */

.south-section .col-img {
    display: flex;
    justify-content: center;
    width: 35%;
}

/* ----------------------------- Responsivo ------------------------------- */

@media (max-width: 900px) {
    .global-section .col-img {
        margin-left: 0;
    }

    .south-section .col-img {
        width: 100%;
    }

    .offices-container {
        width: 100%;
        margin-top: 0;
    }

    /* Empilhados, os dois quadros de escritórios usam só o gap entre eles
       (a margem de cada um somava ao gap e dobrava o espaço). */
    .offices-row {
        margin-top: 32px;
        gap: 20px;
    }

    /* O iPhone não suporta fundo fixo: a imagem aparecia ampliada e borrada. */
    .sustentabilidade-section {
        background-attachment: scroll;
    }
}
