/* ==========================================================================
    CONFIGURAÇÕES GERAIS (VARIÁVEIS E RESET)
   ========================================================================== */

:root {
    --primary: #1e3a5f;
    --accent: #4a90e2;
    --whatsapp-blue: #007bff;
    --bg: #e2e8f0;
    --header-bg: #cacbfd;
    --text: #333333;
    --white: #ffffff;
    --footer-dark: #12263f;
    --radius-card: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
    list-style: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
    HEADER (FIXO)
   ========================================================================== */

header {
    background: var(--header-bg);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
}

.main-menu ul {
    display: flex;
    gap: 20px;
}

.main-menu ul li a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links-top {
    display: flex;
    gap: 10px;
}

.social-links-top a {
    color: var(--primary);
    font-size: 1.1rem;
}

.logo-header-right {
    height: 45px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
    SEÇÃO HERO
   ========================================================================== */

.hero {
    padding: 100px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.hero-description {
    margin-bottom: 25px;
}

.blob-image {
    width: 350px;
    height: 350px;
    background-image: url('foto-jose.png');
    background-size: cover;
    border: 8px solid white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobAnimation 15s infinite alternate;
}

/* ==========================================================================
    SERVIÇO SOCIAL
   ========================================================================== */

.social-service-section {
    padding: 80px 0;
}

.social-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-card);
}

.section-title-left {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.info-important {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    margin: 25px 0;
}

/* ==========================================================================
    ESPECIALIDADES (TEXTO DENTRO DA IMAGEM)
   ========================================================================== */

.specialties-section {
    padding: 80px 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.specialty-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 380px;
}

.specialty-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.specialty-card:hover img {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #ffffff;
    pointer-events: none;
}

.card-content h3 {
    color: #ffffff !important;
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ==========================================================================
    SERVIÇOS CLÍNICOS E SOBRE
   ========================================================================== */

.services, .about-me {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.specialties-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.spec-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
}

.spec-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.info-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* ==========================================================================
    RODAPÉ (FOOTER) - CORREÇÕES DE ALINHAMENTO E ANIMAÇÃO
   ========================================================================== */

.footer-wrapper {
    background: var(--footer-dark);
    color: white;
}

.pre-footer-logos {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-brand-logo {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-brand-signature {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr 0.8fr;
    gap: 30px;
    padding: 50px 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinhamento padrão esquerda */
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff !important;
    opacity: 0.8;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent) !important;
    transform: translateX(5px); /* Leve deslocamento no hover */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 12px;                  
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.social-footer-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    font-size: 1.4rem;
}

.social-footer-icons a {
    color: white !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-footer-icons a:hover {
    color: var(--accent) !important;
    transform: translateY(-5px); /* Sobe um pouco no hover */
}

/* ==========================================================================
    BOTÕES COM DEGRADÊ
   ========================================================================== */

.btn-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white !important;
    padding: 10px 20px; /* Diminuído de 14px 28px para 10px 20px */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;  /* Adicionado para reduzir levemente o texto */
    display: inline-flex;
    align-items: center;
    gap: 8px;           /* Reduzido o espaço entre ícone e texto */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    filter: brightness(1.1);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
    RESPONSIVIDADE (MOBILE)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-flex, .about-grid, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-flex { flex-direction: column-reverse; }
    
    /* Centralização Responsiva do Footer */
    .footer-col { 
        align-items: center; 
        text-align: center;
    }
    
    .footer-col h4 {
        text-align: center;
        width: 100%;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .social-footer-icons {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--header-bg);
        padding: 20px;
    }
    .main-menu.active { display: block; }
    .main-menu ul { flex-direction: column; }
    .menu-toggle { display: block; }
    .specialties-grid, .specialties-container { grid-template-columns: 1fr; }
    .specialty-card { height: 320px; }
    .social-links-top, .logo-header-right { display: none; }
}

/* ==========================================================================
    ANIMAÇÕES
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blobAnimation {
    from { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    to { border-radius: 50%; }
}