.fdc-treatment-options {
    background: var(--fdc-neutral);
    padding: var(--fdc-section) var(--fdc-gutter);
    overflow: hidden;
}

.fdc-treatment-options__inner {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.fdc-treatment-options__heading {
    width: min(100%, 860px);
    margin: 0 auto 48px;
    text-align: center;
}

.fdc-treatment-options__eyebrow {
    color: var(--fdc-primary-strong);
    margin-bottom: 16px;
}

.fdc-treatment-options__heading h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(38px, 3.3vw, 42px);
    line-height: 1.12;
    font-weight: 300;
    letter-spacing: .055em;
    color: var(--fdc-white);
    text-wrap: balance;
}

.fdc-treatment-options__heading p {
    width: min(100%, 650px);
    margin: 22px auto 0 !important;
    color: rgba(255,255,255,.66);
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
}

.fdc-treatment-options__cards {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 530px;
}

.fdc-treatment-options__card {
    position: relative;
    min-width: 0;
    min-height: 530px;
    flex: 1 1 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: var(--fdc-radius-md);
    background: var(--fdc-surface);
    isolation: isolate;
    cursor: pointer;
    outline: none;
    transition:
        flex-grow .34s cubic-bezier(.2,.72,.2,1),
        border-color .32s ease,
        transform .32s ease;
}

.fdc-treatment-options__card.is-active {
    flex-grow: 3.15;
    border-color: rgba(207,165,85,.48);
}

.fdc-treatment-options__card:focus-visible {
    border-color: var(--fdc-primary-strong);
}

.fdc-treatment-options__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(.82) brightness(.84);
    transform: scale(1.015);
    transition: transform .34s cubic-bezier(.2,.72,.2,1), filter .24s ease;
}

.fdc-treatment-options__card.is-active .fdc-treatment-options__media {
    transform: scale(1.045);
    filter: saturate(.94) brightness(.9);
}

.fdc-treatment-options__scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(18,18,18,.08) 12%, rgba(18,18,18,.17) 42%, rgba(18,18,18,.86) 100%),
        linear-gradient(90deg, rgba(18,18,18,.22), rgba(18,18,18,.02));
    transition: background .24s ease;
}

.fdc-treatment-options__card.is-active .fdc-treatment-options__scrim {
    background:
        linear-gradient(180deg, rgba(18,18,18,.06) 7%, rgba(18,18,18,.17) 37%, rgba(18,18,18,.92) 100%),
        linear-gradient(90deg, rgba(18,18,18,.67) 0%, rgba(18,18,18,.29) 56%, rgba(18,18,18,.06) 100%);
}

.fdc-treatment-options__gold-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fdc-primary-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.2,.72,.2,1);
}

.fdc-treatment-options__card.is-active .fdc-treatment-options__gold-line {
    transform: scaleX(1);
}

.fdc-treatment-options__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 34px;
}

.fdc-treatment-options__index {
    position: absolute;
    top: 28px;
    left: 28px;
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255,255,255,.64);
}

.fdc-treatment-options__content h3 {
    max-width: 430px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(25px, 2vw, 32px);
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: .01em;
    color: var(--fdc-white);
    text-wrap: balance;
}

.fdc-treatment-options__detail {
    width: min(100%, 490px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition:
        max-height .28s cubic-bezier(.2,.72,.2,1),
        opacity .18s ease,
        transform .24s cubic-bezier(.2,.72,.2,1),
        margin-top .24s ease;
}

.fdc-treatment-options__card.is-active .fdc-treatment-options__detail {
    max-height: 330px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 17px;
    pointer-events: auto;
}

.fdc-treatment-options__description {
    color: rgba(255,255,255,.91);
    font-size: 16px;
    line-height: 25px;
    font-weight: 300;
}

.fdc-treatment-options__supporting {
    margin-top: 14px !important;
    color: rgba(255,255,255,.56);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fdc-treatment-options__cta,
.fdc-treatment-options__cta:link,
.fdc-treatment-options__cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    min-height: 46px;
    margin-top: 22px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.42);
    color: var(--fdc-white) !important;
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    background: rgba(24,24,24,.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color .28s ease, border-color .28s ease, color .28s ease;
}

.fdc-treatment-options__cta svg {
    width: 17px;
    height: 17px;
    transition: transform .28s ease;
}

.fdc-treatment-options__cta:hover,
.fdc-treatment-options__cta:focus-visible,
.fdc-treatment-options__cta:active {
    color: var(--fdc-neutral) !important;
    background: var(--fdc-primary-strong);
    border-color: var(--fdc-primary-strong);
}

.fdc-treatment-options__cta:hover svg,
.fdc-treatment-options__cta:focus-visible svg {
    transform: translateX(3px);
}

@media (hover: hover) and (pointer: fine) {
    .fdc-treatment-options__card:not(.is-active):hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 1100px) {
    .fdc-treatment-options__cards {
        min-height: 500px;
    }

    .fdc-treatment-options__card {
        min-height: 500px;
    }

    .fdc-treatment-options__content {
        padding: 28px;
    }

    .fdc-treatment-options__card.is-active {
        flex-grow: 2.6;
    }
}

@media (max-width: 820px) {
    .fdc-treatment-options {
        padding: 64px 20px;
    }

    .fdc-treatment-options__heading {
        margin-bottom: 36px;
        text-align: left;
    }

    .fdc-treatment-options__heading h2 {
        font-size: 38px;
        line-height: 42px;
        letter-spacing: .035em;
    }

    .fdc-treatment-options__heading p {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .fdc-treatment-options__cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
    }

    .fdc-treatment-options__card,
    .fdc-treatment-options__card.is-active {
        min-height: 156px;
        height: 156px;
        flex: none;
        transition:
            height .30s cubic-bezier(.2,.72,.2,1),
            border-color .20s ease;
    }

    .fdc-treatment-options__card.is-active {
        height: 500px;
    }

    .fdc-treatment-options__content {
        padding: 24px;
    }

    .fdc-treatment-options__index {
        top: 22px;
        left: 24px;
    }

    .fdc-treatment-options__content h3 {
        font-size: 29px;
        line-height: 32px;
    }

    .fdc-treatment-options__card:not(.is-active) .fdc-treatment-options__media {
        background-position: center 48%;
    }
}

@media (max-width: 520px) {
    .fdc-treatment-options {
        padding: 56px 16px;
    }

    .fdc-treatment-options__heading {
        margin-bottom: 30px;
    }

    .fdc-treatment-options__eyebrow {
        margin-bottom: 13px;
    }

    .fdc-treatment-options__heading h2 {
        font-size: 34px;
        line-height: 37px;
        letter-spacing: .025em;
    }

    .fdc-treatment-options__heading p {
        margin-top: 18px !important;
        font-size: 15px;
        line-height: 23px;
    }

    .fdc-treatment-options__card,
    .fdc-treatment-options__card.is-active {
        min-height: 138px;
        height: 138px;
    }

    .fdc-treatment-options__card.is-active {
        height: 475px;
    }

    .fdc-treatment-options__content {
        padding: 21px;
    }

    .fdc-treatment-options__index {
        top: 18px;
        left: 21px;
    }

    .fdc-treatment-options__content h3 {
        font-size: 27px;
        line-height: 30px;
    }

    .fdc-treatment-options__description {
        font-size: 15px;
        line-height: 23px;
    }

    .fdc-treatment-options__supporting {
        font-size: 10px;
        line-height: 15px;
    }

    .fdc-treatment-options__cta {
        margin-top: 18px;
        max-width: 100%;
    }
}

/* v0.4: full-bleed closed cards and straightforward Montserrat typography. */
.fdc-treatment-options__heading h2,
.fdc-treatment-options__content h3 {
    font-family: "Montserrat", Arial, sans-serif;
    letter-spacing: normal;
}

.fdc-treatment-options__heading h2 {
    font-weight: 500;
    line-height: 1.12;
}

.fdc-treatment-options__heading p {
    color: rgba(255,255,255,.95);
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

.fdc-treatment-options__media {
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(.9) brightness(.88);
    transform: scale(1.015);
}

.fdc-treatment-options__scrim {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(18,18,18,.05) 0%, rgba(18,18,18,.08) 52%, rgba(18,18,18,.50) 100%),
        linear-gradient(90deg, rgba(18,18,18,.14), rgba(18,18,18,.02));
}

.fdc-treatment-options__card.is-active .fdc-treatment-options__scrim {
    background:
        linear-gradient(180deg, rgba(18,18,18,.04) 0%, rgba(18,18,18,.08) 42%, rgba(18,18,18,.68) 100%),
        linear-gradient(90deg, rgba(18,18,18,.56) 0%, rgba(18,18,18,.20) 58%, rgba(18,18,18,.03) 100%);
}

.fdc-treatment-options__gold-line {
    z-index: 3;
}

.fdc-treatment-options__content {
    z-index: 2;
}

.fdc-treatment-options__index {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: .03em;
    color: rgba(255,255,255,.9);
}

.fdc-treatment-options__content h3 {
    font-weight: 400;
    line-height: 1.12;
}

.fdc-treatment-options__description {
    color: rgba(255,255,255,.97);
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

.fdc-treatment-options__supporting {
    margin-top: 14px !important;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.fdc-treatment-options__cta,
.fdc-treatment-options__cta:link,
.fdc-treatment-options__cta:visited {
    min-height: 48px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}

@media (max-width: 820px) {
    .fdc-treatment-options__heading h2 {
        letter-spacing: normal;
    }
}

@media (max-width: 520px) {
    .fdc-treatment-options__heading h2 {
        letter-spacing: normal;
    }

    .fdc-treatment-options__heading p,
    .fdc-treatment-options__description {
        font-size: 16px;
        line-height: 25px;
    }

    .fdc-treatment-options__supporting {
        font-size: 13px;
        line-height: 19px;
    }
}


/* v0.5: treatment imagery uses an absolute background layer so Elementor/theme img rules cannot collapse it. */
.fdc-treatment-options__media {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat !important;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.fdc-treatment-options__card:not(.is-active) .fdc-treatment-options__media {
    background-size: cover !important;
}

@media (max-width: 820px) {
    .fdc-treatment-options__media {
        background-position: center center;
    }
}

/* v0.17: subtle active-card charcoal wash for stronger white-text contrast */
.fdc-treatment-options__card.is-active .fdc-treatment-options__scrim {
    background:
        linear-gradient(rgba(24,24,24,.22), rgba(24,24,24,.22)),
        linear-gradient(180deg, rgba(18,18,18,.04) 7%, rgba(18,18,18,.15) 37%, rgba(18,18,18,.90) 100%),
        linear-gradient(90deg, rgba(18,18,18,.58) 0%, rgba(18,18,18,.24) 56%, rgba(18,18,18,.04) 100%);
}

/* v0.22: mobile treatment-options heading alignment */
@media (max-width: 820px) {
    .fdc-treatment-options__heading,
    .fdc-treatment-options__heading h2,
    .fdc-treatment-options__heading p,
    .fdc-treatment-options__eyebrow {
        text-align: center !important;
    }

    .fdc-treatment-options__heading p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* v0.35: when this CTA enters its gold state, use the Fresh Dental shiny treatment. */
.fdc-treatment-options__cta {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

.fdc-treatment-options__cta > * {
    position: relative;
    z-index: 2;
}

.fdc-treatment-options__cta::before,
.fdc-treatment-options__cta::after {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    transition: opacity .25s ease;
}

.fdc-treatment-options__cta::before {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    transform: translate(-50%, -50%);
    border-radius: inherit;
    background: radial-gradient(circle at 2px 2px, rgba(255,255,255,.88) .5px, transparent .7px);
    background-size: 4px 4px;
    -webkit-mask-image: conic-gradient(from calc(var(--fdc-shiny-angle) + 45deg), #000, transparent 10% 90%, #000);
    mask-image: conic-gradient(from calc(var(--fdc-shiny-angle) + 45deg), #000, transparent 10% 90%, #000);
    z-index: 0;
}

.fdc-treatment-options__cta::after {
    width: 155%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: linear-gradient(-50deg, transparent 36%, rgba(255,241,201,.72) 50%, transparent 64%);
    -webkit-mask-image: radial-gradient(circle at bottom, transparent 38%, #000 72%);
    mask-image: radial-gradient(circle at bottom, transparent 38%, #000 72%);
    z-index: 1;
}

.fdc-treatment-options__cta:is(:hover, :focus-visible, :active) {
    --fdc-shiny-percent: 20%;
    --fdc-shiny-offset: 95deg;
    border-color: transparent;
    background:
        linear-gradient(#cfa555, #cfa555) padding-box,
        conic-gradient(
            from calc(var(--fdc-shiny-angle) - var(--fdc-shiny-offset)),
            transparent,
            #b28b42 var(--fdc-shiny-percent),
            #ffe8aa calc(var(--fdc-shiny-percent) * 2),
            #b28b42 calc(var(--fdc-shiny-percent) * 3),
            transparent calc(var(--fdc-shiny-percent) * 4)
        ) border-box;
    box-shadow: inset 0 0 0 1px rgba(13,13,13,.22);
    color: #0D0D0D !important;
    animation: fdc-shiny-angle 3s linear infinite;
}

.fdc-treatment-options__cta:is(:hover, :focus-visible, :active)::before {
    opacity: .2;
}

.fdc-treatment-options__cta:is(:hover, :focus-visible, :active)::after {
    opacity: .26;
    animation: fdc-shiny-sheen 7.5s linear infinite;
}


/* v0.64: phone interaction performance pass.
   Keep the useful open/close motion, but avoid animating large painted layers
   while Safari is also recalculating card heights. */
@media (max-width: 820px) {
    .fdc-treatment-options__card,
    .fdc-treatment-options__card.is-active {
        contain: layout paint;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition:
            height .18s cubic-bezier(.22,.82,.22,1),
            border-color .12s ease !important;
    }

    /* Do not interpolate max-height or margins inside a card whose own height
       is already animating. Reveal the detail with compositor-friendly props. */
    .fdc-treatment-options__detail {
        transition:
            opacity .10s ease,
            transform .13s cubic-bezier(.22,.82,.22,1) !important;
    }

    .fdc-treatment-options__card:not(.is-active) .fdc-treatment-options__detail {
        max-height: 0;
        margin-top: 0;
        opacity: 0;
        transform: translate3d(0, 9px, 0);
    }

    .fdc-treatment-options__card.is-active .fdc-treatment-options__detail {
        max-height: 330px;
        margin-top: 17px;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition-delay: .025s;
    }

    /* Full-size image filter/zoom animation was the expensive part on iOS.
       Keep one stable treatment on phones and let the card height do the work. */
    .fdc-treatment-options__media,
    .fdc-treatment-options__card.is-active .fdc-treatment-options__media {
        filter: saturate(.88) brightness(.86) !important;
        transform: scale(1.025) translateZ(0) !important;
        transition: none !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Likewise, use a static readability scrim instead of interpolating two
       complex gradients every frame during the open/close. */
    .fdc-treatment-options__scrim,
    .fdc-treatment-options__card.is-active .fdc-treatment-options__scrim {
        background:
            linear-gradient(180deg, rgba(18,18,18,.06) 8%, rgba(18,18,18,.18) 38%, rgba(18,18,18,.92) 100%),
            linear-gradient(90deg, rgba(18,18,18,.58) 0%, rgba(18,18,18,.22) 58%, rgba(18,18,18,.04) 100%) !important;
        transition: none !important;
    }

    .fdc-treatment-options__gold-line {
        transition-duration: .16s !important;
    }
}
