:root {
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --primary: #800020;
    --primary-dark: #500014;
    --primary-light: #F8E8EC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 10px 25px -5px rgba(128, 0, 32, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.top-bar {
    background: var(--text-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;

    justify-content: space-between;
    align-items: center;
}

header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E8F0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-crop {
    height: 80px;
    width: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-crop img {
    height: 160px;
    width: auto;
    max-width: none;
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-header:hover {
    background-color: var(--primary-dark);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #FDF6F8 0%, #FFFFFF 60%);
    padding: 4rem 1.5rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.tag-cro {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero h1, 
.section-header h2, 
.card h3, 
.hero-card h3 {
    font-family: var(--font-title);
}

.hero h1 span {
    font-family: var(--font-title);
    color: var(--primary);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #F1F5F9;
}

.hero-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.hero-card-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.doctors-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doctor-box {
    background: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.doctor-box h4 {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.specialties {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.3;
}

/* SEÇÕES GERAIS E CARDS DE ESPECIALIDADES */
section {
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.section-header span {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0.4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s;
}

.card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* FORMULÁRIO DE AGENDAMENTO */
.booking-section {
    background: var(--bg-light);
}

.booking-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full,
.form-group.col-span-2 {
    grid-column: span 2;
}

label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
}

input, select {
    padding: 0.85rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    background-color: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* WHATSAPP FLOAT E FOOTER */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    z-index: 9999;
}

footer {
    background: var(--text-dark);
    color: #94A3B8;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* MEDIA QUERIES RESPONSIVAS */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        background-color: #0F172A;
    }

    .top-bar .container,
    .top-bar-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        flex-wrap: wrap;
        text-align: center;
    }

    .top-bar .hide-mobile,
    .top-bar-hours {
        display: none;
    }

    .nav-container {
        padding: 0.4rem 0.8rem;
    }

    .nav-links {
        display: none;
    }

    .logo-crop {
        height: 47px;
        width: 145px;
        justify-content: flex-start;
    }

    .logo-crop img {
        height: 105px;
    }

    header .btn-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
        width: auto;
        white-space: nowrap;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero a.btn-header {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box;
        border-radius: 50px;
    }

    /* FIXES DO FORMULÁRIO NO MOBILE */
    .booking-box {
        padding: 1.5rem 1rem; /* Reduz o padding interno no celular */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Força 1 coluna única no mobile */
        gap: 1rem;
    }

    .form-group.full,
    .form-group.col-span-2 {
        grid-column: span 1; /* Força o campo Período/Convênio a ocupar 1 coluna normal */
    }

    input, select {
        font-size: 1rem; /* Previne o zoom automático do iOS Safari ao focar no campo */
    }

    .section-header{
        font-size: small;
    }

    footer {
    background: var(--text-dark);
    color: #94A3B8;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.54rem;
}
}