@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

/* ===== SERVICES SECTION ===== */
.services-section {
    width: 100%;
    background: #ffffff;
    padding: clamp(60px, 6vw, 120px) 0;
}

.services-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(40px, 6vw, 120px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Header */
.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    max-width: 1074px;
}

.services-label {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: #004882;
}

.services-title {
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.4;
    color: #252525;
    text-align: center;
    margin: 0;
}

.services-desc {
    font-family: 'Clash Display', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #252525;
    text-align: center;
    margin: 0;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 700px;
    gap: 25px;
    width: 100%;
}

.services-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}


.services-card-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(26.5px);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    z-index: 2;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    pointer-events: none;
}

.services-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark gradient overlay on entire card */
.services-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}


.services-card-title {
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #ffffff;
    margin: 0 0 8px;
}

.services-card-desc {
    font-family: 'Clash Display', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .services-inner {
        padding: 0 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 500px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .services-inner {
        padding: 0 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }

    .services-card-title {
        font-size: 20px;
    }
}