/* ===== TEAM SECTION - RESTART CLINIC ===== */

:root {
    --primary-blue: #28b6f6;
    --primary-dark: #003153;
    --primary-light: #5fd0ed;
    --white: #ffffff;
    --white-soft: #f8faff;
    --gray-light: #f3f4f6;
    --gray: #6b7280;
    --text-dark: #1f2937;
    --text-soft: #4b5563;
    --shadow-sm: 0 4px 6px rgba(0,49,83,0.05);
    --shadow-md: 0 10px 25px rgba(0,49,83,0.08);
    --shadow-lg: 0 20px 40px rgba(0,49,83,0.12);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== SEÇÃO PRINCIPAL ===== */
.medical-team-premium {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: var(--white-soft);
}

.team-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ===== ELEMENTOS DE FUNDO ===== */
.team-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.08;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
}

.bg-circle-2 {
    width: 250px;
    height: 250px;
    background: var(--primary-dark);
    bottom: -50px;
    left: -50px;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 50%;
    left: 20%;
    opacity: 0.05;
}

/* ===== CABEÇALHO ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Label com traço - IGUAL AOS SERVIÇOS */
.section-label {
    display: block;
    margin-bottom: 20px;
}

.label-text {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

/* TRAÇO NO LABEL */
.label-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
}

/* REMOVER LINHA ANTIGA */
.label-line {
    display: none !important;
}

/* Título principal */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    border-bottom: none;
    display: block;
}

/* Subtítulo */
.section-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    border-bottom: none;
    display: block;
}

/* Garantir que não herda pseudo-elementos */
.section-subtitle::before,
.section-subtitle::after {
    display: none !important;
    content: none !important;
}

/* ===== GRID DE MEMBROS ===== */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ===== CARD DE MEMBRO ===== */
.team-member-card {
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.team-member-card:nth-child(1) { animation-delay: 0.1s; }
.team-member-card:nth-child(2) { animation-delay: 0.2s; }
.team-member-card:nth-child(3) { animation-delay: 0.3s; }
.team-member-card:nth-child(4) { animation-delay: 0.4s; }
.team-member-card:nth-child(5) { animation-delay: 0.5s; }
.team-member-card:nth-child(6) { animation-delay: 0.6s; }

.card-inner {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

.team-member-card:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

/* ===== HEADER DO CARD ===== */
.card-header {
    position: relative;
    padding: 30px 20px 50px;
    color: var(--white);
    overflow: hidden;
}

/* ===== IMAGEM DO MEMBRO ===== */
.member-image {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.image-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.team-member-card:hover .member-photo {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 40px;
}

/* ===== BADGES ===== */
.member-badges {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.badge {
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    background: var(--white);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.badge i {
    font-size: 11px;
    color: var(--primary-blue);
}

/* ===== TÍTULO DO MEMBRO ===== */
.member-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.member-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
    font-family: 'Roboto', sans-serif;
}

.member-specialty {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: var(--white);
}

/* ===== CONTEÚDO DO CARD ===== */
.card-content {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-title i {
    color: var(--primary-blue);
    font-size: 12px;
}

.info-text {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.5;
}

/* ===== ÁREAS DE ATUAÇÃO ===== */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-tag {
    background: var(--white-soft);
    color: black;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(40,182,246,0.2);
    transition: var(--transition);
}

.area-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: transparent;
}

/* ===== BOTÕES DE AÇÃO ===== */
.member-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.primary-btn,
.secondary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(40,182,246,0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.secondary-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== ESTATÍSTICAS ===== */
.team-stats {
    margin-top: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eef2f6;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 24px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ===== BOTÃO VER TODA EQUIPA ===== */
.team-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,49,83,0.2);
}

.view-all-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(40,182,246,0.3);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* ===== ESTADO VAZIO ===== */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #eef2f6;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 32px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-soft);
    margin-bottom: 25px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .team-container {
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .team-container {
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .medical-team-premium {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .team-members-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .image-frame {
        width: 120px;
        height: 120px;
    }
    
    .member-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .medical-team-premium {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .badge {
        white-space: normal;
        font-size: 11px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .card-inner,
    .member-photo,
    .stat-item,
    .view-all-btn,
    .contact-btn,
    .team-member-card {
        transition: none;
        animation: none;
        transform: none !important;
        opacity: 1;
    }
}

/* ===== CORREÇÃO RADICAL PARA O CABEÇALHO ===== */
.section-header {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 50px !important;
}

.header-content {
    display: block !important;
    width: 100% !important;
}

.section-label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.label-text {
    display: inline-block !important;
    color: #28b6f6 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

/* Traço no label */
.label-text::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: #28b6f6 !important;
    border-radius: 3px !important;
}

/* Esconder a linha antiga */
.label-line {
    display: none !important;
}

.section-title {
    display: block !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #003153 !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* Garantir que não há floats ou flex */
.section-header *,
.header-content * {
    float: none !important;
    flex: none !important;
    display: block !important;
}

.section-header .section-title,
.section-header .section-label {
    display: block !important;
    clear: both !important;
}
/* ===== REMOVER BARRA ROXA DO TÍTULO ===== */
.section-title {
    border-bottom: none !important;
    position: relative !important;
}

.section-title::after,
.section-title::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* ===== TÍTULO DO MEMBRO - CORRIGIDO ===== */
.member-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.member-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white) !important;  /* FORÇA BRANCO */
    font-family: 'Roboto', sans-serif;
}

.member-specialty {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;  /* FORÇA BRANCO COM OPACIDADE */
    font-weight: 500;
    background: transparent !important;  /* REMOVE QUALQUER BACKGROUND */
}