/* Enhanced Team Section */
.enhanced-team-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

/* Section Header */
.section-header {
    margin-bottom: 48px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(0, 102, 204, 0.2);
    margin-bottom: 16px;
}

.enhanced-title {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.enhanced-subtitle {
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Masters Grid */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* Enhanced Master Cards */
.enhanced-master-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-master-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #28a745, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-master-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
}

.enhanced-master-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.master-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.master-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

/* Master Profile */
.master-profile {
    text-align: center;
    margin-bottom: 16px;
}

.profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.enhanced-master-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.certification-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #0066cc;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    border: 2px solid white;
}

.certification-badge.gas {
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.master-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.master-position {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 8px;
}

.master-quote {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    margin: 0;
    padding: 10px 12px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 10px;
    border-left: 3px solid #0066cc;
}

/* Master Stats */
.master-stats {
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specialties */
.specialties-section {
    margin-bottom: 16px;
}

.specialties-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.enhanced-specialties {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-pill {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.specialty-pill.emergency {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.specialty-pill.water {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.2);
}

.specialty-pill.heating {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border-color: rgba(253, 126, 20, 0.2);
}

.specialty-pill.gas {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.specialty-pill.pipes {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

.specialty-pill.maintenance {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.enhanced-master-card:hover .specialty-pill {
    transform: scale(1.05);
}

/* Master Action */
.master-action {
    text-align: center;
}

.contact-master-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.contact-master-btn:hover {
    color: white;
    background: linear-gradient(135deg, #0056b3 0%, #003d7a 100%);
}

.response-guarantee {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    margin: 0;
}

/* Trust Showcase */
.trust-showcase {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    margin-top: 48px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 32px;
}

.showcase-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.showcase-subtitle {
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.trust-feature {
    text-align: center;
    padding: 20px;
    background: rgba(0, 102, 204, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

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

.trust-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    transition: all 0.3s ease;
}

.trust-feature:hover .trust-icon {
    transform: scale(1.1);
}

.trust-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.trust-feature-desc {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Final CTA */
.final-cta {
    margin-top: 32px;
}

.emergency-box {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
}

.emergency-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.emergency-desc {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.emergency-call-btn {
    background: white;
    color: #dc3545;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.emergency-call-btn:hover {
    color: #dc3545;
    transform: scale(1.05);
}

.btn-text {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.btn-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}

/* Learn More Button */
.learn-more-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d7a 100%);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.learn-more-btn.expanded .btn-arrow {
    transform: rotate(180deg);
}

/* Master Details Simple */
.master-details-simple {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 102, 204, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
    opacity: 0;
}

.master-details-simple.show {
    max-height: 250px;
    opacity: 1;
    margin-top: 16px;
}

.master-details-simple .master-stats {
    margin-bottom: 12px;
}

.master-details-simple .specialties-section {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .enhanced-title {
        font-size: 36px;
    }
    
    .masters-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .enhanced-master-card {
        padding: 20px;
    }
    
    .enhanced-master-img {
        width: 90px;
        height: 90px;
    }
    
    /* Tablet Trust Section */
    .trust-showcase {
        padding: 32px 24px;
    }
    
    .showcase-title {
        font-size: 26px;
    }
    
    .showcase-subtitle {
        font-size: 16px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .trust-feature {
        padding: 18px 16px;
    }
    
    .emergency-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .enhanced-team-section {
        padding: 40px 0;
    }
    
    .enhanced-title {
        font-size: 32px;
    }
    
    .enhanced-subtitle {
        font-size: 16px;
    }
    
    .masters-grid {
        gap: 24px;
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .enhanced-master-card {
        padding: 16px;
    }
    
    .enhanced-master-img {
        width: 80px;
        height: 80px;
    }
    
    .master-name {
        font-size: 18px;
    }
    
    .master-position {
        font-size: 13px;
    }
    
    .master-quote {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .stat-row {
        padding: 12px 10px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .specialty-pill {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .learn-more-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Mobile Trust Section Optimization */
    .trust-showcase {
        padding: 20px 15px;
        margin-top: 32px;
    }
    
    .showcase-header {
        margin-bottom: 24px;
    }
    
    .showcase-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .showcase-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .trust-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .trust-feature {
        padding: 16px 12px;
        text-align: center;
    }
    
    .trust-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px auto;
    }
    
    .trust-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .trust-feature-title {
        font-size: 15px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .trust-feature-desc {
        font-size: 12px;
        margin: 0;
        line-height: 1.3;
    }
    
    /* Compact Emergency Box */
    .final-cta {
        margin-top: 20px;
    }
    
    .emergency-box {
        padding: 20px 16px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .emergency-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .emergency-desc {
        font-size: 13px;
        margin: 0;
    }
    
    .emergency-call-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-text {
        font-size: 15px;
    }
    
    .btn-number {
        font-size: 13px;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {\n    .trust-showcase {\n        padding: 16px 12px;\n        margin-top: 24px;\n    }\n    \n    .showcase-title {\n        font-size: 20px;\n    }\n    \n    .showcase-subtitle {\n        font-size: 13px;\n    }\n    \n    .trust-grid {\n        gap: 8px;\n        margin-bottom: 16px;\n    }\n    \n    .trust-feature {\n        padding: 12px 8px;\n    }\n    \n    .trust-icon {\n        width: 40px;\n        height: 40px;\n        margin-bottom: 8px;\n    }\n    \n    .trust-icon svg {\n        width: 20px;\n        height: 20px;\n    }\n    \n    .trust-feature-title {\n        font-size: 13px;\n        margin-bottom: 2px;\n    }\n    \n    .trust-feature-desc {\n        font-size: 11px;\n    }\n    \n    .emergency-box {\n        padding: 16px 12px;\n        gap: 12px;\n    }\n    \n    .emergency-title {\n        font-size: 16px;\n    }\n    \n    .emergency-desc {\n        font-size: 12px;\n    }\n    \n    .emergency-call-btn {\n        padding: 12px 16px;\n        font-size: 14px;\n    }\n    \n    .btn-text {\n        font-size: 14px;\n    }\n    \n    .btn-number {\n        font-size: 12px;\n    }\n}\n\n/* Animation delays for staggered loading */\n.enhanced-master-card:nth-child(1) {\n    animation-delay: 0.1s;\n}\n\n.enhanced-master-card:nth-child(2) {\n    animation-delay: 0.2s;\n}\n\n.trust-feature:nth-child(1) { animation-delay: 0.1s; }\n.trust-feature:nth-child(2) { animation-delay: 0.2s; }\n.trust-feature:nth-child(3) { animation-delay: 0.3s; }\n.trust-feature:nth-child(4) { animation-delay: 0.4s; }