/* Services Page Styles */
.services-page {
    background: url('../assets/commercialhome.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.services-bg {
    background: transparent;
    opacity: 0;
}

.services-overlay {
    background: rgba(255, 255, 255, 0.6);
}

.services-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 1rem 3rem;
    box-sizing: border-box;
}

.services-kicker {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #616161;
    margin-bottom: 1.6rem;
}

.services-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.service-card {
    position: relative;
    min-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex: 1;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 16, 28, 0.2) 0%,
        rgba(9, 16, 28, 0.42) 42%,
        rgba(4, 8, 15, 0.86) 100%
    );
}

.service-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.2rem 1.35rem 1.35rem;
    color: #fff;
}

.service-number {
    display: block;
    color: #c87345;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.service-content h2 {
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    min-height: 2.4em;
}

.service-arrow {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: 1.3rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
}

#contact-section-container {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-screen.active {
    opacity: 1;
    pointer-events: all;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #7B7EF4;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .services-container {
        padding: 5rem 0.75rem 2rem;
    }
    
    .services-grid {
        gap: 1rem;
    }

    .service-card {
        min-height: 340px;
    }
}

@media (max-width: 480px) {
    .services-container {
        padding: 5rem 1.5rem 1.5rem;
    }

    .services-grid {
        flex-direction: column;
        gap: 0.9rem;
    }

    .services-kicker {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .service-card {
        width: 100%;
        min-height: 290px;
    }

    .service-content h2 {
        font-size: 1.25rem;
    }
} 