@layer base {
    :root {
        --navy: #1B2A41;
        --gold: #C5A059;
        --champagne: #F9F7F2;
        --sage: #4B5945;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Montserrat', sans-serif;
        color: var(--navy);
        min-height: 100vh;
        position: relative;
    }

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, var(--champagne) 0%, #ffffff 100%);
        z-index: -1;
    }
}

@layer components {
    /* --------------------------
       Menu Mobile
    -------------------------- */
    #mobile-menu {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* --------------------------
       Header
    -------------------------- */
    header.scrolled {
        background-color: rgba(242, 239, 233, 0.95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    }

    /* --------------------------
       Accordion (FAQ / Serviços)
    -------------------------- */
    .accordion-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        overflow: hidden;
    }

    .accordion-content.is-open {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .accordion-inner {
        overflow: hidden;
    }

    /* --------------------------
       Carousel Cards & Buttons
    -------------------------- */
    .carousel-card {
        scroll-snap-align: center;
        flex: 0 0 85vw;
    }
    
    @media (min-width: 768px) {
        .carousel-card {
            flex: 0 0 420px;
            scroll-snap-align: start;
        }
    }

    .nav-btn {
        transition: all 0.3s ease;
    }
    
    .nav-btn:hover {
        transform: scale(1.1);
    }
    
    .nav-btn:active {
        transform: scale(0.95);
    }
}

@layer utilities {
    /* --------------------------
       Tipografia
    -------------------------- */
    .font-serif {
        font-family: 'Playfair Display', serif;
    }

    /* --------------------------
       Animações de Scroll
    -------------------------- */
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .delay-100 { transition-delay: 100ms; }
    .delay-200 { transition-delay: 200ms; }
    .delay-300 { transition-delay: 300ms; }
    .delay-500 { transition-delay: 500ms; }

    /* --------------------------
       Utilitários Visuais
    -------------------------- */
    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }
    
    .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}

/* --------------------------
   Help Center - FAQ Optimization
-------------------------- */
.faq-search-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.faq-search-input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1B2A41;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search-input:focus {
    outline: none;
    border-color: #C5A059;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.15);
}

.faq-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C5A059;
    pointer-events: none;
}

.filter-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-tab-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(27, 42, 65, 0.7);
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1B2A41;
    border-color: rgba(197, 160, 89, 0.3);
}

.filter-tab-btn.active {
    color: #ffffff;
    background-color: #1B2A41;
    border-color: #1B2A41;
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.15);
}

.accordion-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.08);
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 160, 89, 0.25);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.08);
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-consultas {
    background-color: rgba(197, 160, 89, 0.1);
    color: #a8833e;
}

.tag-tratamentos {
    background-color: rgba(75, 89, 69, 0.1);
    color: #4B5945;
}

.tag-valores {
    background-color: rgba(27, 42, 65, 0.06);
    color: #1B2A41;
}

.faq-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #ffffff;
    border-radius: 1.5rem;
    border: 1px dashed rgba(197, 160, 89, 0.2);
}

/* --------------------------
   Novos Estilos de Design Moderno & Conversão
-------------------------- */

/* Botão WhatsApp Pulsante e Gradiente */
.btn-whatsapp-glow {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #28e16d 0%, #149e8e 100%);
}

.btn-whatsapp-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.btn-whatsapp-glow:hover::after {
    transform: rotate(45deg) translateY(100%);
}

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

@keyframes pulseGlow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(27, 42, 65, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 16px 36px rgba(197, 160, 89, 0.12);
}

/* Badges de Confiança Flutuantes */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1B2A41;
    box-shadow: 0 4px 14px rgba(27, 42, 65, 0.05);
}

/* Cards de Depoimento Modernos */
.testimonial-card-modern {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(27, 42, 65, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
}

.star-gold {
    color: #F59E0B;
}

