﻿/* ------------------------------------------------------------------ */
/* Our Services                                                         */
/*                                                                      */
/* Only the service tiles; the hero, the section heading and the navy   */
/* figures bar all come from style.css, which this page reuses as-is.   */
/* Written with logical properties, so the Arabic build mirrors on its  */
/* own — the RTL block at the end is just the arrow glyph.              */
/* ------------------------------------------------------------------ */

.services-section {
    padding: clamp(40px, 4vw, 72px) 0 var(--section-gap);
}

.services-intro {
    max-width: 980px;
    margin-top: clamp(14px, 1.4vw, 24px);
    font-size: var(--fs-sub);
    line-height: 1.8;
    color: var(--text);
}

    .services-intro > p:last-child {
        margin-bottom: 0;
    }

/* ---- the tiles ----------------------------------------------------- */

.service-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.5vw, 28px);
    margin: clamp(30px, 3vw, 54px) 0 clamp(40px, 4vw, 76px);
}

.service-tile {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--tile-bg, #F4F5FA);
}

.service-tile__media {
    position: relative;
    height: 260px;
}

.service-tile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The icon straddles the seam between the photo and the body, tucked
   against the reading-start edge. */
.service-tile__icon {
    position: absolute;
    z-index: 1;
    inset-inline-start: clamp(14px, 1.3vw, 24px);
    bottom: calc(clamp(38px, 3vw, 52px) / -2);
    display: grid;
    place-items: center;
    width: clamp(38px, 3vw, 52px);
    height: clamp(38px, 3vw, 52px);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(31, 49, 99, .12);
}

    .service-tile__icon img {
        width: 52%;
        height: auto;
    }

.service-tile__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: clamp(8px, .7vw, 13px);
    padding: clamp(30px, 2.6vw, 46px) clamp(16px, 1.5vw, 26px) clamp(58px, 4.4vw, 80px);
}

.service-tile__title {
    font-size: clamp(20px, 1.3vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--navy);
}

    .service-tile__title a {
        color: inherit;
        text-decoration: none;
    }

        .service-tile__title a:hover {
            text-decoration: underline;
        }

/* Three lines, then an ellipsis: the full text lives on the service's
   own page, which the arrow links to. */
.service-tile__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(16px, .95vw, 18px);
    line-height: 1.6;
    color: var(--text-soft);
}

.service-tile__arrow {
    position: absolute;
    inset-inline-end: clamp(16px, 1.5vw, 26px);
    bottom: clamp(16px, 1.5vw, 26px);
    display: grid;
    place-items: center;
    width: clamp(34px, 2.7vw, 46px);
    height: clamp(34px, 2.7vw, 46px);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue, #1F3163);
    font-size: clamp(13px, 1vw, 17px);
    box-shadow: 0 4px 14px rgba(31, 49, 99, .1);
    transition: transform .2s;
}

    .service-tile__arrow:hover {
        transform: scale(1.08);
    }

/* ---- tints --------------------------------------------------------- */

.service-tile--green {
    --tile-bg: #EAF3EF;
}

.service-tile--rose {
    --tile-bg: #FBEFF1;
}

.service-tile--blue {
    --tile-bg: #EFF1F8;
}

.service-tile--lilac {
    --tile-bg: #F1F0F9;
}


.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(7px, .65vw, 12px);
}

.blog-chip.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.blog-chip {
    padding: clamp(7px, .68vw, 14px) clamp(14px, 1.3vw, 22px);
    border: 1px solid #E1E4ED;
    border-radius: 999px;
    background: var(--white);
    font: inherit;
    font-size: clamp(14px, .85vw, 14px);
    color: var(--text-soft);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}



/* ---- RTL ------------------------------------------------------------ */

/* The arrow points "forward", which is leftward in Arabic. Everything
   else on this page mirrors on its own. */
[dir="rtl"] .service-tile__arrow i {
    transform: scaleX(-1);
}

/* ---- responsive ------------------------------------------------------ */

@media (max-width: 1199.98px) {
    .service-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .service-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479.98px) {
    .service-tiles {
        grid-template-columns: 1fr;
    }
}
