@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ==========================================================================
   Rede Hotel Ideal - Design System
   ========================================================================== */

:root {
    /* Brand Colors - Level Production UI (Vermelho, Vinho e Madeira) */
    --primary: #E10600;
    /* Vermelho vibrante - CTA e destaques */
    --primary-hover: #C00500;
    --primary-active: #990400;

    --secondary: #5A0F14;
    /* Vinho profundo - sofisticação e luxo */

    --wood-dark: #2B1A17;
    /* Marrom amadeirado escuro */
    --wood-medium: #4A2C26;
    /* Marrom amadeirado médio */

    --background: #F5EFEA;
    /* Cream - Base do site */
    --surface: #FFFFFF;
    /* White - Superfícies e Cards */

    --text: #2A2A2A;
    /* Texto principal escuro */
    --text-light: #A89C95;
    /* Texto secundário/cinza quente */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    color: var(--wood-dark);
}

/* ==========================================================================
   Utility Classes (Micro-animations & Interactions)
   ========================================================================== */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Subtle Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Focus Ring for accessibility */
.focus-ring:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Custom Buttons based on Design System */
.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-weight: 600;
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.4);
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    padding: 0.65rem 1.85rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   Advanced Wow Effects (Testimonials)
   ========================================================================== */
.wow-card {
    position: relative;
    /* Removido transform das transitions para resposta em tempo real absoluto via JS */
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    /* Hint para o navegador otimizar via GPU */
}

.wow-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.wow-card-glow {
    position: absolute;
    inset: 0;
    /* Cor clarinha solicitada em vez de vermelho brilhante */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.wow-card:hover .wow-card-glow {
    opacity: 1;
}

/* ==========================================================================
   Header Progressivo (Luxo)
   ========================================================================== */
#main-header {
    background-color: #fd010126;
    /*transparent;*/
    backdrop-filter: blur(0px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-header.header-scrolled {
    background-color: rgba(43, 26, 23, 0.9) !important;
    /* Wood Dark denso */
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

#main-header nav a {
    color: #FFFFFF !important;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#main-header.header-scrolled nav a {
    opacity: 1;
    text-shadow: none;
}

#main-header nav a:hover {
    color: var(--primary) !important;
    opacity: 1;
}

/* Submenu Styles */
.nav-submenu {
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

#main-header .relative:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-submenu-active #mobile-hoteis-icon {
    transform: rotate(180deg);
}

.mobile-submenu-active #mobile-hoteis-list {
    display: flex;
}

/* Specific overrides for Submenu Links to ensure visibility and premium feel */
.nav-submenu a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: none !important;
}

.nav-submenu a:hover {
    color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Toggle Search Dropdown */
#search-dropdown {
    transform-origin: top;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#search-dropdown.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.95);
}

#search-dropdown:not(.hidden) {
    display: block;
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

/* Swiper Fixes */
.testimonialSwiper {
    --swiper-theme-color: var(--primary) !important;
    --swiper-navigation-color: var(--primary) !important;
    --swiper-pagination-color: var(--primary) !important;
    overflow: visible !important;
    padding: 3rem 0 !important;
}

.testimonialSwiper .swiper-wrapper {
    overflow: visible !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 28px !important;
    border-radius: var(--radius-full) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
}