/* ========================================
   Laboratório Exame - Medical Premium Theme
   ======================================== */

:root {
    /* Cores baseadas na identidade visual (Vermelho, Preto, Branco) */
    --primary: #212121;        /* Preto Acinzentado (Textos fortes) */
    --primary-light: #424242;
    --accent: #D32F2F;         /* Vermelho Médico/Laboratório */
    --accent-hover: #B71C1C;
    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;       /* Fundo suave para não cansar a visão */
    
    --text-main: #4A4A4A;
    --text-muted: #757575;
    --border-color: #E0E0E0;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 5px 20px rgba(211, 47, 47, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--primary); 
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-light { background-color: var(--bg-light); }
.bg-accent { background-color: var(--accent); color: var(--bg-white); }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* ========================================
   Botões
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 6px; font-weight: 600; font-family: 'Inter', sans-serif;
    transition: var(--transition); cursor: pointer; border: 2px solid transparent; font-size: 0.95rem;
}
.btn-accent { background-color: var(--accent); color: var(--bg-white); box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-3px); }
.btn-primary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-primary:hover { background-color: var(--accent); color: var(--bg-white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: var(--bg-white); }
.btn-white { background-color: var(--bg-white); color: var(--accent); }
.btn-white:hover { background-color: #F1F1F1; transform: translateY(-3px); }
.btn-full { width: 100%; }

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    transition: var(--transition); border-bottom: 1px solid var(--border-color);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.logo { height: 60px; object-fit: contain; transition: var(--transition); border-radius: 4px; }
.header.scrolled .logo { height: 50px; }

.nav-main { display: flex; flex: 1; justify-content: center; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { font-weight: 500; color: var(--primary-light); font-size: 0.95rem; transition: var(--transition); }
.nav-menu a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; }

/* Menu Hambúrguer (Mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.nav-toggle span { width: 25px; height: 3px; background: var(--primary); transition: var(--transition); border-radius: 2px;}

/* ========================================
   Hero Section
   ======================================== */
.hero { padding: 160px 0 100px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(211, 47, 47, 0.1); color: var(--accent); padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px; }
.hero-content h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }

.hero-buttons { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.stat { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.stat i { color: var(--accent); font-size: 1.2rem; }

.hero-image { position: relative; }
.hero-image img { border-radius: 20px; box-shadow: var(--shadow-soft); }

/* ========================================
   Seções Comuns (Títulos)
   ======================================== */
.section-label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 650px; margin: 0 auto; }

/* ========================================
   Sobre Nós
   ======================================== */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-image { position: relative; }
.about-image img { border-radius: 12px; box-shadow: var(--shadow-soft); }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--accent); color: var(--bg-white); padding: 25px; border-radius: 12px; box-shadow: 0 10px 25px rgba(211,47,47,0.3); text-align: center; }
.experience-badge strong { display: block; font-size: 2.5rem; line-height: 1; font-family: 'Montserrat'; }
.experience-badge span { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }

.about-text h2 { font-size: 2.2rem; margin-bottom: 25px; }
.about-text p { margin-bottom: 15px; color: var(--text-muted); text-align: justify; font-size: 1.05rem; }

/* ========================================
   Coleta Domiciliar (Destaque)
   ======================================== */
.home-collection { padding: 80px 0; }
.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.collection-content h2 { color: var(--bg-white); font-size: 2.5rem; margin-bottom: 20px; }
.collection-content p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.9; }
.collection-content ul { list-style: none; margin-bottom: 30px; }
.collection-content li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 500; font-size: 1.05rem; }
.collection-content li i { color: #FFF; font-size: 1.2rem; }

.collection-image img { border-radius: 16px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* ========================================
   Serviços
   ======================================== */
.services-section { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-white); padding: 40px 30px; border-radius: 12px; box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid var(--border-color); text-align: center; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.icon-box { width: 70px; height: 70px; background: rgba(211, 47, 47, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; }
.icon-box i { font-size: 2rem; color: var(--accent); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ========================================
   Diferenciais
   ======================================== */
.differentials-section { 
    padding: 100px 0; 
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.diff-card {
    background: var(--bg-white);
    padding: 45px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diff-card i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    transition: var(--transition);
}

.diff-card h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary);
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Efeito ao passar o mouse */
.diff-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.diff-card:hover i {
    transform: scale(1.1);
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .differentials-section { padding: 70px 0; }
    .differentials-grid { gap: 20px; }
}

/* ========================================
   Contato
   ======================================== */
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.contact-info h2 { font-size: 2.2rem; margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { width: 45px; height: 45px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--primary); margin-bottom: 3px; font-family: 'Montserrat'; font-size: 1.05rem;}
.contact-item span { color: var(--text-muted); font-size: 0.95rem; display: block; }

.contact-form-box { background: var(--bg-light); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); }
.contact-form-box h3 { margin-bottom: 25px; font-size: 1.5rem; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Inter', sans-serif; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }

/* ========================================
   Footer
   ======================================== */
.footer { background: var(--primary); color: #B0BEC5; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }

.footer-logo { height: 50px; margin-bottom: 20px; border-radius: 4px; }
.footer-brand p { margin-bottom: 20px; max-width: 350px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; color: var(--bg-white); transition: var(--transition); }
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }

.footer-links h4, .footer-contact h4 { color: var(--bg-white); font-size: 1.1rem; margin-bottom: 20px; font-family: 'Montserrat'; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { transition: var(--transition); }
.footer-links ul li a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 0.95rem; }
.footer-contact 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; }

/* ========================================
   WhatsApp Flutuante
   ======================================== */
.float-whatsapp { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); animation: pulseWa 2s infinite; }
.float-whatsapp:hover { transform: scale(1.1); }
@keyframes pulseWa { 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); } }

/* ========================================
   Animações Reveal
   ======================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsividade
   ======================================== */
.desktop-only { display: flex; }

@media (max-width: 991px) {
    .desktop-only { display: none; }
    .hero-grid, .about-grid, .collection-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .hero { padding-top: 130px; text-align: center; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-buttons, .hero-stats { justify-content: center; }
    
    .nav-main { display: none; } /* Oculta menu normal */
    .nav-toggle { display: flex; } /* Mostra hambúrguer */
    
    .nav-main.active { 
        display: flex; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; 
        background: var(--bg-white); flex-direction: column; padding: 100px 30px 30px; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); border-left: 2px solid var(--accent); z-index: 999;
    }
    .nav-menu { flex-direction: column; gap: 25px; width: 100%; align-items: flex-start; }
    .nav-menu a { font-size: 1.1rem; display: block; width: 100%; }

    /* Hambúrguer animado */
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .experience-badge { right: 0; bottom: -15px; padding: 15px; }
    .experience-badge strong { font-size: 2rem; }
}