/* /home/mgijimi/my_flask_app/static/assets/css/services.css */

/* Note: This file relies on variables defined in main.css */

/* Services Hero Section */
.services-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.95)),
                url('/static/assets/images/services-hero-bg.jpg') no-repeat center center/cover; /* Ensure this image path is correct */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Services Grid Section (changed from horizontal scroller) */
.services-horizontal {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-scroller { /* Renamed from .services-grid for clarity, but still the container */
    display: grid; /* Use CSS Grid for layout */
    /* NEW: Define responsive columns for a standard grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between cards */
    /* REMOVED: All horizontal scrolling properties */
    /* overflow-x: auto; */
    /* scroll-snap-type: x mandatory; */
    /* padding-bottom: 20px; */
    /* -webkit-overflow-scrolling: touch; */
    /* scrollbar-width: thin; */
    /* scrollbar-color: var(--primary-red) var(--border-color); */
}

/* REMOVED: Scrollbar hiding for Webkit browsers */
/* .services-scroller::-webkit-scrollbar { height: 10px; } */
/* .services-scroller::-webkit-scrollbar-track { background: var(--border-color); border-radius: 5px; } */
/* .services-scroller::-webkit-scrollbar-thumb { background-color: var(--primary-red); border-radius: 5px; border: 2px solid var(--border-color); } */


.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Make the anchor tag a block to contain the card */
    /* REMOVED: scroll-snap-align: start; */
    /* REMOVED: min-width: 300px; (now handled by grid-template-columns) */
}

.service-card-hz {
    background-color: var(--primary-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-red);
    height: 100%; /* Ensure all cards have the same height in the grid cell */
    display: flex; /* Flexbox for icon and content within the card */
    flex-direction: column; /* Stack icon and content */
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */
}

.service-card-hz:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card-hz .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--primary-white);
    font-size: 2em;
}

.service-card-hz h3 {
    margin-bottom: 10px;
    color: var(--primary-black);
    font-size: 1.3em;
    font-weight: 600;
}

.service-card-hz p {
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 15px; /* Space before learn more */
}

.service-card-hz .learn-more {
    display: inline-flex; /* Use inline-flex for text and icon */
    align-items: center;
    color: var(--primary-red);
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card-hz .learn-more i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.service-card-hz:hover .learn-more {
    color: var(--dark-red);
}

.service-card-hz:hover .learn-more i {
    margin-left: 12px; /* Move arrow slightly on hover */
}

/* CTA Section specific to Services page */
.cta-section {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 80px 0;
    text-align: center;
}

.cta-section .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Animation Styles (for services.html) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments for Services page */
@media (max-width: 992px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    .services-hero p {
        font-size: 1.1rem;
    }
    .services-scroller {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust min-width for tablet */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 80px 0 60px;
    }
    .services-hero h1 {
        font-size: 2.2rem;
    }
    .services-hero p {
        font-size: 1rem;
    }
    .services-scroller {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 20px;
    }
    .service-card-hz {
        padding: 20px;
    }
    .service-card-hz .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
        margin-bottom: 15px;
    }
    .service-content h3 {
        font-size: 1.2em;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 100px 0 50px;
    }
    .services-hero h1 {
        font-size: 1.8rem;
    }
    .services-hero p {
        font-size: 0.9rem;
    }
    .services-scroller {
        gap: 15px;
    }
    .service-card-hz {
        padding: 15px;
    }
    .service-card-hz .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    .service-content h3 {
        font-size: 1.1em;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* GLOBAL SLIDER BUTTONS (from main.css, but if they exist in services.html, they need to be hidden here) */
/* If you have .slider-button elements directly in services.html, add this: */
.slider-button {
    display: none; /* Completely remove slider buttons on this page */
}

