/* VARIÁVEIS - Tons mais maduros */
:root {
    --primary: #0D9488;
    --primary-hover: #0F766E;
    --dark: #020617; /* Quase preto, mais sofisticado que o azul antigo */
    --text: #475569;
    --light: #F8FAFC;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; color: var(--dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* --- 1. CABEÇALHO --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    background-color: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1rem 5%;
}

.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; color: var(--white); font-family: 'Outfit'; transition: color 0.4s; }
.navbar.scrolled .logo { color: var(--primary); }

nav { display: flex; align-items: center; gap: 2rem; }
nav a { text-decoration: none; color: var(--white); font-weight: 600; transition: color 0.3s; }
.navbar.scrolled nav a { color: var(--dark); }
nav a:hover { color: var(--primary); }

.btn-primary { background: var(--primary); color: var(--white) !important; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 600; text-decoration: none; transition: background 0.3s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-large { font-size: 1rem; padding: 1rem 2rem; display: inline-block; }

/* --- 2. HERO PARALLAX --- */
.hero-section {
    position: relative;
    height: 90vh; /* Um pouco menor para as caixas de baixo aparecerem cortadas, convidando à rolagem */
    min-height: 600px;
    display: flex; align-items: center;
    background-image: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Degradê arrumado: Escuro na esquerda para ler, transparente na direita */
    background: linear-gradient(90deg, rgba(2,6,23,0.85) 0%, rgba(2,6,23,0.4) 60%, rgba(2,6,23,0.1) 100%);
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    color: var(--white); 
    max-width: 550px; /* Reduzido para não cruzar a tela toda */
    padding-bottom: 80px; 
}

.hero-content h1 { color: var(--white); font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-content .highlight { color: #5EEAD4; }
.hero-content p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.9; font-weight: 300; }
.badge { display: inline-block; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; margin-bottom: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- 3. CARDS FLUTUANTES --- */
.features-section { margin-top: -80px; position: relative; z-index: 20; padding-bottom: 5rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } /* Forçado 3 colunas */

.feature-card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
    border-left: 4px solid var(--primary); /* Linha na esquerda em vez de em baixo (mais elegante) */
    display: flex; /* Ícone do lado do texto, não em cima */
    align-items: flex-start;
    gap: 1rem;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { color: var(--primary); width: 32px; height: 32px; flex-shrink: 0; }
.feature-card h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--text); }

/* --- 4. TRATAMENTOS --- */
.treatments-section { padding: 4rem 0 6rem 0; background-color: var(--white); }
.section-header { text-align: left; margin-bottom: 3rem; max-width: 600px; } /* Texto na esquerda! */
.section-header h2 { font-size: 2.2rem; margin-bottom: 1rem; letter-spacing: -0.5px; }

.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; } /* Força 3 colunas pra nunca estourar a tela */

.treatment-card {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden; 
    cursor: pointer;
}

.t-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.t-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.1) 100%); transition: background 0.3s; }
.treatment-card:hover .t-image { transform: scale(1.05); } 
.treatment-card:hover .t-overlay { background: linear-gradient(to top, rgba(13,148,136,0.95) 0%, rgba(2,6,23,0.2) 100%); }

.t-content { position: absolute; bottom: 0; left: 0; padding: 2rem; width: 100%; color: var(--white); }
.t-content h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.t-content p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 1.5rem; }
.t-link { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #5EEAD4; font-size: 0.9rem; }

/* --- 5. SOBRE A CLÍNICA --- */
.about-section { padding: 8rem 0; background-color: var(--light); }
.about-flex { display: flex; align-items: center; gap: 5rem; }
.about-image-wrapper { position: relative; flex: 1; }
.about-img { width: 100%; border-radius: 12px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(13,148,136,0.4); text-align: center; border: 4px solid var(--light); }
.experience-badge strong { font-size: 1.8rem; font-family: 'Outfit'; display: block; line-height: 1; }
.about-text { flex: 1; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 1.5rem; line-height: 1.2; letter-spacing: -0.5px;}
.about-text p { font-size: 1.05rem; margin-bottom: 1.5rem; color: var(--text); }
.about-list { list-style: none; margin-top: 2rem; }
.about-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 500; color: var(--dark); font-size: 0.95rem; }
.check-icon { color: var(--primary); background: var(--white); padding: 5px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* --- 6. ANIMAÇÕES JS --- */
.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

/* --- 7. BOTÃO WHATSAPP --- */
.fab-whatsapp {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25D366; color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}
.fab-whatsapp:hover { transform: scale(1.1); animation: none; color: white; }
.fab-whatsapp i { width: 28px; height: 28px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- 8. RESPONSIVIDADE (Ajustes para Celular) --- */
@media (max-width: 900px) {
    .navbar { background-color: var(--dark); padding: 1rem 5%; }
    .logo { color: var(--primary); }
    nav { display: none; } 
    .hero-content h1 { font-size: 2.8rem; }
    .hero-overlay { background: linear-gradient(180deg, rgba(2,6,23,0.8) 0%, rgba(2,6,23,0.7) 100%); }
    .features-grid { grid-template-columns: 1fr; } /* Empilha no celular */
    .features-section { margin-top: -40px; }
    .treatments-grid { grid-template-columns: 1fr; } /* Empilha no celular */
    .about-flex { flex-direction: column; }
    .experience-badge { right: 20px; }
}