html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.tela {
    min-height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(60px);
    will-change: opacity, transform;

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.tela.apareceu {
    opacity: 1;
    transform: translateY(0);
}


/* Quando a tela estiver visível */
.tela h1 {
    transition: transform 0.8s ease;
}

.tela:not(.apareceu) h1 {
    transform: translateY(30px);
}

.tela.apareceu h1 {
    transform: translateY(0);
}

.tela:first-child {
    background-color: transparent;
}

.tela2 {
    background-color: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mainButton {
    background-color: #0f0741;
    padding: 12px 24px 12px 24px;
    border: solid transparent;
    border-radius: 48px;
    color: white;
    text-align: center;
}

.btnDivs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Container da tela 2 alinhado e centralizado */
.tela2 {
    background-color: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px 20px;
}

.titulo-opcao {
    width: 100%;
    max-width: 580px;
    text-align: left;
}

.titulo-opcao h1 {
    font-family: 'League Spartan', sans-serif;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-align: left;
}

.titulo-opcao h1 span {
    color: #0f0741;
}

.btnDivs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 580px;
}

/* Botões em formato Pill (Cápsula) */
.mainButton {
    background-color: #0f0741;
    padding: 22px 28px;
    border-radius: 60px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px rgba(15, 7, 65, 0.15);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    font-size: 1.5rem;
}

.mainButton h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.mainButton p {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Efeitos Interativos */
.mainButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 7, 65, 0.25);
    background-color: #140b54;
}

.mainButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(15, 7, 65, 0.2);
}


/* Container de cada tela precisa de posição relativa */
.tela {
    position: relative;
}

/* Seta animada */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #0f0741;
    border-right: 3px solid #0f0741;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

.tela3 .scroll-arrow span {
    border-bottom-color: #ffbd59 !important;
    border-right-color: #ffbd59 !important;
}

/* Animação de flutuação */
@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.8;
    }

    40% {
        transform: rotate(45deg) translate(8px, 8px);
        opacity: 1;
    }

    60% {
        transform: rotate(45deg) translate(4px, 4px);
        opacity: 0.9;
    }
}


/* Responsividade para telas menores */
@media (max-width: 600px) {
    .titulo-opcao h1 {
        font-size: 2rem;
    }

    .mainButton {
        padding: 18px 20px;
        border-radius: 40px;
    }

    .mainButton h2 {
        font-size: 0.95rem;
    }

    .mainButton p {
        font-size: 0.85rem;
    }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
    .tela {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tela h1 {
        transform: none;
        transition: none;
    }
}


/* ============================================================
   ESTILOS DA TELA 3 (SOBRE)
   ============================================================ */

.tela3 {
    background-color: transparent;
    color: #ffffff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 28px 40px 28px;
}

.tela3 .content-grid {
    display: grid;
    width: 100%;
    max-width: 1420px;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.tela3 .text-box {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 580px;
}

.tela3 .header-title {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2.6rem, 3.8vw, 3.6rem);
    font-weight: 800;
    color: #ffbd59;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.5px;
    text-align: left;
}

.tela3 .header-title .brand {
    display: block;
    font-size: clamp(5.6rem, 8vw, 7.8rem);
    color: #f7f2cb;
    margin-top: -4px;
    margin-left: 200px;
    letter-spacing: -2.5px;
    line-height: 0.92;
}

.tela3 .header-title .brand span {
    color: #ffbd59;
}

.tela3 .text-box p {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.28rem, 1.6vw, 1.48rem);
    line-height: 1.6;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    text-align: justify;
    text-align-last: center;
    max-width: 530px;
}

.tela3 .video-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tela3 .video-container img,
.tela3 .video-container video {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.tela3 .video-container img {
    max-height: 540px;
    object-fit: cover;
}

.tela3 .video-container video {
    height: auto;
    object-fit: contain;
}


/* Tela 3 - Tablet */
@media (max-width: 1024px) {

    .tela3 .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tela3 .text-box {
        max-width: 100%;
        gap: 32px;
    }

    .tela3 .text-box p {
        max-width: 100%;
        font-size: 1.25rem;
    }

    .tela3 .header-title .brand {
        margin-left: 80px;
        font-size: clamp(4rem, 10vw, 6rem);
    }

    .tela3 .video-container img {
        max-height: 380px;
    }
}


/* Tela 3 - Mobile */
@media (max-width: 600px) {

    .tela3 {
        padding: 80px 20px 40px 20px;
    }

    .tela3 .header-title {
        font-size: 1.8rem;
    }

    .tela3 .header-title .brand {
        margin-left: 24px;
        font-size: clamp(3.4rem, 14vw, 5rem);
    }

    .tela3 .text-box p {
        font-size: 1.1rem;
    }

    .tela3 .video-container img {
        max-height: 260px;
    }
}


/* ============================================================
   ESTILOS DA TELA 4 (CONTATO)
   ============================================================ */

.tela4 {
    background-color: transparent;
    background-image: url('../images/WEBSITE\ -\ ORBI.png');
    background-repeat: no-repeat;
    background-position: -8vw -1vw;
    background-size: auto 150vh;
    color: #0f0741;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tela4 .contact-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 12%;
}

.tela4 .contact-box {
    max-width: 550px;
    text-align: left;
}

.tela4 .contact-box h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: 3.4rem;
    font-weight: 900;
    color: #0f0741;
    line-height: 1.05;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.tela4 .contact-box p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f0741;
    margin: 0;
}

.tela4 .contact-box p a {
    color: #0f0741;
    font-weight: 800;
    text-decoration: none;
}


/* Tela 4 - Tablet */
@media (max-width: 1024px) {

    .tela4 {
        background-position: -20vw 0;
        background-size: auto 130vh;
    }

    .tela4 .contact-container {
        padding-right: 6%;
    }

    .tela4 .contact-box h1 {
        font-size: 2.6rem;
    }

    .tela4 .contact-box p {
        font-size: 1.25rem;
    }
}


/* Tela 4 - Mobile */
@media (max-width: 600px) {

    .tela4 {
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        background-position: -200vw 0;
        background-size: auto 140vh;
        padding-bottom: 44px;
    }

    .tela4 .contact-container {
        justify-content: flex-end;
        padding: 0 24px 0 0;
    }

    .tela4 .contact-box {
        text-align: left;
        max-width: 65%;
    }

    .tela4 .contact-box h1 {
        font-size: 2rem;
    }

    .tela4 .contact-box p {
        font-size: 1.1rem;
    }
}


/* Tela 4 - Small Mobile (ex: iPhone SE) */
@media (max-width: 380px) {

    .tela4 {
        background-position: -180vw 0;
    }

    .tela4 .contact-container {
        padding: 0 16px 0 0;
    }

    .tela4 .contact-box {
        max-width: 72%;
    }

    .tela4 .contact-box h1 {
        font-size: 1.6rem;
    }

    .tela4 .contact-box p {
        font-size: 0.95rem;
    }
}


/* ============================================================
   MODAL DE SELEÇÃO DE UNIDADE
   ============================================================ */

#overlay-unidade {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(15, 7, 65, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 99999;
}

#overlay-unidade.open {
    display: flex;
}

#overlay-unidade .modal-unidade {
    width: 100%;
    max-width: 540px;

    box-sizing: border-box;

    background: #f7f2cb;
    color: #0f0741;

    border-radius: 28px;

    padding: 34px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.32);

    animation: aparecerModalUnidade 0.25s ease;
}

@keyframes aparecerModalUnidade {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Cabeçalho */

#overlay-unidade .modal-header {
    margin-bottom: 10px;
}

#overlay-unidade .modal-header h2 {
    margin: 0;

    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 800;

    line-height: 1;

    color: #0f0741;
}


/* Corpo */

#overlay-unidade .modal-body {
    display: flex;
    flex-direction: column;
}

#overlay-unidade .texto-selecao-unidade {
    margin: 0 0 24px 0;

    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.5;

    color: #29234b;
}


/* Opções */

#overlay-unidade .opcoes-unidade {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
}


/* Cada unidade */

#overlay-unidade .opcao-unidade {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 20px 22px;

    border: 2px solid rgba(15, 7, 65, 0.16);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.52);
    color: #0f0741;

    text-align: left;

    cursor: pointer;

    font-family: 'Nunito', sans-serif;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#overlay-unidade .opcao-unidade:hover {
    transform: translateY(-2px);

    border-color: #0f0741;

    background: rgba(255, 255, 255, 0.76);

    box-shadow:
        0 7px 18px rgba(15, 7, 65, 0.10);
}


/* Unidade selecionada */

#overlay-unidade .opcao-unidade.selecionada {
    border-color: #0f0741;

    background: #0f0741;

    color: #ffffff;

    box-shadow:
        0 8px 22px rgba(15, 7, 65, 0.22);

    transform: translateY(-2px);
}


/* Nome da unidade */

#overlay-unidade .opcao-unidade-titulo {
    font-family: 'League Spartan', sans-serif;

    font-size: 1.35rem;
    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 6px;
}


/* Descrição da unidade */

#overlay-unidade .opcao-unidade-descricao {
    font-size: 0.92rem;
    font-weight: 500;

    line-height: 1.4;

    opacity: 0.82;
}


/* Botão Continuar */

#overlay-unidade .btn-confirmar-unidade {
    width: 100%;

    margin-top: 22px;

    padding: 17px 24px;

    border: none;
    border-radius: 50px;

    background: #0f0741;
    color: #ffffff;

    font-family: 'League Spartan', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

#overlay-unidade .btn-confirmar-unidade:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15, 7, 65, 0.20);
}

#overlay-unidade .btn-confirmar-unidade:active:not(:disabled) {
    transform: translateY(1px);
}


/* Botão desabilitado */

#overlay-unidade .btn-confirmar-unidade:disabled {
    opacity: 0.42;
    cursor: not-allowed;

    box-shadow: none;
}


/* Mensagem de erro */

#overlay-unidade .mensagem-unidade {
    margin: 16px 2px 0 2px;

    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;

    color: #8b1e1e;
}


/* ============================================================
   MODAL DE UNIDADE - MOBILE
   ============================================================ */

@media (max-width: 600px) {

    #overlay-unidade {
        padding: 14px;
    }

    #overlay-unidade .modal-unidade {
        max-width: 100%;

        padding: 26px 20px;

        border-radius: 24px;
    }

    #overlay-unidade .modal-header h2 {
        font-size: 2rem;
    }

    #overlay-unidade .texto-selecao-unidade {
        font-size: 0.95rem;

        margin-bottom: 18px;
    }

    #overlay-unidade .opcao-unidade {
        padding: 17px 18px;

        border-radius: 17px;
    }

    #overlay-unidade .opcao-unidade-titulo {
        font-size: 1.2rem;
    }

    #overlay-unidade .opcao-unidade-descricao {
        font-size: 0.84rem;
    }

    #overlay-unidade .btn-confirmar-unidade {
        padding: 15px 20px;

        font-size: 1.05rem;
    }
}


/* ============================================================
   MODAL DE UNIDADE - CELULARES PEQUENOS
   ============================================================ */

@media (max-width: 380px) {

    #overlay-unidade {
        padding: 10px;
    }

    #overlay-unidade .modal-unidade {
        padding: 22px 16px;

        border-radius: 20px;
    }

    #overlay-unidade .modal-header h2 {
        font-size: 1.75rem;
    }

    #overlay-unidade .opcoes-unidade {
        gap: 10px;
    }

    #overlay-unidade .opcao-unidade {
        padding: 15px;
    }

    #overlay-unidade .opcao-unidade-titulo {
        font-size: 1.1rem;
    }

    #overlay-unidade .opcao-unidade-descricao {
        font-size: 0.78rem;
    }

    #overlay-unidade .btn-confirmar-unidade {
        margin-top: 17px;
        padding: 14px 18px;
    }
}


/* ============================================================
   REDUÇÃO DE MOVIMENTO - MODAL DE UNIDADE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    #overlay-unidade .modal-unidade,
    #overlay-unidade .opcao-unidade,
    #overlay-unidade .btn-confirmar-unidade {
        animation: none;
        transition: none;
    }
}