/**
 * Services Block Styles
 * Loaded automatically only when this block is present on the page.
 */

/* ==========================================================================
   SECTION
   ========================================================================== */

.services-block {
    background-color: #fff;
    padding: 80px 0 100px;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.services-header {
    text-align: center;
    margin-bottom: 32px;
}

.services-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    line-height: 1.2;
    color: var(--color-blue);
    margin-bottom: 16px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.services-subtitle {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: #4a5565;
    max-width: 672px;
    margin: 0 auto;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.services-subtitle p {
    margin: 0;
}

/* Highlight within subtitle */
.services-subtitle strong,
.services-subtitle a {
    color: var(--color-blue);
    font-weight: inherit;
    text-decoration: none;
}

/* ==========================================================================
   CONTENT BOX
   ========================================================================== */

.services-content-box {
    max-width: 980px;
    margin: 0 auto 56px;
    background: linear-gradient(to bottom, #f8fbff, #f0f8ff);
    border: 1px solid rgba(64, 195, 247, 0.1);
    border-radius: 16px;
    padding: 33px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: #364153;
}

.services-content-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

/* ==========================================================================
   SERVICE CARD
   ========================================================================== */

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow:
        0px 10px 15px -3px rgba(0, 0, 0, 0.1),
        0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

/* Background image */
.service-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Dark gradient overlay — covers bottom half */
.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        #0e2c5e 0%,
        rgba(14, 44, 94, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
}

/* Icon badge — top-right corner */
.service-card__icon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: var(--color-light-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        0px 10px 15px rgba(0, 0, 0, 0.1),
        0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.service-card__icon-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Text content — bottom-left, on top of gradient */
.service-card__content {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    padding: 24px 24px 20px;
    z-index: 2;
}

.service-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 8px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.service-card__desc {
    font-family: var(--font-body);
    font-size: 0.8375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.service-card__desc p {
    margin: 0;
}

/* Bottom accent bar — gradient line */
.service-card__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-light-blue), var(--color-blue));
    z-index: 3;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.services-cta-wrap {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .services-block {
        padding: 60px 0 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        aspect-ratio: 4 / 3;
    }

    .services-content-box {
        padding: 24px 20px;
        margin-bottom: 40px;
    }
}
