/* reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--cor-secundaria);
}

:root {
    --cor-principal: #cb2724;
    --cor-secundaria: #FEFDFD;
    --cor-fundo: #040102;
}

@font-face {
    font-family: 'Milker';
    src: url(./fonts/Milker.otf);
}

/* header */
.cabecalho {
    background: var(--cor-principal);
    display: flex;
    align-items: center; /* antes align-self */
    justify-content: space-between;
    padding: 10px 20px;
    width: 100%;
    max-height: 180px;
}

.cabecalho h1{
    font-family: 'Milker';
    font-size: 3.5rem;
}

/* logo e imagens */
.logo {
    max-width: 150px;
    height: auto;
}

header img {
    max-width: 100px;
    height: auto;
}

/* contatos */
.cabecalho .contatos {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    min-width: 200px; 
    width: auto;
}


.cabecalho .contatos a img,.whats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    transition: transform 0.25s ease, background-color 0.25s;
    border-radius: 12px;
}
.cabecalho .contatos a .instagram:hover,
.cabecalho .contatos .contato_whats .whats:hover {
    transform: scale(1.08);
}

/* textos de contato */
.contato_whats {
    display: flex;
    gap: 8px;
    align-items: center;
}
.contato_whats p {
    color: #fff;
    font-size: 0.875rem; /* use rem para acessibilidade */
}

/* main */

main{
    background-color: var(--cor-fundo);

    width: 100%;
    height: 100%;
}

main video{
    display: block;
    margin: auto;
    width: auto;
    height: auto;
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    transform: rotate(270deg);
    transform-origin: center center;
}

main video::-webkit-media-controls{
    transform: rotate(270deg);
}

/* cards */

.sub_titulo{
    text-align: center;
    color: var(--cor-secundaria);
    font-family: "Milker";
    font-size: 2rem;
    margin: 20px 0;
}

.cards{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    padding: 20px

}

.card{
    background-color: var(--cor-principal);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    margin: 15px;
    padding: 20px;
    width: 350px;
    height: 450px;

    transition: transform 0.25s ease, box-shadow 0.25s;
}
.card:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card_text{
    text-align: center;
}

.card_text h2{
    color: var(--cor-fundo);
    padding: 10px;
    font-family: "Milker";
}

.cards img{
    width: 300px;
    height: 300px;

    display: flex;
}

.container_local{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;

    background-color: var(--cor-principal);
    width: 80%;
    height: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    margin: auto;
}

.container_local .texto_local{
    color: var(--cor-secundaria);
    font-family: "Milker";
    text-align: center;
}

.container_local .texto_local h3{
    font-size: 2rem;
    padding-bottom: 70px;
}

/* horários (tabela responsiva) */
.table_horarios {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
    overflow-x: auto; /* permite rolagem em telas pequenas */
    -webkit-overflow-scrolling: touch;
}

/* estrutura da tabela */
.table_horarios table {
    width: 100%;
    min-width: 820px; /* forçar scroll em telas pequenas */
    border-collapse: collapse;
    background: transparent;
    font-family: "Milker", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* cabeçalho fixo (sticky) */
.table_horarios thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, var(--cor-principal), color-mix(in srgb, var(--cor-principal) 85%, black));
    color: var(--cor-secundaria);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 18px;
    text-align: center;
    border-bottom: 3px solid rgba(0,0,0,0.15);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* células do corpo */
.table_horarios tbody td {
    padding: 12px 16px;
    text-align: center;
    color: var(--cor-secundaria);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.02); /* leve contraste sobre o fundo escuro */
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background-color 0.18s ease, transform 0.12s ease;
}

/* listras alternadas para legibilidade */
.table_horarios tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

/* destaque ao passar o mouse (desktop) */
.table_horarios tbody tr:hover td {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}



/* acessibilidade: foco por teclado */
.table_horarios tbody td:focus {
    outline: 3px solid rgba(203,39,36,0.25);
    outline-offset: 2px;
}

/* responsividade: reduzir padding e tipografia em telas menores */
@media (max-width: 1024px) {
    .table_horarios table { min-width: 720px; }
    .table_horarios thead th { padding: 12px 14px; font-size: 0.9rem; }
    .table_horarios tbody td { padding: 10px 12px; font-size: 0.9rem; }
}

/* em celulares: permitir scroll horizontal e ajustar tamanhos */
@media (max-width: 768px) {
    .table_horarios {
        padding: 0 10px;
        margin: 20px auto;
    }
    .table_horarios table { min-width: 640px; }
    .table_horarios thead th { font-size: 0.85rem; padding: 10px 12px; }
    .table_horarios tbody td { font-size: 0.88rem; padding: 8px 10px; }
}

/* telas muito pequenas: tornar a tabela compacta */
@media (max-width: 480px) {
    .table_horarios table { min-width: 560px; }
    .table_horarios thead th { font-size: 0.82rem; padding: 8px 10px; }
    .table_horarios tbody td { font-size: 0.82rem; padding: 6px 8px; }
    .table_horarios tbody tr:hover td { transform: none; } /* evitar movimento em telas sensíveis ao toque */
}

/* Responsividade: tablets e celulares */

/* Tablet / pequenos laptops */
@media (max-width: 1024px) {
    .cabecalho h1 { font-size: 2.8rem; }
    .logo { max-width: 120px; }
    header img { max-width: 90px; }
    .cabecalho .contatos { min-width: 160px; gap: 10px; padding: 8px; }
    .cards img { width: 260px; height: 260px; }
    .card { width: 320px; height: auto; }

    main video{
        max-width: 35vh;
    }
}

/* Tablets grande / mobile landscape */
@media (max-width: 768px) {
    /* header empilha e centraliza */
    .cabecalho {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 12px;
    }
    .cabecalho h1 { font-size: 2.0rem; text-align: center; }
    .logo { max-width: 110px; }

    /* contatos ocupam toda a largura disponível */
    .cabecalho .contatos {
        width: 100%;
        max-width: 420px;
        justify-content: center;
        padding: 8px 12px;
        gap: 8px;
    }
    .cabecalho .contatos a img,
    .whats {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }
    main video {
        transform: rotate(270deg) !important;
        -webkit-transform: rotate(270deg) !important;
        transform-origin: center center;
        width: auto !important;
        height: auto !important;
        max-height: 60vh;
        max-width: 90%;
        object-fit: contain;
    }
    main video::-webkit-media-controls {
        transform: rotate(270deg) !important;
    }    

    /* títulos e seções */
    .sub_titulo { font-size: 1.6rem; padding: 0 12px; }
    .cards {
        flex-direction: column;
        align-items: center;
        padding: 12px;
        gap: 12px;
    }

    /* cards adaptáveis */
    .card {
        width: calc(100% - 40px);
        max-width: 520px;
        height: auto;
        margin: 8px 0;
        padding: 16px;
    }
    .cards img {
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    /* container local */
    .container_local {
        width: 94%;
        padding: 16px;
        margin-top: 20px;
    }
    .container_local .texto_local h3 { padding-bottom: 24px; font-size: 1.6rem; }
}

/* Celulares pequenos */
@media (max-width: 480px) {
    .cabecalho{ 
        padding: 20px; 
    }
    .cabecalho h1 { font-size: 1.6rem; line-height: 1.1; }
    .logo { max-width: 90px; }
    header img { max-width: 70px; }

    .cabecalho .contatos a img,
    .whats {
    
        height: 100%;
        max-height: 300px;
        width: 100%;
        height: auto;
    }

    main video {
    transform: rotate(270deg) !important; 
    -webkit-transform: rotate(270deg) !important;
    transform-origin: center center;
    width: auto !important;
    height: auto !important;
    max-height: 45vh;
    max-width: 80%;
    object-fit: contain;
    }

    .contato_whats p { font-size: 0.8rem; }

    .sub_titulo { font-size: 1.4rem; margin: 16px 0; }

    .card {
        width: calc(100% - 24px);
        padding: 12px;
        margin: 10px 0;
        border-radius: 10px;
    }
    .card_text h2 { font-size: 1.25rem; padding: 6px 0; }

    .cards img { width: 100%; height: auto; display: block; }

    .container_local {
        width: 96%;
        padding: 12px;
        border-radius: 10px;
    }
    .container_local .texto_local h3 { font-size: 1.4rem; padding-bottom: 12px; }

    /* pequenas melhorias de toque */
    .cabecalho .contatos a,
    .cabecalho .contatos .contato_whats {
        touch-action: manipulation;
    }

    .container_local{
        display: flex;
        justify-content: center;
        align-items: center;

        flex-direction: column;
    }
}

@media screen and (max-width: 360px) {
    main video{
        max-height: 30vh;
    }
}
