/* ESM Homepage Enhanced Styles */

/* Scoped wrapper for homepage to stabilize spacing */
.home-page { display: block; }
.home-page section { padding-top: 60px; padding-bottom: 60px; }
@media (max-width: 992px) { .home-page section { padding-top: 50px; padding-bottom: 50px; } }
@media (max-width: 576px) { .home-page section { padding-top: 40px; padding-bottom: 40px; } }

/* Normalize section headings spacing */
.home-page .sec-heading { margin-bottom: 30px; }

/* Consulting section layout */
.consulting-section { padding-top: 40px; padding-bottom: 60px; }
.consulting-section .side-form { max-width: 920px; margin: 0 auto; }
.consulting-section .form-group { margin-bottom: 18px; }
.consulting-section .hero-search-action { margin-top: 10px; }

/* Tighter hero to improve proportion */
.hero-section { min-height: 90vh; }
.hero-title { font-size: 3.6rem; }
@media (max-width: 992px) { .hero-title { font-size: 3rem; } }

/* Why Choose Us Section */
.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon i {
    font-size: 2rem;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    transform: scale(1.1) rotate(5deg);
}

.feature-box:hover .feature-icon i {
    color: white !important;
    transform: scale(1.2);
}

.feature-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-box:hover .feature-content h4 {
    color: #3b82f6;
}

.feature-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Process Steps Section */
.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    height: 100%;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.process-step:hover .step-number::before {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.process-step:hover .step-content h4 {
    color: #3b82f6;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Process Steps Connection Line */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    opacity: 0.3;
    z-index: -1;
}

@media (max-width: 992px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* Section Headings Enhancement */
.sec-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 20px;
    position: relative;
}

.sec-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 2px;
}

.sec-heading p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Background Enhancements */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

/* Animation Enhancements */
.feature-box,
.process-step {
    animation: fadeInUp 0.8s ease-out;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-box {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-content h4 {
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .sec-heading h2 {
        font-size: 2rem;
    }
    
    .sec-heading p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .feature-box {
        padding: 25px 15px;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .sec-heading h2 {
        font-size: 1.8rem;
    }
}


