/* 
    ======================================
    CSS RESET & VARIABLES
    ======================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --color-bg: #0a0a0a; /* Dark cinematic background */
    --color-surface: #141414; /* Slightly lighter for cards/panels */
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #e5e5e5; /* Soft white for accents */
    --color-highlight: #c7a972; /* Premium subtle gold/bronze for hover states or borders */
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --container-width: 1400px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-highlight);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 
    ======================================
    HEADER & NAVIGATION
    ======================================
*/
.site-header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: padding 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    display: inline-block;
}

.site-logo {
    height: 40px; /* Cuidado com o tamanho - Altura ideal para visual limpo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
    opacity: 0.9;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav .nav-links {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-highlight);
    transition: width 0.3s ease;
}

.main-nav a.active, .main-nav a:hover {
    color: #fff;
}

.main-nav a.active::after, .main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* 
    ======================================
    HERO SECTION
    ======================================
*/
.hero-section {
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25; /* Opacidade baixa */
    z-index: -1;
    pointer-events: none;
    /* Blur e transição suave nas bordas (sumindo para o fundo escuro) */
    filter: blur(4px);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* 
    ======================================
    GALLERY & VIDEOS
    ======================================
*/
.gallery-section {
    padding-bottom: var(--spacing-lg);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

@media (min-width: 768px) {
    .masonry-grid {
        display: block;
        column-count: 2;
        column-gap: var(--spacing-md);
    }
}
@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

.grid-item {
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

/* Stagger animations for grid items */
.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border-color: rgba(199, 169, 114, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effect for Images */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
}

.view-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

.image-wrapper:hover .view-text {
    transform: translateY(0);
}

/* 
    ======================================
    BUTTONS & FORMS
    ======================================
*/
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-highlight);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(199, 169, 114, 0.2);
}

/* Glass Panels (Admin/Login/Forms) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-highlight);
    background: rgba(255,255,255,0.05);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 
    ======================================
    FOOTER
    ======================================
*/
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--glass-border);
    background: var(--color-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a:hover {
    color: #fff;
}

/* 
    ======================================
    ANIMATIONS
    ======================================
*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
    ======================================
    RESPONSIVE DESIGN
    ======================================
*/
/* Tablets & Small Laptops (até 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-section {
        padding: 5rem 0 3rem 0;
    }
    .masonry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .main-nav.menu-open {
        transform: translateY(0);
    }

    .main-nav .nav-links {
        flex-direction: column;
        text-align: center;
        font-size: 1.8rem;
        gap: 2rem;
    }
    
    .site-logo {
        height: 28px;
    }

    .hero-section {
        padding: 3rem 0 1.5rem 0;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }
}
