/* =========================================================================
   EBD Dental v1.7
   Hero slideshow, clearer service hovers, team, technology + accreditations,
   smile stories, and the chosen-section options (why / steps / invisalign / cta).
   ========================================================================= */

/* ---------- Hero slideshow ---------- */
.ebd-hero-slides { display: none !important; }
.ebd-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #172735; }
.ebd-slides__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); }
.ebd-slides__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07) translate3d(1%, 0, 0); }
.ebd-slides__slide.is-alt img { transform: scale(1.07) translate3d(-1%, -.6%, 0); }
.ebd-slides__slide.is-active { opacity: 1; z-index: 2; }
.ebd-slides__slide.is-leaving { opacity: 0; z-index: 1; }
.ebd-slides__slide.is-active img, .ebd-slides__slide.is-leaving img { animation: ebd-kenburns calc(var(--ebd-slide-dur, 6500ms) + 2000ms) cubic-bezier(.25, .1, .25, 1) forwards; }
.ebd-slides__slide.is-alt.is-active img, .ebd-slides__slide.is-alt.is-leaving img { animation-name: ebd-kenburns-alt; }
@keyframes ebd-kenburns { from { transform: scale(1.07) translate3d(1%, 0, 0); } to { transform: scale(1.01) translate3d(-.6%, -.6%, 0); } }
@keyframes ebd-kenburns-alt { from { transform: scale(1.01) translate3d(-1%, .6%, 0); } to { transform: scale(1.07) translate3d(.6%, -.4%, 0); } }
.has-slides > .wp-block-cover__background { z-index: 1 !important; }
.has-slides > .wp-block-cover__inner-container { z-index: 3 !important; }
.ebd-slides__ui { position: absolute; z-index: 4; right: clamp(1.25rem, 5vw, 5.5rem); bottom: 108px; display: flex; align-items: center; gap: 18px; color: rgba(255, 255, 255, .8); font-family: var(--wp--preset--font-family--button); font-size: .8rem; letter-spacing: .14em; }
.ebd-slides__count b { color: #fff; font-weight: 600; }
.ebd-slides__bars { display: flex; gap: 8px; }
.ebd-slides__bar { position: relative; width: 44px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.ebd-slides__bar::before, .ebd-slides__bar i { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .3); }
.ebd-slides__bar i { right: auto; width: 0; background: #fff; }
.ebd-slides__bar.is-active i { animation: ebd-slidebar var(--ebd-slide-dur, 6500ms) linear forwards; }
.ebd-slides__bar:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes ebd-slidebar { to { width: 100%; } }
@media (max-width: 781px) { .ebd-slides__ui { bottom: 92px; left: 20px; right: auto; } .ebd-slides__bar { width: 28px; } }
@media (prefers-reduced-motion: reduce) {
	.ebd-slides__slide img, .ebd-slides__slide.is-alt img { animation: none !important; transform: none !important; }
	.ebd-slides__slide { transition-duration: .8s; }
}

/* ---------- Services: hover text that reads clearly ---------- */
.ebd-svc::before { background: linear-gradient(180deg, rgba(16, 36, 50, .25) 0%, rgba(16, 36, 50, .82) 38%, rgba(12, 28, 40, .96) 100%) !important; }
.ebd-svc .ebd-svc__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.ebd-svc .ebd-svc__text { font-size: 1.125rem !important; line-height: 1.6 !important; font-weight: 500; color: #fff !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); max-width: 30ch; }
.ebd-svc:hover .ebd-svc__title, .ebd-svc:focus-within .ebd-svc__title { transform: translateY(-4px); }
.ebd-svc .ebd-svc__text::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 14px; background: #5AAFC9; }
@media (max-width: 781px) { .ebd-svc .ebd-svc__text { font-size: 1rem !important; } }

/* ---------- Team: framed portraits on a tinted band ---------- */
.ebd-team-band { position: relative; background: radial-gradient(circle at 1px 1px, rgba(23, 39, 53, .07) 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(180deg, #F4F7F9, #EAF0F3); border-top: 1px solid #E1E8EC; }
.ebd-staff--classic .hub-stv-item--profiles { background: #fff !important; border-radius: 20px !important; padding: 12px 12px 26px !important; box-shadow: 0 1px 0 #E1E8EC, 0 24px 50px -38px rgba(23, 39, 53, .45) !important; transition: transform .5s var(--ebd-ease, ease), box-shadow .5s; }
.ebd-staff--classic .hub-stv-item--profiles:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #E1E8EC, 0 40px 70px -40px rgba(23, 39, 53, .55) !important; }
.ebd-staff--classic .hub-stv-item__photo { border-radius: 14px !important; box-shadow: none !important; }
.ebd-staff--classic .hub-stv-item__photo::after { opacity: 1 !important; background: linear-gradient(180deg, transparent 55%, rgba(23, 39, 53, .55)) !important; }
.ebd-staff--classic .hub-stv-item__content { padding: 20px 10px 0 !important; position: relative; }
.ebd-staff--classic .hub-stv-item__content::before { content: ""; position: absolute; left: 10px; top: 0; width: 32px; height: 2px; background: var(--wp--preset--color--primary); }
.ebd-staff--classic .hub-stv-item__designation { margin-top: 6px !important; }
.ebd-staff--classic .hub-stv-item__bio, .ebd-staff--classic .hub-stv-item__excerpt { border-top: 0 !important; padding-top: 4px !important; }
.ebd-team-band .ebd-team-head h2 em { font-style: normal; color: var(--wp--preset--color--primary); }

/* ---------- Technology: taller, then Dr. Alam's accreditations ---------- */
.ebd-tech > .wp-block-column > .wp-block-cover { min-height: 720px !important; }
.ebd-tech__panel .wp-block-cover__inner-container { max-width: 560px; }
@media (max-width: 781px) { .ebd-tech > .wp-block-column > .wp-block-cover.ebd-tech__panel { min-height: 0 !important; padding: 72px 28px !important; } }
.ebd-accred { background: #fff; border-bottom: 1px solid #E3E8EB; }
.ebd-accred__row { display: grid !important; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: center; }
.ebd-accred__label { margin: 0 !important; }
.ebd-accred__label strong { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--wp--preset--color--navy); letter-spacing: .3px; }
.ebd-accred__label span { display: block; margin-top: 8px; font-family: var(--wp--preset--font-family--button); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--ink-soft); }
.ebd-accred__logos { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 !important; }
.ebd-accred__logos > .wp-block-image { background: none !important; border-radius: 0 !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; height: 96px; padding: 0 18px; border-left: 1px solid #E3E8EB; }
.ebd-accred__logos img { background: none !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; max-height: 54px; max-width: 100%; width: auto !important; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.ebd-accred__logos > .wp-block-image:hover img { filter: none; opacity: 1; }
@media (max-width: 1023px) { .ebd-accred__row { grid-template-columns: 1fr; gap: 20px; } .ebd-accred__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ebd-accred__logos > .wp-block-image { border-left: 0; border-top: 1px solid #E3E8EB; height: 84px; } }

/* ---------- Smile stories: each patient's result beside their words ---------- */
.ed-smiles { background: var(--ed-navy, #172735); color: #fff; }
.ed-smiles__head { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ed-col-gap, 2rem); align-items: end; margin-bottom: clamp(36px, 5vw, 64px) !important; }
.ed-smiles__head .ed-index { grid-column: 1 / -1; }
.ed-smiles__head h2 { grid-column: 1 / span 7; color: #fff; }
.ed-smiles__head > p:not(.ed-index) { grid-column: 9 / span 4; color: rgba(255, 255, 255, .7); }
.ed-smiles .ebd-carousel__track > *, .ed-smiles .ebd-slide { background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.ed-story { display: grid !important; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.ed-story .ebd-compare { aspect-ratio: 5 / 4 !important; border-radius: 4px !important; box-shadow: none !important; margin: 0 !important; }
.ed-story__body { display: flex !important; flex-direction: column; gap: 0; }
.ed-story__tag { font-family: var(--ed-sans, sans-serif); font-size: .72rem !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ed-teal-soft, #9cc8d6) !important; margin: 0 0 22px !important; }
.ed-story .ed-quote__text { font-size: clamp(1.5rem, 2.3vw, 2.35rem) !important; }
.ed-story .ed-quote__who { margin-top: 28px !important; }
.ed-smiles .ebd-carousel__nav { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ed-smiles .ebd-carousel__btn { color: #fff; border-color: rgba(255, 255, 255, .16); background: transparent; border-radius: 2px; }
.ed-smiles .ebd-carousel__btn:hover { background: rgba(255, 255, 255, .1); }
.ed-smiles .ebd-carousel__dots button { background: rgba(255, 255, 255, .3); border-radius: 0; width: 24px; height: 2px; }
.ed-smiles .ebd-carousel__dots button[aria-current="true"], .ed-smiles .ebd-carousel__dots button.is-active { background: #fff; }
.ed-smiles .ed-note { color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) {
	.ed-smiles__head { display: block !important; }
	.ed-smiles__head > * + * { margin-top: 18px !important; }
	.ed-story { grid-template-columns: 1fr; }
}
