/* css/services.css */

/* UTILITY CLASSES */
.text-yellow {
    color: var(--primary-yellow);
}

.text-white {
    color: var(--text-light);
}

.text-gray {
    color: var(--text-gray);
}

.text-dark {
    color: var(--text-dark);
}

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

/* PAGE HEADER */
.page-header {
    background: transparent;
    padding: 180px 0 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* DETAILED SERVICES */
.services-detailed {
    padding: 60px 0 100px;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-box {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-box:hover {
    border-color: rgba(255, 230, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.service-box-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.service-box-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.service-box p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-yellow);
    font-weight: bold;
}

/* BEFORE AFTER SLIDER */
.before-after-section {
    padding: 0 0 100px 0;
}

.image-comparison {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
}

.image-comparison-before,
.image-comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-comparison-after {
    z-index: 1;
    /* Background image */
}

.image-comparison-before {
    z-index: 2;
    /* Foreground image */
    width: 50%;
}

.image-comparison-before img,
.image-comparison-after img {
    /* Need to set width to the parent size so it doesn't shrink when wrapper width changes */
    width: 1000px;
    max-width: none;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* For responsive screens we need the img to take 100vw or 100% of container, but dynamically */
@media (max-width: 1000px) {

    .image-comparison-before img,
    .image-comparison-after img {
        width: 100vw;
    }
}

.image-comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #e6e6e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button svg {
    width: 16px;
    height: 16px;
    margin: 0 -2px;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    z-index: 10;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 500px;
    background: transparent;
    cursor: ew-resize;
}

.slider-input::-moz-range-thumb {
    width: 44px;
    height: 500px;
    background: transparent;
    border: none;
    cursor: ew-resize;
}

/* BUTTON OVERRIDE */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

.btn-outline-dark-filled {
    display: inline-flex;
    align-items: center;
    background: var(--text-dark);
    color: var(--text-light);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-dark-filled:hover {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

/* CTA SECTION */
.services-cta {
    background: var(--primary-yellow);
    padding: 80px 0;
    border-radius: 20px 20px 0 0;
    /* Flows into the footer naturally */
    margin-bottom: -1px;
    /* seamless connection to footer if needed */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-grid-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .service-box {
        padding: 30px;
    }

    .image-comparison {
        height: 300px;
    }
}