/* ========================================
   Brasil Central - Premium Earth Theme
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --primary-dark: #1A382D;   
    --primary: #285444;        
    --primary-light: #5B8C64;  
    --accent: #E88F15;         
    --accent-hover: #C7780D;
    --bg-white: #FFFFFF;
    --bg-light: #FAF6F0;       
    --text-main: #2C3330;
    --text-muted: #64706B;
    --border-color: #E2DDD5;
    --shadow-soft: 0 10px 30px rgba(40, 84, 68, 0.08);
    --shadow-hover: 0 15px 40px rgba(232, 143, 21, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif { font-family: 'Lora', serif; color: var(--primary-dark); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* ========================================
   Botões
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 32px; border-radius: 8px; font-weight: 700; font-family: 'Roboto', sans-serif;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn-accent { background-color: var(--accent); color: white; box-shadow: 0 4px 15px rgba(232, 143, 21, 0.3); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-outline { background-color: transparent; border: 2px solid var(--bg-white); color: var(--bg-white); }
.btn-outline:hover { background-color: var(--bg-white); color: var(--primary-dark); transform: translateY(-3px); }
.btn-full { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 0.9rem; transition: var(--transition); margin-top: auto;}
.btn-link:hover { gap: 13px; color: var(--accent); }

/* ========================================
   Header e Navegação Melhorados
   ======================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.header-top {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 0; width: 100%;
}

/* Garante o balanço do espaço para a logo ficar no centro */
.nav-left { flex: 1 1 0%; display: flex; justify-content: flex-start; }
.nav-actions { flex: 1 1 0%; display: flex; justify-content: flex-end; }
.nav-brand { flex: 0 0 auto; text-align: center; }

.logo-center { height: 100px; object-fit: contain; transition: var(--transition); }
.header.scrolled .logo-center { height: 70px; }

.nav-main { display: flex; justify-content: center; padding-bottom: 15px; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { font-weight: 600; color: var(--primary-dark); font-size: 0.9rem; transition: var(--transition); position: relative;}
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }

.desktop-only { display: flex; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); transition: var(--transition); font-size: 0.9rem;}
.nav-phone:hover { color: var(--accent); }

.btn-whatsapp-nav {
    padding: 10px 20px; border: 1.5px solid var(--primary-light); color: var(--primary);
    border-radius: 6px; font-weight: 700; font-size: 0.85rem; transition: var(--transition);
}
.btn-whatsapp-nav:hover { background: var(--primary); color: white; }

.nav-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1001; }
.nav-toggle span { width: 25px; height: 3px; background: var(--primary-dark); transition: var(--transition); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative; 
    padding-top: 220px; /* Aumentado para evitar que o texto cole na barra em notebooks */
    padding-bottom: 100px; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: url('https://images.pexels.com/photos/2827156/pexels-photo-2827156.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 56, 45, 0.95) 0%, rgba(36, 89, 70, 0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px;}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 24px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px; font-size: 0.85rem; color: white; font-weight: 500; margin-bottom: 25px;
}
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); color: white; margin-bottom: 25px; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: #E8EDE9; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }

.hero-stats { display: flex; justify-content: center; gap: 60px; }
.hero-stat-number, .hero-stat-suffix { font-size: 2.8rem; font-weight: 900; color: var(--accent); font-family: 'Lora', serif; line-height: 1;}
.hero-stat-label { display: block; font-size: 0.85rem; color: #E8EDE9; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; margin-top: 5px;}

/* ========================================
   Seções Comuns
   ======================================== */
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; color: var(--primary-light); text-transform: uppercase; margin-bottom: 15px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; text-align: center;}
.section-title-left { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 25px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; }

/* ========================================
   Sobre Nós
   ======================================== */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; text-align: justify;}

.about-features { display: flex; gap: 30px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border-color);}
.about-feature { display: flex; align-items: flex-start; gap: 15px; }
.about-feature i { font-size: 2rem; color: var(--accent); }
.about-feature h4 { font-family: 'Roboto', sans-serif; font-size: 1.1rem; margin-bottom: 5px; color: var(--primary-dark);}
.about-feature span { font-size: 0.85rem; color: var(--text-muted); }

.about-image-wrapper { position: relative; }
.about-image-wrapper img { border-radius: 12px; box-shadow: -20px 20px 0 var(--bg-light); }
.about-seal { position: absolute; bottom: -30px; right: -30px; width: 140px; height: 140px; border-radius: 50%; background: white; padding: 10px; box-shadow: var(--shadow-soft); display: flex; justify-content: center; align-items: center;}
.about-seal img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover;}

/* ========================================
   Corpo Clínico (Layout Lado a Lado Moderno)
   ======================================== */
.team-section { padding: 100px 0; }

.team-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.team-showcase.reverse {
    grid-template-columns: 1.2fr 1fr;
}
.team-showcase.reverse .team-image-wrapper {
    order: 2; 
}
.team-showcase.reverse .team-text {
    order: 1; 
}

.team-image-wrapper {
    position: relative;
}

.team-image-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    height: auto; /* CORREÇÃO: Permite que a foto exiba seu tamanho real, sem cortes */
    display: block;
}

/* Plaquinha flutuante */
.team-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-dark);
    /* CORREÇÃO: Garante o contraste forçando a cor branca do texto */
    color: var(--white) !important; 
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--accent);
    z-index: 2; /* Garante que fique sobre a imagem */
}

/* Ajusta a plaquinha para a imagem na direita */
.team-showcase.reverse .team-badge {
    right: auto;
    left: -20px;
}

.team-badge {
    color: #ddd !important;
}

.team-text h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.team-text .crmv {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}

/* Responsividade Lado a Lado */
@media (max-width: 991px) {
    .team-showcase, .team-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .team-showcase.reverse .team-image-wrapper,
    .team-showcase.reverse .team-text {
        order: unset;
    }
    .team-text p {
        text-align: center;
    }
    .team-badge, .team-showcase.reverse .team-badge {
        right: 20px;
        left: auto;
        bottom: -15px;
        font-size: 1rem;
    }
}

/* ========================================
   Produtos & Serviços
   ======================================== */
.products-section { padding: 100px 0; }
.product-filter { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.product-filter i { color: var(--primary-light); margin-right: 10px; }

.filter-btn {
    padding: 10px 24px; border: 1px solid var(--border-color); background: white;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
    cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.product-card {
    background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft); transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent);}

.product-card-image { position: relative; height: 220px; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.9); padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 1px;}

.product-card-info { padding: 30px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card-info h4 { font-family: 'Lora', serif; font-size: 1.4rem; margin-bottom: 10px; color: var(--primary-dark); }
.product-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* ========================================
   Avaliações (Carrossel Dinâmico Elegante)
   ======================================== */
.reviews-section { padding: 80px 0; }

.carousel-container {
    position: relative;
    max-width: 1150px; /* Aumentado para dar espaço aos cards e às setas */
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0; 
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card {
    flex: 0 0 320px; /* Reduzido levemente para caber 3 perfeitamente na tela sem cortar */
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid #EFEFEF;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #E2DDD5;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex-grow: 1;
    padding-right: 25px; 
}

.review-name {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3px;
    line-height: 1.2;
}

.review-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.google-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

.review-stars {
    color: #FBBC04; 
    font-size: 0.95rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    flex-grow: 1;
    text-align: justify;
}

/* Setas */
.carousel-prev, .carousel-next {
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary);
    color: white;
}

/* Responsividade do Carrossel */
@media (max-width: 991px) {
    .review-card { flex: 0 0 320px; }
}

@media (max-width: 768px) {
    .carousel-container { 
        gap: 5px; 
        position: relative; /* Necessário para os botões flutuarem */
    }
    .review-card { 
        flex: 0 0 85vw; 
    } 
    /* Restaura as setas no celular e as ajusta */
    .carousel-prev, .carousel-next { 
        display: flex; 
        width: 35px; 
        height: 35px; 
        position: absolute; 
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
    }
    .carousel-prev { left: -5px; }
    .carousel-next { right: -5px; }
}

/* ========================================
   Área de Atendimento
   ======================================== */
.coverage-section { padding: 100px 0; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }

.coverage-box { background: var(--bg-light); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); }
.coverage-box h3 { font-size: 1.4rem; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { background: white; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.small-tags li { padding: 6px 12px; font-size: 0.85rem; }

/* ========================================
   Contato
   ======================================== */
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-white); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; }
.contact-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary-light); letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase;}
.contact-item strong { display: block; font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 2px; }
.contact-item span { font-size: 0.9rem; color: var(--text-muted); display: block; }

.contact-form-wrapper { background: white; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 6px; font-family: 'Roboto', sans-serif; font-size: 0.95rem; transition: var(--transition); background: var(--bg-light);}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-light); background: white; }

/* ========================================
   Footer
   ======================================== */
.footer { background: var(--primary-dark); padding: 80px 0 30px; color: #E8EDE9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }

.footer-logo { height: 60px; margin-bottom: 20px; border-radius: 10px; }
.footer-desc { font-size: 0.95rem; color: #B5C2BD; margin-bottom: 25px; line-height: 1.7; max-width: 350px;}

.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }

.footer-col h4 { font-family: 'Roboto', sans-serif; color: white; font-size: 1rem; letter-spacing: 1px; margin-bottom: 25px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #B5C2BD; transition: var(--transition); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact-list li { display: flex; align-items: center; gap: 10px; color: #B5C2BD; font-size: 0.95rem; margin-bottom: 12px;}
.footer-contact-list i { color: var(--accent); }

.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #8C9E96; }

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.whatsapp-btn { width: 65px; height: 65px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); animation: pulse-green 2s infinite;}
.whatsapp-btn:hover { transform: scale(1.1); }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsivo
   ======================================== */
@media (max-width: 991px) {
    .header-top { padding: 10px 20px; }
    .desktop-only { display: none; }
    .nav-main { border: none; padding: 0; }
    .logo-center { height: 60px; }
    
    .nav-toggle { display: flex; }
    .nav-menu { 
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; 
        background: var(--bg-white); flex-direction: column; padding: 90px 30px 30px; 
        gap: 25px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: var(--transition); z-index: 1000;
        border-left: 2px solid var(--primary); display: flex;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { display: block; font-size: 1.1rem; width: 100%; }

    .about-grid, .contact-grid, .coverage-grid, .team-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-brand { flex: 1; text-align: left; }
}

@media (max-width: 768px) {
    .hero { padding-top: 140px; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-seal { display: none; }
}