/* ============================================================
   SUSTENTABILIDADE: O QUE FAZEMOS — Estilos da página
   ============================================================ */

/* ---- HERO ---- */
#sf-hero-section {
    position: relative;
    padding: 40px 0 60px;
}

/* Decorativos: offsets calculados a partir das coordenadas exatas do Figma
   (node 6667:856), relativas ao topo do hero (y=365 no Figma = 0 aqui). */
.sf-paint-left-1,
.sf-paint-right {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.sf-paint-left-1 {
    left: -70px;              /* x=250 no Figma, container começa em x=320 → 250-320 */
    top: 71px;                /* padding-top da section (40px) + 31px (396-365) */
    width: 250px;
    height: 647px;
    transform: rotate(180deg) scaleY(-1);
    overflow: hidden;
}

.sf-paint-right {
    right: 0;                 /* x+width=1920 no Figma = borda direita da página */
    top: 814px;               /* padding-top da section (40px) + 774px (1139-365) */
    width: 286px;
    height: 681px;
    transform: rotate(180deg);
    overflow: hidden;
}

.sf-paint-left-1 img,
.sf-paint-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-hero {
    position: relative;
    z-index: 1;
    background: #66589e;
    border-radius: 24px;
    padding: 48px 64px;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.sf-hero-text {
    flex: 1 1 480px;
    min-width: 0;
}

.sf-hero-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #b2c3dd;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sf-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    margin: 0 0 16px;
}

.sf-hero-intro {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.62;
    color: #fff;
    max-width: 632px;
    margin: 0;
}

.sf-hero-intro p {
    margin: 0;
}

.sf-hero-intro p + p {
    margin-top: 1em;
}

.sf-hero-video-col {
    flex: 1 1 400px;
    max-width: 542px;
}

.sf-video-player,
.sf-video-placeholder,
.sf-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.sf-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #66589e;
    border: 3px solid #fff;
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.sf-video-play:hover {
    transform: scale(1.08);
    background: #58536f;
}

.sf-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sf-video-placeholder {
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

/* ---- BLOCOS DE TEXTO + IMAGEM ---- */
#sf-blocos-section {
    padding: 40px 0;
}

.sf-bloco {
    display: flex;
    align-items: center;
    gap: 56px;
    margin-bottom: 56px;
}

.sf-bloco:last-child {
    margin-bottom: 0;
}

.sf-bloco.is-image-right {
    flex-direction: row-reverse;
}

.sf-bloco-img-col {
    flex: 0 0 420px;
}

.sf-bloco-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.sf-bloco-text-col {
    flex: 1 1 0;
    min-width: 0;
}

.sf-bloco.is-text-only .sf-bloco-text-col {
    flex: 1 1 100%;
}

.sf-bloco-text-col p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: #58536f;
    margin: 0;
}

/* ---- SLOGAN + TRAJETÓRIA ---- */
#sf-timeline-section {
    position: relative;
    padding: 40px 0 90px;
}

/* Decorativo esquerdo junto à trajetória — x=250,y=2580 no Figma; o wrap
   (banner roxo + trajetória) começa em y=1893, e a section tem 40px de
   padding-top antes dele: top = 40 + (2580 - 1893) = 727px. Fica na borda
   da tela (filho da section, não do container), igual ao .sf-paint-left-1. */
.sf-paint-left-2 {
    position: absolute;
    left: -70px;
    top: 727px;
    width: 250px;
    height: 647px;
    transform: rotate(180deg) scaleY(-1);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sf-paint-left-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-timeline-wrap {
    position: relative;
    background: #ecf1f6;
    border-radius: 16px;
    overflow: hidden;
}

.sf-slogan {
    background: #66589e;
    padding: 56px 40px;
    text-align: center;
}

.sf-slogan p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.45;
    color: #fff;
    margin: 0;
}

.sf-timeline-inner {
    position: relative;
    z-index: 1;
    /* 73px do fim do slogan até o título, 106px do fim do último marco até o
       fim do card (light-blue) — medidos no Figma (node 6667:856). */
    padding: 73px 64px 106px;
}

/* Título "Nossa trajetória": centralizado no card (mesmo eixo central da
   timeline abaixo — confirmado no Figma: ambos centralizados em x=960). */
.sf-section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 34px;
}

.sf-section-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #5a738d;
    top: -10px;
    position: relative;
}

.sf-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #5a738d;
    letter-spacing: -0.32px;
    margin: 0;
}

.sf-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.sf-timeline::before {
    content: '';
    position: absolute;
    left: 126px;
    /* Metade da altura do card (145px/2) — começa/termina no centro do 1º e
       do último marco, então funciona com qualquer quantidade de itens. */
    top: 72.5px;
    bottom: 72.5px;
    width: 2px;
    background: #6c85aa;
    z-index: 0;
}

.sf-timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 46px;
}

.sf-timeline-item:last-child {
    margin-bottom: 0;
}

.sf-timeline-logo {
    flex: 0 0 253px;
    height: 145px;
    background: #fff;
    border: 2px solid #6c85aa;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.sf-timeline-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sf-timeline-text {
    flex: 1 1 0;
    min-width: 0;
}

.sf-timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #66589e;
    margin: 0 0 16px;
}

.sf-timeline-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #707070;
}

.sf-timeline-desc p {
    margin: 0 0 4px;
}

.sf-timeline-desc p:last-child {
    margin-bottom: 0;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 992px) {
    .sf-hero {
        padding: 32px;
    }

    .sf-timeline-inner {
        padding: 40px 24px 48px;
    }

    .sf-timeline::before {
        left: 45px;
    }

    .sf-timeline-logo {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        border-radius: 20px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .sf-hero {
        padding: 24px;
        gap: 24px;
    }

    .sf-hero-title {
        font-size: 22px;
    }

    .sf-hero-intro {
        font-size: 15px;
    }

    .sf-bloco,
    .sf-bloco.is-image-right {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }

    .sf-bloco-img-col {
        flex-basis: auto;
        width: 100%;
    }

    .sf-bloco-text-col p {
        font-size: 16px;
    }

    .sf-slogan {
        padding: 32px 20px;
    }

    .sf-slogan p {
        font-size: 20px;
    }

    .sf-section-title {
        font-size: 22px;
    }

    .sf-timeline-item {
        gap: 16px;
    }

    .sf-timeline-year {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .sf-timeline-desc {
        font-size: 14px;
    }
}

/* Ajustes específicos para notebooks (1366x768) */
@media (max-width: 1366px) {
    #sf-hero-section {
        padding: 30px 0 40px;
    }

    .sf-hero {
        padding: 32px 40px;
        gap: 32px;
    }

    .sf-hero-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .sf-hero-intro {
        font-size: 15px;
        line-height: 1.5;
        max-width: 100%;
    }
}

/* Espaçamento entre seções reduzido pela metade em notebook (1366x768) e
   telas médias (1024px–1280px). #sf-hero-section já tem ajuste próprio
   acima (cobre toda a faixa ≤1366px, incluindo 1024–1280) — só faltava
   reduzir as outras duas seções. */
@media screen and (max-width: 1366px) and (max-height: 768px),
       screen and (min-width: 1024px) and (max-width: 1280px) {
    #sf-blocos-section {
        padding: 20px 0;
    }

    #sf-timeline-section {
        padding: 20px 0 45px;
    }
}
