/* ============================================= */
/*             SERVICES PAGE STYLES             */
/* ============================================= */

/* ==================== */
/*      HERO SECTION    */
/* ==================== */
.services-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
             url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
 background-size: cover;
 background-position: center;
 height: 60vh;
 min-height: 400px;
 display: flex;
 align-items: center;
 color: white;
 text-align: center;
 padding-top: 80px;
}

/* ==================== */
/*    MAIN SERVICES     */
/* ==================== */
.main-services {
 padding: 80px 0;
 text-align: center;
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
    width: 100%;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    max-width: 350px;
    width: 100%;
    
    /* NEW: This forces the button to the bottom */
    display: flex;
    flex-direction: column;
    text-align: left; /* Aligns all text to the left */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left; /* Ensures icon stays left */
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.service-card ul {
    text-align: left;
    margin: 0 0 30px 20px; /* Added bottom margin for breathing room */
    padding-left: 0;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* NEW: This pushes the button to the bottom and keeps it left */
.service-card .secondary-button {
    margin-top: auto;
    align-self: flex-start; /* Keeps button on the left */
    display: inline-block;
}

/* ==================== */
/*    PROCESS STEPS     */
/* ==================== */
.service-process {
 padding: 80px 0;
 background-color: var(--accent-color);
 text-align: center;
}

.process-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 margin-top: 50px;
 justify-items: center;
}

.process-step {
 background: white;
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
 max-width: 280px;
 width: 100%;
 position: relative;
}

.step-number {
 position: absolute;
 top: -20px;
 left: 50%;
 transform: translateX(-50%);
 width: 40px;
 height: 40px;
 background-color: var(--primary-color);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: bold;
 font-size: 1.2rem;
}

.process-step h3 {
 margin: 15px 0 10px;
 color: var(--secondary-color);
}

.process-step p {
 color: var(--light-text);
 font-size: 0.9rem;
}

/* ==================== */
/*      CTA SECTION     */
/* ==================== */
.cta-section {
 padding: 80px 0;
 background: linear-gradient(135deg, var(--primary-color), #c1121f);
 color: white;
 text-align: center;
}

.cta-section h2 {
 color: white;
 margin-bottom: 20px;
}

.cta-section p {
 max-width: 700px;
 margin: 0 auto 30px;
 opacity: 0.9;
}

/* ============================================= */
/*            RESPONSIVE ADJUSTMENTS             */
/* ============================================= */
@media (max-width: 992px) {
 .section-title h2 {
     font-size: 2rem;
 }
}

@media (max-width: 768px) {
 .services-hero {
     height: 50vh;
     min-height: 350px;
 }
 
 .service-card {
     padding: 25px;
 }
}

@media (max-width: 576px) {
 .services-hero {
     height: 40vh;
 }
 
 .service-card {
     max-width: 100%;
 }
 
 .process-step {
     max-width: 100%;
 }
}