/* Hero: photo stage under a dark sheet with a left fade, copy bottom-left and the request form card right. On desktop
 * the card hangs over the alt-surface trust strip below it. --ocf-hero-height is the stage's
 * minimum height on desktop. */
.ocf-hero {
    --dakota-proof-height: 80px;
    --dakota-form-width: 440px;
    --dakota-hero-gap: calc(var(--ocf-grid-gap) * 2.333);
    --dakota-form-overhang: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ocf-bg);
}

.ocf-hero__stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: min(var(--ocf-hero-height), calc(100svh - var(--dakota-header-offset) - var(--wp-admin-bar-offset) + 80px));
    color: var(--ocf-heading-alt);
    background: var(--dakota-band);
}

.ocf-hero__media,
.ocf-hero__shade {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ocf-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocf-hero__shade {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--dakota-overlay-color) 40%, transparent) 0%, transparent 62%),
        var(--dakota-overlay-light);
}

.ocf-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--dakota-form-width));
    gap: var(--dakota-hero-gap);
    align-items: end;
    padding-block: calc(var(--ocf-grid-gap) * 5) calc(var(--ocf-grid-gap) * 3.333);
}

.ocf-hero__content {
    max-width: var(--ocf-hero-content-width);
}

.ocf-hero__eyebrow {
    color: var(--ocf-heading-alt);
    margin-bottom: calc(var(--ocf-grid-gap) * 0.833);
}

.ocf-hero .ocf-hero__headline {
    color: inherit;
    font-size: clamp(var(--font-h1-size), 4.7vw, calc(var(--font-h1-size) * 1.22));
    line-height: 1.02;
}

.ocf-hero__intro {
    max-width: 640px;
    margin: calc(var(--ocf-grid-gap) * 1) 0 calc(var(--ocf-grid-gap) * 1.5);
    color: color-mix(in srgb, var(--ocf-heading-alt) 92%, transparent);
    font-size: calc(var(--font-body-size) * 1.06);
    line-height: var(--ocf-font-body-line);
}

.ocf-hero .ocf-actions {
    gap: calc(var(--ocf-grid-gap) * 1.167);
}

.ocf-hero__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--ocf-space-unit) * 0.5);
    margin-top: calc(var(--ocf-grid-gap) * 1.167);
    color: color-mix(in srgb, var(--ocf-heading-alt) 85%, transparent);
    font-size: var(--ocf-font-small-size);
}

.ocf-hero__rating strong { color: var(--ocf-heading-alt); font-size: var(--font-body-size); }
.ocf-hero__stars { color: var(--dakota-star); letter-spacing: 0.12em; }

/* Form card (styles shared with contact-form.css). On desktop it overlaps the trust strip. */
.ocf-hero__form {
    position: relative;
    z-index: 3;
    min-width: 0;
    margin-bottom: calc(-1 * (var(--dakota-proof-height) + var(--dakota-form-overhang) + var(--ocf-grid-gap) * 3.333));
}

.ocf-hero--no-proof .ocf-hero__form {
    margin-bottom: calc(-1 * (var(--dakota-form-overhang) + var(--ocf-grid-gap) * 3.333));
}

.ocf-hero__form .hero-form-card {
    box-shadow: 0 24px 56px -28px color-mix(in srgb, var(--ocf-heading) 55%, transparent);
}

/* Trust strip: up to three hero_check_items with the same check badge, on the alt surface. */
.ocf-hero-proof {
    position: relative;
    z-index: 1;
    background: var(--dakota-bg-alt);
    color: var(--ocf-heading);
}

.ocf-hero-proof__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px calc(var(--ocf-grid-gap) * 1.167);
    min-height: var(--dakota-proof-height);
    margin-block: 0;
    padding: 18px calc(var(--dakota-form-width) + var(--dakota-hero-gap)) 18px 0;
    list-style: none;
}

.ocf-hero-proof__bar li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(var(--font-body-size) * 0.94);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    white-space: nowrap;
}

.ocf-hero-proof__icon {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
}

.ocf-hero-proof__icon svg {
    width: 15px;
    height: 15px;
}

/* Spacer under the strip so the overhanging card never sits on the next section's heading. */
.ocf-hero::after {
    content: "";
    display: block;
    height: var(--dakota-form-overhang);
    background: var(--ocf-bg);
}

@media (max-width: 1080px) {
    .ocf-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: calc(var(--ocf-grid-gap) * 2);
        padding-block: calc(var(--ocf-grid-gap) * 4) calc(var(--ocf-grid-gap) * 2);
    }

    .ocf-hero__content { max-width: none; }

    .ocf-hero__form,
    .ocf-hero--no-proof .ocf-hero__form {
        max-width: 640px;
        margin-bottom: 0;
    }

    .ocf-hero-proof__bar { padding-right: 0; }

    .ocf-hero::after { display: none; }
}

@media (max-width: 767px) {
    .ocf-hero__stage { min-height: 0; }

    .ocf-hero__shade { background: var(--dakota-overlay); }

    .ocf-hero__grid { padding-block: calc(var(--ocf-grid-gap) * 3) calc(var(--ocf-grid-gap) * 1.333); }

    .ocf-hero .ocf-actions {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--ocf-grid-gap) * 0.75);
    }

    .ocf-hero .ocf-actions .dakota-call { align-self: flex-start; }

    .ocf-hero-proof__bar li { white-space: normal; }

    .ocf-hero-proof__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-block: 20px;
    }
}

/* OCF_AGENT_BLOCK:reference-inspired-hero START */
.ocf-hero--reference {
    --hero-accent: var(--ocf-secondary);
    --hero-call: var(--ocf-primary);
    --hero-call-hover: var(--ocf-primary-hover);
}
.ocf-hero--reference .ocf-hero__stage { min-height: var(--ocf-hero-height); align-items: center; }
.ocf-hero--reference .ocf-hero__shade { background: rgba(5, 24, 34, .88); }
.ocf-hero--reference .ocf-hero__grid { align-items: center; padding-block: 68px 76px; gap: 64px; }
.ocf-hero--reference .ocf-hero__content { min-width: 0; }
.ocf-hero--reference .ocf-hero__headline { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.ocf-hero--reference .ocf-hero__accent { color: var(--hero-accent); }
.ocf-hero--reference .ocf-hero__checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 24px 0 0; list-style: none; }
.ocf-hero--reference .ocf-hero__checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ocf-hero--reference .ocf-hero__check-icon { display: inline-flex; color: var(--hero-accent); flex: 0 0 18px; }
.ocf-hero--reference .ocf-hero__check-icon svg { width: 18px; height: 18px; }
.ocf-hero--reference .ocf-hero__intro { font-size: 16px; line-height: 1.6; margin: 18px 0 22px; max-width: 570px; }
.ocf-hero--reference .ocf-actions { gap: 12px; flex-wrap: wrap; }
.ocf-hero--reference .ocf-actions .btn-primary,
.ocf-hero--reference .ocf-actions .btn-secondary { min-height: 56px; padding: 15px 22px; font-family: var(--ocf-font-body), sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ocf-hero--reference .ocf-actions .ocf-hero__call { background: var(--hero-call); border-color: var(--hero-call); color: var(--ocf-primary-contrast, #fff); }
.ocf-hero--reference .ocf-actions .ocf-hero__call:hover { background: var(--hero-call-hover); border-color: var(--hero-call-hover); color: var(--ocf-primary-contrast, #fff); }
.ocf-hero--reference .ocf-actions .ocf-hero__call::after { display: none; }
.ocf-hero--reference .ocf-actions .ocf-hero__schedule { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.ocf-hero--reference .ocf-actions .ocf-hero__schedule:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.ocf-hero--reference .ocf-hero__rating { gap: 8px; margin: 18px 0 24px; font-size: 14px; }
.ocf-hero--reference .ocf-hero__stars { color: #fbbc04; letter-spacing: .08em; }
.ocf-hero--reference .ocf-hero__feature { position: relative; width: 100%; max-width: 560px; margin: 0; padding-bottom: 28px; }
.ocf-hero--reference .ocf-hero__photo-frame { padding: 7px; border-radius: 10px; background: rgba(255,255,255,.25); border-right: 7px solid var(--hero-call); }
.ocf-hero--reference .ocf-hero__feature-photo { display: block; width: 100%; border-radius: 6px; }
.ocf-hero--reference .ocf-hero__review-badge { position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 12px 24px; border: 1px solid #e2e8ed; border-radius: 14px; background: #fff; color: #162c35; text-decoration: none; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.ocf-hero--reference .ocf-hero__google-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.ocf-hero--reference .ocf-hero__badge-copy { display: grid; gap: 2px; }
.ocf-hero--reference .ocf-hero__badge-top { display: flex; align-items: center; gap: 10px; line-height: 1.2; white-space: nowrap; }
.ocf-hero--reference .ocf-hero__badge-top strong { font-size: 23px; }
.ocf-hero--reference .ocf-hero__badge-label { font-size: 12px; color: #53646b; line-height: 1.3; }
.ocf-hero--reference .ocf-hero__form { margin-bottom: 0; align-self: center; }
.ocf-hero--reference::after { display: none; }
@media (max-width: 1080px) {
    .ocf-hero--reference .ocf-hero__stage { min-height: 0; }
    .ocf-hero--reference .ocf-hero__grid { gap: 44px; padding-block: 56px; }
    .ocf-hero--reference .ocf-hero__content { max-width: 740px; }
    .ocf-hero--reference .ocf-hero__headline { max-width: 740px; font-size: clamp(36px, 5.8vw, 56px); }
    .ocf-hero--reference .ocf-hero__form { width: 100%; max-width: 640px; }
}
@media (max-width: 767px) {
    .ocf-hero--reference .ocf-hero__grid { padding-block: 40px 44px; gap: 36px; }
    .ocf-hero--reference .ocf-hero__content { width: 100%; max-width: 100%; }
    .ocf-hero--reference .ocf-hero__headline { font-size: clamp(34px, 7.7vw, 48px); line-height: 1.1; }
    .ocf-hero--reference .ocf-hero__checks { gap: 10px 20px; margin-top: 20px; }
    .ocf-hero--reference .ocf-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .ocf-hero--reference .ocf-actions a { width: 100%; }
    .ocf-hero--reference .ocf-hero__rating { font-size: 12px; gap: 7px; }
    .ocf-hero--reference .ocf-hero__review-badge { padding: 10px 18px; }
    .ocf-hero--reference .ocf-hero__photo-frame { padding: 5px; border-right-width: 5px; }
    .ocf-hero--reference .ocf-hero__form { width: 100%; max-width: 100%; }
}
/* OCF_AGENT_BLOCK:reference-inspired-hero END */
