.ocf-hero {
    --hero-heading-size: var(--font-h1-size);
    --hero-heading-color: var(--ocf-heading-alt);
    --hero-intro-size: var(--font-h3-size);
    --hero-intro-color: var(--ocf-body-alt);
    --hero-rating-color: var(--ocf-heading-alt);
    --hero-check-color: var(--ocf-primary);
    --hero-check-mark-color: var(--ocf-primary-contrast, var(--ocf-bg));
    --hero-gradient: var(--gradient-media-dark);
    --hero-overlay-opacity: max(0.88, var(--media-overlay-opacity));
    position: relative;
    min-height: min(900px, calc(100vh - 4.5rem));
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--ocf-bg);
}

.ocf-hero__media,
.ocf-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ocf-hero__media {
    opacity: 1;
}

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

.ocf-hero__shade {
    background: var(--section-gradient, var(--hero-gradient));
    opacity: var(--section-overlay-opacity, var(--hero-overlay-opacity));
}

.ocf-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: var(--section-pad);
}

.ocf-hero .ocf-hero__grid {
    padding-block: clamp(6rem, 12vh, 8.5rem) clamp(5.5rem, 10vh, 7.5rem);
}

.ocf-hero__content { max-width: 720px; }
.ocf-hero__rating { color: var(--hero-rating-color); }
.ocf-hero__headline {
    margin: 0;
    color: var(--field-color, var(--hero-heading-color));
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--field-font-size, var(--hero-heading-size));
    font-weight: var(--field-font-weight, var(--font-weight-bold));
    font-style: var(--field-font-style, normal);
    line-height: 1.08;
    letter-spacing: 0;
    text-decoration: var(--field-text-decoration, none);
}
.ocf-hero__intro { color: var(--field-color, var(--hero-intro-color)); }
.ocf-hero__rating {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: var(--font-label-size);
    line-height: 1;
}
.ocf-hero__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: #FBBF24;
    font-size: 1.18em;
    line-height: 1;
}
.ocf-hero__stars svg {
    display: block;
    width: 1em;
    height: 1em;
}
.ocf-hero__star {
    position: relative;
    display: block;
    width: 1em;
    height: 1em;
    color: inherit;
}
.ocf-hero__star-empty {
    opacity: .24;
}
.ocf-hero__star-fill {
    position: absolute;
    inset: 0;
    width: 1em;
    overflow: hidden;
    opacity: 1;
    clip-path: inset(0 calc(100% - var(--star-fill, 0%)) 0 0);
}
.ocf-hero__headline span { display: block; }
.ocf-hero__intro {
    max-width: 58ch;
    margin: 1.25rem 0 0;
    color: var(--field-color, var(--hero-intro-color));
    font-size: var(--field-font-size, var(--hero-intro-size));
}
.ocf-hero__checks {
    display: grid;
    gap: 0.7rem;
    max-width: 58ch;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--hero-intro-color);
    font-size: var(--font-body-size);
    font-weight: var(--ocf-font-body-weight, var(--font-weight-medium));
}
.ocf-hero__checks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.ocf-hero__check-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    min-width: 1.45rem;
    max-width: 1.45rem;
    max-height: 1.45rem;
    border-radius: 50%;
    background: var(--hero-check-color);
    color: var(--hero-check-mark-color);
    box-shadow: 0 0.25rem 0.75rem color-mix(in srgb, var(--hero-check-color) 22%, transparent);
    overflow: hidden;
}
.ocf-hero__check-icon svg {
    display: block;
    width: 0.82rem !important;
    height: 0.82rem !important;
    max-width: 0.82rem;
    max-height: 0.82rem;
    flex: 0 0 auto;
}

.ocf-hero__checks li > span:not(.ocf-hero__check-icon) {
    color: var(--hero-intro-color);
}
.ocf-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.ocf-hero__form { width: 100%; align-self: start; margin-top: 0.25rem; }

.ocf-hero__scroll-cue {
    display: none;
}

.ocf-hero__rating--google {
    margin: 0 0 1rem;
    gap: 0.75rem;
    color: var(--ocf-heading);
}

.ocf-hero__google-icon {
    inline-size: 1.35rem;
    block-size: 1.35rem;
}

.ocf-hero__secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    color: var(--ocf-heading);
    border-bottom: 1px solid currentColor;
    font-size: var(--font-label-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.ocf-hero[data-ocf-tone="light"] {
    --hero-heading-color: var(--ocf-heading);
    --hero-intro-color: var(--ocf-body);
    --hero-rating-color: var(--ocf-heading);
    background: var(--ocf-bg);
    color: var(--ocf-body);
}

@media (max-width: 900px){
    .ocf-hero { min-height: auto; }
    .ocf-hero__grid { grid-template-columns: 1fr; }
    .ocf-hero .ocf-hero__grid {
        padding-block: clamp(3.5rem, 10vw, 5rem);
    }

}

/* OCF_AGENT_BLOCK:hero-background-video START */
.ocf-hero__video-slot {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
}
.ocf-hero__video-slot:empty { display: none; }
.ocf-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.ocf-hero__visual.has-video > img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    .ocf-hero__visual.has-video .ocf-hero__video-slot { display: none; }
    .ocf-hero__visual.has-video > img { visibility: visible; }
}
/* OCF_AGENT_BLOCK:hero-background-video END */

/* OCF_AGENT_BLOCK:hero-headline-weight START */
:is(body.home,body.single-location) #hero .ocf-hero__headline {
    font-weight: var(--field-font-weight, var(--ocf-font-h1-weight, 300));
    letter-spacing: -0.005em;
}
/* OCF_AGENT_BLOCK:hero-headline-weight END */

/* OCF_AGENT_BLOCK:hero-cream-fade START */
@media (min-width: 981px) {
    html :is(body.home,body.single-location) #hero .ocf-hero__content {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 32rem !important;
        gap: 0 !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__visual::after {
        z-index: 1;
        background: linear-gradient(90deg,
            color-mix(in srgb, var(--ocf-bg) 97%, transparent) 0%,
            color-mix(in srgb, var(--ocf-bg) 94%, transparent) 30%,
            color-mix(in srgb, var(--ocf-bg) 60%, transparent) 42%,
            color-mix(in srgb, var(--ocf-bg) 0%, transparent) 58%) !important;
    }
}
/* OCF_AGENT_BLOCK:hero-cream-fade END */

/* OCF_AGENT_BLOCK:hero-boutique-layout START */
/* All widths: gold label, no decorative line, quiet rating with gold stars */
html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__eyebrow {
    display: block !important;
    order: 0;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    color: #7F6236 !important; /* deeper gold: 5.3:1 on cream for small text */
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
}
html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__headline::after { display: none !important; }
html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__google-icon { display: none !important; }
html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__stars {
    display: inline-flex !important;
    color: var(--ocf-secondary) !important;
    font-size: 0.95em !important;
}

@media (min-width: 981px) {
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__eyebrow { margin-bottom: 1.5rem !important; font-size: 0.8rem !important; }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__headline {
        font-size: clamp(44px, 4.4vw, 66px) !important;
        line-height: 1.06 !important;
        margin: 0 !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__intro {
        margin: 1.5rem 0 0 !important;
        max-width: 27rem;
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__actions {
        margin-top: 2.25rem !important;
        gap: 1.75rem !important;
        align-items: center !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__phone-callout {
        border-left: 0 !important;
        padding-left: 0 !important;
        min-height: 0 !important;
        gap: 0.1rem !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__rating {
        margin-top: 1.75rem !important;
        gap: 0.5rem !important;
        font-size: 0.875rem !important;
        opacity: 0.85;
    }
}
/* OCF_AGENT_BLOCK:hero-boutique-layout END */

/* OCF_AGENT_BLOCK:biodent-hero-mobile-balance START */
/* Phones and tablets: the hero gets the darker cream (desktop already has it), so it ends clearly before Cum lucrăm. */
@media (max-width: 980px) {
    html :is(body.home,body.single-location) #hero,
    html :is(body.home,body.single-location) #hero .ocf-hero__content {
        background: var(--ocf-bg-alt) !important;
    }
}
/* Phones: headline and subheadline scaled up to sit in proportion with the full-width button. */
@media (max-width: 767px) {
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__headline {
        font-size: clamp(2.25rem, 10.5vw, 2.75rem) !important;
        line-height: 1.06 !important;
    }
    html :is(body.home,body.single-location) .ocf-hero--image-split .ocf-hero__intro {
        font-size: 1.0625rem !important;
    }
}
/* OCF_AGENT_BLOCK:biodent-hero-mobile-balance END */

/* OCF_AGENT_BLOCK:biodent-reveal-after-hero START */
/* Homepage only: Atlantic disables the scroll reveal for the two sections right after the hero.
   Turn it back on with the template's own values (same as Rezultate, Recenzii, FAQ, Echipa).
   Follows position, so it keeps working if the section order changes. The hero itself stays static. */
html :is(body.home,body.single-location) .ocf-hero + * .reveal,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html :is(body.home,body.single-location) .ocf-hero + * .reveal.visible,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
html :is(body.home,body.single-location) .ocf-hero + * .reveal-delay-1,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal-delay-1 { transition-delay: 0.12s; }
html :is(body.home,body.single-location) .ocf-hero + * .reveal-delay-2,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal-delay-2 { transition-delay: 0.24s; }
html :is(body.home,body.single-location) .ocf-hero + * .reveal-delay-3,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal-delay-3 { transition-delay: 0.36s; }
html :is(body.home,body.single-location) .ocf-hero + * .reveal-delay-4,
html :is(body.home,body.single-location) .ocf-hero + * + * .reveal-delay-4 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
    html :is(body.home,body.single-location) .ocf-hero + * .reveal,
    html :is(body.home,body.single-location) .ocf-hero + * + * .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* OCF_AGENT_BLOCK:biodent-reveal-after-hero END */
