/*
 * service-hub-links.css
 * Homepage section: card grid linking to Service Hub pages
 * Place in: /wp-content/themes/Divi-child/service-hub-links.css
 *
 * Fonts  : Open Sans
 * Colors : #1A2C58 navy | #393939 body | #fba919 amber | #f7f8fa light bg
 */

.shl-section *,
.shl-section *::before,
.shl-section *::after {
    box-sizing: border-box;
}

.shl-section {
    font-family: 'Open Sans', sans-serif;
    background-color: #f7f8fa;
    padding: 90px 0;
}

.shl-container {
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ─── Heading ───────────────────────────────────────────────────────────── */
.shl-heading-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.shl-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: #1A2C58;
    margin: 0 0 14px;
    line-height: 1.3;
}

.shl-subheading {
    font-size: 1.05rem;
    color: #393939;
    line-height: 1.7;
    margin: 0;
}

/* ─── Grid ──────────────────────────────────────────────────────────────── */
.shl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

/* 4-up on desktop */
.shl-card {
    flex: 1 1 calc(25% - 21px);
    min-width: 230px;
    background-color: #ffffff;
    border-radius: 6px;
    border-top: 4px solid #fba919;
    padding: 36px 26px 30px;
    box-shadow: 0 2px 14px rgba(26, 44, 88, 0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shl-card:hover {
    box-shadow: 0 8px 28px rgba(26, 44, 88, 0.14);
    transform: translateY(-4px);
}

.shl-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shl-card__icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.shl-card__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A2C58;
    margin: 0;
    line-height: 1.35;
}

.shl-card__desc {
    font-size: 0.925rem;
    color: #393939;
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

.shl-card__cta {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fba919;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.shl-card:hover .shl-card__cta {
    color: #1A2C58;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .shl-card {
        flex: 1 1 calc(50% - 14px);
    }
}

@media (max-width: 600px) {
    .shl-section {
        padding: 64px 0;
    }

    .shl-heading-wrap {
        margin-bottom: 36px;
    }

    .shl-grid {
        gap: 20px;
    }

    .shl-card {
        flex: 1 1 100%;
    }
}

/*
 * ─── HOW TO ENQUEUE ────────────────────────────────────────────────────────
 *
 * Add to your Divi child theme's functions.php:
 *
 * function drydenlabs_service_hub_links_styles() {
 *     if ( is_front_page() || is_home() ) {
 *         wp_enqueue_style(
 *             'service-hub-links',
 *             get_stylesheet_directory_uri() . '/service-hub-links.css',
 *             array(),
 *             '1.0.0'
 *         );
 *     }
 * }
 * add_action( 'wp_enqueue_scripts', 'drydenlabs_service_hub_links_styles' );
 *
 * Then paste service-hub-links.html into a Divi "Code" module on the
 * homepage, wherever you want the section to appear.
 * ────────────────────────────────────────────────────────────────────────────
 */
