/* --- RESET BÁSICO E DEFINIÇÕES GLOBAIS --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAF9F6;
    color: #202021;
    font-family: "Courier Prime", monospace;
    margin: 0;
    overflow-x: hidden;
    /* Previne scroll horizontal */
}

/* --- FONTES CUSTOMIZADAS --- */
@font-face {
    font-family: "BellGothicStdBlack";
    src: url("/fonts/BellGothicStd-Black.woff2") format("woff2"),
        url("/fonts/BellGothicStd-Black.woff") format("woff"),
        url("/fonts/BellGothicStd-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

/* --- CONTAINER DE SCROLL SNAP --- */
.snap-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* --- ESTILO PADRÃO DAS SEÇÕES (SLIDES) --- */
.fullscreen-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 5rem 2rem;
}

/* --- ESTILOS DE TEXTO --- */
h1 {
    font-family: "BellGothicStdBlack", sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    flex-shrink: 0;
}

p {
    text-transform: lowercase;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

a {
    color: #202021;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #555555;
}

/* --- BOTÕES FIXOS --- */
.back-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 10;
    font-size: 1rem;
    text-transform: lowercase;
}

.lang-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: #202021;
    color: #FAF9F6;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: "Courier Prime", monospace;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.lang-btn:hover {
    background: #555555;
}

/* --- GRIDS DE VÍDEO --- */
.grid-reels,
.grid-youtube {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;

    overflow-y: auto;
    height: 100%;
}

.grid-reels {
    grid-template-columns: repeat(5, 1fr);
}

.grid-youtube {
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    width: 100%;
}

.grid-item iframe,
.grid-item .instagram-media {
    width: 100% !important;
    height: auto;
    min-width: unset !important;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.grid-youtube .grid-item iframe {
    aspect-ratio: 16 / 9;
}

/* --- SEÇÃO DE CONTATO --- */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-links a {
    font-size: 1.2rem;
    text-transform: lowercase;
}

/* --- GRADE DE CLIENTES --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Cria duas colunas */
    gap: 15px 40px;
    /* 15px de espaço vertical, 40px de espaço horizontal */
    width: 100%;
    max-width: 600px;
}

.clients-grid a,
.clients-grid p {
    font-family: "Courier Prime", monospace;
    text-transform: lowercase;
    font-size: 1rem;
    color: #202021;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.clients-grid a:hover {
    color: #555555;
}

/* Ajuste para centralizar o último item da lista de clientes */
.clients-grid p:last-child {
    grid-column: span 2;
    /* Faz este elemento ocupar o espaço de 2 colunas */
    text-align: center;
    /* Garante que o texto fique centralizado */
}

/* --- NAVEGAÇÃO POR PONTOS (DOT NAV) --- */
.dot-nav {
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 10;
}

.dot-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dot-nav li a {
    display: block;
    width: 10px;
    height: 10px;
    background-color: rgba(32, 32, 33, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.dot-nav li a:hover {
    background-color: rgba(32, 32, 33, 1);
    transform: scale(1.2);
}

.dot-nav li a.active {
    background-color: #202021;
    transform: scale(1.5);
}

/* Tooltip (dica de texto) */
.dot-nav li a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    background: #202021;
    color: #FAF9F6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: lowercase;
    white-space: nowrap;
}

/* ================================================================
--- REGRAS DE RESPONSIVIDADE (PARA CELULARES E TABLETS) ---
================================================================
*/
@media (max-width: 768px) {

    .fullscreen-section {
        padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .back-btn {
        top: 20px;
        left: 20px;
    }

    .lang-btn {
        bottom: 15px;
        right: 15px;
    }

    .grid-reels {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .grid-youtube {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    /* Regra para a lista de clientes em telas pequenas */
    .clients-grid {
        grid-template-columns: 1fr;
        /* Vira uma coluna única */
        gap: 10px;
    }

    /* Centraliza o último item no mobile também, caso necessário */
    .clients-grid p:last-child {
        grid-column: span 1;
        /* Volta a ocupar 1 coluna no layout de coluna única */
    }

    .dot-nav {
        display: none;
    }
}