/* --- SERVICES --- */
.services-section {
    position: relative;
    padding: 60px 20px; 
    min-height: 85vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
}

.services-bg-container { position: absolute; inset: 0; z-index: -1; }
.services-bg-img { width: 100%; height: 100%; object-fit: cover; }
.services-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.9); }

.services-header {
    text-align: center;
    margin-bottom: 40px; 
    position: relative;
    z-index: 1;
    width: 100%;
}

.services-header h1 {
    font-size: 1.8rem; 
    font-weight: 800;
    color: #b91c1c;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.services-header p {
    font-size: 0.95rem; 
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 30px 20px; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none; 
    color: inherit; 
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: #ef4444; 
}

.service-icon {
    background: #fee2e2;
    color: #ef4444;
    width: 45px; height: 45px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 15px;
}

.service-card h3 { 
    color: #065f46; 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
    font-weight: 700;
}

.service-card p { 
    color: #ef4444; 
    font-size: 0.875rem; 
    line-height: 1.5; 
    margin-bottom: 20px;
    flex-grow: 1;
}

.learn-more { 
    color: #ef4444; 
    font-weight: 700; 
    font-size: 0.8rem; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: gap 0.2s;
}

.service-card:hover .learn-more { gap: 10px; }



/* --- BREAKPOINTS --- */

/* Medium Devices (md: 768px) */
@media (min-width: 768px) {
    /* SERVICE */
    .services-section { padding: 80px 20px; }
    .services-header { margin-bottom: 60px; }
    .services-header h1 { font-size: 2.2rem; }
    .services-header p { font-size: 1.05rem; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .service-card { padding: 40px 30px; }
    .service-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .service-card h3 { font-size: 1.2rem; }
}

/* Large Devices (lg: 1024px) */
@media (min-width: 1024px) {
    /* SERVICE */
    .services-header h1 { font-size: 2.5rem; }
    .services-header p { font-size: 1.15rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Extra Large Devices (xl: 1280px) */
@media (min-width: 1280px) {
    /* SERVICE */
    .services-header h1 { font-size: 2.8rem; }
    .services-header p { font-size: 1.25rem; }
    .services-grid { max-width: 1300px; gap: 30px; }
}

/* Services mobile polish */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.services-header h1,
.services-header p,
.service-card h3,
.service-card p {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .services-section {
        min-height: auto;
        padding: 44px 14px;
    }

    .services-header {
        margin-bottom: 28px;
    }

    .services-header h1 {
        font-size: 1.55rem;
    }

    .services-grid {
        gap: 14px;
    }

    .service-card {
        min-height: 0;
        padding: 20px;
        border-radius: 8px;
    }

    .service-card:hover {
        transform: none;
    }

    .learn-more {
        min-height: 44px;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .services-section {
        padding: 34px 12px;
    }

    .service-card {
        padding: 18px;
    }
}
