/* ==========================================================================
   01. VARIÁVEIS (DESIGN SYSTEM)
   ========================================================================== */
:root {
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Ubuntu', sans-serif;
    
    /* Cores Principais */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-discover: #084222;
    --color-plan: #8f2317;
    --color-events: #fdd8a4;
    --color-link-hover: #87cefa;
    --color-video-overlay: rgba(0, 0, 0, 0.4);
    
    /* Sombras e Transições */
    --shadow-text: 0px 4px 4px rgba(0, 0, 0, 0.25);
    --shadow-box: 0 4px 15px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

/* ==========================================================================
   02. RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-black);
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

/* a:hover {
    text-decoration: underline;
} */

/* ==========================================================================
   04. HERO SECTION (VÍDEO)
   ========================================================================== */
.hero-section {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-section-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Controles de Vídeo */
.video-controls {
    position: absolute;
    bottom: 120px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-video-overlay);
    padding: 5px 10px;
    border-radius: 20px;
}

.video-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.video-btn img {
    width: 25px;
    height: 25px;
    filter: invert(1);
    display: block;
}

input[type=range] {
    -webkit-appearance: none;
    width: 80px;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--color-white);
    cursor: pointer;
    margin-top: -4px;
}

.video-copyright {
    position: absolute;
    bottom: 120px;
    right: 20px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* ==========================================================================
   05. ESTRUTURA GERAL DAS SEÇÕES (DRY)
   ========================================================================== */
.content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 100vh;
    background: transparent;
    width: 100%;
    max-width: 100%;
}

/* Agrupamento de regras comuns de layout para seções */
.discover-section,
.plan-section,
.events-section {
    width: 100%;
    max-width: 100%;
    min-height: 90vh;
    padding: 60px 20px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 0;
}

/* Modificadores de Fundo */
.discover-section { background: var(--color-discover); }
.plan-section { background: var(--color-plan); }
.events-section { background: var(--color-events); }

/* Títulos das Seções */
.section-title {
    font-family: var(--font-secondary);
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    color: var(--color-white);
}

.section-subtitle {
    font-size: 30px;
    text-align: center;
    color: var(--color-white);
}

/* ==========================================================================
   06. COMPONENTES: CARDS E MOSAICOS
   ========================================================================== */
.cards-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Base do Card */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-decoration: none;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
}

/* Imagens Circulares e Mosaico (Regras Comuns) */
.circle-image,
.mais-mosaico {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-box);
    transition: transform var(--transition-speed) ease;
}

/* Imagem Única */
.circle-image {
    margin: 0 auto;
    background-size: cover;
    background-position: center;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Mosaico */
.mais-mosaico {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}

.mais-mosaico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efeitos de Hover nas Imagens */
.card:hover .circle-image,
.card:hover .mais-mosaico {
    transform: scale(1.1);
}

/* Tipografia dos Cards */
.card-title {
    font-size: 38px;
    font-weight: normal;
    text-align: center;
    line-height: 1.2;
    min-height: 2.4em;
    color: var(--color-white);
}

.card-link {
    font-size: 23px;
    font-weight: bold;
    color: var(--color-white);
    transition: color var(--transition-speed) ease;
}

/* Ajustes Específicos para a Plan Section */
.plan-section .card-title {
    font-weight: bold;
    margin-top: 10px;
}

.plan-section .card-link {
    color: var(--color-events);
    font-size: 24px;
}

/* Hover Links */
.card-link:hover,
.plan-section .card-link:hover {
    color: var(--color-link-hover);
    text-decoration: none;
}

/* ==========================================================================
   07. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* Telas Médias e Tablets */
@media (max-width: 991px) {
    .main-nav ul {
        gap: 15px;
    }
    .main-nav a {
        font-size: 20px;
    }
    .section-title {
        font-size: 42px;
    }
    .section-subtitle {
        font-size: 24px;
    }
    .card-title {
        font-size: 32px;
    }
}

/* Mobile (Celulares no modo retrato) */
@media (max-width: 768px) {
    .discover-section,
    .plan-section,
    .events-section {
        padding: 40px 15px 150px;
        gap: 30px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .cards-container {
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 280px;
        padding: 10px;
    }

    .circle-image, 
    .mais-mosaico {
        width: 180px;
        height: 180px;
    }

    .card-title {
        font-size: 28px;
        min-height: auto;
    }

    .video-controls,
    .video-copyright {
        bottom: 100px;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 28px;
    }

    .card {
        max-width: 100%;
    }

    .circle-image, 
    .mais-mosaico {
        width: 150px;
        height: 150px;
    }

    .video-controls {
        left: 10px;
        bottom: 40px;
        transform: scale(0.9);
        transform-origin: left bottom;
        bottom: 100px;
        z-index: 99;
    }

    .video-copyright {
        right: 10px;
        bottom: 100px;
        font-size: 10px;
    }
}

/* * {
    outline: 1px solid red;
} */