/* ==========================================================================
   Design System & Premium Glassmorphism Theme
   ========================================================================== */

:root {
    /* Colors - 60/30/10 Palette */

    /* 60% - Base (Respiro) */
    --color-sand: #FDF2E9;
    /* Areia Quente */
    --color-sand-shadow: rgba(230, 208, 186, 0.5);
    --color-sand-shadow-heavy: rgba(230, 208, 186, 0.8);
    --color-white: #FFFFFF;

    /* 10% - Structure (Peso) */
    --color-wine: #800000;
    /* Vermelho Vinho */

    /* 30% - Contrast (Refresco) */
    --color-gold: #FFD700;
    /* Dourado para detalhes de luxo */
    --color-pool: #FF7F50; 
    /* Agora mapeado para Salmão para remover o azul cyan */

    /* Action (Destaque) */
    --color-salmon: #FF7F50;
    /* Laranja Salmão */
    --color-salmon-light: #FFA07A;
    --color-salmon-glow: rgba(255, 127, 80, 0.4);
    --color-salmon-text: #C44E00;
    /* Laranja mais escuro solicitado pelo usuário */

    --color-brand-primary: var(--color-salmon);
    --color-brand-primary-glow: var(--color-salmon-glow);

    --color-bg-base: var(--color-sand);
    --color-bg-dark: #1e1e24;

    --color-text-primary: #2d3748;
    --color-text-secondary: #4a5568;
    --color-text-inverse: #f7fafc;

    /* Glassmorphism Variables */
    /* Milky white glass */
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-bg-light-hover: rgba(255, 255, 255, 0.90);
    /* Translucent gray/dark glass - Enhanced Contrast for Mobile readability */
    --glass-bg-dark: rgba(20, 20, 24, 0.85);

    --glass-border-light: 1px solid rgba(255, 255, 255, 0.6);
    --glass-border-dark: 1px solid rgba(255, 255, 255, 0.15);
    --glass-border-neon: 1px solid rgba(139, 0, 0, 0.5);

    --glass-shadow: 0 8px 32px 0 var(--color-sand-shadow);
    --glass-shadow-heavy: 0 12px 40px 0 var(--color-sand-shadow-heavy);

    --glass-blur: blur(12px);
    --glass-blur-heavy: blur(20px);

    /* Typography */
    --font-sans: 'Poppins', sans-serif;
    --font-script: 'Dancing Script', cursive;

    /* Spacing & Layout */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: clamp(60px, 10vw, 100px);
    --section-padding: clamp(80px, 12vw, 120px) 20px;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Background Image Fixed (for consistent glass effect) */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url('../imagens/fundo-recanto-da-coruja.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--color-sand);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

/* Base state for Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.section-padding {
    padding: var(--section-padding);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-salmon-text);
    text-shadow: none; /* Removida a nuvem branca solicitada */
}

.brand-title {
    /* 
       Recanto da Coruja
       AQUI VOCÊ ALTERA O TAMANHO (font-size), 
       AQUI VOCÊ MUDA A POSIÇÃO PRA CIMA PRA BAIXO PARA DIREITA ESQUERDA (margin, padding) 
    */
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 2px 2px 0 var(--color-wine);
    margin-bottom: var(--spacing-sm);
}

.hero-content .subtitle {
    /* 
       Seu Refúgio Premium na Barra de São Miguel
       AQUI VOCÊ ALTERA O TAMANHO (font-size), 
       AQUI VOCÊ MUDA A POSIÇÃO PRA CIMA PRA BAIXO PARA DIREITA ESQUERDA (margin, padding) 
    */
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-white);
    letter-spacing: 1px;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */

.glass-panel {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
}

.glass-card {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--glass-bg-light-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.15);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* CTA Pulse Button (SOLICITAR RESERVA) */
.cta-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 40px);
    background: var(--color-salmon);
    color: var(--color-white, #fff);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 15px var(--color-salmon-glow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

/* Static Premium for secondary conversion points */
.cta-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--color-salmon);
    color: var(--color-white, #fff);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 15px var(--color-wine);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.cta-premium:hover {
    transform: scale(1.05);
    background: var(--color-wine);
    box-shadow: 0 6px 25px var(--color-wine);
}

.cta-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 var(--color-salmon-glow);
    animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
    z-index: -1;
}

.cta-pulse:hover {
    transform: scale(1.05);
    background: var(--color-salmon-light);
    box-shadow: 0 6px 25px var(--color-salmon-glow);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 var(--color-salmon-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 127, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0);
    }
}

.cta-full {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-salmon);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.cta-full:hover {
    background: var(--color-salmon-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation (FAB & Menu)
   ========================================================================== */

.fab {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom, 30px));
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-neon);
    box-shadow: var(--glass-shadow-heavy);
    transition: var(--transition-bounce);
    padding: 0;
    overflow: hidden;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--color-brand-primary-glow);
}

.fab-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Base styles for the layout to expand upon */

/* ==========================================================================
   Hero Section & Cinematic Canvas 
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
    object-fit: cover;
    pointer-events: none;
    filter: saturate(1.4) contrast(1.15) brightness(1.1);
}

/* Dark overlay to ensure text readability over bright frames */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 30, 36, 0.2), rgba(30, 30, 36, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 750px;
    margin-top: -5vh;
    /* Estado inicial invisível para a Animação GSAP revelar só no fim */
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 767px) {}

/* Customized glass panel for the hero (darker base for high contrast text) */
.hero-content .glass-panel {
    background: rgba(128, 0, 0, 0.2); /* Reduced Wine transparency */
    border: 2px solid var(--color-salmon);
    position: relative;
    margin-top: 40px;
    padding: clamp(50px, 8vw, 65px) clamp(20px, 5vw, 40px) clamp(30px, 5vw, 40px) clamp(20px, 5vw, 40px);
    box-shadow: 0 0 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
    .hero-content .glass-panel {
        padding-top: 60px;
        width: 100%;
    }
}

.logo-wrapper {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: transparent;
    border: 2px solid var(--color-brand-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-brand-primary-glow);
    z-index: 2;
    overflow: hidden;
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 70px;
        height: 70px;
        top: -35px;
    }
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.subtitle {
    font-family: var(--font-script);
    font-size: 1.8rem !important;
    color: var(--color-salmon-light) !important;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Loading Overlay for Hero */
.hero-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: var(--color-salmon);
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 127, 80, 0.2);
    border-top-color: var(--color-salmon);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-content .brand-title {
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* ==========================================================================
   Navigation Menu (Radial / Full Overlay)
   ========================================================================== */

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    /* Starts with 0 blur */
}

.glass-nav.visible {
    opacity: 1;
    visibility: visible;
    backdrop-filter: var(--glass-blur-heavy);
    /* Animates to heavy blur */
}

.nav-overlay {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    background: rgba(128, 0, 0, 0.85); /* Deep Wine glass for menu */
    border: 2px solid var(--color-salmon);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fix: Prevent white background global hover bug */
.nav-overlay.glass-card:hover {
    background: rgba(128, 0, 0, 0.85) !important;
    transform: scale(1); /* Maintain visibility scale */
}

.glass-nav.visible .nav-overlay {
    transform: scale(1);
}

#close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-sand); /* Sand for visibility on dark background */
    opacity: 0.8;
    transition: var(--transition-smooth);
}

#close-nav:hover {
    opacity: 1;
    color: var(--color-brand-primary);
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-sand); /* Sand color for contrast on Wine */
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.nav-links a:hover {
    color: var(--color-salmon);
    transform: scale(1.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-salmon); /* Synchronized with hover color */
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 700;
}
/* Already inherits global h1-h4 styles for color and shadow */

/* ==========================================================================
   Generics & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    /* 
       Títulos das seções: Experiência Diferenciada / Perguntas Frequentes
       AQUI VOCÊ ALTERA O TAMANHO (font-size), 
       AQUI VOCÊ MUDA A POSIÇÃO PRA CIMA PRA BAIXO PARA DIREITA ESQUERDA (margin, padding) 
    */
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    /* OTIMIZAÇÃO: Tipografia fluída */
    color: var(--color-salmon-text);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Hostess Section
   ========================================================================== */

.hostess-wrapper {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg-light);
    /* Glassmorphism background para o card mestre */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .hostess-wrapper {
        flex-direction: row;
        align-items: center;
        /* Impede a foto horizontal de ser esticada numa coluna vertical gigante */
    }
}

.hostess-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(25px, 5vw, 60px);
    gap: var(--spacing-lg);
    flex: 1;
    background: transparent;
}

@media (min-width: 768px) {
    .hostess-card {
        flex-direction: row;
        padding: 40px 50px;
        gap: 30px;
    }
}

.hostess-image-wrapper {
    flex-shrink: 0;
    width: clamp(120px, 15vw, 160px);
    height: clamp(120px, 15vw, 160px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--color-salmon) 0%, transparent 100%);
    position: relative;
    margin-bottom: 10px;
}

.hostess-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: var(--glass-border-neon);
    box-shadow: 0 0 20px var(--color-salmon-glow);
    z-index: 0;
}

.hostess-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid var(--color-white);
    background: var(--color-white);
}

.hostess-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    /* Inherits global salmon-text and text-shadow */
}

.hostess-quote {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.8;
    position: relative;
    max-width: 800px;
    margin-bottom: var(--spacing-md);
}

.hostess-quote p {
    margin-bottom: 15px;
}

.hostess-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-brand-primary);
    text-align: right;
    font-weight: bold;
}

/* Removed hostess banner slider code (It was migrated to a dedicated experience feature section) */

@media (max-width: 991px) {
    .hostess-image-wrapper {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================================================
   Hanging Sign (Three.js)
   ========================================================================== */

.hanging-sign-area {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    margin-top: -10px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.sign-loops {
    position: relative;
    width: 60%;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.clip {
    width: 25px;
    height: 50px;
    border: 5px solid #a67c52;
    /* Bronze/Brownish */
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5), inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    background: linear-gradient(to right, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    position: relative;
    top: -20px;
    /* Poke up into the hostess card */
    z-index: 5;
    background-color: transparent;
}

.hanging-canvas-container {
    position: relative;
    width: 100%;
    /* Let the browser calculate the perfect height for a 16:9 picture */
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    /* This masks the corners of the inner Three.js Canvas */
    margin-top: -30px;
    /* overlap with clips */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    transform-origin: top center;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.1s ease-out;
}

.hanging-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .hostess-card {
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }

    .hostess-signature {
        text-align: center;
    }

    .hanging-canvas-container {
        border-width: 4px;
        border-radius: 20px;
    }

    .hanging-canvas-container canvas {
        border-radius: 14px;
    }

    .clip {
        width: 16px;
        height: 35px;
        border-width: 3px;
    }
}

/* ==========================================================================
   Photo Gallery (Masonry Grid)
   ========================================================================== */

.masonry-grid {
    columns: 1;
    column-gap: var(--spacing-md);
}

@media (min-width: 600px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 900px) {
    .masonry-grid {
        columns: 3;
    }
}

.masonry-item {
    position: relative;
    display: inline-block;
    /* Essential for CSS masonry */
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: zoom-in;
    /* Glass border and shadow for the images */
    border: var(--glass-border-light);
    box-shadow: var(--glass-shadow);
}

.masonry-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(15, 15, 20, 0.90);
    /* OTIMIZAÇÃO: Mais escuro para contraste firme nas fotos */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #fff;
    border-top: var(--glass-border-dark);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.masonry-item:hover .masonry-caption,
.masonry-item:focus .masonry-caption {
    transform: translateY(0);
}

/* Lightbox Base Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 300;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: var(--glass-blur-heavy);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.lightbox-info {
    text-align: center;
    color: #fff;
    max-width: 80%;
    padding: 10px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: 5px;
}

.lightbox-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    color: var(--color-brand-primary);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 3rem;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        width: 45px;
        height: 45px;
        padding: 0;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   Region Section (Orbital Cylinder)
   ========================================================================== */

#region .section-title {
    /* 
       Explore a Região
       AQUI VOCÊ ALTERA O TAMANHO (font-size), 
       AQUI VOCÊ MUDA A POSIÇÃO PRA CIMA PRA BAIXO PARA DIREITA ESQUERDA (margin, padding) 
    */
    text-align: center;
}

.region-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .region-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.region-map-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border-light);
}

.region-map-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* or cover if it needs to fill, depending on map shape */
    display: block;
    transition: var(--transition-smooth);
}

.region-map-wrapper:hover img {
    transform: scale(1.02);
}

#region-scene {
    /* 
       Altura do Cilindro Giratório (Explore a Região)
       AQUI VOCÊ ALTERA O TAMANHO DO ESPAÇO QUE O CILINDRO OCUPA NA TELA
    */
    width: 100%;
    height: min(650px, 70vh);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    padding-bottom: 20px;
    touch-action: pan-y;
}

#region-scene:active {
    cursor: grabbing;
}

#region-cylinder {
    width: 0;
    height: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.orbital-card {
    /* 
       Tamanho das Imagens individuais do Cilindro Giratório (Explore a Região)
       AQUI VOCÊ ALTERA O TAMANHO DOS CARDS(FOTOS) (width = largura, height = altura)
    */
    position: absolute;
    width: min(400px, 85vw);
    height: min(500px, 45vh);
    margin-left: calc(min(400px, 85vw) / -2);
    margin-top: calc(min(500px, 45vh) / -2);
    background: var(--glass-bg-light);
    border: var(--glass-border-light);
    border-radius: 20px;
    padding: 12px 12px 65px 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    display: flex;
    flex-direction: column;
    user-select: none;
}

@media (max-width: 768px) {
    .scene {
        min-height: 450px;
        overflow: hidden;
    }
}

.orbital-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.orbital-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.orbital-label {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    pointer-events: none;
}

.orbital-subtitle {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* ==========================================================================
   Pricing & FAQ Section
   ========================================================================== */

/* ==========================================================================
   Unified Interactive Booking Card & FAQ
   ========================================================================== */

.unified-card {
    display: grid;
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .unified-card {
        grid-template-columns: 380px 1fr;
    }
}

/* Sidebar: Pricing Summary */
.card-sidebar {
    background: linear-gradient(135deg, var(--color-wine) 0%, #4a0410 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-sidebar::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--color-brand-primary);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.sidebar-content {
    position: relative;
    z-index: 2;
}

.sidebar-content h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: var(--color-pool);
    text-shadow: none; /* No shadow needed in dark sidebar */
}

.pricing-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.pricing-unit {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 40px;
    display: block;
}

/* Main Content: Tabs & Interactive Explorer */
.card-main {
    padding: 40px;
    background: white;
    color: var(--color-text-primary);
}

.explorer-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    color: var(--color-salmon-text);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-salmon);
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature Grid with 2D Icons */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.feature-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: var(--color-salmon);
}

@media (max-width: 768px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
}

.feature-box span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 15px;
    line-height: 1.3;
}

.feature-box p {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 5px;
}

/* Icons styling - 2D */
.feature-icon-2d {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    color: var(--color-pool);
}

.feature-box:nth-child(2n) .feature-icon-2d {
    background: #fff7ed;
    color: var(--color-brand-primary);
}

.feature-icon-2d svg {
    width: 28px;
    height: 28px;
}

/* FAQ Accordion within Card */
.inner-faq {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: #f8fafc;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-wine);
    gap: 10px;
    text-align: left;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.faq-item.active {
    background: #f8fafc;
    border-color: var(--color-pool-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 15px;
}

.faq-item .chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

/* Responsiveness overrides for Unified Card */
@media (max-width: 1023px) {
    .unified-card {
        grid-template-columns: 1fr;
    }
    .card-sidebar {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .card-main {
        padding: 30px 20px;
    }
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Booking Form & Modal
   ========================================================================== */
.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.glass-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(128, 0, 0, 0.9); /* Deep Wine for Form */
    border: 2px solid var(--color-salmon);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Fix: Prevent white background global hover bug */
.modal-content.glass-card:hover {
    background: rgba(128, 0, 0, 0.9) !important;
    transform: translateY(0) scale(1);
}

.glass-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--color-sand); /* Sand for visibility */
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: var(--color-salmon);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--color-salmon-text); /* Laranja mais escuro */
    margin-bottom: 8px;
    font-size: 1.8rem;
    text-shadow: none; /* Removido brilho branco */
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--color-sand);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.input-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-sand);
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-salmon);
    box-shadow: 0 0 0 4px var(--color-salmon-glow);
}

.cta-whatsapp {
    background: #25D366;
    /* WhatsApp Green */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin-top: 10px;
}

.cta-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Stack Hover Gallery
   ========================================================================== */
.gallery-container {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    background: transparent;
    overflow: hidden;
    width: 100%;
}

.gallery {
    margin: auto;
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 450px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Estilo dos Cards (Premium Vinho) */
.card {
    position: absolute;
    inset: 0;
    background: #800000; /* Deep Wine for Cards */
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    will-change: transform, opacity, filter;
    transform-origin: 50% 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.6s ease, filter 0.6s ease;
    cursor: grab;
    z-index: 10;
    touch-action: none;
    user-select: none;
}

.card.is-dragging {
    transition: none !important;
    cursor: grabbing !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.card-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: transparent;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: scale(1.15) translate(0px, 0px);
    will-change: transform;
}

.card-label {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    pointer-events: none;
}

.card-subtitle {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gallery {
        width: 80vw;
        height: 350px;
    }
}

.carousels-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px;
    margin: 20px 0 40px 0;
}

@media (min-width: 1024px) {
    .carousels-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
}

/* ==========================================================================
   Footer Style
   ========================================================================== */
.site-footer {
    background-color: var(--color-wine);
    color: var(--color-white);
    padding: 60px 0 40px 0;
    position: relative;
    z-index: 10;
}

.site-footer h2.footer-brand {
    font-family: var(--font-script);
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-footer p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--color-sand);
}

.site-footer a {
    color: var(--color-salmon-light);
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--color-gold);
    text-decoration: none;
}

/* ==========================================================================
   Mobile Optimization & Responsiveness Fixes (V2)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --glass-blur: blur(0px) !important;
        --glass-blur-heavy: blur(0px) !important;
    }

    .glass-panel, .glass-card, .nav-overlay, .modal-content, .global-bg {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .section-padding {
        padding: 50px 15px !important;
    }

    .unified-card {
        border-radius: 20px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .card-sidebar {
        padding: 40px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .sidebar-content {
        width: 100% !important;
        max-width: 320px !important;
    }

    .sidebar-content h3 {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
    }

    .pricing-value {
        font-size: 2.2rem !important;
        margin-bottom: 2px !important;
        display: block !important;
        text-align: center !important;
    }

    .pricing-unit {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
        display: block !important;
        text-align: center !important;
    }

    .cta-premium {
        display: flex !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }

    .card-main {
        padding: 25px 20px !important;
    }

    .explorer-tabs {
        gap: 20px !important;
        margin-bottom: 30px !important;
        justify-content: center !important;
        border-bottom: 2px solid #f0f0f0 !important;
    }

    .tab-btn {
        font-size: 0.85rem !important;
        padding: 10px 0 !important;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .feature-box {
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }

    .feature-icon-2d {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }

    .feature-icon-2d svg {
        width: 22px !important;
        height: 22px !important;
    }

    .feature-box span {
        font-size: 0.8rem !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }

    .feature-box p {
        display: none !important;
    }

    .orbital-card {
        padding: 10px 10px 50px 10px !important;
    }

    .scene {
        min-height: 380px !important;
    }
}

/* Specific Refinements for Extremely Small Screens (e.g., iPhone SE, narrow viewports) */
@media (max-width: 360px) {
    .pricing-value {
        font-size: 1.8rem !important;
    }
    
    .card-sidebar {
        padding: 30px 15px !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .cta-premium {
        font-size: 0.8rem !important;
        padding: 10px 15px !important;
        letter-spacing: 0.5px !important;
        width: 100% !important;
        max-width: 220px !important;
    }
    
    .card-main {
        padding: 20px 10px !important;
    }
    
    .explorer-tabs {
        gap: 8px !important;
        margin-bottom: 20px !important;
        justify-content: space-between;
        overflow-x: hidden; /* Prevent horizontal scroll if possible */
    }
    
    .tab-btn {
        font-size: 0.65rem !important;
        padding: 8px 0 !important;
        flex: 1;
        text-align: center;
        white-space: normal !important; /* Allow text to wrap if needed */
        line-height: 1.2;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .feature-box {
        padding: 10px 5px !important;
        min-width: 0; /* Important for grid item shrinking */
    }
    
    .feature-box span {
        font-size: 0.7rem !important;
        white-space: normal !important;
        word-break: break-word; 
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Standard property */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sidebar-content h3 {
        font-size: 0.75rem !important;
    }
}
