/* High Desert Scan & Locate — homepage visual corrections.
 * Mobile-first hierarchy, service-specific photography, and readable scheduling.
 */

/* Section titles must clearly outrank card titles. Hero is intentionally untouched. */
.services-section .section-heading h2,
.borderland-section h2,
.homeowners-section h2,
.deliverables-section h2,
.schedule-band h2,
.ground-truth-feature h2,
.contact-section h2 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 12vw, 4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.service-grid--illustrated .service-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.025em;
}

/* Four service cards, four photographs that depict the actual service context. */
.service-card__visual--photo {
    position: relative;
    min-height: 0;
    padding: 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #eef4f8;
    box-shadow: 0 10px 28px rgba(11,49,95,.07);
    overflow: hidden;
}

.service-card__visual--photo::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 auto 38px 0;
    width: 5px;
    background: var(--blue);
}

.service-card__visual--photo::after {
    display: none;
}

.service-card__visual--photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    background: #dfe8ee;
}

.service-card__visual--concrete-scanning img { object-position: 50% 50%; }
.service-card__visual--utility-locating img { object-position: 50% 38%; }
.service-card__visual--gpr-investigation img { object-position: 50% 52%; }
.service-card__visual--fault-locating img { object-position: 50% 52%; }

.service-card__visual--photo > span {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(4,27,50,.94);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.service-card__visual--photo figcaption {
    min-height: 38px;
    padding: 8px 12px 8px 16px;
    background: #eef4f8;
    color: #4a5c6a;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
}

.service-card__visual--photo figcaption a {
    color: var(--blue-deep);
}

/* Short-notice scheduling: photo and content are separate visual regions. */
.schedule-band {
    padding: 0;
    background: var(--blue-ink);
    color: #fff;
    isolation: auto;
}

.schedule-band__media {
    position: relative;
    z-index: 0;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 240px;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    background: #051b32;
}

.schedule-band__media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,27,50,0) 52%, rgba(4,27,50,.62) 100%);
    pointer-events: none;
}

.schedule-band__media picture,
.schedule-band__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.schedule-band__media img {
    object-fit: cover;
    object-position: 50% 52%;
}

.schedule-band__media figcaption {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
}

.schedule-band__content {
    background: var(--blue-ink);
}

.schedule-band__grid {
    position: relative;
    z-index: 2;
    padding-top: 54px;
    padding-bottom: 66px;
    display: grid;
    gap: 30px;
}

.schedule-band .kicker {
    color: #c8def0;
}

.schedule-band h2 {
    color: #fff;
}

.schedule-options {
    display: grid;
    gap: 16px;
}

.schedule-options article {
    padding: 24px;
    display: grid;
    grid-template-columns: 64px minmax(0,1fr);
    gap: 18px;
    border: 1px solid #d8e1e8;
    border-radius: var(--radius);
    background: #fff;
    color: #222b33;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.schedule-options article h3 {
    margin-bottom: 8px;
    color: #082846;
    font-size: 1.55rem;
    line-height: 1.12;
}

.schedule-options article p,
.schedule-options article p:last-child {
    margin-bottom: 0;
    color: #52616e;
}

.schedule-label {
    color: #415f77;
}

.schedule-icon {
    border-color: #155aa8;
    color: #0b315f;
    background: transparent;
}

.schedule-icon--emergency {
    border-color: #607b91;
    color: #415f77;
}

.schedule-band__note {
    margin: 0;
    color: #eef5fa;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.schedule-band__note a {
    color: #fff;
    font-weight: 900;
    text-decoration-thickness: .12em;
}

@media (min-width: 720px) {
    .services-section .section-heading h2,
    .borderland-section h2,
    .homeowners-section h2,
    .deliverables-section h2,
    .schedule-band h2,
    .ground-truth-feature h2,
    .contact-section h2 {
        font-size: clamp(3.6rem, 8vw, 4.5rem);
    }

    .service-grid--illustrated .service-card h3 {
        font-size: clamp(1.7rem, 3.4vw, 2rem);
    }

    .service-card__visual--photo img {
        aspect-ratio: 16 / 9;
    }

    .schedule-band__media {
        min-height: 320px;
        aspect-ratio: 16 / 7;
    }

    .schedule-band__grid {
        padding-top: 68px;
        padding-bottom: 80px;
    }

    .schedule-options {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 980px) {
    .services-section .section-heading h2,
    .borderland-section h2,
    .homeowners-section h2,
    .deliverables-section h2,
    .schedule-band h2,
    .ground-truth-feature h2,
    .contact-section h2 {
        font-size: 4.75rem;
    }

    .service-grid--illustrated .service-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .service-grid--illustrated .service-card h3 {
        font-size: 2rem;
    }

    .service-card__visual--photo img {
        aspect-ratio: 16 / 9;
    }

    .schedule-band__media {
        height: 390px;
        min-height: 390px;
        aspect-ratio: auto;
    }

    .schedule-band__grid {
        padding-top: 76px;
        padding-bottom: 90px;
        grid-template-columns: .75fr 1.25fr;
        gap: 70px;
        align-items: start;
    }

    .schedule-band__note {
        grid-column: 2;
    }
}
