/* ============================================================
   Interna Cases — Página de Case Individual
   ============================================================ */

/* ----------------------------------------------------------
   Hero do Case
---------------------------------------------------------- */
.case-hero {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 60px 0 0px;
    margin: 0 auto;
    width: 100%;
}

.case-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(-0%);
    width: 80%;
    max-width: 1650px;
    height: 100%;
    background: url(../../images/shape-bg-single-case.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    z-index: -1;
    background-position: center 5%;
}

@media (max-width: 768px) and (min-width: 300px) { 

.case-hero::after {
        background: url(../../images/bg-shape-cases-mobile.png) no-repeat;
        width: 100%;
        background-size: cover;
        background-position: center;
        top: 120px;
        right: 0;
        height: 380px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .case-hero::after {
        background: url(../../images/bg-shape-cases-mobile.png) no-repeat;
        width: 100%;
        background-size: cover;
        background-position: center;
        top: 120px;
        right: 0;
        height: 500px;
    }

    .case-hero__logo {
        min-height: 160px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .case-hero::after {
        background-position: right 12%;
        width: 100%;
        height: 530px;
        top: 118px;
        background-size: contain;
    }
}

@media (min-width: 1281px) and (max-width: 1600px) {
    .case-hero::after {
        background-position: right 12%;
        width: 100%;
        height: 595px;
        top: 80px;
        background-size: contain;
    }
}

@media (min-width: 1601px) {
    .case-hero::after {
        background-position: right 10%;
        width: 100%;
        height: calc(625px + (100vw - 1601px) * 0.204);
        top: calc(95px - (100vw - 1601px) * 0.11);
        background-size: contain;
    }
}

.case-hero__wrapper {
    max-width: 1200px;
    width: 95%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}

.case-hero__info {
    margin-top: 2%;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.case-hero__logo img {
    max-height: 120px;
    width: 100%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-hero__logo--com-fundo {
    backdrop-filter: blur(8px);
    padding: 16px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-hero__logo.fallback-logo img {
    border-radius: 20px;
    border: 2px solid var(--amarelo);
}

/* Métricas */
.case-hero__metricas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}

.case-hero__metrica {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: end;
    width: 100%;
}

.case-hero__metrica-valor {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--terra);
    line-height: 1.1;
    width: 100%;
}

.case-hero__metrica-label {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    color: var(--terra);
    width: 100%;
}

/* Desafio, Solução, Resultado */
.case-hero__descricao {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10%;
    width: 75%;
}

.case-hero__descricao-item h3 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--laranja);
}

.case-hero__descricao-item p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

/* Coluna Direita — Mockups */
.case-hero__mockups {
    width: 60%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 500px;
}

.case-hero__desktop {
    border-radius: 45px;
    border: 10px solid transparent;
    border-right-width: 4px;
    background:
        var(--gradiente-1) padding-box,
        var(--gradiente-1) border-box;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4.5 / 10;
    display: block;
}

/* Custom Scrollbar para o Mockup */
.case-hero__desktop::-webkit-scrollbar {
    width: 6px;
}

.case-hero__desktop::-webkit-scrollbar-track {
    background: transparent;
    margin: 40px 0;
    /* Afasta das bordas arredondadas superior e inferior */
}

.case-hero__desktop::-webkit-scrollbar-thumb {
    background: var(--laranja);
    border-radius: 10px;
}

.case-hero__desktop img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px 32px 0 0;
}

.case-hero__mobile {
    position: relative;
    width: 60%;
    margin-top: 20px;
    z-index: 2;
    border-radius: 45px;
    border: 10px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradiente-2) border-box;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    margin-right: -5%;
}

.case-hero__mobile img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
}

.text-metrica {
    font-size: 24px;
    font-weight: 400;
    margin-left: -5px;
    font-weight: 600;
}

.case-hero__logo {
    min-height: 120px;
}

.bg-shape-cases {
    background: url(../../images/shape-end-cases.svg);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    position: absolute;
    top: -70%;
    right: 0;
    max-width: 1300px;
    height: 100%;
    width: 70%;
}

#container-hero {
    padding: inherit !important;
}

/* ----------------------------------------------------------
   Seção "Confira outras cases"
---------------------------------------------------------- */

.outras-cases {
    background: var(--salmon-100);
    padding: 250px 0 100px;
    position: relative;
}

.outras-cases__wrapper {
    max-width: 1300px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.outras-cases__titulo h2 {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--laranja);
    text-align: center;
}

.outras-cases__swiper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 20px 0 50px;
}

.outras-cases__slide {
    width: 800px;
    max-width: 85vw;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.outras-cases__slide:not(.swiper-slide-active) {
    transform: scale(0.9);
    opacity: 0.5;
}

.outras-cases__card {
    display: block;
    width: 100%;
    border: 8px solid transparent;
    border-radius: 40px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradiente-1) border-box;
    overflow: hidden;
    text-decoration: none;
    position: relative;
}

.outras-cases__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    transition: transform 0.4s ease;
}

.outras-cases__card:hover .outras-cases__img {
    transform: scale(1.06);
}

/* O .cases--hover usa position:absolute;inset:0 mas o trigger padrão
   é .cases--grid__single — precisa replicar para .outras-cases__card */
.outras-cases__card .cases--hover {
    border-radius: 30px;
}

.outras-cases__card:hover .cases--hover {
    opacity: 1;
    pointer-events: auto;
}

/* ----------------------------------------------------------
   Responsividade
---------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .case-hero__wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .case-hero__info {
        flex: none;
        width: 100%;
        max-width: 600px;
        text-align: center;
        align-items: center;
    }

    .case-hero__metricas {
        align-items: center;
    }

    .case-hero__metrica {
        align-items: center;
        text-align: center;
    }

    .case-hero__metrica-valor,
    .case-hero__metrica-label {
        text-align: center;
    }

    .case-hero__descricao {
        text-align: left;
        width: 90%;
        margin-top: 40px;
    }

    .case-hero__mockups {
        width: 100%;
        max-width: 700px;
        justify-content: center;
        min-height: auto;
    }

    .case-hero__desktop {
        width: 90%;
        margin: 0 auto;
    }

    .case-hero__mobile {
        width: 70%;
        margin: 40px auto 20px;
    }

    .outras-cases__slide {
        width: 600px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .case-hero {
        padding: 30px 0 60px;
    }

    .case-hero__wrapper {
        gap: 30px;
    }

    .case-hero__logo img {
        max-width: 250px;
        max-height: 70px;
    }

    .case-hero__metrica-valor {
        font-size: 42px;
    }

    .text-metrica {
        font-size: 22px;
    }

    .case-hero__metrica-label {
        font-size: 18px;
    }

    .case-hero__descricao {
        width: 100%;
        padding: 0 15px;
        margin-top: 30px;
    }

    .case-hero__descricao-item h3 {
        font-size: 48px;
    }

    .case-hero__descricao-item p {
        font-size: 16px;
    }

    .case-hero__mockups {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .case-hero__desktop {
        width: 100%;
        margin: 0 auto;
        border-radius: 30px;
        border-width: 6px;
        overflow-y: hidden;
    }

    .case-hero__mobile {
        width: 85%;
        margin: 30px auto;
        border-radius: 30px;
        border-width: 6px;
    }

    .outras-cases {
        padding: 60px 0 40px;
    }

    .outras-cases__titulo h2 {
        font-size: 36px;
    }

    .outras-cases__slide {
        width: 85vw;
    }

    .outras-cases__card .cases--hover {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        flex-direction: column;
        border-radius: 0 0 22px 22px;
        background: #9A2C00;
        border-radius: 0px;
    }

    .outras-cases__card .cases--hover__esquerda {
        flex: none;
        padding: 30px 20px 10px;
        justify-content: center;
    }

    .outras-cases__card .cases--hover__bg {
        display: none;
    }

    .outras-cases__card .cases--hover__logo {
        transform: none;
        max-height: 90px;
    }

    .outras-cases__card .cases--hover__direita {
        padding: 10px 20px 40px;
        align-items: center;
        text-align: center;
        background: transparent;
        gap: 20px;
    }

    .outras-cases__card .cases--hover__metricas {
        align-items: center;
        gap: 20px;
    }

    .outras-cases__card .cases--hover__metrica {
        align-items: center;
        width: 100%;
    }

    .outras-cases__card .cases--hover__btn {
        align-self: center;
        margin-top: 10px;
    }

    .outras-cases__img {
        border-radius: 22px 22px 0 0;
        transition: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .case-hero__metrica-valor {
        font-size: 36px;
    }

    .text-metrica {
        font-size: 20px;
    }

    .case-hero__descricao-item h3 {
        font-size: 48px;
    }

    .outras-cases__titulo h2 {
        font-size: 28px;
    }

    .outras-cases__card {
        border-radius: 24px;
        border-width: 6px;
    }

    .outras-cases__img {
        border-radius: 18px 18px 0 0;
    }

    .case-hero__mobile {
        width: 90%;
    }

    .case-hero__desktop {
        width: 100%;
    }
}


/* BACKGROUND */

#container-hero::after {
    background: url(../../images/bgcase-01.svg);
}