/* ============================================================
   Location Spoke — Contractors
   File: assets/css/spoke/spoke-contractors.css
   Scope: .spoke-contractors__* classes only
   Figma: node 2209:685 — white bg, header + 3 image cards with a
   dark overlay and title/body sitting on the photo.
   ============================================================ */

.spoke-contractors__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 825px;
    margin: 0 auto 63px;
    text-align: center;
}

.spoke-contractors__heading {
    margin: 0 0 14px;
}

/* Figma #2205:459 uses the Body style (navy 16px medium), not the larger
   grey global .spoke-intro. Scope an override so the global stays intact. */
.spoke-contractors__intro {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    margin: 0;
}

.spoke-contractors__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    max-width: 1220px;
    margin: 0 auto;
}

.spoke-contractors__card {
    position: relative;
    display: flex;
    min-height: 375px;
    overflow: hidden;
    border-radius: var(--spoke-radius-card);
    isolation: isolate;
}

.spoke-contractors__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -2;
}

.spoke-contractors__card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Figma #2209:669/672/675: title anchored to the TOP of the card, body to
   the BOTTOM. Fill the card and space them apart. */
.spoke-contractors__card-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    width: 100%;
}

.spoke-contractors__card-title {
    font-family: var(--spoke-font-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--spoke-white);
    margin: 0;
}

.spoke-contractors__card-body {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--spoke-white);
    margin: 0;
}


/* ============================
   RESPONSIVE — CONTRACTORS
   ============================ */

@media (max-width: 1024px) {
    .spoke-contractors__grid {
        gap: 24px;
    }

    .spoke-contractors__card-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .spoke-contractors__header {
        margin-bottom: 32px;
    }

    .spoke-contractors__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .spoke-contractors__card {
        min-height: 320px;
    }
}
