/* Footer: forest band (--dakota-band, continuous with the CTA panel above). Brand column with the logo, description and a
 * darker contact card; link columns (Company first) start a little in from the brand column; hairline above the legal bar. */
.ocf-footer {
    background: var(--dakota-band);
    color: var(--ocf-body-alt);
}

.ocf-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: calc(var(--ocf-grid-gap) * 6);
    padding-block: calc(var(--ocf-grid-gap) * 3.333) calc(var(--ocf-grid-gap) * 2.667);
}

.ocf-footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--ocf-grid-gap) * 1);
}

.ocf-footer-brand .ocf-brand-image { object-position: left center; }

.ocf-footer-brand-column > p {
    color: color-mix(in srgb, var(--ocf-body-alt) 88%, transparent);
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.6;
}

.ocf-footer-contact {
    display: grid;
    gap: 16px;
    width: 100%;
    margin: calc(var(--ocf-grid-gap) * 0.25) 0 0;
    padding: 24px 28px;
    border-radius: var(--card-radius);
    background: color-mix(in srgb, #000 22%, transparent);
    list-style: none;
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.5;
}

.ocf-footer-contact a,
.ocf-footer-contact__row {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ocf-heading-alt);
    font-weight: var(--font-weight-semibold);
}

.ocf-footer-contact a:hover { color: var(--ocf-secondary); }

.ocf-footer-phone { font-size: calc(var(--font-body-size) * 1.06); }

.ocf-footer-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.2em;
    color: var(--ocf-secondary);
}

.ocf-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    justify-self: center;
    gap: calc(var(--ocf-grid-gap) * 1.5) calc(var(--ocf-grid-gap) * 2);
}

.ocf-footer-columns > nav { min-width: 120px; }

.ocf-footer-heading {
    margin-bottom: 16px;
    color: var(--ocf-heading-alt);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: var(--font-body-size);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ocf-footer-links {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.4;
}

.ocf-footer-links a { color: color-mix(in srgb, var(--ocf-body-alt) 86%, transparent); }
.ocf-footer-links a:hover { color: var(--ocf-heading-alt); }

.ocf-footer-bottom {
    border-top: var(--card-border-width) solid color-mix(in srgb, var(--ocf-heading-alt) 14%, transparent);
    color: color-mix(in srgb, var(--ocf-body-alt) 72%, transparent);
    font-size: var(--ocf-font-small-size);
}

.ocf-footer-bottom .dakota-wide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px var(--ocf-grid-gap);
    padding-block: var(--ocf-grid-gap);
}

.ocf-footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ocf-footer-bottom a:hover { color: var(--ocf-heading-alt); }

@media (max-width: 1023px) {
    .ocf-footer-grid { grid-template-columns: minmax(0, 1fr); gap: calc(var(--ocf-grid-gap) * 2); }
    .ocf-footer-contact { max-width: 420px; }
    .ocf-footer-columns { justify-self: stretch; width: 100%; }
}

@media (max-width: 600px) {
    .ocf-footer-grid { padding-block: calc(var(--ocf-grid-gap) * 2.333) calc(var(--ocf-grid-gap) * 2); }
    .ocf-footer-contact { max-width: none; }
    .ocf-footer-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--ocf-grid-gap) * 1.667) var(--ocf-grid-gap);
    }
    .ocf-footer-columns > nav:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ocf-footer-bottom .dakota-wide { flex-direction: column; align-items: flex-start; }
}

/* OCF_AGENT_BLOCK:brand-gray-footer-contrast START */
.ocf-footer {
    color: #fff;
}

.ocf-footer-brand-column > p,
.ocf-footer-links a,
.ocf-footer-bottom {
    color: #fff;
}

.ocf-footer-contact a:hover,
.ocf-footer-links a:hover,
.ocf-footer-bottom a:hover,
.ocf-footer-contact a:focus-visible,
.ocf-footer-links a:focus-visible,
.ocf-footer-bottom a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
/* OCF_AGENT_BLOCK:brand-gray-footer-contrast END */

/* OCF_AGENT_BLOCK:phone-cta-footer-label-layout START */
.ocf-footer-phone-group { display: grid; gap: calc(var(--ocf-space-unit) * 0.25); }
.ocf-footer-phone-group > .nav-phone__label { margin: 0; }
/* OCF_AGENT_BLOCK:phone-cta-footer-label-layout END */

/* OCF_AGENT_BLOCK:footer-county-service-area-directory START */
.ocf-footer-county-directory .ocf-county-groups {
    display: grid;
    gap: calc(var(--ocf-grid-gap) * 0.7);
}

.ocf-footer-county-directory .ocf-county-group h3 {
    margin: 0 0 4px;
    color: var(--ocf-heading-alt);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: calc(var(--font-body-size) * 0.82);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
}

.ocf-footer-county-directory .ocf-county-group ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ocf-footer-county-directory .ocf-county-group li {
    color: var(--ocf-body-alt);
    font-size: calc(var(--font-body-size) * 0.78);
    line-height: 1.35;
}

.ocf-footer-county-directory .ocf-county-group a { color: inherit; }
.ocf-footer-county-directory .ocf-county-group a:hover,
.ocf-footer-county-directory .ocf-county-group a:focus-visible { color: var(--ocf-heading-alt); text-decoration: underline; }

.ocf-footer-all-areas {
    display: inline-block;
    margin-top: calc(var(--ocf-grid-gap) * 0.65);
    color: var(--ocf-heading-alt);
    font-size: calc(var(--font-body-size) * 0.82);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
/* OCF_AGENT_BLOCK:footer-county-service-area-directory END */

/* OCF_AGENT_BLOCK:footer-social-icon-sizing START */
.ocf-footer-social .ocf-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ocf-footer-social-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
/* OCF_AGENT_BLOCK:footer-social-icon-sizing END */
