/* ===========================================================
    🌎 STYLE GLOBAL — Paraíso das Cachoeiras BR (Versão Final e Corrigida)
    =========================================================== */

/* ==========================
    🧱 RESET E BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --verde: #014421;
    --verde-claro: #027a4a;
    --branco: #ffffff;
    --cinza: #f9f9f9;
    --texto: #333;
    --accent: #ffffff;
    --glass: rgba(255, 255, 255, 0.12);
    --glass-dark: rgba(0, 0, 0, 0.45);
    --site-max: 1100px;
}

body {
    background: var(--cinza);
    color: var(--texto);
    line-height: 1.6;
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Previne o scroll quando o menu mobile está aberto */
body.no-scroll {
    overflow: hidden;
}

/* ==========================
    🔝 HEADER E NAVEGAÇÃO (DESIGN PC)
========================== */

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    /* ALTERADO: Aumenta o padding vertical para "abaixar" o conteúdo */
    padding: 20px 28px; /* Era 8px 28px. Aumentei para 20px 28px */
    transition: background-color 300ms ease, box-shadow 300ms ease, padding 200ms ease;
    background: transparent;
}

/* O .header-nav.scrolled também precisa de um ajuste para ter um padding coerente */
.header-nav.scrolled {
    background: var(--verde); 
    box-shadow: 0 6px 20px rgba(12, 18, 20, 0.12);
    backdrop-filter: blur(6px);
    /* ALTERADO: Mantendo um padding um pouco menor ao rolar */
    padding: 12px 28px; /* Pode ajustar este valor também se quiser */
}
/* LOGO */
.header-nav .brand {
    display: flex;
    align-items: center;
    margin-right: 20px; 
}

/* Estilos base para ambas as logos */
.logo-cabana {
    height: 90px;
    width: auto;
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Logo 1: Para Header Transparente (VISÍVEL POR PADRÃO) */
.logo-cabana.logo-transparente {
    display: block; 
}

/* Logo 2: Para Header Verde (scrolled) (INVISÍVEL POR PADRÃO) */
.logo-cabana.logo-scrolled-hidden {
    display: none; 
}

/* --- LÓGICA DE TROCA DE LOGO QUANDO SCROLLED É ATIVO --- */
.header-nav.scrolled .logo-cabana.logo-scrolled-hidden {
    display: block; /* MOSTRA A LOGO para fundo verde */
}

.header-nav.scrolled .logo-cabana.logo-transparente {
    display: none; /* ESCONDE A LOGO para fundo transparente */
}


/* MENU HORIZONTAL (Design PC) */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute; /* Tira do fluxo para manter o alinhamento 'space-between' da logo e menu */
    right: 28px; /* Posiciona no canto direito */
}

.header-nav a {
    text-decoration: none;
    color: var(--branco);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: transform 0.12s ease, color 0.12s ease;
}

.header-nav a:hover {
    transform: translateY(-3px);
    color: #c2ffd1;
}

/* --- ESTILOS DO HAMBURGER (Cor Dinâmica) --- */
.menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    display: none; /* Oculto por padrão em PC */
    flex-direction: column;
    justify-content: space-around;
    z-index: 9999;
}

.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    /* COR PADRÃO (HEADER TRANSPARENTE): Cor de contraste (Verde Escuro) */
    background-color: var(--verde); 
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* COR SCROLLED: Ícone muda para branco quando o header fica verde */
.header-nav.scrolled .icon-bar {
    background-color: var(--branco); 
}

/* Efeito X ao abrir o menu */
.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
    background-color: var(--branco); 
}
.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
    background-color: var(--branco);
}

/* OCULTAR ELEMENTOS MOBILE NO PC */
.menu-mobile-header,
.close-menu-mobile {
    display: none;
}


/* ==========================
    📱 RESPONSIVIDADE (MEDIA QUERIES)
========================== */

@media (max-width: 900px) {

    /* HEADER FIXO E SEMPRE VERDE NO MOBILE */
    .header-nav {
        /* Garante que o header mobile NÃO é transparente, removendo a necessidade de 'scrolled' */
        background: var(--verde) !important; 
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra suave para destacar */
        padding: 10px 20px; 
        flex-direction: row; 
        justify-content: space-between; 
    }

    /* Remove o efeito de troca de cor da logo, pois o fundo é sempre verde */
    .header-nav .logo-cabana.logo-transparente {
        display: none !important; 
    }
    
    .header-nav .logo-cabana.logo-scrolled-hidden {
        display: block !important; /* Mantém a logo CLARA visível */
    }

    /* Logo Mobile */
    .header-nav .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0; 
    }

    .header-nav .brand .logo-cabana {
        height: 50px; 
    }

    /* Botão Hamburger (ícones) deve ser sempre branco */
    .icon-bar {
        background-color: var(--branco) !important; 
    }

    /* Menu Hamburger */
    .menu-toggle {
        display: flex; 
        position: relative; 
        right: 0; 
        z-index: 9999;
    }

    /* --- MENU LATERAL (OFF-CANVAS) --- */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background: rgba(1, 68, 33, 0.98); 
        z-index: 9990;
        
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding-top: 0; 
    }

    /* Menu de Links ABERTO */
    .nav-menu.menu-open {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    /* --- ELEMENTOS EXCLUSIVOS DO MOBILE (Logo Grande e Fechar) --- */
    .menu-mobile-header {
        display: flex; 
        flex-direction: column;
        align-items: center; /* Centraliza horizontalmente */
        padding: 20px 0; 
        position: relative; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
        width: 100%; 
    }

    .menu-logo-mobile {
        max-width: 150px; /* Tamanho ajustado da logo */
        height: auto;    
        display: block;
        margin: 10px auto 20px auto; /* Centraliza a imagem */
    }

    .close-menu-mobile {
        display: block; /* Agora é visível no menu */
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--branco); 
        cursor: pointer;
        padding: 10px;
    }

    /* Estilo dos Links no Menu Mobile */
    .nav-menu a {
        font-size: 1.5rem;
        padding: 15px;
        display: block;
        width: 100%;
        text-align: center;
        color: var(--branco);
        transform: none; 
    }

    .nav-menu a:hover {
        background: var(--verde-claro);
    }
    
    header.hero, .sub-header {
        margin-top: 80px; 
    }
}


/* ==========================
    💻 TABLET
========================== */
@media (min-width: 901px) and (max-width: 1100px) {
    .header-nav .nav-menu {
        gap: 15px;
    }

    .header-nav a {
        font-size: 1rem;
    }
}

/* ==========================
    🏠 HOME / HERO
========================== */

/* BANNER DA HOME */
header.hero {
    background: linear-gradient(to bottom, #014421cc, #000000cc),
        url('img/Captura de tela_28-8-2025_14649_.jpeg') no-repeat center/cover;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 15px;
}

/* BANNER DAS OUTRAS PÁGINAS (Sobre, Acomodações, etc) */
.sub-header {
    background: linear-gradient(to bottom, #014421cc, #000000cc),
        url('img/Captura de tela_28-8-2025_14649_.jpeg') no-repeat center/cover;
    color: white;
    text-align: center;
    border-radius: 15px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.hero-text p {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================
    🧩 SEÇÕES GERAIS
========================== */
section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* ==========================
    🖼️ GALERIA / SWIPER (Adicionado)
========================== */
.galeria {
    /* Garante que o container da galeria se alinhe ao conteúdo principal */
    max-width: 1000px;
}

.galeria .galeria-slider {
    /* Altura base para o slider */
    height: 400px;
    padding: 20px 0; /* Espaço em cima/baixo do slider */
}

.galeria .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Ajuste de cor e tamanho para botões de navegação do Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: var(--verde) !important; 
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 25px;
}

.swiper-pagination-bullet-active {
    background: var(--verde) !important;
}


/* ==========================
    🪵 CARDS (usado no index)
========================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 10px;
}

/* ==========================
    🌿 SEÇÃO "O QUE OFERECEMOS"
========================== */

.sobre-estrutura {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    max-width: 900px;
    margin: 60px auto;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-estrutura:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sobre-estrutura h2 {
    font-size: 2rem;
    color: #014421;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.sobre-estrutura h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #014421;
    margin: 10px auto 0;
    border-radius: 10px;
}

.sobre-estrutura ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.sobre-estrutura li {
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.sobre-estrutura li:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.sobre-estrutura li::before {
    content: "🌿";
    font-size: 1.4rem;
    margin-right: 12px;
}

/* Removendo marcadores duplicados do seu código original */
.sobre-estrutura li:nth-child(1)::before,
.sobre-estrutura li:nth-child(2)::before,
.sobre-estrutura li:nth-child(3)::before,
.sobre-estrutura li:nth-child(4)::before,
.sobre-estrutura li:nth-child(5)::before {
    content: "🌿"; 
}


/* ==========================
    🏡 SEÇÃO NOSSA HISTÓRIA
========================== */

.sobre-historia {
    max-width: 900px;
    margin: 80px auto;
    background: #ffffff;
    padding: 50px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-historia:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sobre-historia h2 {
    font-size: 2.2rem;
    color: #014421;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.sobre-historia h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #014421;
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
}

.sobre-historia p {
    font-size: 1.1rem;
    text-align: justify;
    color: #444;
    margin-top: 10px;
}

/* Animação suave na entrada */
.sobre-historia {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-sobre {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.video-sobre video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
    transition: all 0.3s ease;
}

/* ==========================
    💬 DEPOIMENTOS
========================== */

.depoimentos {
    max-width: 1000px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.depoimentos h2 {
    color: #014421;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.depoimentos h2::after {
    content: "";
    width: 90px;
    height: 4px;
    background: #014421;
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
}

.depoimentos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.depoimento {
    background: #fff;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.depoimento:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.depoimento::before {
    content: "“";
    font-size: 4rem;
    color: #014421;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 15px;
}

.depoimento p {
    font-style: italic;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 10px;
}

.depoimento span {
    display: block;
    text-align: right;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}


/* ==========================
    💌 FORMULÁRIO DE CONTATO
========================== */
#contato-form {
    background: #ffffff;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

#contato-form h2 {
    color: var(--verde);
    margin-bottom: 10px;
}

#contato-form p {
    color: #555;
    margin-bottom: 25px;
}

.form-contato .campo {
    text-align: left;
    margin-bottom: 15px;
}

.form-contato label {
    display: block;
    font-weight: 600;
    color: var(--verde);
    margin-bottom: 5px;
}

.form-contato input,
.form-contato textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-contato input:focus,
.form-contato textarea:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 5px rgba(0, 123, 85, 0.4);
}

.btn-enviar {
    background: var(--verde);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background: var(--verde-claro);
    transform: scale(1.03);
}

/* ==========================
    ⚙️ RODAPÉ (FOOTER)
========================== */
footer {
    background: var(--verde);
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ==========================
    📱 RESPONSIVIDADE GERAL
========================== */
@media (max-width: 768px) {
    section {
        padding: 30px 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* ==========================
    🗺 LOCALZIÇÃO
========================== */

.localizacao h2{
    color: #014421;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.localizacao h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #014421;
    display: block;
    margin: 10px auto 0;
}