/* ==========================================================================
    RESET & VARIABLES
    ========================================================================== */
:root {
    /* Paleta Premium */
    --color-white: #FFFFFF;
    --color-sand: #F5F2EB;
    --color-sage: #8FA092;
    --color-gray-light: #F9F9F9;
    --color-gold: #CBA153;
    --color-text-dark: #2A312B; 
    --color-text-light: #5A635B;
    
    /* Tipografia */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Layout & UX */
    --radius-soft: 16px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-padding: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-name {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
    UTILITY CLASSES & LAYOUT
    ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.bg-areia {
    background-color: var(--color-sand);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-soft);
}

/* ==========================================================================
    BUTTONS
    ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: transparent;
    color: var(--color-sage);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

/* ==========================================================================
    HEADER / NAVBAR
    ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.8rem;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
}

.nav-menu {
    display: none;
}

.nav-btn {
    display: none;
}

/* ==========================================================================
    HERO SECTION
    ========================================================================== */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 .brand-highlight {
    display: block;
    color: var(--color-gold);
    font-size: 0.85em;
    margin-top: 0.15em;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-soft);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 45% center;
    border-radius: var(--radius-soft);
}

/* ==========================================================================
    CARDS GRID & DESTAQUE DE SERVIÇOS (Layout 2 - 3 - 2 perfeitamente centralizado)
    ========================================================================== */
.grid-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.card, .card-terapia {
    width: 100%;
    background: var(--color-sage);
    padding: 32px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    outline: none;
    color: var(--color-white); 
}

/* Brilho persistente e sutil para os serviços em Destaque (Reiki e Cromoterapia) */
.card-terapia.card-destaque {
    background: linear-gradient(135deg, var(--color-sage) 0%, #768979 100%);
    border: 1px solid rgba(203, 161, 83, 0.4);
    box-shadow: 0 0 20px rgba(203, 161, 83, 0.25), var(--shadow-soft);
}

.card:hover, .card-terapia:hover, .card:focus, .card-terapia:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-terapia.card-destaque:hover, .card-terapia.card-destaque:focus {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(203, 161, 83, 0.4), var(--shadow-hover);
}

.card h3, .card-terapia h3 {
    color: var(--color-white); 
    font-size: 1.5rem;
    transition: var(--transition);
}

.card-terapia p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-sand);
}

.card-hover-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0 !important; 
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    font-size: 0.95rem !important; 
}

.card .card-hover-text,
.card-terapia .card-hover-text,
.fluxo-step .card-hover-text {
    color: var(--color-white);
}

.card:hover .card-hover-text,
.card:focus .card-hover-text,
.card-terapia:hover .card-hover-text,
.card-terapia:focus .card-hover-text,
.fluxo-step:hover .card-hover-text,
.fluxo-step:focus .card-hover-text {
    max-height: 180px;
    opacity: 1;
    margin-top: 16px !important;
}

/* ==========================================================================
    COMO FUNCIONA
    ========================================================================== */
.fluxo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.fluxo-step {
    background: var(--color-sage);
    padding: 20px 24px;
    border-radius: var(--radius-soft);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    color: var(--color-white);
}

.fluxo-step:hover, .fluxo-step:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.fluxo-step h4 {
    color: var(--color-white);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.step-num {
    background: var(--color-gold);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

/* ==========================================================================
    DIFERENCIAIS & LOCAL
    ========================================================================== */
.grid-2-cols {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
}

.diferenciais-list {
    list-style: none;
    margin-top: 24px;
}

.diferenciais-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding-left: 24px;
}

.diferenciais-list li::before {
    content: "•";
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* ==========================================================================
    FAQ ACCORDION
    ========================================================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.4s ease;
}

.accordion-header:hover, 
.accordion-header[aria-expanded="true"] {
    color: var(--color-sage);
}

.accordion-header::after {
    content: "+";
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-sage);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-header[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px); 
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-header[aria-expanded="true"] + .accordion-content {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content p {
    padding-bottom: 24px;
    margin: 0;
}

/* ==========================================================================
    FOOTER
    ========================================================================== */
.footer {
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
}

.footer-links a, .footer-info p {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
    FLOATING WHATSAPP
    ========================================================================== */
.fab-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: var(--transition);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

/* ==========================================================================
    ANIMATIONS
    ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }
.delay-5 { transition-delay: 0.75s; }
.delay-6 { transition-delay: 0.90s; }

/* ==========================================================================
    EXIT INTENT MODAL
    ========================================================================== */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.exit-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 49, 43, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    max-width: 850px;
    width: 90%;
    border-radius: var(--radius-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.exit-modal.active .modal-content {
    transform: translateY(0);
}

.modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% center;
}

.modal-text {
    padding: 40px 32px;
    text-align: center;
}

.modal-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--color-sage);
}

.modal-text p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.modal-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.modal-actions button {
    background: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

/* ==========================================================================
    MEDIA QUERIES
    ========================================================================== */
@media (min-width: 768px) {
    .section-padding { padding: 100px 0; }
    
    .nav-menu {
        display: flex;
        gap: 32px;
    }
    .nav-menu a {
        font-size: 0.95rem;
        font-weight: 500;
    }
    .nav-menu a:hover {
        color: var(--color-sage);
    }
    .nav-btn {
        display: inline-block;
        padding: 10px 20px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .hero-buttons {
        flex-direction: row;
    }
    .hero-content h1 {
        font-size: 4rem;
    }

    .card { width: calc(50% - 12px); }
    
    /* Layout estruturado em grade de 6 colunas para formar linhas exatas de 2 - 3 - 2 */
    .grid-terapias {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
        max-width: 1100px;
        margin: 0 auto;
    }

    /* Padrão para os 5 cards normais (Linha do meio: 3 cards de 2 colunas cada; Linha de baixo: 2 cards de 3 colunas cada) */
    .grid-terapias .card-terapia {
        width: 100%;
        grid-column: span 2; 
    }

    /* 1ª Linha: Reiki e Cromoterapia (Destaques um pouco mais largos, ocupando 3 colunas cada = 50% da largura) */
    .grid-terapias .card-terapia:nth-child(1),
    .grid-terapias .card-terapia:nth-child(2) {
        grid-column: span 3;
    }

    /* 2ª Linha: Karuna, Mesa Radiônica e Florais de Bach (3 cards ocupando 2 colunas cada) */
    .grid-terapias .card-terapia:nth-child(3),
    .grid-terapias .card-terapia:nth-child(4),
    .grid-terapias .card-terapia:nth-child(5) {
        grid-column: span 2;
    }

    /* 3ª Linha: Reflexologia e Acupuntura Etérica (2 cards centralizados ocupando 3 colunas cada) */
    .grid-terapias .card-terapia:nth-child(6),
    .grid-terapias .card-terapia:nth-child(7) {
        grid-column: span 3;
    }
    
    .fluxo-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
    .fluxo-step {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    .step-header {
        flex-direction: column;
        justify-content: center;
    }
    
    .grid-2-cols { grid-template-columns: 1fr 1fr; }
    
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom { 
        flex-direction: row;
        justify-content: space-between;
    }

    .modal-content {
        flex-direction: row;
    }
    .modal-image {
        flex: 1;
        max-width: 40%;
        height: auto;
    }
    .modal-image img {
        height: 100%;
    }
    .modal-text {
        flex: 1;
        padding: 56px 48px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .modal-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (min-width: 1280px) {
    .container { padding: 0; }
    
    .card { width: calc(33.333% - 16px); }
    
    .hero-content h1 { font-size: 4.5rem; }
}