:root {
    --color-primary: #5ea65e;
    --color-secondary: #62adec;
    --color-dark: #393738;
    --color-light: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.text-secondary-custom {
    color: var(--color-secondary) !important;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
}

.bg-topbar {
    background-color: #00AFEF !important;
}

.btn-primary-custom {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #4c8c4c;
    color: white;
    transform: translateY(-2px);
}

/* Espaçamento Padrão */
section {
    padding: 80px 0;
}

/* Utilitários */
.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Hero Slider */
.hero-section {
    height: 80vh;
    min-height: 600px;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto aparecer */
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Doctor Cards */
.doctor-card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(94, 166, 94, 0.2);
}

.doctor-img-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.doctor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-container img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-specialty {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0 5px;
    color: var(--color-dark);
}

.doctor-crm {
    font-size: 0.8rem;
    color: #888;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.section-title p {
    color: #666;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features / Differentials */
.feature-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(94, 166, 94, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon {
    background: var(--color-primary);
    color: white;
}

/* Floating WhatsApp */
.whatsapp-float {
    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;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* Utilities */
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); } /* Torna o logo branco para o footer escuro */

/* Testimonials */
.bg-primary-light {
    background-color: rgba(94, 166, 94, 0.05);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    position: relative;
    margin: 20px 10px; /* Margem para a sombra não cortar no slider */
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-primary);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 60px 0 0 0; /* Espaço para navbar fixa se necessário */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .feature-box {
        margin-bottom: 20px;
    }
    
    .doctor-img-container {
        height: 250px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}