/* Reference-photo service banners. CSS only affects the homepage gateway. */
[data-home-page] > .hero { padding-bottom: 128px; }
[data-home-page] .home-service-gateways {
    position: relative;
    z-index: 3;
    isolation: isolate;
    width: min(1160px, calc(100% - 32px));
    margin: -66px auto 54px;
    direction: rtl;
}
[data-home-page] .home-service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
[data-home-page] .home-service-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 115px;
    height: auto;
    aspect-ratio: 5 / 1;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(42, 95, 151, .09);
    color: #102c52;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Four cards form a complete 2×2 grid on desktop; pharmacy remains mobile-only. */
@media (min-width: 768px) {
    [data-home-page] .home-service-card--pharmacy { display: none; }
}
[data-home-page] .home-service-card:hover {
    transform: translateY(-3px);
    border-color: #c6e2fa;
    box-shadow: 0 14px 30px rgba(42, 95, 151, .16);
}
[data-home-page] .home-service-card:focus-visible {
    outline: 3px solid #1666bb;
    outline-offset: 3px;
}
[data-home-page] .home-service-art {
    position: absolute;
    z-index: 0;
    inset-block: 0;
    right: 0;
    width: 54%;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
}
[data-home-page] .home-service-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Fade the photo's left edge into the same white as the card: no hard seam. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.24) 17%, #000 48%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.24) 17%, #000 48%);
    transition: transform .25s ease;
}
[data-home-page] .home-service-card:hover .home-service-art img { transform: scale(1.025); }
/* The original photo crop already includes the pale blue wave on white. */
[data-home-page] .home-service-copy {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 49%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 8px 13px 19px;
    gap: 5px;
    direction: rtl;
    text-align: center;
}
[data-home-page] .home-service-copy strong {
    font-size: clamp(15px, 1.36vw, 21px);
    font-weight: 800;
    line-height: 1.5;
    color: #0b2950;
}
[data-home-page] .home-service-copy > span {
    color: #8190a4;
    font-size: clamp(10px, .97vw, 14px);
    line-height: 1.65;
}
[data-home-page] .home-service-arrow {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 11px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #0755a4;
    font-size: 12px;
    transition: background-color .2s ease, color .2s ease;
}
[data-home-page] .home-service-card:hover .home-service-arrow {
    color: #fff;
    background: #1875d1;
}
@media (max-width: 991px) and (min-width: 768px) {
    [data-home-page] .home-service-cards { gap: 12px; }
    [data-home-page] .home-service-copy { padding-inline: 8px; }
    [data-home-page] .home-service-copy strong { font-size: 14px; }
    [data-home-page] .home-service-copy > span { font-size: 10px; }
}
@media (max-width: 767px) {
    /* One full-width horizontal banner per row, first crossing the blue/white edge. */
    [data-home-page] > .hero { padding-bottom: 140px; }
    [data-home-page] .home-service-gateways {
        width: calc(100% - 24px);
        margin: -65px auto 36px;
    }
    [data-home-page] .home-service-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    [data-home-page] .home-service-card {
        grid-column: auto;
        height: clamp(92px, 25vw, 120px);
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 10px;
    }
    [data-home-page] .home-service-art { width: 55%; }
    [data-home-page] .home-service-copy {
        width: 49%;
        gap: 4px;
        padding: 6px 6px 23px;
    }
    [data-home-page] .home-service-copy strong {
        font-size: clamp(13px, 3.7vw, 18px);
        line-height: 1.45;
    }
    [data-home-page] .home-service-copy > span {
        font-size: clamp(9px, 2.6vw, 12px);
        line-height: 1.5;
    }
    [data-home-page] .home-service-arrow {
        left: 12px;
        bottom: 9px;
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}
@media (max-width: 359px) {
    [data-home-page] .home-service-gateways { width: calc(100% - 16px); }
    [data-home-page] .home-service-copy strong { font-size: 12px; }
    [data-home-page] .home-service-copy > span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-home-page] .home-service-card,
    [data-home-page] .home-service-art img,
    [data-home-page] .home-service-arrow { transition: none; }
}
