:root {
    --bg-dark: #080808;
    --bg-darker: #040404;
    --bg-card: #141414;
    --accent-red: #d90429;
    --accent-red-hover: #ef233c;
    --accent-gold: #dab982;
    --text-main: #f1f1f1;
    --text-muted: #a0a0a0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Great Vibes', cursive;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
}

.preloader-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0; 
}

/* --- GLASS NAV --- */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: rgba(8, 8, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 9000;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .glass-nav {
        gap: 1.5rem;
        height: 60px;
    }
    .glass-nav a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

.glass-nav.visible {
    transform: translateY(0);
}

.glass-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.glass-nav a:hover {
    color: var(--accent-gold);
}

/* --- PREMIUM EFFECTS --- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa a glass nav fixa */
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Previne barras vazias caso o video seja contain */
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero {
        height: 75dvh; /* Ajuste fino da altura */
    }.bg-video {
        object-position: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(8,8,8,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 15vw, 6rem); /* Mais agressivo no mobile, limita o máximo no desktop */
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.reveal-mask {
    overflow: hidden;
    display: block;   
    line-height: 1.1;
    padding-bottom: 5px; /* Evita cortar letras longas embaixo */
}

.reveal-mask span {
    display: inline-block;
}

.title span {
    color: var(--accent-red);
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
}

.cta-button.primary:hover {
    background-color: transparent;
    color: var(--accent-red);
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.6);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.cta-button.secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.cta-button.outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 150px 0; /* More extreme white space */
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--text-main);
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* --- ABOUT SECTION --- */
.about {
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text em {
    color: var(--accent-gold);
    font-style: normal;
}

.about-video-container {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PORTFOLIO SECTION --- */
.portfolio {
    background-color: var(--bg-darker);
    overflow: hidden;
}

.portfolio-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Swiper Controls */
.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-gold);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-red);
    color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- BOOKING SECTION --- */
.booking {
    background: linear-gradient(var(--bg-darker), var(--bg-dark));
}

.booking-card {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.booking-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.booking-card .small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--bg-darker);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--accent-red);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    color: #555;
    font-size: 0.8rem;
}

/* --- FAB WHATSAPP --- */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

/* --- ANIMATIONS REMOVED TO PREVENT FLASHING --- */

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(217, 4, 41, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
    }
}

/* Scroll reveal class logic will be handled purely by GSAP */

/* --- FAQ ACCORDION --- */
.faq .accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: left;
    padding: 2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.4s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
    padding-bottom: 2rem;
    color: var(--text-muted);
}

/* --- OVERSIZED CTA --- */
.booking.oversized {
    padding: 200px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.small-text-gold {
    color: var(--accent-gold);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.giant-cta {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 15vw, 10rem); /* Reduzido o mínimo para mobile */
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 3rem;
    white-space: normal; /* Permitir quebra no mobile */
}

@media (max-width: 768px) {
    .giant-cta {
        line-height: 1.1;
    }
}

.oversized-btn {
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
    border-radius: 50px;
}

/* --- MARQUEE --- */
.marquee-section {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-muted);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-group {
        font-size: 1.2rem;
        gap: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: clamp(2.5rem, 15vw, 4rem);
        letter-spacing: -1px;
    }
    
    section {
        padding: 60px 20px; /* Adicionado padding lateral interno */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .preloader-video {
        width: 100vw !important;
        height: 100dvh !important; /* Full height on mobile including address bar areas */
        min-height: 100dvh !important;
        max-height: none !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
    }
    
    .hero {
        height: 70vh;
    }
    
    .swiper-slide {
        width: 260px;
        height: 350px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none; 
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}
