/* Service Hero Banner Styles */
/* Use on service pages with hero banner, back button, and contact box */

.service-hero-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 30px 0;
    overflow: hidden;
}

/* Animated background image using pseudo-element */
.service-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1);
    animation: serviceHeroZoom 6s ease-out forwards;
}

@keyframes serviceHeroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.service-hero-banner .wrap {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 1;
}

.back-to-services {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 30px;
    color: #fff;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    animation: heroDropIn 0.8s ease-out 1s forwards;
}

.back-to-services .back-arrow {
    background: transparent;
    color: #fff;
    padding: 4px 10px 4px 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-services .back-text {
    padding: 4px 18px 4px 12px;
    border-left: 1px solid #fff;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
}

.back-to-services:hover {
    border: 1px solid #00bab3;
    background-color: #00bab3;
    color: #fff;
}

.back-to-services:hover .back-arrow {
    color: #fff;
}

.back-to-services:hover .back-text {
    border-left-color: #fff;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: heroDropIn 0.8s ease-out 0.3s forwards;
}

/* Drop-in animation keyframes */
@keyframes heroDropIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-right {
    flex-shrink: 0;
}

.contact-box {
    background: #2B303A;
    padding: 30px 35px;
    border-radius: 8px;
    max-width: 320px;
}

.contact-box h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.contact-box p {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.contact-box-btn {
    display: block;
    background: #C8E84B;
    color: #2B303A;
    text-align: center;
    padding: 6px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-box-btn:hover {
    background: #ffffff;
}

/* Responsive */
@media only screen and (max-width: 900px) {
    .hero-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .contact-box {
        max-width: 100%;
        width: 100%;
    }
}
