/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    /* Paleta de Cores */
    --color-forest: #234334;
    --color-beige: #E9DFC8;
    --color-white: #FFFFFF;
    --color-light-gray: #F7F7F5;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    
    /* Tipografia */
    --font-title: 'Cormorant Garamond', serif;
    --font-text: 'Inter', sans-serif;
    --font-button: 'Manrope', sans-serif;
    
    /* Efeitos */
    --shadow-soft: 0 10px 40px -10px rgba(35, 67, 52, 0.08);
    --shadow-hover: 0 20px 50px -10px rgba(35, 67, 52, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-forest);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

em {
    font-style: italic;
    color: var(--color-forest);
    opacity: 0.9;
}

p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 65ch;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-forest);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 55ch;
}

/* =========================================
   3. LAYOUT & UTILITÁRIOS
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--color-light-gray);
}

/* =========================================
   4. THREE.JS BACKGROUND
   ========================================= */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================================
   5. NAVEGAÇÃO
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

#navbar.scrolled .logo {
    color: var(--color-forest);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-button);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

#navbar.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-beige);
    transition: var(--transition-smooth);
}

#navbar.scrolled .nav-links a::after {
    background-color: var(--color-forest);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
}

#navbar.scrolled .nav-cta {
    border-color: var(--color-forest);
    color: var(--color-forest) !important;
}

.nav-cta:hover {
    background-color: var(--color-beige);
    border-color: var(--color-beige);
    color: var(--color-white) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

#navbar.scrolled .hamburger,
#navbar.scrolled .hamburger::before,
#navbar.scrolled .hamburger::after {
    background-color: var(--color-forest);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('img/header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('img/mobile.png');
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 67, 52, 0.85) 0%, rgba(35, 67, 52, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-button);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-beige);
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-title em {
    color: var(--color-beige);
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin: 0 auto 2.5rem;
    max-width: 55ch;
}

/* =========================================
   7. BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-button);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-forest);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-beige);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================
   8. SOBRE SECTION
   ========================================= */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.sobre-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.organic-frame {
    position: absolute;
    width: 370px;
    height: 370px;
    border: 1px solid var(--color-beige);
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
    33% { border-radius: 55% 45% 55% 45% / 45% 55% 45% 55%; }
    66% { border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; }
}

.credentials-list {
    list-style: none;
    margin-top: 2rem;
}

.credentials-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-button);
    font-size: 0.95rem;
    color: var(--color-text);
}

.credentials-list i {
    color: var(--color-forest);
    font-size: 1.1rem;
}

/* =========================================
   9. ESPECIALIDADES & CARDS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(233, 223, 200, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-beige);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--color-forest);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   10. COMO FUNCIONA
   ========================================= */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-beige);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* =========================================
   11. BENEFÍCIOS
   ========================================= */
.beneficios-content {
    text-align: center;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.beneficio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.beneficio-item i {
    font-size: 1.5rem;
    color: var(--color-forest);
}

.beneficio-item span {
    font-family: var(--font-button);
    font-size: 0.95rem;
    color: var(--color-text);
}

/* =========================================
   12. FAQ (ACCORDION)
   ========================================= */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(35, 67, 52, 0.1);
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    color: var(--color-forest);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--color-forest);
    font-size: 0.8rem;
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* =========================================
   13. DEPOIMENTOS (SEM BARRAS - DESIGN LIMPO)
   ========================================= */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(233, 223, 200, 0.3);
    /* Garante que não haja barras extras */
    position: relative;
    overflow: hidden;
}

/* Remove QUALQUER pseudo-elemento que possa criar barras */
.testimonial-card::before,
.testimonial-card::after {
    display: none !important;
    content: none !important;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.testimonial-card footer {
    font-family: var(--font-button);
    font-size: 0.85rem;
    color: var(--color-forest);
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Remove qualquer elemento interno que possa ser barra */
.testimonial-card div,
.testimonial-card span,
.testimonial-card hr {
    display: none;
}

/* Garante que apenas o texto e footer apareçam */
.testimonial-card > p,
.testimonial-card > footer {
    display: block;
}

/* =========================================
   14. CONTATO (COM IMAGEM DE PERFIL)
   ========================================= */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-button);
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    color: var(--color-forest);
    transform: translateX(8px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-forest);
}

.contato-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contato-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    border: 4px solid var(--color-white);
}

/* =========================================
   15. FOOTER
   ========================================= */
footer {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 auto 1.5rem;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   16. FLOATING WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* =========================================
   17. RESPONSIVIDADE
   ========================================= */
@media (max-width: 968px) {
    .sobre-grid,
    .contato-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .sobre-image-wrapper {
        order: -1;
    }

    .credentials-list {
        display: inline-block;
        text-align: left;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-links {
        align-items: center;
    }
    
    .contato-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-size: 1.1rem;
    }

    .nav-cta {
        border-color: var(--color-forest) !important;
        color: var(--color-forest) !important;
    }

    .sobre-image, .organic-frame {
        width: 280px;
        height: 280px;
    }
}

/* Acessibilidade: Foco visível */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-forest);
    outline-offset: 4px;
}

/* =========================================
   18. BLOG NA PÁGINA INICIAL
   ========================================= */
.home-blog-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.home-blog-card {
    min-width: 0;
    background: var(--color-white);
    border: 1px solid rgba(35, 67, 52, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.home-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.home-blog-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: var(--color-beige);
    text-decoration: none;
}

.home-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-blog-card:hover .home-blog-image img { transform: scale(1.04); }

.home-blog-image > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-forest);
    font-size: 2rem;
    background: radial-gradient(circle at 25% 20%, #fff, var(--color-beige));
}

.home-blog-content { padding: 1.65rem; }

.home-blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: var(--color-text-light);
    font-size: 0.72rem;
}

.home-blog-meta span {
    font-family: var(--font-button);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-forest);
}

.home-blog-content h3 { margin-bottom: 0.8rem; }
.home-blog-content h3 a { color: var(--color-forest); text-decoration: none; }
.home-blog-content p { font-size: 0.9rem; margin-bottom: 1.2rem; }

.home-blog-link {
    color: var(--color-forest);
    text-decoration: none;
    font-family: var(--font-button);
    font-size: 0.78rem;
    font-weight: 600;
}

.home-blog-link i { margin-left: 0.35rem; transition: transform 0.25s ease; }
.home-blog-link:hover i { transform: translateX(4px); }

.home-blog-action { text-align: center; margin-top: 2.5rem; }

.home-blog-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--color-white);
    border: 1px solid rgba(35, 67, 52, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.home-blog-empty > i { color: var(--color-forest); font-size: 1.8rem; }
.home-blog-empty h3 { margin-bottom: 0.3rem; }
.home-blog-empty p { font-size: 0.9rem; }

@media (max-width: 968px) {
    .home-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .home-blog-grid { grid-template-columns: 1fr; }
    .home-blog-image { height: 230px; }
    .home-blog-empty { text-align: left; align-items: flex-start; }
}
