/* Services: photo cards with the title, summary and a "learn more" pill over a bottom fade. The homepage slider sits
 * inside the container (three per frame) on a primary band that runs into the featured review below.
 * Archive and detail pages reuse the same card in a grid / contained slider. */
.ocf-services {
    --dakota-card-height: var(--ocf-service-image-height);
    background: var(--ocf-bg);
}

.ocf-services--home {
    padding-bottom: 0;
}

.ocf-services--home > .container-global {
    position: relative;
    z-index: 1;
}

/* Featured review: the primary band starts under the lower half of the cards and carries one centered quote. */
.ocf-featured-review {
    margin-top: calc(var(--dakota-card-height) * -0.45);
    padding: calc(var(--dakota-card-height) * 0.45 + var(--ocf-grid-gap) * 3) 0 calc(var(--ocf-grid-gap) * 4.333);
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
}

.ocf-featured-review__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--ocf-grid-gap) * 1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ocf-featured-review__mark {
    position: absolute;
    top: -0.32em;
    left: 0;
    color: color-mix(in srgb, var(--ocf-primary) 55%, #000);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: clamp(6rem, 11vw, 11rem);
    line-height: 1;
    pointer-events: none;
}

.ocf-featured-review__stars { color: var(--dakota-star); font-size: 20px; letter-spacing: 0.18em; }

.ocf-featured-review blockquote {
    position: relative;
    margin: 0;
    color: inherit;
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    line-height: 1.52;
}

.ocf-featured-review figcaption {
    color: color-mix(in srgb, currentColor 80%, transparent);
    font-size: var(--font-body-size);
}

.ocf-featured-review figcaption strong { color: currentColor; font-weight: var(--font-weight-bold); }

.ocf-featured-review:not(:has(figure)) { padding-bottom: 0; }

.ocf-services .ocf-slider-actions { gap: calc(var(--ocf-grid-gap) * 0.5); }
.ocf-services .ocf-slider-nav { gap: 12px; margin-right: calc(var(--ocf-grid-gap) * 0.5); }

/* Slider stays inside the container: three cards per frame on desktop, two on tablet, one on mobile. */
.ocf-svc-track {
    --slider-per-view: 3;
}

.ocf-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ocf-grid-gap);
}

.ocf-svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: var(--dakota-card-height);
    overflow: hidden;
    border: 0;
    border-radius: var(--card-radius);
    background: var(--dakota-band);
    color: var(--ocf-heading-alt);
    isolation: isolate;
}

.ocf-svc-card-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocf-svc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 15%, color-mix(in srgb, var(--dakota-overlay-color) 62%, transparent) 55%, color-mix(in srgb, var(--dakota-overlay-color) 88%, transparent) 100%);
}

.ocf-svc-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
}

.ocf-svc-card-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    line-height: 1.2;
}

.ocf-svc-card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: color-mix(in srgb, var(--ocf-heading-alt) 88%, transparent);
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.55;
}

.ocf-svc-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid color-mix(in srgb, var(--ocf-heading-alt) 35%, transparent);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--ocf-heading-alt) 16%, transparent);
    color: var(--ocf-heading-alt);
    font-size: var(--ocf-font-small-size);
    font-weight: var(--font-weight-semibold);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ocf-svc-card-pill::after {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--dakota-arrow) center / contain no-repeat;
    mask: var(--dakota-arrow) center / contain no-repeat;
    transition: transform var(--duration) var(--ease);
}

.ocf-svc-card:hover .ocf-svc-card-pill { background: var(--ocf-secondary); border-color: var(--ocf-secondary); color: var(--ocf-secondary-contrast); }
.ocf-svc-card:hover .ocf-svc-card-pill::after { transform: translateX(3px); }

@media (max-width: 1023px) {
    .ocf-services { --dakota-card-height: 400px; }
    .ocf-svc-track { --slider-per-view: 2; }
    .ocf-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ocf-svc-track { --slider-per-view: 1; }
    .ocf-svc-grid { grid-template-columns: minmax(0, 1fr); }
    .ocf-services .ocf-slider-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
    }
}

/* OCF_AGENT_BLOCK:service-website-mockup-fit START */
.ocf-svc-card-img {
    object-fit: contain;
    object-position: center 38%;
    background: #1C1F17;
}
/* OCF_AGENT_BLOCK:service-website-mockup-fit END */

/* OCF_AGENT_BLOCK:home-service-card-heading-only START */
.ocf-services--home .ocf-svc-card-body p {
    display: none;
}

.ocf-services--home .ocf-svc-card-body {
    gap: 10px;
}
/* OCF_AGENT_BLOCK:home-service-card-heading-only END */

/* OCF_AGENT_BLOCK:services-archive-card-copy-and-heading START */
.ocf-services-archive .ocf-svc-card-body p {
    display: none;
}

.ocf-services-archive .ocf-svc-card-body h3 {
    color: var(--ocf-primary);
}
/* OCF_AGENT_BLOCK:services-archive-card-copy-and-heading END */

/* OCF_AGENT_BLOCK:services-portfolio-cards START */
.ocf-services-page-intro {
    padding: clamp(54px, 6vw, 78px) 0 0;
    background: #FFFFFF;
    color: #071B3A;
}

.ocf-services-page-intro > .container-global { max-width: 960px; }
.ocf-services-page-intro__eyebrow { margin: 0 0 14px; color: #946B00; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.ocf-services-page-intro h1 { max-width: 900px; margin: 0; color: #071B3A; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; }
.ocf-services-page-intro__description { max-width: 880px; margin: 20px 0 0; color: #3B3833; font-size: 18px; line-height: 1.6; }
.ocf-services-page-intro__prompt { max-width: 880px; margin: 10px 0 24px; color: #3B3833; font-size: 17px; line-height: 1.55; font-weight: 600; }
.ocf-services-page-intro__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 13px 22px; text-decoration: none; }
.ocf-services-archive { padding-top: clamp(48px, 5vw, 68px); padding-bottom: clamp(64px, 7vw, 88px); }
.ocf-services-archive .ocf-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ocf-services-archive .ocf-svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E2E7ED;
    border-radius: 14px;
    background: #FFFFFF;
    color: #071B3A;
    box-shadow: 0 4px 16px rgba(7, 27, 58, .06);
    text-decoration: none;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.ocf-services-archive .ocf-svc-card::before { display: none; }
.ocf-services-archive .ocf-svc-card-img {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 0;
    background: #F5F7FA;
    object-fit: contain;
    object-position: center;
    transition: transform 240ms ease;
}
.ocf-services-archive .ocf-svc-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 26px;
    color: #071B3A;
}
.ocf-services-archive .ocf-svc-card-body h3 {
    display: block;
    overflow: visible;
    min-height: 2.45em;
    margin: 0;
    color: #071B3A;
    font-size: clamp(23px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.2;
    -webkit-line-clamp: unset;
}
.ocf-services-archive .ocf-svc-card-body p {
    display: block;
    min-height: 4.7em;
    margin: 0;
    overflow: visible;
    color: #3B3833;
    font-size: 16px;
    line-height: 1.55;
    -webkit-line-clamp: unset;
}
.ocf-services-archive .ocf-svc-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #071B3A;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.ocf-services-archive .ocf-svc-card-pill::after { background: #FFB800; }
.ocf-services-archive .ocf-svc-card:hover,
.ocf-services-archive .ocf-svc-card:focus-visible {
    border-color: #CFD7E1;
    box-shadow: 0 16px 32px rgba(7, 27, 58, .12);
    transform: translateY(-4px);
}
.ocf-services-archive .ocf-svc-card:hover .ocf-svc-card-img { transform: scale(1.02); }
.ocf-services-archive .ocf-svc-card:hover .ocf-svc-card-pill { border: 0; background: transparent; color: #071B3A; }
.ocf-services-archive .ocf-svc-card:focus-visible { outline: 3px solid #FFB800; outline-offset: 3px; }

@media (max-width: 1023px) {
    .ocf-services-archive .ocf-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 640px) {
    .ocf-services-page-intro { padding-top: 44px; }
    .ocf-services-page-intro__description { font-size: 16px; }
    .ocf-services-page-intro__prompt { font-size: 16px; }
    .ocf-services-page-intro__cta { width: 100%; box-sizing: border-box; justify-content: center; }
    .ocf-services-archive { padding-top: 42px; padding-bottom: 64px; }
    .ocf-services-archive .container-global { padding-inline: 18px; }
    .ocf-services-archive .ocf-svc-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .ocf-services-archive .ocf-svc-card-body { padding: 22px; }
    .ocf-services-archive .ocf-svc-card-body h3 { min-height: 0; font-size: 22px; }
    .ocf-services-archive .ocf-svc-card-body p { min-height: 0; }
    .ocf-services-archive .ocf-svc-card-pill { min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .ocf-services-archive .ocf-svc-card,
    .ocf-services-archive .ocf-svc-card-img { transition: none; }
    .ocf-services-archive .ocf-svc-card:hover,
    .ocf-services-archive .ocf-svc-card:hover .ocf-svc-card-img { transform: none; }
}
/* OCF_AGENT_BLOCK:services-portfolio-cards END */

/* OCF_AGENT_BLOCK:services-tablet-layout START */
@media (min-width: 641px) and (max-width: 1199px) {
    .ocf-services-archive .ocf-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 640px) {
    .ocf-services-archive .ocf-svc-grid { grid-template-columns: minmax(0, 1fr); }
}
/* OCF_AGENT_BLOCK:services-tablet-layout END */

/* OCF_AGENT_BLOCK:services-intro-brand-yellow START */
.ocf-services-page-intro__eyebrow { color: var(--ocf-primary); }
.ocf-services-page-intro__cta {
  background: var(--ocf-primary);
  border-color: var(--ocf-primary);
  color: var(--ocf-heading);
}
.ocf-services-page-intro__cta:hover {
  background: var(--ocf-primary-hover);
  border-color: var(--ocf-primary-hover);
  color: var(--ocf-heading-alt);
}
/* OCF_AGENT_BLOCK:services-intro-brand-yellow END */

/* OCF_AGENT_BLOCK:services-intro-grid-spacing START */
.ocf-services-page-intro {
  padding-bottom: clamp(48px, 5vw, 68px);
}
/* OCF_AGENT_BLOCK:services-intro-grid-spacing END */
