/* Estilo automático para a página: home */

/* ==========================================================================
   Banner (carrossel)
   ========================================================================== */

.banner{
    position: relative;
    overflow: hidden;
    background-color: var(--Dark-Blue);

    .banner-swiper{
        height: 100vh;
        height: 100svh;
        min-height: 640px;
    }

    .banner-slide{
        position: relative;
        display: flex;
        align-items: flex-end;
        height: 100%;

        /* Filtro azul sobre a imagem */
        &::after{
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(90deg, #183B67 0%, rgba(24, 59, 103, 0.55) 33.04%, rgba(23, 79, 130, 0.00) 96.5%);
            pointer-events: none;
        }
    }

    .banner-media{
        position: absolute;
        inset: 0;

        img{
            display: block;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
            object-position: center;
        }
    }

    .banner-container{
        position: relative;
        z-index: 2;
        width: min(var(--container), 100% - (var(--gutter) * 2));
        margin-inline: auto;
        padding-bottom: 70px;
    }

    .banner-logo{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
        padding: 6px;
        border-radius: 8px;
        background-color: #fff;

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

    .banner-head{
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .6);
    }

    .banner-title{
        margin: 0;
        color: #fff;
        font-family: "Inter", sans-serif;
        font-size: 48px;
        font-weight: 600;
        line-height: 1.1;
    }

    .banner-address{
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;

        svg{
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }
    }

    .banner-footer{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        min-height: 56px;
        padding-top: 24px;
    }

    .banner-subtitle{
        margin: 0;
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
    }

    .banner-button{
        margin-left: auto;
    }

    /*
     * Paginação (dots): alinhada ao centro da linha do subtítulo/botão.
     * Seletor com ".banner-swiper" para ganhar do swiper-bundle.min.css,
     * que é carregado depois e força "left: 0; width: 100%".
     */
    .banner-swiper .banner-pagination{
        position: absolute;
        top: auto;
        left: 50%;
        bottom: 87px;
        z-index: 3;
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        transform: translateX(-50%);
    }

    .banner-bullet{
        display: block;
        width: 12px;
        height: 12px;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 12px;
        background-color: transparent;
        opacity: 1;
        cursor: pointer;
        transition: width .35s ease, background-color .35s ease, border-color .35s ease;

        &:hover{
            border-color: var(--Primary-Green);
        }

        &.is-active{
            width: 62px;
            border-color: var(--Primary-Green);
            background-color: var(--Primary-Green);
        }
    }

    /* ---------- Tablet ---------- */
    @media (max-width: 991px){
        .banner-title{
            font-size: 40px;
        }
    }

    /* ---------- Mobile ---------- */
    @media (max-width: 767px){
        .banner-slide::after{
            /* reforço de baixo para cima para leitura do texto no mobile */
            background:
                linear-gradient(0deg, rgba(24, 59, 103, .75) 0%, rgba(24, 59, 103, 0) 60%),
                linear-gradient(90deg, #183B67 0%, rgba(24, 59, 103, 0.55) 33.04%, rgba(23, 79, 130, 0.00) 96.5%);
        }

        .banner-container{
            padding-bottom: 72px;
        }

        .banner-logo{
            width: 80px;
            height: 80px;
        }

        .banner-head{
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding-bottom: 16px;
        }

        .banner-title{
            font-size: 32px;
        }

        .banner-address{
            margin: 0;
            font-size: 14px;
            align-items: flex-start;

            svg{
                width: 20px;
                height: 20px;
            }
        }

        .banner-footer{
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
            padding-top: 16px;
        }

        .banner-subtitle{
            font-size: 18px;
        }

        .banner-button{
            margin-left: 0;
        }

        .banner-swiper .banner-pagination{
            bottom: 32px;
        }
    }
}

/* ==========================================================================
   Quem Somos (layout da home)
   Capa de vídeo, texto e cards de números: style.css ("Blocos Quem Somos / Sobre")
   ========================================================================== */

.sec-quem-somos{
    padding: 32px 0 64px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F4DC 100%);

    .qs-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 22px;
    }

    .qs-content{
        padding-top: 10px;

        .section-title{
            max-width: 460px;
            margin-bottom: 32px;
        }
    }

    .qs-numbers{
        grid-template-columns: repeat(4, 1fr);
        margin-top: 48px;
    }

    /* ---------- Tablet: texto abaixo do vídeo ---------- */
    @media (max-width: 1199px){
        .qs-grid{
            grid-template-columns: 1fr;
            gap: 32px;
        }

        .qs-content{
            padding-top: 0;
        }

        .qs-content .section-title{
            max-width: none;
        }
    }

    @media (max-width: 991px){
        .qs-numbers{
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ---------- Mobile ---------- */
    @media (max-width: 767px){
        padding: 24px 0 48px;

        .section-title{
            font-size: 30px;
        }

        .qs-content .section-title{
            margin-bottom: 20px;
        }

        .qs-numbers{
            margin-top: 32px;
        }
    }
}

/* Blog: a seção usa template-parts/section-posts.php e o CSS fica no style.css ("Seção de posts") */

/* ==========================================================================
   MOBILE DA HOME (até 767px) - conforme o layout mobile
   ========================================================================== */

@media (max-width: 767px){

    /* ---------- Banner: altura fixa e ordem título > linha > subtítulo > endereço > botão ---------- */
    .banner .banner-swiper{
        height: 600px;
        min-height: 0;
    }

    .banner .banner-container{
        padding-bottom: 64px;
    }

    .banner .banner-content{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* os blocos internos "somem" para os itens poderem ser reordenados */
    .banner .banner-head,
    .banner .banner-footer{
        display: contents;
    }

    .banner .banner-logo{
        order: 1;
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
        padding: 4px;
    }

    .banner .banner-title{
        order: 2;
        font-size: 34px;
    }

    .banner .banner-subtitle{
        order: 3;
        width: 75%;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, .6);
        font-size: 18px;
    }

    .banner .banner-address{
        order: 4;
        margin-top: 16px;
    }

    .banner .banner-button{
        order: 5;
        margin: 22px 0 0;
    }

    /* dots alinhados à esquerda */
    .banner .banner-swiper .banner-pagination{
        left: 20px;
        bottom: 28px;
        transform: none;
    }

    /* ---------- Quem Somos: título > vídeo > texto > números > botões ---------- */
    .sec-quem-somos{
        padding: 48px 0;

        .container-site{
            display: flex;
            flex-direction: column;
        }

        .qs-grid,
        .qs-content{
            display: contents;
        }

        .section-tag{
            order: 1;
            align-self: flex-start;
        }

        .section-title{
            order: 2;
            margin: 12px 0 20px;
        }

        .qs-media{
            order: 3;
        }

        .qs-text{
            order: 4;
            margin-top: 24px;
        }

        .qs-numbers{
            order: 5;
            margin-top: 24px;
        }

        .qs-number-value{
            font-style: italic;
        }

        .qs-actions{
            order: 6;
            margin-top: 24px;
        }
    }
}

/* Ajustes finos do mobile da home: legendas dos números e botão sem seta */
@media (max-width: 767px){
    .sec-quem-somos .qs-number{
        padding: 16px;
    }

    .sec-quem-somos .qs-number .qs-number-label{
        font-size: 12px;
        white-space: nowrap;
    }

    .sec-quem-somos .qs-actions .btn-primary .btn-icon{
        display: none;
    }
}
