/* 1. RESET E VARIÁVEIS */
:root {
    --yellow-solar: #FFC700;
    --blue-pool: #00B4D8;
    --dark-text: #333333;
    --white: #FFFFFF;
    --light-gray: #f4f4f4;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
}

/* 2. ESTILOS GERAIS E DE BOTÕES */
h1, h2 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--dark-text);
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

section {
    padding: 4rem 2rem;
}

.cta-button {
    background-color: var(--yellow-solar);
    color: var(--dark-text);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--blue-pool);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--blue-pool);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--blue-pool);
    color: var(--white);
    transform: translateY(-2px);
}


/* 3. SEÇÕES ESPECÍFICAS (MOBILE-FIRST) */

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 1rem;
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%), 
                      url('images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    filter: blur(4px);
    transform: scale(1.1); 
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

/* HERO BUTTONS CONTAINER */
.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.hero .cta-button-secondary {
    border-color: var(--white);
    color: var(--white);
}

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


/* HIGHLIGHTS SECTION */
.highlights {
    background-color: var(--white);
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.highlights p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.highlights .location-highlight {
    font-size: 1.3rem;
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--blue-pool);
    margin-top: 1rem;
}

/* GALLERY */
.gallery {
    background-color: var(--light-gray);
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}


/* SEÇÃO CONFORTO E VÍDEO */
.conforto-section {
    padding: 0;
    background-color: var(--white); 
}

.conforto-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.video-wrapper-vertical {
    position: relative;
    width: 100%;
    background-color: #000;
}

.video-wrapper-vertical video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    transition: opacity 0.7s ease;
    pointer-events: none; /* Permite cliques através da camada */
}

.amenities-list {
    padding: 4rem 2rem;
    text-align: center;
}

.amenities-intro {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.amenity {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}


/* LOCATION SECTION */
.location {
    background-color: var(--light-gray);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.location .address {
    text-align: center;
}

.location .address p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FINAL CTA */
.final-cta {
    background-color: var(--yellow-solar);
    text-align: center;
}
.final-cta h2 { color: var(--dark-text); }
.final-cta p { margin-bottom: 2rem; }
.final-cta .cta-button { background-color: var(--white); }


/* FOOTER */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--yellow-solar);
}


/* 4. ANIMAÇÕES E RESPONSIVIDADE */

.fade-in { animation: fadeIn 1s ease-in-out forwards; }
.fade-in-delay-1 { animation: fadeIn 1s 0.5s ease-in-out forwards; }
.fade-in-delay-2 { animation: fadeIn 1s 1s ease-in-out forwards; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Media Queries para Telas Maiores --- */

/* Tablet (e Mobile-Landscape) */
@media (min-width: 768px) {
    h2 { font-size: 2.5rem; }
    
    .hero-content h1 { font-size: 3.5rem; }

    .hero-buttons {
        flex-direction: row; 
    }
    .hero-buttons a[href="#localizacao"] { order: 1; }
    .hero-buttons a[href="#galeria-fotos"] { order: 2; }
    .hero-buttons .cta-button { order: 3; }
    .hero-buttons a[href*="instagram.com"] { order: 4; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
    .location .address {
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Layout Desktop para a Seção Conforto (2 colunas) */
    .conforto-section {
        padding: 4rem 2rem; 
    }

    .conforto-wrapper {
        display: grid;
        grid-template-columns: 40% 1fr;
        align-items: center;
        gap: 3.5rem;
    }

    .video-wrapper-vertical {
        height: 75vh; 
        min-height: 550px;
        border-radius: 15px;
        overflow: hidden; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .video-wrapper-vertical video {
        object-fit: cover; /* Faz o vídeo cobrir a área do container no desktop */
        height: 100%;
    }

    /* --- ALTERAÇÃO PRINCIPAL AQUI --- */
    /* Esconde a camada de gradiente no desktop para liberar os controles */
    .video-overlay {
        display: none;
    }

    .amenities-list {
        padding: 0; 
        text-align: left;
    }
    .amenities-list h2, .amenities-intro {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    .amenities-grid {
        margin: 0;
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pequenos ajustes para Footer */
@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* EFEITO DE EXPANSÃO DO VÍDEO (MOBILE-ONLY) */
@media (max-width: 991px) {
    .conforto-section {
        padding: 4rem 0; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .conforto-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .video-wrapper-vertical {
        width: 90%; 
        margin: 0 auto; 
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        overflow: hidden; 
        transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* Estado "EXPANDIDO" - Ativado via JavaScript */
    .video-wrapper-vertical.is-expanded {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}