/* Página Sobre (Figma node 1264:4048). CSS próprio, fora do dist/ (o tema não tem src/ para rebuildar).
   Markup em page-sobre.php; vídeos em assets/js/sobre.js. */

.scopi-sobre-page {
    --sobre-text: #303943;
    --sobre-text-2: #696b6d;
    --sobre-tint: #ebf8ff;
    background: #fff;
    font-family: Raleway, sans-serif;
}

/* O CSS global do tema pinta p/h* de #1f2937/#13192f com tracking negativo; o Figma usa #303943 e tracking 0.
   :where() mantém a especificidade em 0 para não atropelar os componentes abaixo. */
:where(.scopi-sobre-page) :is(h1, h2, p) {
    margin: 0;
    letter-spacing: 0;
    text-wrap: wrap;
}

.sobre-section {
    padding-inline: max(24px, 50% - 608px);
}

/* Botão de ação */
.sobre-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: Raleway, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
    transition: background .2s, box-shadow .2s;
}

.sobre-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 20px #ff990052;
}

.sobre-btn:focus-visible {
    outline: 2px solid var(--blue-deep);
    outline-offset: 3px;
}

.sobre-btn img {
    flex: none;
    width: 20px;
    height: 20px;
}

/* Botão de play (círculo laranja) */
.sobre-play {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    transition: background .2s, transform .2s;
}

.sobre-play img {
    width: 23.04px;
    height: 23.04px;
}

a:hover > .sobre-play,
a:focus-visible > .sobre-play,
a:hover > .sobre-ceo-call > .sobre-play,
a:focus-visible > .sobre-ceo-call > .sobre-play {
    background: var(--accent-hover);
    transform: scale(1.06);
}

.sobre-orbit {
    position: absolute;
    max-width: none;
    pointer-events: none;
}

/* ---------- Apresentação ---------- */
.sobre-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-block: 32px 80px;
    background: var(--blue-hero);
    overflow: hidden;
}

/* Órbitas concêntricas no centro (50% + 370px, 270px) do hero, como no Figma de 1440px */
.sobre-orbit--1 {
    top: -180px;
    left: calc(50% - 80px);
    width: 900px;
    height: 900px;
}

.sobre-orbit--2 {
    top: -90px;
    left: calc(50% + 10px);
    width: 720px;
    height: 720px;
}

.sobre-orbit--3 {
    top: 0;
    left: calc(50% + 100px);
    width: 540px;
    height: 540px;
}

.sobre-breadcrumb {
    position: relative;
    display: flex;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    line-height: 21px;
    text-transform: uppercase;
}

.sobre-breadcrumb a:hover {
    text-decoration: underline;
}

.sobre-hero-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 56px;
}

.sobre-hero-copy {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 550px;
}

.sobre-hero-copy h1 {
    color: var(--blue-navy);
    font-size: clamp(36px, 3.665vw, 52.78px);
    font-weight: 500;
    line-height: 1.1;
}

.sobre-hero-copy p {
    color: #fff;
    font-size: clamp(22px, 2.2222vw, 32px);
    font-weight: 500;
    line-height: 1.34;
}

/* Vídeo institucional */
.sobre-video {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 358px;
    border: 8px solid rgb(255 255 255 / .22);
    border-radius: 24px;
    background: var(--blue-navy);
    overflow: hidden;
}

/* A capa e o filtro cobrem também a área da borda (inset -8px), como no Figma */
.sobre-video-cover,
.sobre-video-tint {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
}

.sobre-video-cover {
    max-width: none;
    object-fit: cover;
}

.sobre-video-tint {
    background: var(--blue-navy);
    opacity: .25;
}

.sobre-video .sobre-play {
    position: relative;
}

.sobre-video-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.sobre-video-progress {
    flex: 1 1 0;
    min-width: 1px;
    height: 3px;
    border-radius: 2px;
    background: rgb(255 255 255 / .22);
}

.sobre-video-label {
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

.sobre-video:focus-visible,
.sobre-ceo-media:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Player do YouTube no lugar da capa (ver assets/js/sobre.js) */
.sobre-video.is-playing,
.sobre-ceo-media.is-playing {
    background: #000;
    padding: 0;
}

.sobre-video.is-playing iframe,
.sobre-ceo-media.is-playing iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Texto em duas colunas / texto + foto ---------- */
.sobre-split {
    display: flex;
    align-items: flex-start;
    gap: 72px;
    padding-block: 88px;
}

.sobre-split-title,
.sobre-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.sobre-split-title {
    flex: none;
    width: 440px;
}

.sobre-copy {
    flex: 1 1 0;
    min-width: 0;
}

.sobre-rule {
    flex: none;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.sobre-split h2,
.sobre-ceo h2,
.sobre-contact h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
}

.sobre-split h2 {
    color: var(--sobre-text);
}

.sobre-split-text,
.sobre-copy p {
    flex: 1 1 0;
    min-width: 0;
    color: var(--sobre-text-2);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.sobre-copy p {
    flex: none;
}

.sobre-split--photo-first,
.sobre-split--tint {
    align-items: center;
}

.sobre-split--tint {
    background: var(--sobre-tint);
}

.sobre-photo {
    flex: none;
    width: 560px;
    border-radius: 24px;
    object-fit: cover;
}

.sobre-photo--trust {
    height: 382px;
}

.sobre-photo--team {
    height: 420px;
}

/* ---------- Palavra do CEO ---------- */
.sobre-ceo {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-block: 80px;
    background: var(--blue-navy);
}

.sobre-ceo-id {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 360px;
    color: #fff;
}

.sobre-pill {
    padding: 8px 16px;
    border-radius: 40px;
    background: rgb(255 255 255 / .15);
    font-size: 14px;
    line-height: 21px;
    text-transform: uppercase;
}

.sobre-ceo h2 {
    color: #fff;
}

.sobre-ceo-name {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sobre-ceo-person {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 31px;
}

.sobre-ceo-role {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.sobre-ceo-media {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 350px;
    padding: 32px;
    border-radius: 24px;
    background: var(--blue-hero);
    overflow: hidden;
}

/* Órbitas ancoradas à direita do cartão (no Figma: 776px de largura, centro a 485px da esquerda) */
.sobre-orbit--ceo-1 {
    top: -115px;
    right: -4px;
    width: 590px;
    height: 590px;
}

.sobre-orbit--ceo-2 {
    top: -35px;
    right: 76px;
    width: 430px;
    height: 430px;
}

.sobre-ceo-logo {
    position: relative;
    width: 75px;
    height: 43.35px;
}

.sobre-ceo-call {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.sobre-ceo-call-title {
    width: 340px;
    max-width: 100%;
    color: #fff;
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
}

.sobre-ceo-line {
    position: relative;
    flex: none;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgb(255 255 255 / .22);
}

/* ---------- Contato ---------- */
.sobre-contact {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-block: 72px;
    background: var(--blue-hero);
}

.sobre-contact-info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    color: var(--blue-navy);
}

.sobre-contact h2 {
    color: var(--blue-navy);
}

.sobre-contact-info p {
    color: var(--blue-navy);
    font-size: 20px;
    line-height: 30px;
}

.sobre-contact-info a:hover {
    text-decoration: underline;
}

.sobre-contact .sobre-btn {
    flex: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .sobre-hero-copy {
        width: 46%;
    }

    .sobre-split,
    .sobre-ceo {
        gap: 48px;
    }

    .sobre-split-title {
        width: 36%;
    }

    .sobre-ceo-id {
        width: 300px;
    }

    .sobre-photo {
        width: 46%;
    }

    .sobre-split h2,
    .sobre-ceo h2,
    .sobre-contact h2 {
        font-size: 34px;
    }
}

/* ---------- Mobile ----------
   Segue o responsivo das outras páginas (Parceiros, Brasil Planeja): colunas empilhadas, títulos de seção
   em 24px, textos em 16/24, hero com h1 de 34px e lead de 18/28; aqui com os itens centralizados. */
@media (max-width: 860px) {
    .sobre-hero {
        gap: 28px;
        padding-block: 32px 48px;
    }

    .sobre-hero-main {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .sobre-hero-copy {
        align-items: center;
        gap: 24px;
        width: auto;
        text-align: center;
    }

    .sobre-hero-copy h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .sobre-hero-copy p {
        font-size: 18px;
        line-height: 28px;
    }

    .sobre-btn {
        justify-content: center;
        max-width: 100%;
        text-align: center;
    }

    .sobre-video {
        flex: none;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sobre-play {
        width: 60px;
        height: 60px;
    }

    .sobre-orbit--1 {
        left: calc(50% - 120px);
    }

    .sobre-orbit--2 {
        left: calc(50% - 30px);
    }

    .sobre-orbit--3 {
        left: calc(50% + 60px);
    }

    .sobre-split {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding-block: 56px;
        text-align: center;
    }

    .sobre-split-title,
    .sobre-copy {
        align-items: center;
        gap: 16px;
        width: auto;
    }

    .sobre-split h2,
    .sobre-ceo h2,
    .sobre-contact h2 {
        font-size: 24px;
        line-height: 1.19;
    }

    .sobre-split-text,
    .sobre-copy p,
    .sobre-contact-info p {
        flex: none;
        font-size: 16px;
        line-height: 24px;
    }

    /* a ordem do markup (foto primeiro em "Relações de confiança") vale também no mobile */
    .sobre-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 560 / 382;
    }

    .sobre-photo--team {
        aspect-ratio: 560 / 420;
    }

    .sobre-ceo {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding-block: 56px;
    }

    .sobre-ceo-id {
        align-items: center;
        gap: 16px;
        width: auto;
        text-align: center;
    }

    .sobre-ceo-name {
        align-items: center;
        gap: 4px;
    }

    .sobre-ceo-person {
        font-size: 20px;
        line-height: 26px;
    }

    .sobre-ceo-role {
        font-size: 16px;
        line-height: 24px;
    }

    .sobre-ceo-media {
        flex: none;
        align-items: center;
        height: 300px;
        padding: 24px;
    }

    .sobre-ceo-call {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .sobre-ceo-call-title {
        width: auto;
        font-size: 24px;
        line-height: 30px;
        text-align: center;
    }

    .sobre-contact {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding-block: 56px;
        text-align: center;
    }

    .sobre-contact-info {
        flex: none;
        align-items: center;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sobre-btn,
    .sobre-play {
        transition: none;
    }
}
