/* styles.css - Versão Final Corrigida (Alinhamento do Header) */

:root {
    --primary: #00a896; /* Verde Teal */
    --primary-dark: #008f80;
    --secondary: #0F1C30; /* Azul Marinho */
    --text-color: #333;
    --light-bg: #f0fdfc;
    --white: #ffffff;
    --gray: #666;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 80px; /* Compensação EXATA para a altura do header fixo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Garante que ocupa a largura disponível */
}

/* --- HEADER (MENU PRINCIPAL) --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex; /* Essencial para alinhar o conteúdo verticalmente */
    align-items: center;
}

/* Esta é a classe chave para o alinhamento */
.header-content {
    display: flex;
    justify-content: space-between; /* Logo na esquerda, menu na direita */
    align-items: center; /* Centraliza verticalmente logo e menu */
    width: 100%;
}

/* Logotipo */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Navegação Desktop */
.nav-desktop {
    display: flex;
    gap: 30px; /* Espaço entre os links */
    align-items: center;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 80px; /* O link ocupa toda a altura do header para facilitar o clique */
    padding: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn, .nav-mobile {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    /* Removemos o margin-top aqui pois já colocamos padding no body */
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdfc 0%, #e6fffa 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--gray);
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

/* Botões */
.btn {
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 150, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.doctor-img {
    max-width: 100%;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
    z-index: 2;
}

.experience-badge i { color: #FFD700; }

/* --- SEÇÕES GERAIS --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-description {
    color: var(--gray);
    font-size: 1.1rem;
}

/* --- GRIDS --- */
.about-grid, .services-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.about-card, .service-card, .contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.about-card:hover, .service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 168, 150, 0.1);
}

.card-icon, .contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: var(--light-bg);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.service-card h3, .about-card h3, .contact-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.4rem;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary);
    margin-right: 12px;
}

/* --- ABORDAGEM (Sobre) --- */
.approach-section {
    margin-top: 80px;
    background: var(--light-bg);
    border-radius: 30px;
    overflow: hidden;
}

.approach-content {
    display: flex;
    align-items: center;
}

.approach-text {
    flex: 1;
    padding: 60px;
}

.approach-list {
    list-style: none;
    margin-top: 30px;
}

.approach-list li {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.approach-list i { color: var(--primary); font-size: 1.2rem; }

.approach-image {
    flex: 1;
    min-height: 400px;
}

.approach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- MÉDICA --- */
.doctor-profile {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.doctor-image-container { position: relative; }

.doctor-profile-img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
}

.experience-badge-large {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--secondary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.badge-number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.badge-text { font-size: 0.9rem; opacity: 0.9; }

.doctor-info h3 { font-size: 2.2rem; color: var(--secondary); margin-bottom: 5px; }
.doctor-specialty { color: var(--primary); font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.doctor-crm { display: inline-block; background: #f4f4f4; padding: 8px 20px; border-radius: 50px; font-size: 0.95rem; margin-bottom: 30px; color: var(--gray); }

.doctor-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 5px; }
.stat-label { font-weight: 600; color: var(--secondary); }

/* --- AGENDAMENTO --- */
.appointment {
    background-color: var(--primary);
    color: var(--white);
}

.section-title.white, .section-description.white {
    color: var(--white);
}

.highlight-light { color: #b2f5ea; }

.appointment-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(0, 168, 150, 0.2);
}

.appointment-form .form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 15px;
}

.appointment-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: var(--gray);
}

.appointment-info h4 { margin-bottom: 20px; color: var(--secondary); }
.appointment-info ul { list-style: none; }
.appointment-info li { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.appointment-info i { color: var(--primary); font-size: 1.1rem; }

/* --- CONTATO --- */
.contact {
    background-color: var(--secondary);
    color: var(--white);
    padding-bottom: 50px;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--white);
}

.contact-card:hover { background: rgba(255,255,255,0.1); border-color: transparent; }
.contact-card h3, .contact-card p { color: var(--white); }
.contact-icon { background: rgba(255,255,255,0.1); color: var(--white); }

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    display: block;
}

.social-section { text-align: center; margin-top: 70px; }
.social-section h3 { margin-bottom: 30px; color: var(--white); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.4rem;
}

.social-link:hover { background: var(--primary); transform: scale(1.1); }

.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-content, .doctor-profile, .approach-content { flex-direction: column; text-align: center; }
    .hero-image, .approach-image { display: none; }
    .hero-buttons, .hero-features, .doctor-stats { justify-content: center; }
    .doctor-image-container { margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }
    .header { height: 70px; }
    body { padding-top: 70px; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .appointment-form .form-row { flex-direction: column; gap: 0; }
    .contact-grid, .services-grid, .about-grid { grid-template-columns: 1fr; }
    .appointment-form-container, .doctor-profile, .approach-text { padding: 30px; }
}