
/* ==========================================
   ESCOLAS PARCEIRAS - @TECH ROBÓTICA
   CSS exclusivo da página
========================================== */

.partners-page {
    width: 100%;
    overflow: hidden;
}

.partners-page *,
.partners-page *::before,
.partners-page *::after {
    box-sizing: border-box;
}

/* ==========================================
   01. HERO INSTITUCIONAL
========================================== */

.partners-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 480px;
    padding: 115px 7% 145px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(13, 127, 132, 0.10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #F2F9FA 0%,
            #EAF5F6 100%
        );

    overflow: hidden;
}

.partners-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;
    top: -210px;
    right: -120px;

    border-radius: 50%;
    border: 75px solid rgba(13, 127, 132, 0.055);

    pointer-events: none;
}

.partners-hero-container {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 950px;

    margin: 0 auto;
    text-align: center;

    animation: partnersHeroFade 0.9s ease-out both;
}

.partners-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 11px 20px;
    margin-bottom: 26px;

    border-radius: 50px;

    background: #DDF1F2;
    color: #0D7F84;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.partners-kicker i {
    font-size: 15px;
}

.partners-main-title {
    margin: 0 0 25px;

    color: #004E62;

    font-size: clamp(38px, 4.5vw, 66px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -1.5px;
}

.partners-main-title span {
    color: #0D7F84;
}

.partners-main-text {
    max-width: 720px;
    margin: 0 auto;

    color: #52636B;

    font-size: 17px;
    line-height: 1.85;
}

/* Onda de transição */

.partners-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;

    width: 100%;
    height: 95px;

    z-index: 3;
    pointer-events: none;
    line-height: 0;
}

.partners-hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes partnersHeroFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   02. COMO FUNCIONA
========================================== */

.partners-story {
    position: relative;
    padding: 105px 7% 115px;
    background: #FFFFFF;
}

.partners-story-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.partners-story-head {
    max-width: 950px;
    margin: 0 auto 50px;
    text-align: center;
}

.partners-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
    margin-bottom: 23px;

    border-radius: 50px;

    background: #DDF1F2;
    color: #0D7F84;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.partners-section-title {
    margin: 0;

    color: #004E62;

    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.partners-section-title span {
    color: #0D7F84;
}

.partners-story-card {
    position: relative;

    padding: 65px 75px;

    background: linear-gradient(
        135deg,
        #F2F9FA 0%,
        #FFFFFF 100%
    );

    border: 1px solid #E2EFF0;
    border-radius: 30px;

    box-shadow: 0 18px 45px rgba(0, 84, 103, 0.055);
    overflow: hidden;
}

.partners-story-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 7px;

    background: linear-gradient(
        180deg,
        #0D7F84,
        #7CE0DF
    );
}

.partners-story-content {
    max-width: 1030px;
    margin: 0 auto;
}

.partners-story-content p {
    margin: 0 0 25px;

    color: #52636B;

    font-size: 17px;
    line-height: 1.95;
}

.partners-story-content p:last-child {
    margin-bottom: 0;
}

.partners-story-content strong {
    color: #005467;
    font-weight: 800;
}


/* ==========================================
   03. BENEFÍCIOS DA PARCERIA
========================================== */

.partners-benefits {
    position: relative;
    padding: 115px 6% 125px;
    background: #F2F9FA;
}

.partners-benefits-container {
    max-width: 1350px;
    margin: 0 auto;
}

.partners-benefits-head {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

/* Estilos de títulos compartilhados apenas
   dentro da página Escolas Parceiras */

.partners-page .section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px 20px;
    margin-bottom: 23px;

    border-radius: 50px;

    background: #DDF1F2;
    color: #0D7F84;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.partners-page .section-title {
    margin: 0 auto 20px;

    color: #004E62;

    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
}

.partners-page .section-title span {
    color: #0D7F84;
}

.partners-page .section-text {
    max-width: 740px;
    margin: 0 auto;

    color: #52636B;

    font-size: 17px;
    line-height: 1.8;
}

/* Grid dos benefícios */

.partners-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.benefit-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    padding: 38px 28px;

    background: #FFFFFF;

    border: 1px solid #E2EFF0;
    border-radius: 26px;

    box-shadow: 0 8px 25px rgba(0, 84, 103, 0.035);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: #C6E5E7;
    box-shadow: 0 22px 45px rgba(0, 84, 103, 0.12);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin-bottom: 28px;

    border-radius: 18px;

    background: #DDF1F2;
    color: #0D7F84;

    font-size: 26px;
}

.benefit-card:nth-child(2) .benefit-icon {
    background: #EFE7F7;
    color: #65328A;
}

.benefit-card:nth-child(3) .benefit-icon {
    background: #FCE9F0;
    color: #CE477B;
}

.benefit-card:nth-child(4) .benefit-icon {
    background: #FFF3D7;
    color: #BE8A18;
}

.benefit-title {
    margin: 0 0 18px;

    color: #004E62;

    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.benefit-text {
    margin: 0;

    color: #52636B;

    font-size: 14px;
    line-height: 1.85;
}


/* ==========================================
   04. ETAPAS DA PARCERIA
========================================== */

.partners-process {
    position: relative;
    padding: 115px 7%;
    background: #FFFFFF;
}

.partners-process-container {
    max-width: 1350px;
    margin: 0 auto;
}

.partners-process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 75px;
}

.partners-process-content {
    min-width: 0;
}

.partners-process-content .partners-section-title {
    margin-bottom: 38px;
}

.partners-process-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.process-item {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 16px;

    background: #DDF1F2;
    color: #0D7F84;

    font-size: 16px;
    font-weight: 800;
}

.process-item h3 {
    margin: 0 0 9px;

    color: #004E62;

    font-size: 19px;
    font-weight: 800;
}

.process-item p {
    margin: 0;

    color: #52636B;

    font-size: 15px;
    line-height: 1.8;
}

/* Bloco visual */

.partners-visual {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 530px;
    padding: 48px;

    border-radius: 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(124, 224, 223, 0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0D7F84 0%,
            #005467 55%,
            #003E50 100%
        );

    box-shadow: 0 22px 55px rgba(0, 84, 103, 0.16);
}

.partners-visual::before {
    content: "";
    position: absolute;

    width: 320px;
    height: 320px;

    top: -120px;
    right: -120px;

    border: 55px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;

    pointer-events: none;
}

.partners-visual-badge {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);

    color: #FFFFFF;
    font-size: 40px;

    backdrop-filter: blur(8px);
}

.partners-visual-content {
    position: relative;
    z-index: 2;
}

.partners-visual .visual-tag {
    display: inline-flex;
    align-items: center;

    padding: 9px 16px;
    margin-bottom: 22px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);

    color: #BCE8E8;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.partners-visual-content h2 {
    max-width: 450px;
    margin: 0 0 22px;

    color: #FFFFFF;

    font-size: clamp(32px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.partners-visual-content p {
    max-width: 460px;
    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 16px;
    line-height: 1.8;
}


/* ==========================================
   05. CARROSSEL DAS ESCOLAS PARCEIRAS
========================================== */

.partners-logos {
    position: relative;

    padding: 105px 0 115px;

    background: #FFFFFF;
    overflow: hidden;
}

.partners-logos-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 6%;
}

.partners-logos-head {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

/* Área visível do carrossel */

.partners-logo-carousel {
    position: relative;

    width: 100%;
    overflow: hidden;

    padding: 20px 0;

    background: #FFFFFF;

    /*
      Esconde a entrada e saída das logos
      com um degradê suave nas laterais.
    */

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 9%,
        #000 91%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 9%,
        #000 91%,
        transparent 100%
    );
}

/* Faixa que se movimenta */

.partners-logo-track {
    --logo-gap: 35px;

    display: flex;
    align-items: center;

    gap: var(--logo-gap);
    width: max-content;

    animation: partnersLogoScroll 40s linear infinite;

    will-change: transform;
}

/* Cada grupo possui as nove logos */

.partners-logo-group {
    display: flex;
    align-items: center;
    gap: var(--logo-gap);

    flex-shrink: 0;
}

/* Espaço de cada logo */

.partners-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 210px;

    width: 210px;
    height: 135px;

    padding: 12px;

    background: #FFFFFF;
}

/* Imagem */

.partners-logo-item img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 105px;

    object-fit: contain;

    transition: transform 0.35s ease;
}

.partners-logo-item:hover img {
    transform: scale(1.07);
}

/* Pausa ao passar o mouse ou focar */

.partners-logo-carousel:hover .partners-logo-track,
.partners-logo-carousel:focus-within .partners-logo-track {
    animation-play-state: paused;
}

/*
   Como os dois grupos são idênticos,
   percorremos a largura de um grupo
   mais o espaço entre os grupos.

   Isso evita o salto no reinício.
*/

@keyframes partnersLogoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(
            calc(-50% - var(--logo-gap) / 2)
        );
    }
}


/* ==========================================
   06. CTA - SEJA UMA ESCOLA PARCEIRA
========================================== */

.partners-cta {
    position: relative;

    padding: 85px 6% 105px;

    background: #F2F9FA;
}

.partners-cta-container {
    max-width: 1350px;
    margin: 0 auto;
}

.partners-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;

    padding: 50px 55px;

    background: linear-gradient(
        135deg,
        #005467 0%,
        #003E50 100%
    );

    border-radius: 30px;

    box-shadow: 0 20px 45px rgba(0, 84, 103, 0.15);
}

.partners-cta-text {
    max-width: 750px;
}

.partners-cta-text .section-kicker {
    margin-bottom: 20px;

    background: rgba(255, 255, 255, 0.14);
    color: #C6EEEE;
}

.partners-cta-text .section-title {
    margin: 0 0 20px;

    color: #FFFFFF;
}

.partners-cta-text .section-title span {
    color: #7CE0DF;
}

.partners-cta-text .section-text {
    margin: 0;

    color: rgba(255, 255, 255, 0.85);
}

/* Botão WhatsApp */

.partners-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    flex-shrink: 0;

    padding: 18px 27px;

    background: #0D7F84;
    color: #FFFFFF;

    border-radius: 50px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.partners-whatsapp-btn:hover {
    transform: translateY(-3px);

    background: #0A979C;

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}


/* ==========================================
   TABLET - ATÉ 1100PX
========================================== */

@media (max-width: 1100px) {

    .partners-hero {
        padding: 100px 6% 130px;
    }

    .partners-story {
        padding: 90px 6% 100px;
    }

    .partners-story-card {
        padding: 50px;
    }

    .partners-benefits {
        padding: 95px 6% 105px;
    }

    .partners-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .partners-process {
        padding: 95px 6%;
    }

    .partners-process-grid {
        gap: 40px;
    }

    .partners-visual {
        min-height: 490px;
        padding: 35px;
    }

    .partners-logos {
        padding: 90px 0 100px;
    }

    .partners-cta-box {
        padding: 42px;
    }

}


/* ==========================================
   TABLET MENOR - ATÉ 900PX
========================================== */

@media (max-width: 900px) {

    .partners-process-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .partners-visual {
        min-height: 430px;
    }

    .partners-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* ==========================================
   MOBILE - ATÉ 768PX
========================================== */

@media (max-width: 768px) {

    /* HERO */

    .partners-hero {
        min-height: auto;
        padding: 95px 7% 120px;
    }

    .partners-hero::before {
        width: 250px;
        height: 250px;

        top: -120px;
        right: -100px;

        border-width: 45px;
    }

    .partners-kicker {
        padding: 10px 16px;
        margin-bottom: 23px;
        font-size: 11px;
    }

    .partners-main-title {
        margin-bottom: 22px;

        font-size: clamp(32px, 8vw, 42px);
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .partners-main-text {
        font-size: 14px;
        line-height: 1.75;
    }

    .partners-hero-wave {
        height: 70px;
    }

    /* COMO FUNCIONA */

    .partners-story {
        padding: 75px 6% 85px;
    }

    .partners-story-head {
        margin-bottom: 35px;
    }

    .partners-chip {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .partners-section-title {
        font-size: clamp(29px, 8vw, 39px);
    }

    .partners-story-card {
        padding: 35px 26px;
        border-radius: 22px;
    }

    .partners-story-card::before {
        width: 5px;
    }

    .partners-story-content p {
        margin-bottom: 22px;

        font-size: 14px;
        line-height: 1.85;
    }

    /* BENEFÍCIOS */

    .partners-benefits {
        padding: 80px 6% 90px;
    }

    .partners-benefits-head {
        margin-bottom: 40px;
    }

    .partners-page .section-kicker {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .partners-page .section-title {
        margin-bottom: 18px;

        font-size: clamp(29px, 8vw, 39px);
    }

    .partners-page .section-text {
        font-size: 14px;
        line-height: 1.75;
    }

    .partners-benefits-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .benefit-card {
        padding: 32px 27px;
        border-radius: 22px;
    }

    .benefit-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 22px;

        font-size: 24px;
        border-radius: 16px;
    }

    .benefit-title {
        margin-bottom: 15px;
        font-size: 21px;
    }

    .benefit-text {
        font-size: 14px;
        line-height: 1.8;
    }

    /* ETAPAS */

    .partners-process {
        padding: 85px 6%;
    }

    .partners-process-grid {
        gap: 40px;
    }

    .partners-process-content .partners-section-title {
        margin-bottom: 30px;
    }

    .partners-process-list {
        gap: 25px;
    }

    .process-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .process-number {
        width: 48px;
        height: 48px;

        border-radius: 14px;
        font-size: 14px;
    }

    .process-item h3 {
        font-size: 17px;
    }

    .process-item p {
        font-size: 14px;
        line-height: 1.75;
    }

    .partners-visual {
        min-height: 390px;
        padding: 30px;
        border-radius: 24px;
    }

    .partners-visual-badge {
        width: 70px;
        height: 70px;

        border-radius: 20px;
        font-size: 31px;
    }

    .partners-visual .visual-tag {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .partners-visual-content h2 {
        margin-bottom: 17px;
        font-size: 30px;
    }

    .partners-visual-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    /* CARROSSEL */

    .partners-logos {
        padding: 80px 0 90px;
    }

    .partners-logos-head {
        margin-bottom: 40px;
    }

    .partners-logo-carousel {
        padding: 12px 0;

        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );
    }

    .partners-logo-track {
        --logo-gap: 20px;
        animation-duration: 32s;
    }

    .partners-logo-item {
        flex-basis: 155px;

        width: 155px;
        height: 110px;

        padding: 8px;
    }

    .partners-logo-item img {
        max-height: 85px;
    }

    /* CTA */

    .partners-cta {
        padding: 70px 6% 90px;
    }

    .partners-cta-box {
        padding: 32px 25px;
        border-radius: 22px;
        gap: 28px;
    }

    .partners-cta-text .section-title {
        font-size: 30px;
    }

    .partners-whatsapp-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 13px;
    }

}


/* ==========================================
   CELULARES MENORES - ATÉ 380PX
========================================== */

@media (max-width: 380px) {

    .partners-hero {
        padding: 80px 6% 110px;
    }

    .partners-main-title {
        font-size: 30px;
    }

    .partners-main-text {
        font-size: 13px;
    }

    .partners-story-card {
        padding: 30px 21px;
    }

    .partners-visual {
        min-height: 410px;
        padding: 25px;
    }

    .partners-visual-content h2 {
        font-size: 28px;
    }

    .partners-logo-item {
        flex-basis: 135px;
        width: 135px;
        height: 100px;
    }

    .partners-logo-item img {
        max-height: 75px;
    }

    .partners-cta-box {
        padding: 28px 22px;
    }

}


/* ==========================================
   ACESSIBILIDADE
========================================== */

@media (prefers-reduced-motion: reduce) {

    .partners-hero-container {
        animation: none;
    }

    .benefit-card,
    .partners-whatsapp-btn,
    .partners-logo-item img {
        transition: none;
    }

    .partners-logo-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .partners-logo-track {
        animation: none;
    }

    .partners-logo-group[aria-hidden="true"] {
        display: none;
    }

}
