/* SERVICES — section #3 (after Awards)
   Figma: 1381 × 537 content area. White bg.
   - Title centered at top: "תחומי התמחות המשרד" (Heebo Regular 42px black)
   - 4 cards in row, each 323×441, gap 29px
   - Each card: photo bg + dark gradient bottom + white title + gold underline */

.services {
    width: 100%;
    background: #fff;
    padding: 60px 24px 70px;
}

.services__inner {
    max-width: 1381px;
    margin: 0 auto;
}

.services__title {
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 42px;
    line-height: 1.15;
    color: var(--c-blk);
    text-align: center;
    margin: 0 0 40px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 673px));
    justify-content: center;
    gap: 30px;
}

/* ===== Card: image (left) + body (right) — Figma 2191-2109 ===== */
.services__card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 673px;
    min-height: 441px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    direction: ltr;            /* media (1st child) on the LEFT */
    transition: box-shadow .25s ease, transform .25s ease;
}
.services__card:hover { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16); transform: translateY(-3px); }

.services__card-media {
    position: relative;
    flex: 0 0 323px;
    align-self: stretch;
    overflow: hidden;
    background: #d9d9d9;
}
.services__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services__card-label { display: none; }   /* desktop: hidden — used as mobile overlay */

.services__card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 28px;
    text-align: right;
    direction: rtl;
}
.services__card-title {
    font-family: var(--ff-he);
    font-weight: 500 !important;
    font-size: 28px !important;
    line-height: 34px !important;
    color: #1d1d1b;
    margin: 0 !important;
}
.services__card-rule {
    display: block !important;
    width: 294px;
    max-width: 100%;
    height: 4px;
    background: var(--c-gold-flat);
    margin: 10px 0 18px;         /* 10px below the title (hugs it, per Kfir) */
    flex: 0 0 auto;
}
.services__card-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    font-family: var(--ff-he);
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 22px !important;
    color: #1d1d1b;
}
.services__card-list li {
    position: relative;
    margin: 0 0 12px !important;
    padding-inline-start: 18px;          /* room for the disc (RTL: right) */
    list-style: none !important;
    font-size: 18px !important;
    line-height: 22px !important;
}
.services__card-list li:last-child { margin-bottom: 0 !important; }
/* kill the old astlp theme's global gold ✓ on main ul li */
.services__card-list li::after { content: none !important; background: none !important; display: none !important; }
/* clean dark disc bullet */
.services__card-list li::before {
    content: "" !important;
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1d1d1b;
}

.services__card-btn {
    align-self: flex-start;          /* body rtl → flex-start = RIGHT (aligns with text) */
    direction: ltr;                  /* arrow on the LEFT, text on the right */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 135px;
    flex: 0 0 48px;
    height: 48px;
    margin-top: auto;                /* pin to bottom → all buttons aligned */
    padding: 0 18px;
    background: #1d1d1b;
    color: #fff;
    font-family: var(--ff-he);
    font-weight: 700;
    font-size: 20px;
    border-radius: 2px;
    transition: background .2s ease;
}
.services__card:hover .services__card-btn { background: var(--c-gold-flat); }
.services__card-btn img { width: 22px; height: 14px; filter: brightness(0) invert(1); }

/* ===== LAPTOP/TABLET (1025–1399) — single column so 2×673 cards never overflow ===== */
@media (max-width: 1399px) and (min-width: 1025px) {
    .services__grid {
        grid-template-columns: minmax(0, 700px);
        justify-content: center;
    }
}

/* ===== MOBILE (≤1024) — compact 2×2 image cards with label overlay (Figma 1676-18327) ===== */
@media (max-width: 1024px) {
    .services { padding: 40px 16px 50px; }
    .services__title { font-size: 26px; margin: 0 0 22px; }
    .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .services__card {
        flex-direction: column;
        height: auto;
        aspect-ratio: 165 / 142;
        max-width: none;
        transform: none !important;
    }
    .services__card-media { flex: 1 1 auto; width: 100%; height: 100%; }
    .services__card-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
    }
    .services__card-label {
        display: block;
        position: absolute;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 2;
        color: #fff;
        font-family: var(--ff-he);
        font-weight: 700;
        font-size: 16px;
        line-height: 1.2;
        text-align: right;
        text-shadow: 0 1px 6px rgba(0,0,0,.5);
    }
    .services__card-body { display: none; }
}

@media (max-width: 380px) {
    .services__card-label { font-size: 14px; }
}
