:root{
    --main-bg-color: #003459;
    --sec-bg-color: #006687;
    /* altura reservada = padding vertical do nav + linha dos itens */
    --header-offset: calc(24px + 24px + 2.75rem);
    /*#261447*/
}

@font-face {
    font-family: 'Open Sans';
    src: url('/Zyon-project/Open_Sans/static/OpenSans-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    max-width: calc(100vw - 15px);
}

/* Faixa total da viewport: o * acima limitava header/footer/body */
html,
body{
    max-width: none;
    width: 100%;
}

header,
header *,
footer,
footer *{
    max-width: none;
}

body{
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--main-bg-color), var(--sec-bg-color)) ;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
}

main{
   width: min(100%, 90%);
    max-width: calc(100vw - 15px);
    margin-inline: auto;
    margin-block: 0;
    padding-top: var(--header-offset);
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 1 0 auto;
}


img {
    max-width: 100%;
    height: auto; /* mantém proporção */
    display: block;
  }

.logo{
    font-family: "Petit Formal Script";
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    color: white;
    text-align: center;
    justify-self: center;
    white-space: nowrap;
    line-height: 1;
}


/* Header + nav: fixed no header para o fluxo reservar altura coerente ao compensar o main */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 52, 89, 0.367);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

/* Mobile first: imagem acima do formulário (HTML: form → img; column-reverse coloca o 2º filho no topo) */
.intro{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: clamp(24px, 6vw, 50px);
    margin-top: 25px;
    margin-bottom: 100px;
    width: 100%;
}

nav{
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: clamp(12px, 3vw, 20px) clamp(14px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat';
}

.nav-link{
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(48px, 12vw, 64px);
    justify-content: center;
    align-items: center;
    min-width: 0;
}
    
.nav-link a i{
    color: white;
    scale: 1.25 ;
}
.fa-instagram:hover{
    color: rgb(199, 0, 185);
}

.fa-youtube:hover{
    color: red;
}

.fa-tiktok:hover{
    color: black;
}

.nav-list{
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 14px);
    min-width: 0;
}
    
    .nav-list li{
        display: flex;
        align-items: center;
    }
    
    .nav-list li a{
    text-decoration: none;
    font-size: 0.66rem;
    padding: 4px;
    border-radius: 30px;
    color: white;
    text-align: center;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.nav-list li a:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    outline: 1px solid white;
    
    cursor: pointer;
}


.intro img{
    border-radius: 20px;
    width: 100%;
    max-width: min(100%, 420px);
    height: 400px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Wide cards — mobile primeiro (deve vir antes dos media queries do tablet) */

.wide-cards{
    margin-bottom: clamp(80px, 18vw, 150px);
    width: 100%;
    max-width: 1000px;
    background: rgba(0, 18, 33, 0.586);
    padding: clamp(14px, 4vw, 20px);
    border-radius: 20px;
    border: 1px solid black;
}

.wide-cards:last-of-type{
    margin-bottom: clamp(80px, 18vw, 150px);
}

/* Mobile: coluna — imagem em cima, texto em baixo; sem appearX / appearY */
.wide-cards > div{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.wide-cards img{
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 3;
    border-radius: 20px;
    object-fit: cover;
    animation: none;
}

.wide-cards-text{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.wide-cards span{
    animation: none;
    opacity: 1;
    transform: none;
}

.wide-cards-text span:first-of-type{
font-size: 24px;
font-weight: 700;
}

/* Base do marquee (mobile); breakpoints abaixo redefinem o mesmo nome */
@keyframes move{
    to{
        left: -250px;
    }
}

/* Tablet: mesmo layout que antes do desktop, tamanhos médios */
@media (min-width: 762px){

    .intro{
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(24px, 4vw, 48px);
        max-width: min(1200px, 100%);
        margin-inline: auto;
    }

    /* Form à esquerda, imagem à direita (ordem do HTML); lado a lado sem quebrar linha */
    .intro > .container-form{
        flex: 1 1 min(480px, 48%);
        min-width: 0;
        margin-bottom: 0;
        width: min(100%, 480px);
        max-width: min(480px, 100%);
        min-height: 400px;
        height: auto;
    }

    .intro > div:last-child{
        flex: 1 1 min(280px, 48%);
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* Mesma altura que o formulário: coluna estica com .intro e a imagem preenche */
    .intro > div:last-child img{
        width: 100%;
        max-width: 100%;
        max-height: none;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        aspect-ratio: unset;
        object-fit: cover;
    }
    
    .nav-list li a{
        font-size: 16px;
        padding: 8px;
    }

    .nav-link a i{
        scale: 1.5;
    }

    .wide-cards, .marquee{
        font-family: 'Open Sans';
    }

    .wide-cards > div{
        flex-direction: row;
        align-items: center;
    }

    .wide-cards--reverse > div{
        flex-direction: row-reverse;
    }

    .wide-cards img{
        height: clamp(220px, 28vw, 280px);
        width: min(100%, 420px);
        aspect-ratio: auto;
        animation: appearX linear;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .wide-cards-text{
        animation: appearY linear;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    @keyframes move{
        to{
            left: -300px;
        }
    }
}


/* Desktop: apenas escala em relação ao tablet */


img{
    max-width: 1000px;
    max-height: 500px;
}

#title{
    margin-top: clamp(50px, 8vw, 75px);
    
    font-size: 40px;
    font-weight: 600;
}

#title, #subtitle{
    text-align: center;
    font-family: 'Montserrat';
    font-weight: 400;
    color: #fff;
}

#subtitle{
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Animations para mostrar os wide cards*/

@keyframes appearX {
    from{
        /* opacity: 0;
        scale: 0.5; */
        transform: translateX(-200px);
    }
    
    to{
        /* opacity: 1;
        scale: 1; */
        transform: translateX(0);
    }

    
}

@keyframes appearY {
    from{
        /* opacity: 0;
        scale: 0.5; */
        transform: translateY(-200px);
        opacity: 0;
    }
    
    to{
        /* opacity: 1;
        scale: 1; */
        transform: translateY(0);
        opacity: 1;
    }

    
}



/* Marquee para mostrar o Zyon em diferentes contextos, explicando para cada nicho de comprador*/

.marquee-cards{
    background-color: rgb(31, 31, 31);
    color: white;
    width: 250px;
    height: 200px;
    border-radius: 20px;
    text-align: center;
    position: absolute;
    left: calc(250px * 5);
    animation: move 30s linear infinite;
    font-size: 12px;
}

.marquee-cards img{
    border-radius: 20px 20px 0px 0px;
    width: 250px;
    height: 150px;
    margin-bottom: 8px;
}





.marquee{
    display: flex;
    gap: 1em;
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 400px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0)
  );
}


#item1{
    animation-delay: calc(30s / 5 *(5 - 1) * -1)
  }
  
  #item2{
    animation-delay: calc(30s / 5 *(5 - 2) * -1)
}
  
  #item3{
    animation-delay: calc(30s / 5 *(5 - 3) * -1)
  }
  #item4{
    animation-delay: calc(30s / 5 *(5 - 4) * -1)
  }
  
  #item5{
    animation-delay: calc(30s / 5 *(5 - 5) * -1)
  }

.container-form{
    font-family: 'Montserrat';
    background: whitesmoke;
    width: 100%;
    max-width: min(100%, 500px);
    color: black;
    border-radius: 10px;
    height: auto;
    min-height: min(400px, 85vh);
    margin-bottom: clamp(24px, 6vw, 50px);
    display: flex;
    justify-content: space-between;
    width: clamp(400px , 10vw, 400px);
    height: clamp(550px, 14vw, 400px);
    align-self: center;
}
button{
    
    font-family: 'Montserrat';
}

.container-form input,
.container-form label{
    font-size: 18px;
    padding: 6px;
    outline: none;
    border-radius: 10px;
}

.container-form input{
    border: 1px solid black;
    font-size: 14px;
    width: 100%;
}

input::placeholder{
    font-size: 14px;
}

#status{
    text-align: center;
}

.container-form label{
    width: 100%;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

#status .error{
    color: #b00020;
    font-size: 14px;
    padding-top: 8px;
}

.container-form form{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    border-radius: 10px;
    padding: 30px;
}

footer{
    width: 100%;
    max-width: none;
    padding: 16px;
    text-align: center;
    background: #1b2631;
    color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
}

.container-form button{
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    
}

button:hover{
    background: #1a1a1a;
    color: white;
}
.register{
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 80px);
    justify-content: center;
    align-items: center;
    
    
   
}


.register img{
    border-radius: 20px;
    
    margin-bottom: clamp(50px, 4vw, 100px);
    align-self: center;
    width: clamp(400px , 14vw, 500px);
    height: clamp(300px, 10vw, 400px);
    margin-bottom: clamp(80px, 18vw, 150px);
}

@media (max-width: 400px){
    .register img{

        width: clamp(350px , 12vw, 400px);
        height: clamp(250px, 8vw, 300px);
    }
}
.marquee-cards:nth-of-type(4) img{
    margin-bottom: 16px;
}
.marquee-cards:nth-of-type(5) img{
    margin-bottom: 16px;
}

@media (min-width: 762px){
    nav{
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        row-gap: 0;
        column-gap: clamp(18px, 5vw, 56px);
    }

    .nav-link{
        justify-self: start;
        justify-content: flex-start;
    }

    .nav-list{
        justify-self: end;
        justify-content: flex-end;
    }

    .marquee-cards:nth-of-type(4) img{
        margin-bottom: 8px;
    }
    .marquee-cards:nth-of-type(5) img{
        margin-bottom: 8px;
    }
    
    
    .register img{
        width: clamp(450px , 16vw, 600px);
        height: clamp(350px, 12vw, 400px);
    }
}
@media (min-width: 1020px){
    
    
    .register{
        flex-direction: row;
        max-width: 80vw;
        margin: 0 auto;
    }
    
    .register img{
        width: clamp(600px , 13vw, 450px);
        height: clamp(500px, 12vw, 400px);
    }

    .container-form{
        height: clamp(500px, 12vw, 400px);
        width: clamp(500px , 13vw, 450px);
        align-self: flex-start;
    }

    .intro{
        flex-direction: row;
    }

    .wide-cards img{
        height: 300px;
        width: min(100%, 500px);
        max-width: 500px;
    }

    .intro > .container-form{
        width: min(100%, 500px);
        max-width: min(500px, 100%);
        min-height: 400px;
        height: auto;
    }

    .marquee-cards{
        background-color: rgb(31, 31, 31);
        color: white;
        width: 300px;
        height: 250px;
        border-radius: 20px;
        text-align: center;
        position: absolute;
        left: calc(300px * 5);
        animation: move 30s linear infinite;
        }

    .marquee-cards img{
        border-radius: 20px 20px 0px 0px;
        width: 300px;
        height: 200px;
        margin-bottom: 8px;
    }

    .marquee-cards:nth-of-type(4) img{
        margin-bottom: 16px;
    }
    .marquee-cards:nth-of-type(5) img{
        margin-bottom: 16px;
    }

    .marquee-cards{
        font-size: 12px;
    }

    @keyframes move{
        to{
            left: -320px;
        }
    }
}
        /* Só tablet: foto maior em relação ao formulário (entre mobile e desktop largo) */
        @media (min-width: 762px) and (max-width: 1019px){
        
            .intro > .container-form{
                flex: 0 1 auto;
                width: min(100%, 360px);
                max-width: min(360px, 40%);
            }
        
            .intro > div:last-child{
                flex: 1 1 0;
                min-width: min(280px, 52%);
            }
        }

@media (min-width: 1021px) and (max-width:1260px){
    .register{
        flex-direction: column;
        
    }
    .container-form{
        align-self: center;
    }
    
    .register img{
        width: clamp(600px , 13vw, 450px);
        height: clamp(500px, 12vw, 400px);
    }

}