/* =====================================================================
   EBD Dental: theme styles (front end + editor)
   Tokens come from theme.json (--wp--preset--*). Keep selectors flat.
   ===================================================================== */

:root {
	--ebd-ease: cubic-bezier(.16, 1, .3, 1);
	--ebd-ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--ebd-radius: 10px;
	--ebd-header-h: 76px;
	--ebd-ring: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ebd-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 6px; }
img { height: auto; max-width: 100%; }
:where(.wp-site-blocks) > main { min-height: 50vh; }
.screen-reader-text:not(:focus) { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { z-index: 100001; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------------------------------------------------------------------
   Page transitions (Chrome, Edge, Safari 18+). Others just navigate.
   --------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ebd-vt-out .28s var(--ebd-ease-in-out) both; }
::view-transition-new(root) { animation: ebd-vt-in .5s var(--ebd-ease) both; }
.ebd-header { view-transition-name: ebd-header; }
::view-transition-group(ebd-header) { animation: none; }
@keyframes ebd-vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes ebd-vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* Top progress bar while the next page loads */
.ebd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; background: var(--wp--preset--gradient--brand); }
.ebd-progress.is-loading { opacity: 1; animation: ebd-progress 8s var(--ebd-ease) forwards; }
@keyframes ebd-progress { 0% { transform: scaleX(0); } 10% { transform: scaleX(.35); } 50% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
/* The template-part wrapper is what sticks (a sticky child of a same-height wrapper would not). */
.wp-site-blocks > header.wp-block-template-part:has(.ebd-header) { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part:has(.ebd-header) { top: var(--wp-admin--admin-bar--height, 32px); }
.ebd-header { position: relative; transition: transform .45s var(--ebd-ease), color .3s; }
/* The glass layer lives on a pseudo element: backdrop-filter on the header itself
   would trap the fixed mobile drawer inside it. */
.ebd-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
	transition: background .3s, box-shadow .3s, border-color .3s;
}
.ebd-header.is-scrolled::before { background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent); box-shadow: 0 10px 30px -18px rgba(11, 22, 34, .25); }
.ebd-header.is-hidden { transform: translateY(-100%); }
.ebd-header__bar { min-height: var(--ebd-header-h); transition: min-height .35s var(--ebd-ease); }
.ebd-header.is-scrolled .ebd-header__bar { min-height: 64px; }
.ebd-header .wp-block-site-logo img { transition: transform .35s var(--ebd-ease); }
.ebd-header.is-scrolled .wp-block-site-logo img { transform: scale(.9); }

/* Over-hero header: transparent until the visitor scrolls */
.wp-site-blocks > header.wp-block-template-part:has(.ebd-header--overlay) { position: fixed; left: 0; right: 0; }
.ebd-header--overlay:not(.is-scrolled)::before { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wp-site-blocks:has(> header .ebd-header--overlay) > main .wp-block-post-content > .alignfull:first-child,
.wp-site-blocks:has(> header .ebd-header--overlay) > main > .alignfull:not(.wp-block-post-content):first-child { padding-top: calc(var(--ebd-header-h) + clamp(3rem, 8vw, 6rem)) !important; }
.wp-site-blocks:has(> header .ebd-header--overlay) > main { margin-top: 0 !important; }

/* Top bar */
.ebd-topbar { font-size: var(--wp--preset--font-size--x-small); transition: margin .35s var(--ebd-ease), opacity .3s; }
.ebd-topbar a { color: inherit; text-decoration: none; }
.ebd-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ebd-header.is-scrolled .ebd-topbar { margin-top: -38px !important; opacity: 0; }
@media (max-width: 781px) { .ebd-topbar .ebd-topbar__hide-sm { display: none !important; } }

/* ---------------------------------------------------------------------
   Reveal animations (only once JS has marked the page)
   --------------------------------------------------------------------- */
.ebd-js [data-ebd-anim] { transition: opacity .9s var(--ebd-ease), transform 1s var(--ebd-ease), filter .9s var(--ebd-ease); transition-delay: var(--ebd-delay, 0ms); }
.ebd-js [data-ebd-anim="fade-up"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.ebd-js [data-ebd-anim="fade-in"]:not(.is-in) { opacity: 0; }
.ebd-js [data-ebd-anim="fade-left"]:not(.is-in) { opacity: 0; transform: translateX(-36px); }
.ebd-js [data-ebd-anim="fade-right"]:not(.is-in) { opacity: 0; transform: translateX(36px); }
/* Sideways offsets would widen the page on phones before the block reveals. */
@media (max-width: 781px) {
	.ebd-js [data-ebd-anim="fade-left"]:not(.is-in), .ebd-js [data-ebd-anim="fade-right"]:not(.is-in) { transform: translateY(24px); }
}
.wp-site-blocks { overflow-x: clip; }
.ebd-js [data-ebd-anim="zoom-in"]:not(.is-in) { opacity: 0; transform: scale(.94); }
.ebd-js [data-ebd-anim="blur-in"]:not(.is-in) { opacity: 0; filter: blur(12px); transform: translateY(10px); }
/* Words */
.ebd-w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.ebd-w > span { display: inline-block; transition: transform .9s var(--ebd-ease), opacity .9s var(--ebd-ease); transition-delay: calc(var(--ebd-delay, 0ms) + var(--i, 0) * 55ms); }
.ebd-js [data-ebd-anim="words"]:not(.is-in) .ebd-w > span { transform: translateY(105%); opacity: 0; }
/* Stagger children */
.ebd-js [data-ebd-anim="stagger"] > * { transition: opacity .8s var(--ebd-ease), transform .9s var(--ebd-ease); transition-delay: calc(var(--ebd-delay, 0ms) + var(--i, 0) * 90ms); }
.ebd-js [data-ebd-anim="stagger"]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }

/* ---------------------------------------------------------------------
   Block styles
   --------------------------------------------------------------------- */
/* Paragraph */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-small) !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--primary-strong); }
.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--wp--preset--color--ink-soft); }
.is-style-pill { display: inline-flex !important; align-items: center; gap: .5rem; width: fit-content; padding: .4rem .85rem .4rem .45rem; border-radius: 999px; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; background: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent); box-shadow: var(--ebd-ring), 0 4px 14px -8px rgba(11, 22, 34, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.is-style-pill::before { content: "New"; padding: .15rem .5rem; border-radius: 999px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); font-size: .6875rem; letter-spacing: .04em; }
.is-style-pill[data-pill]::before { content: attr(data-pill); }
.has-text-align-center.is-style-pill { margin-inline: auto; }

/* Heading */
.is-style-gradient { background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.is-style-gradient mark, .is-style-gradient em { -webkit-text-fill-color: transparent; }
.is-style-counter { font-variant-numeric: tabular-nums; }
h1 mark, h2 mark { background: none; color: var(--wp--preset--color--primary); position: relative; white-space: nowrap; }
h1 mark::after, h2 mark::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .04em; height: .16em; border-radius: 999px; background: currentColor; opacity: .25; transform-origin: 0 50%; animation: ebd-underline 1.2s .5s var(--ebd-ease) both; }
@keyframes ebd-underline { from { transform: scaleX(0); } }

/* Buttons */
.wp-block-button__link { transition: transform .35s var(--ebd-ease), box-shadow .35s var(--ebd-ease), background-color .2s, color .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-primary .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--wp--preset--color--primary) 80%, transparent); }
.wp-block-button.is-style-primary .wp-block-button__link:hover { background: var(--wp--preset--color--primary-strong); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 25%, transparent); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: color-mix(in srgb, currentColor 8%, transparent); color: currentColor; }
.wp-block-button.is-style-arrow .wp-block-button__link { display: inline-flex; align-items: center; gap: .6rem; padding-right: .5rem; }
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: ""; width: 32px; height: 32px; border-radius: 999px; flex: none;
	background: color-mix(in srgb, currentColor 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .4s var(--ebd-ease);
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(3px) rotate(-45deg); }

/* Group / column cards */
.is-style-card { background: var(--wp--preset--color--base); border-radius: var(--ebd-radius); box-shadow: var(--ebd-ring), var(--wp--preset--shadow--soft); transition: transform .5s var(--ebd-ease), box-shadow .5s var(--ebd-ease); }
.is-style-card:not([style*="padding"]) { padding: clamp(1.25rem, 2.6vw, 2rem); }
.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--ebd-ring), var(--wp--preset--shadow--lifted); }
.is-style-glass { background: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent); border-radius: var(--ebd-radius); box-shadow: 0 20px 50px -24px rgba(11, 22, 34, .35); }
.is-style-glass:not([style*="padding"]) { padding: 1.25rem 1.5rem; }
.is-style-gradient-border { position: relative; border-radius: var(--ebd-radius); background: var(--wp--preset--color--base); isolation: isolate; }
.is-style-gradient-border:not([style*="padding"]) { padding: clamp(1.25rem, 2.6vw, 2rem); }
.is-style-gradient-border::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ebd-angle, 0deg), var(--wp--preset--color--primary), var(--wp--preset--color--accent), transparent 40%, var(--wp--preset--color--primary)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ebd-spin 6s linear infinite; }
@property --ebd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ebd-spin { to { --ebd-angle: 360deg; } }
.is-style-spotlight { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--ebd-radius); background: var(--wp--preset--color--base); box-shadow: var(--ebd-ring); transition: transform .5s var(--ebd-ease), box-shadow .5s var(--ebd-ease); }
.is-style-spotlight:not([style*="padding"]) { padding: clamp(1.25rem, 2.6vw, 2rem); }
.is-style-spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent), transparent 60%); }
.is-style-spotlight:hover::after { opacity: 1; }
.is-style-spotlight:hover { transform: translateY(-4px); box-shadow: var(--ebd-ring), var(--wp--preset--shadow--lifted); }

/* Bento grid: first column spans two rows, the rest flow */
@media (min-width: 782px) {
	.wp-block-columns.is-style-bento { display: grid !important; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); gap: var(--wp--preset--spacing--30); }
	.wp-block-columns.is-style-bento > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
	.wp-block-columns.is-style-bento > .wp-block-column:first-child { grid-row: span 2; }
	.wp-block-columns.is-style-bento > .wp-block-column:nth-child(6) { grid-column: span 2; }
}

/* Marquee */
.is-style-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.is-style-marquee.is-ready { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; }
.is-style-marquee.is-ready > .wp-block-group__inner-container { display: flex; flex-wrap: nowrap; }
.ebd-marquee__track { display: flex; flex: none; align-items: center; gap: var(--wp--style--block-gap, 2rem); padding-right: var(--wp--style--block-gap, 2rem); animation: ebd-marquee var(--ebd-marquee-speed, 32s) linear infinite; }
.ebd-marquee__track > * { flex: none; margin: 0 !important; }
.is-style-marquee:hover .ebd-marquee__track { animation-play-state: paused; }
@keyframes ebd-marquee { to { transform: translateX(-100%); } }

/* Images */
.wp-block-image.is-style-blob img { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59% !important; animation: ebd-blob 14s ease-in-out infinite alternate; }
@keyframes ebd-blob { 50% { border-radius: 58% 42% 39% 61% / 55% 38% 62% 45%; } }
.wp-block-image.is-style-tilt { perspective: 900px; }
.wp-block-image.is-style-tilt img { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ebd-ease); will-change: transform; }

/* Lists */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.wp-block-list.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6F67' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Details / accordion */
.wp-block-details summary { cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--heading); font-weight: 650; font-size: var(--wp--preset--font-size--large); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1622' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .4s var(--ebd-ease), background-color .3s; }
.wp-block-details[open] summary::after { transform: rotate(135deg); background-color: var(--wp--preset--color--primary-soft); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--ink-soft); }
.wp-block-details::details-content { block-size: 0; overflow-y: clip; transition: content-visibility .5s allow-discrete, block-size .5s var(--ebd-ease); }
.wp-block-details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
.wp-block-details.is-style-accordion { border: 0; background: var(--wp--preset--color--surface); border-radius: 18px; padding: 1.1rem 1.25rem; margin-bottom: .6rem; transition: background .3s; }
.wp-block-details.is-style-accordion[open] { background: var(--wp--preset--color--base); box-shadow: var(--ebd-ring), var(--wp--preset--shadow--soft); }

/* Separator */
.wp-block-separator.is-style-fade { border: 0 !important; height: 1px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--line), transparent); }

/* ---------------------------------------------------------------------
   Pattern helpers
   --------------------------------------------------------------------- */
/* Hero with drifting colour blobs */
.ebd-hero { position: relative; isolation: isolate; overflow: clip; }
.ebd-hero::before, .ebd-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 999px; filter: blur(60px); opacity: .55; pointer-events: none; }
.ebd-hero::before { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -12vw; top: -14vw; background: var(--wp--preset--color--primary-soft); animation: ebd-drift 18s ease-in-out infinite alternate; }
.ebd-hero::after { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -10vw; top: 10%; background: var(--wp--preset--color--accent-soft); animation: ebd-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes ebd-drift { to { transform: translate(6vw, 4vw) scale(1.12); } }
.ebd-grid-bg { background-image: linear-gradient(color-mix(in srgb, var(--wp--preset--color--ink) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--ink) 5%, transparent) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }

/* Hero visual with floating glass cards */
.ebd-hero-visual { position: relative; }
.ebd-hero-visual .wp-block-image img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 32px; box-shadow: 0 40px 90px -40px rgba(11, 22, 34, .45); }
.ebd-float { position: absolute !important; z-index: 2; margin: 0 !important; animation: ebd-float 6s ease-in-out infinite; }
.ebd-float--a { left: -6%; bottom: 14%; }
.ebd-float--b { right: -4%; top: 10%; animation-delay: -3s; }
@keyframes ebd-float { 50% { transform: translateY(-10px); } }
@media (max-width: 781px) { .ebd-float--a { left: 4%; bottom: 4%; } .ebd-float--b { right: 4%; top: 4%; } }

/* Icon badge used in service cards */
.ebd-icon-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wp--preset--color--primary-soft); transition: transform .5s var(--ebd-ease), background .3s; }
.ebd-icon-badge img { width: 26px !important; height: 26px !important; border-radius: 0 !important; }
.ebd-icon-badge.wp-block-image { margin: 0; }
:is(.is-style-card, .is-style-spotlight, .ebd-slide):hover .ebd-icon-badge { transform: rotate(-8deg) scale(1.06); }

/* Service card link arrow */
.ebd-more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.ebd-more a::after { content: "→"; transition: transform .35s var(--ebd-ease); }
.ebd-more a:hover::after { transform: translateX(4px); }

/* Dark sections */
.ebd-dark { color: #E9F1F4; }
.ebd-dark :where(h1, h2, h3, h4) { color: #fff; }
.ebd-dark .is-style-eyebrow { color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, #fff); }
.ebd-dark .is-style-card, .ebd-dark .is-style-spotlight { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: inherit; }
.ebd-dark .is-style-lead, .ebd-dark .has-ink-soft-color { color: rgba(233, 241, 244, .75) !important; }

/* Stats */
.ebd-stat h3, .ebd-stat .wp-block-heading { font-size: var(--wp--preset--font-size--xx-large); margin-bottom: .25rem; }

/* Avatars row */
.ebd-avatars { display: flex; }
.ebd-avatars > * { margin: 0 0 0 -10px !important; }
.ebd-avatars > :first-child { margin-left: 0 !important; }
.ebd-avatars img { width: 40px !important; height: 40px !important; border-radius: 999px !important; border: 2px solid var(--wp--preset--color--base); object-fit: cover; }

/* Stars */
.ebd-stars { color: #F5A524; letter-spacing: .1em; }

/* Page hero (page.html) */
.ebd-page-hero { position: relative; isolation: isolate; overflow: clip; }
.ebd-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wp--preset--gradient--mesh); }

/* Post cards */
.ebd-post-card { height: 100%; }
.ebd-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ebd-ease); }
.ebd-post-card .wp-block-post-featured-image { overflow: hidden; border-radius: 20px; }
.ebd-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.ebd-footer a { color: inherit; }
.ebd-footer .ebd-info__value a { text-decoration: none; }
.ebd-footer .ebd-info__value a:hover { text-decoration: underline; }
.ebd-footer__legal { font-size: var(--wp--preset--font-size--x-small); opacity: .75; }
.ebd-footer__big { font-size: clamp(3rem, 12vw, 10rem); line-height: .85; letter-spacing: -.05em; font-weight: 800; opacity: .07; white-space: nowrap; overflow: hidden; user-select: none; margin: 0; }

/* ---------------------------------------------------------------------
   Editor helpers and editor-only UI on the front end
   --------------------------------------------------------------------- */
.ebd-edit-pill { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1rem; border-radius: 999px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base) !important; font: 600 13px/1 var(--wp--preset--font-family--heading); text-decoration: none; box-shadow: 0 14px 30px -12px rgba(11, 22, 34, .5); transition: transform .3s var(--ebd-ease); }
.ebd-edit-pill:hover { transform: translateY(-2px); }
.ebd-notice { padding: .9rem 1.1rem; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent); background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--small); }

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ebd-js [data-ebd-anim], .ebd-js [data-ebd-anim] * { opacity: 1 !important; transform: none !important; filter: none !important; }
	@view-transition { navigation: none; }
	.ebd-marquee__track { animation: none; }
	.is-style-marquee.is-ready { overflow-x: auto; }
}

/* A page built from a full-page pattern brings its own intro: hide the template's title band. */
main:has(> .wp-block-post-content > .ebd-hero:first-child) > .ebd-page-hero { display: none; }


/* =====================================================================
   English Bay Dental design layer
   Fonts: Marcellus (headings), Inter Tight (hero), Montserrat (buttons), Verdana (body)
   ===================================================================== */
.ebd-hero::before, .ebd-hero::after { content: none; }
h1 mark:not(.has-inline-color), h2 mark:not(.has-inline-color) { background: none; color: inherit; }
mark.has-inline-color { background: none !important; }
h1 mark::after, h2 mark::after { content: none; }
.ebd-float { display: none !important; }

/* Buttons: white pill with a teal arrow circle */
.wp-block-button:not(.is-style-outline):not(.is-style-plain):not(.is-style-solid) > .wp-block-button__link { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.wp-block-button:not(.is-style-outline):not(.is-style-plain):not(.is-style-solid) > .wp-block-button__link::after {
	content: ""; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 100px; background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 22px no-repeat;
	transition: transform .4s var(--ebd-ease);
}
.wp-block-button__link:hover::after { transform: rotate(45deg); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-radius: 0; border: 1px solid currentColor; background: transparent; padding: 10px 20px; min-height: 0; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.ebd-on-dark .wp-block-button.is-style-outline > .wp-block-button__link, .wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.ebd-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover, .wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-cover .wp-block-button:not(.is-style-outline) > .wp-block-button__link { border-color: #fff; }

/* Hero */
.ebd-hero-cover { margin-top: 0 !important; margin-bottom: 0 !important; }
.ebd-hero-cover .wp-block-cover__inner-container { width: 100%; max-width: 1920px; margin-inline: auto; }
.ebd-hero-cover h1 { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: 1px; color: #fff; max-width: 11ch; }
.ebd-hero-cover p { color: #fff; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 36rem; }
.ebd-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ebd-tags li { padding: 12px 20px; border-radius: 100px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.125rem; line-height: 1; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ebd-tags li:first-child { background: #fff; color: #161616; box-shadow: none; }

/* Header over the hero: white text until it scrolls */
.ebd-header--overlay:not(.is-scrolled) { color: #fff; }
.ebd-header--overlay:not(.is-scrolled) :is(.wp-block-site-title a, .ebd-nav__link, .ebd-nav__toggle, .ebd-nav__phone, .ebd-nav__burger) { color: #fff !important; }
.ebd-header--overlay:not(.is-scrolled) .ebd-nav__burger { background: transparent; border-color: rgba(255,255,255,.4); }
.ebd-header--overlay:not(.is-scrolled) .ebd-nav__indicator { background: rgba(255, 255, 255, .12); }

/* Section type */
.ebd-eyebrow-light { color: #fff !important; }
.ebd-sub { font-size: clamp(1.375rem, 2.2vw, 1.625rem) !important; }

/* Hover-expand image gallery */
.ebd-xgallery { display: flex; gap: 12px; height: 55vh; min-height: 420px; }
.ebd-xgallery > .wp-block-cover { flex: 1 1 0; min-height: 0 !important; height: 100%; margin: 0 !important; border-radius: 10px; overflow: hidden; transition: flex-grow .7s var(--ebd-ease); padding: 28px; align-items: flex-end; }
.ebd-xgallery > .wp-block-cover:hover, .ebd-xgallery > .wp-block-cover:focus-within { flex-grow: 2.6; }
.ebd-xgallery > .wp-block-cover .wp-block-cover__background { background: #000 !important; opacity: 0 !important; transition: opacity .5s; }
.ebd-xgallery > .wp-block-cover:hover .wp-block-cover__background { opacity: .58 !important; }
.ebd-xgallery > .wp-block-cover .wp-block-cover__image-background { transition: transform 1.2s var(--ebd-ease); }
.ebd-xgallery > .wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.04); }
.ebd-xgallery h3 { color: #fff; margin: 0 0 14px; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.ebd-xgallery .wp-block-buttons { opacity: 0; transform: translateY(10px); transition: opacity .4s .1s, transform .5s .1s var(--ebd-ease); }
.ebd-xgallery > .wp-block-cover:hover .wp-block-buttons, .ebd-xgallery > .wp-block-cover:focus-within .wp-block-buttons { opacity: 1; transform: none; }
@media (max-width: 781px) {
	.ebd-xgallery { flex-direction: column; height: auto; }
	.ebd-xgallery > .wp-block-cover { height: 300px; flex: none; }
	.ebd-xgallery .wp-block-buttons { opacity: 1; transform: none; }
	.ebd-xgallery > .wp-block-cover .wp-block-cover__background { opacity: .3 !important; }
}
@media (hover: none) { .ebd-xgallery .wp-block-buttons { opacity: 1; transform: none; } }

/* Steps with dividers */
.ebd-steps > .wp-block-column { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1.5rem; }
.ebd-steps > .wp-block-column:first-child { border-color: var(--wp--preset--color--primary-strong); }
.ebd-step-no { font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; color: var(--wp--preset--color--accent); letter-spacing: 1px; margin: 0 0 .75rem; }

/* Photos */
.ebd-photo img, .ebd-photo-wide img, .ebd-photo-portrait img { width: 100%; display: block; object-fit: cover; border-radius: 10px; background: var(--wp--preset--color--surface-2); }
.ebd-photo-portrait img { aspect-ratio: 4 / 5; }
.ebd-photo-wide img { aspect-ratio: 21 / 9; }
@media (max-width: 781px) { .ebd-photo-wide img { aspect-ratio: 4 / 3; } }

/* Clinic photo carousel: white frame, 20px radius */
.ebd-gallery-carousel .ebd-slide { padding: 0 !important; background: none !important; box-shadow: none !important; }
.ebd-gallery-carousel .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid #fff; border-radius: 20px; box-shadow: 0 14px 40px -24px rgba(23, 39, 53, .45); }

/* Labels, links, logos */
.ebd-label { font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; text-transform: uppercase; letter-spacing: 3px; color: var(--wp--preset--color--ink); padding-bottom: .75rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.ebd-more a { color: var(--wp--preset--color--primary); text-decoration: none; font-family: var(--wp--preset--font-family--button); text-transform: uppercase; font-size: .875rem; font-weight: 500; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.ebd-more a::after { content: " \2197"; }
.ebd-linklist { list-style: none; padding: 0; margin-left: 0; }
.ebd-linklist li { border-bottom: 1px solid var(--wp--preset--color--line); }
.ebd-linklist a { display: flex; justify-content: space-between; padding: .75rem 0; text-decoration: none; color: var(--wp--preset--color--ink); }
.ebd-linklist a::after { content: "\2197"; color: var(--wp--preset--color--primary); transition: transform .3s; }
.ebd-linklist a:hover { color: var(--wp--preset--color--primary); }
.ebd-linklist a:hover::after { transform: translate(2px, -2px); }
.ebd-logos.wp-block-gallery { gap: 1.75rem !important; align-items: center; flex-wrap: nowrap !important; }
.ebd-logos .wp-block-image img { max-height: 56px; width: auto !important; object-fit: contain !important; filter: grayscale(1); opacity: .8; transition: opacity .3s, filter .3s; }
.ebd-logos .wp-block-image:hover img { filter: none; opacity: 1; }
@media (max-width: 781px) { .ebd-logos.wp-block-gallery { flex-wrap: wrap !important; } .ebd-logos.wp-block-gallery > .wp-block-image { width: calc(33.33% - 1.2rem) !important; } }

/* FAQ: hairline rows, no cards */
.wp-block-details.is-style-accordion { border-radius: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--ink) !important; padding: 0 !important; }
.wp-block-details.is-style-accordion > summary { font-family: var(--wp--preset--font-family--body); font-size: 1.125rem; font-weight: 500; padding: 18px 0; }

/* Hours as hairline rows */
.ebd-hours ul li, .ebd-hours ol li { background: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line); box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.ebd-hours li.is-today.is-today { box-shadow: none !important; background: none !important; color: var(--wp--preset--color--primary); font-weight: 600; }
.ebd-dark .ebd-hours li { border-color: rgba(255,255,255,.12); }

/* Quiet cards */
:is(.is-style-card, .is-style-spotlight) { box-shadow: none; border: 1px solid var(--wp--preset--color--line); }
.is-style-gradient { background: none; color: var(--wp--preset--color--primary) !important; -webkit-text-fill-color: currentColor; }

/* Optional metallic heading, as used on englishbaydental.com */
.is-style-metallic { background: linear-gradient(110deg, #535D68 0%, #9EA8B4 25%, #E9EDF2 40%, #687481 55%, #C9D0D8 75%, #535D68 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: ebd-silver 9s linear infinite; }
@keyframes ebd-silver { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .is-style-metallic { animation: none; } }
.ebd-hero-cover { padding-left: max(clamp(1.25rem, 5vw, 5.5rem), calc((100% - 1920px) / 2)) !important; padding-right: max(clamp(1.25rem, 5vw, 5.5rem), calc((100% - 1920px) / 2)) !important; }
.ebd-hero-cover h1 { max-width: 12.5ch; }

/* Solid teal button */
.wp-block-button.is-style-solid > .wp-block-button__link { background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 3px; padding: 18px 30px; font-family: var(--wp--preset--font-family--display); text-transform: none; font-weight: 500; font-size: 1.125rem; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 12px; }
.wp-block-button.is-style-solid > .wp-block-button__link::after { content: "\2192"; transition: transform .3s var(--ebd-ease); }
.wp-block-button.is-style-solid > .wp-block-button__link:hover { background: var(--wp--preset--color--primary-strong); color: #fff; }
.wp-block-button.is-style-solid > .wp-block-button__link:hover::after { transform: translateX(4px); }

/* Platinum Invisalign credibility card (matches the home page system) */
.ebd-proof { background: var(--wp--preset--color--surface); border-radius: 10px; overflow: hidden; }
.ebd-proof__top { padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.75rem, 3.5vw, 3rem); margin: 0 !important; }
.ebd-proof__top h2 { margin-top: .4rem; }
.ebd-badges { gap: 0 !important; align-items: center; }
.ebd-badge { flex: none; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 28px; font-family: var(--wp--preset--font-family--button); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--ink-soft); line-height: 1.3; }
.ebd-badge:first-child { padding-left: 0; }
.ebd-badge + .ebd-badge { border-left: 1px solid var(--wp--preset--color--line); }
.ebd-badge strong { white-space: nowrap; display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 400; letter-spacing: 1px; text-transform: none; color: var(--wp--preset--color--ink); font-size: 1.625rem; line-height: 1; }
.ebd-badge--brand strong { color: var(--wp--preset--color--primary); }
.ebd-badge--brand sup { font-size: .45em; }
.ebd-proof__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 10px; }
.ebd-proof__perks { margin: 0 !important; border-top: 1px solid var(--wp--preset--color--line); padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.ebd-proof__perks > .wp-block-column { display: flex; gap: 18px; align-items: flex-start; padding: 0 clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--wp--preset--color--line); }
.ebd-proof__perks > .wp-block-column:first-child { padding-left: 0; border-left: 0; }
.ebd-perk__icon { flex: none; margin: 0 !important; width: 52px; height: 52px; border-radius: 100px; background: #fff; display: grid !important; place-items: center; box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }
.ebd-perk__title { font-size: 1.375rem !important; margin: 0; }
.ebd-perk__text { font-size: 1.0625rem; line-height: 1.6; margin: 0; }
@media (max-width: 1100px) { .ebd-proof__perks { flex-wrap: wrap !important; } .ebd-proof__perks > .wp-block-column { flex-basis: calc(50% - 1px) !important; padding: 1rem 0 !important; border-left: 0; } }
@media (max-width: 781px) { .ebd-proof__perks > .wp-block-column { flex-basis: 100% !important; } .ebd-badges { flex-wrap: wrap !important; gap: 1rem 0 !important; } .ebd-badge + .ebd-badge { border-left: 0; } .ebd-badge { padding: 0 1.75rem 0 0; } }

/* Associations strip */
.ebd-assoc { gap: 1.5rem 3rem !important; }
.ebd-assoc__label { margin: 0; border-bottom: 0 !important; padding-bottom: 0 !important; }
.ebd-assoc .ebd-logos { flex: 1 1 600px; justify-content: space-between; margin: 0 !important; }
.ebd-badges { flex-direction: column; align-items: flex-start !important; flex-wrap: nowrap !important; }
.ebd-badges .ebd-badge { padding: 0 !important; border-left: 0 !important; }
.ebd-badges .ebd-badge + .ebd-badge { border-top: 1px solid var(--wp--preset--color--line); padding-top: 18px !important; margin-top: 18px; width: 100%; }
.ebd-perk__title { font-size: 1.25rem !important; }

/* ==========================================================================
   v1.2: English Bay Dental home layout (full-width rebuild)
   ========================================================================== */
.ebd-split-head { gap: 2rem 4rem; }
.ebd-split-head h2 { margin: 0; }
.ebd-split-head p { margin: .4rem 0 0; max-width: 40em; margin-left: auto; color: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .ebd-split-head p.has-text-align-right { text-align: left; margin-left: 0; } }

/* Services: four edge-to-edge photos. */
.ebd-imgrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ebd-imgrow > .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: 10px; }
.ebd-imgrow img { width: 100%; aspect-ratio: 274 / 307; object-fit: cover; display: block; transition: transform 1.1s var(--ebd-ease, ease); }
.ebd-imgrow a:hover img { transform: scale(1.04); }
@media (max-width: 781px) { .ebd-imgrow { grid-template-columns: repeat(2, 1fr); } }

/* Steps: number sits on the middle of the hairline. */
.ebd-steps > .wp-block-column, .ebd-steps > .wp-block-column:first-child { border-top: 0 !important; padding-top: 0 !important; }
.ebd-steps .ebd-step-no { display: flex; align-items: center; gap: 10px; color: var(--wp--preset--color--ink-soft); font-size: .8rem; margin: 0 0 1.4rem; }
.ebd-steps .ebd-step-no::before, .ebd-steps .ebd-step-no::after { content: ""; flex: 1; height: 1px; background: #c9cfd3; }
.ebd-steps h3 { font-size: 1.45rem; margin: 0 0 .6rem; }
.ebd-steps p:not(.ebd-step-no) { font-size: 1.0625rem; color: var(--wp--preset--color--ink); }

/* Infographic images: show whole, never crop. */
.ebd-infographic img { width: 100%; height: auto; display: block; }

/* Dentist video section. */
.ebd-video { position: relative; overflow: hidden; }
.ebd-video .wp-block-cover__inner-container { position: static; display: flex; justify-content: flex-end; }
.ebd-video .ebd-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; z-index: 2; }
.ebd-video .ebd-play .wp-block-button__link { width: 96px; height: 96px; border-radius: 50% !important; padding: 0 !important; border: 4px solid #fff !important; background: rgba(255,255,255,.08) !important; font-size: 0 !important; color: transparent !important; display: grid; place-items: center; box-shadow: none !important; transition: transform .35s, background .35s; }
.ebd-video .ebd-play .wp-block-button__link::after { content: ""; position: static; width: 0; height: 0; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #fff; background: none !important; margin-left: 7px; border-radius: 0; }
.ebd-video .ebd-play .wp-block-button__link:hover { transform: scale(1.06); background: rgba(255,255,255,.2) !important; }
.ebd-glass-card { width: min(340px, 100%); margin: 0 !important; padding: 14px 14px 26px; border-radius: 10px; background: rgba(150, 172, 190, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); color: #fff; position: relative; z-index: 3; }
.ebd-glass-card .wp-block-image { margin: 0 0 6px; }
.ebd-glass-card img { width: 100%; aspect-ratio: 4 / 2.4; object-fit: cover; object-position: center 25%; border-radius: 8px; display: block; }
.ebd-glass-card h3 { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: 0; color: #fff; margin: 10px 8px 0; }
.ebd-glass-card p { font-size: .82rem; line-height: 1.6; color: #fff; margin: 0 8px; }
@media (max-width: 781px) {
	.ebd-video { min-height: 0 !important; padding-top: 340px !important; }
	.ebd-video .ebd-play { top: 170px; }
	.ebd-video .wp-block-cover__inner-container { justify-content: center; }
}

/* Video lightbox (play button pointing at an mp4, YouTube or Vimeo link). */
.ebd-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(10, 20, 28, .86); padding: 4vw; }
.ebd-lightbox__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.ebd-lightbox__frame > * { width: 100%; height: 100%; border: 0; display: block; }
.ebd-lightbox__close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: none; color: #fff; font-size: 26px; cursor: pointer; }

/* Technology: photo | navy panel | photo, edge to edge. */
.ebd-tech { gap: 0 !important; align-items: stretch !important; }
.ebd-tech > .wp-block-column { display: flex; }
.ebd-tech > .wp-block-column > .wp-block-cover { flex: 1; margin: 0; min-height: 560px !important; }
.ebd-tech__photo .wp-block-cover__inner-container { display: none; }
.ebd-tech__panel { position: relative; }
.ebd-tech__panel::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; z-index: 2; }
.ebd-tech__panel .wp-block-cover__inner-container { max-width: 520px; margin-inline: auto; }
.ebd-tech__panel h2 { font-size: clamp(2.25rem, 3.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1.2rem; }
.ebd-tech__panel p { font-size: 1.0625rem; line-height: 1.6; margin: .5rem 0; }
@media (max-width: 781px) { .ebd-tech > .wp-block-column > .ebd-tech__photo { min-height: 280px !important; } }

/* FAQ: two columns of hairline rows. */
.ebd-faq-cols .wp-block-details.is-style-accordion { margin: 0 !important; border-bottom: 1px solid #b9c1c6 !important; }
.ebd-faq-cols .wp-block-details.is-style-accordion > summary { font-size: 1.125rem; font-weight: 400; padding: 22px 30px 14px 0; }

/* Welcome banner, edge to edge above the footer. */
.ebd-banner .wp-block-image { margin: 0; }
.ebd-banner img { width: 100%; height: auto; display: block; }

/* Dark footer. */
.ebd-footer--dark { background: linear-gradient(rgba(27, 49, 64, .86), rgba(27, 49, 64, .86)), #1d3343 url("../../../../uploads/2026/10/Ethereal-Teal-Satin-Waves.png") center / cover no-repeat !important; color: #fff; border-radius: 0 !important; }
.ebd-footer--dark, .ebd-footer--dark a, .ebd-footer--dark .ebd-info__value, .ebd-footer--dark .hub-cip-time { color: #fff !important; }
.ebd-footer--dark > * + * { margin-top: 0 !important; }
.ebd-footer__intro { padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.25); }
.ebd-footer__intro p { margin: 0; font-size: 1.0625rem; }
.ebd-footer__intro p.ebd-footer__lead { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; }
.ebd-footer__cols { padding: 34px 0 40px; margin: 0 !important; border-bottom: 1px solid rgba(255,255,255,.25); }
.ebd-footer__h { font-family: var(--wp--preset--font-family--display) !important; font-weight: 600 !important; font-size: 1.2rem !important; letter-spacing: 0 !important; color: #fff !important; margin: 0 0 1.4rem !important; text-transform: none !important; }
.ebd-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.ebd-footer__links a { text-decoration: none; font-size: 1rem; }
.ebd-footer__links a:hover { text-decoration: underline; }
.ebd-footer--dark .ebd-hours .hub-cip-hours li { background: none !important; padding: .25rem 0; justify-content: flex-start; font-size: .95rem; }
.ebd-footer--dark .ebd-hours .hub-cip-day { font-family: var(--wp--preset--font-family--body); min-width: 5.5rem; }
.ebd-footer--dark .ebd-info--map iframe { width: 100%; height: 220px; border-radius: 4px; display: block; }
.ebd-footer__contact { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: .95rem; }
.ebd-footer__contact .ebd-footer__h { margin: 0 !important; }
.ebd-footer__contact .ebd-social__link { box-shadow: none; width: 30px; height: 30px; }
.ebd-footer__legal { padding-top: 22px; font-size: .8rem; opacity: .85; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.ebd-infographic img { border-radius: 0 !important; }
.ebd-banner, .ebd-banner .wp-block-image, .ebd-banner img { border-radius: 0 !important; }
.ebd-footer--dark .ebd-hours .hub-cip-hours li { border: 0 !important; }
.ebd-footer--dark .ebd-hours .hub-cip-hours, .ebd-footer--dark .ebd-hours ul { border: 0 !important; }
.ebd-footer--dark .ebd-hours .hub-cip-time { color: #fff !important; opacity: 1 !important; }
.ebd-footer--dark .ebd-hours .ebd-status { display: none !important; }
.ebd-footer--dark .ebd-info--map { border: 0 !important; border-radius: 4px; overflow: hidden; box-shadow: none !important; }

/* ==========================================================================
   v1.3: services hover cards, Invisalign "why" section, CTA, team, reviews, associations
   ========================================================================== */
.ebd-svc { margin: 0 !important; aspect-ratio: 274 / 307; min-height: 0 !important; border-radius: 10px; overflow: hidden; padding: 28px !important; isolation: isolate; }
.ebd-svc .wp-block-cover__image-background { transition: transform 1.2s var(--ebd-ease, ease); }
.ebd-svc::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 30, 42, 0) 35%, rgba(14, 30, 42, .78) 100%); opacity: .55; transition: opacity .5s ease; pointer-events: none; }
.ebd-svc .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; color: #fff; }
.ebd-svc__title { font-size: clamp(1.35rem, 1.7vw, 1.75rem) !important; color: #fff !important; margin: 0 !important; letter-spacing: .5px; }
.ebd-svc__title a { color: inherit !important; text-decoration: none; }
.ebd-svc__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card clickable */
.ebd-svc__text, .ebd-svc__more { margin: 0 !important; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(12px); transition: max-height .55s ease, opacity .45s ease, transform .55s ease, margin .55s ease; }
.ebd-svc__text { font-size: 1.0625rem; line-height: 1.55; color: rgba(255,255,255,.92); }
.ebd-svc__more { font-family: var(--wp--preset--font-family--button); font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; }
.ebd-svc__more a { color: #fff !important; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.ebd-svc__more a::after { content: "→"; font-size: 1.125rem; transition: transform .3s; }
.ebd-svc:hover::after, .ebd-svc:focus-within::after { opacity: 1; }
.ebd-svc:hover .wp-block-cover__image-background, .ebd-svc:focus-within .wp-block-cover__image-background { transform: scale(1.06); }
.ebd-svc:hover .ebd-svc__text, .ebd-svc:focus-within .ebd-svc__text { max-height: 8em; opacity: 1; transform: none; margin-top: 10px !important; }
.ebd-svc:hover .ebd-svc__more, .ebd-svc:focus-within .ebd-svc__more { max-height: 3em; opacity: 1; transform: none; margin-top: 16px !important; }
@media (hover: none) { .ebd-svc::after { opacity: 1; } .ebd-svc__text, .ebd-svc__more { max-height: none; opacity: 1; transform: none; margin-top: 10px !important; } }
@media (max-width: 781px) { .ebd-svc { aspect-ratio: 3 / 4; padding: 18px !important; } .ebd-svc__text { font-size: .95rem; } }
.ebd-svc img.wp-block-cover__image-background { aspect-ratio: auto !important; height: 100% !important; }

/* Why choose Invisalign: four features around the aligner. */
.ebd-why { background: radial-gradient(ellipse 60% 70% at 50% 62%, #eef3f6 0%, rgba(238,243,246,0) 70%), var(--wp--preset--color--base); }
.ebd-why h2 { margin-bottom: 18px; }
.ebd-why__lead { max-width: 36em; margin-inline: auto !important; color: var(--wp--preset--color--ink-soft); }
.ebd-why__side { display: flex; flex-direction: column; gap: 70px; }
.ebd-why__feat { position: relative; max-width: 300px; }
.ebd-why__side--right .ebd-why__feat { margin-left: auto; }
.ebd-why__pill { display: inline-block; margin: 0 0 14px !important; padding: 12px 26px; border: 1px solid #c9d6de; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -18px rgba(23, 39, 53, .35); font-family: var(--wp--preset--font-family--display) !important; font-weight: 600 !important; font-size: 1.12rem !important; line-height: 1.25 !important; letter-spacing: 0 !important; color: var(--wp--preset--color--navy) !important; }
.ebd-why__feat p { margin: 0 0 0 26px; font-size: 1.04rem; line-height: 1.55; color: var(--wp--preset--color--ink-soft); max-width: 15em; }
.ebd-why__img { margin: 0; position: relative; }
.ebd-why__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; box-shadow: 0 40px 80px -40px rgba(23, 39, 53, .45); }
.ebd-why__img::before { content: ""; position: absolute; inset: -18px; border: 1px dashed #c9d6de; border-radius: 50%; }
@media (min-width: 1024px) {
	.ebd-why__pill { position: relative; }
	.ebd-why__side--left .ebd-why__pill::after, .ebd-why__side--right .ebd-why__pill::before { content: ""; position: absolute; top: 50%; width: 70px; height: 1px; background: linear-gradient(90deg, #9fb4c2, #9fb4c2) no-repeat; }
	.ebd-why__side--left .ebd-why__pill::after { left: 100%; margin-left: 8px; }
	.ebd-why__side--right .ebd-why__pill::before { right: 100%; margin-right: 8px; }
	.ebd-why__side--left .ebd-why__feat { padding-right: 70px; }
	.ebd-why__side--right .ebd-why__feat { padding-left: 70px; }
}
@media (max-width: 781px) {
	.ebd-why__grid > .ebd-why__center { order: -1; flex-basis: 70% !important; margin-inline: auto; }
	.ebd-why__side { gap: 28px; }
	.ebd-why__feat, .ebd-why__side--right .ebd-why__feat { max-width: none; margin: 0; }
}

/* Global CTA: photo | satin panel with live text | photo. */
.ebd-cta { position: relative; display: grid; grid-template-columns: 1fr minmax(440px, 1.15fr) 1fr; min-height: 560px; background: #eef2f5 url("../../../../uploads/2026/10/Icy-Silver-Satin-Light-Waves.png") center / cover no-repeat; overflow: hidden; }
.ebd-cta__photo { margin: 0 !important; position: relative; }
.ebd-cta__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.ebd-cta__photo--left img { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); object-position: center 30%; }
.ebd-cta__photo--right img { -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%); mask-image: linear-gradient(270deg, #000 55%, transparent 100%); }
.ebd-cta__body { position: relative; z-index: 1; padding: 70px 24px; align-items: center !important; text-align: center; }
.ebd-cta__eyebrow { font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; letter-spacing: 4px; font-size: .72rem; color: var(--wp--preset--color--ink-soft); margin: 0 !important; }
.ebd-cta__eyebrow::after, .ebd-cta__address::before { content: ""; display: block; width: 46px; height: 1px; background: #8c9aa3; margin: 22px auto; }
.ebd-cta__title { font-size: clamp(2.4rem, 3.6vw, 3.6rem) !important; line-height: 1.05 !important; color: var(--wp--preset--color--navy) !important; margin: 0 0 18px !important; max-width: 9.5em; }
.ebd-cta__text { font-size: 1.1875rem; line-height: 1.5; color: var(--wp--preset--color--ink); margin: 0 0 30px !important; }
.ebd-cta__btn > .wp-block-button__link { background: #4f7189 !important; border-radius: 999px !important; padding: 17px 38px !important; font-size: 1.125rem !important; box-shadow: 0 14px 30px -16px rgba(23, 39, 53, .6); }
.ebd-cta__btn > .wp-block-button__link::after { content: "→"; font-size: 1.15rem; margin-left: 6px; transition: transform .3s; }
.ebd-cta__btn > .wp-block-button__link:hover { background: var(--wp--preset--color--navy) !important; }
.ebd-cta__btn > .wp-block-button__link:hover::after { transform: translateX(4px); }
.ebd-cta__call { margin-top: 18px !important; font-size: 1.0625rem; color: var(--wp--preset--color--ink); }
.ebd-cta__call p { margin: 0; }
.ebd-cta__call a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ebd-cta__address { font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; letter-spacing: 3px; font-size: .7rem; color: var(--wp--preset--color--ink-soft); }
@media (max-width: 1023px) {
	.ebd-cta { grid-template-columns: 1fr; min-height: 0; }
	.ebd-cta__photo { display: none; }
	.ebd-cta__body { padding: 70px 24px; }
}

/* Reviews: before/after slider + review cards. */
.ebd-compare { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -36px rgba(23, 39, 53, .5); user-select: none; touch-action: pan-y; }
.ebd-compare > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.ebd-compare img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 45%; border-radius: 0 !important; display: block; pointer-events: none; }
.ebd-compare__before { clip-path: inset(0 calc(100% - var(--ebd-pos, 50%)) 0 0); }
.ebd-compare--tint .ebd-compare__before img { filter: sepia(.38) saturate(1.25) brightness(.94) contrast(.96); }
.ebd-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--ebd-pos, 50%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); pointer-events: none; z-index: 2; }
.ebd-compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--wp--preset--color--navy); font-size: 22px; line-height: 44px; text-align: center; letter-spacing: 2px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.ebd-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ebd-compare__range:focus-visible + .ebd-compare__handle::after { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.ebd-compare__label { position: absolute; top: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.85); font-family: var(--wp--preset--font-family--button); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--navy); pointer-events: none; }
.ebd-compare__label--before { left: 16px; } .ebd-compare__label--after { right: 16px; }
.ebd-compare__note { font-size: .78rem; color: var(--wp--preset--color--ink-soft); margin-top: 14px !important; }
.ebd-reviews h2 { margin-bottom: 30px; }
.ebd-review { height: 100%; box-sizing: border-box; padding: 28px 26px; background: #fff; border: 1px solid #e6ebee; border-radius: 14px; box-shadow: 0 18px 40px -30px rgba(23, 39, 53, .45); display: flex; flex-direction: column; }
.ebd-review p { margin: 0; }
.ebd-review__stars { color: #e3a83b; letter-spacing: 3px; font-size: 1.1875rem; margin-bottom: 14px !important; }
.ebd-review__quote { font-size: .97rem; line-height: 1.65; color: var(--wp--preset--color--ink); flex: 1; }
.ebd-review__name { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid #edf0f2; font-size: .95rem; color: var(--wp--preset--color--ink-soft); line-height: 1.5; }
.ebd-review__name strong { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.125rem; color: var(--wp--preset--color--navy); }
.ebd-review-carousel .ebd-carousel__slide { height: auto; }

/* Associations: logo grid with names. */
.ebd-assoc2 { background: var(--wp--preset--color--surface); }
.ebd-assoc2__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ebd-assoc2__item { margin: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 36px 20px 26px; text-align: center; border-right: 1px solid var(--wp--preset--color--line); transition: background .35s; }
.ebd-assoc2__item:last-child { border-right: 0; }
.ebd-assoc2__logo { margin: 0 !important; height: 70px; display: flex; align-items: center; justify-content: center; }
.ebd-assoc2__logo img { max-height: 70px; max-width: 150px; width: auto !important; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s, transform .4s; border-radius: 0 !important; }
.ebd-assoc2__item:hover { background: #fbfcfd; }
.ebd-assoc2__item:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.ebd-assoc2__name { margin: 0 !important; font-size: .78rem; line-height: 1.4; color: var(--wp--preset--color--ink-soft); }
@media (max-width: 1023px) { .ebd-assoc2__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ebd-assoc2__item { border-bottom: 1px solid var(--wp--preset--color--line); } .ebd-assoc2__item:nth-child(3n) { border-right: 0; } .ebd-assoc2__item:nth-child(n+4) { border-bottom: 0; } }
@media (max-width: 599px) { .ebd-assoc2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ebd-assoc2__item, .ebd-assoc2__item:nth-child(3n) { border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); } .ebd-assoc2__item:nth-child(2n) { border-right: 0; } .ebd-assoc2__item:nth-child(n+5) { border-bottom: 0; } }
.ebd-review-carousel .ebd-slide { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.ebd-review-carousel .ebd-slide:hover { transform: none; }
.ebd-review-carousel .ebd-slide > .ebd-review { margin: 0; }
.ebd-reviews h2 { font-size: clamp(2.1rem, 3.2vw, 3.2rem); }
.ebd-why__grid > .ebd-why__center { flex-basis: 34% !important; }
.ebd-why__img { max-width: 440px; margin-inline: auto !important; }
.ebd-footer--dark .is-today .hub-cip-day { color: #8fd0e6 !important; }

/* ==========================================================================
   v1.4
   ========================================================================== */
/* Shared: small pill eyebrow with a dot. */
p.ebd-chip { display: inline-flex !important; align-items: center; gap: 10px; width: fit-content; margin: 0 0 18px !important; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #dfe6ea; font-family: var(--wp--preset--font-family--button); font-size: .7rem; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--wp--preset--color--primary-strong); }
p.ebd-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fa6c7; box-shadow: 0 0 0 4px rgba(63, 166, 199, .18); }
body p.ebd-chip.has-text-align-center { margin-left: auto !important; margin-right: auto !important; display: flex !important; }
p.ebd-chip--dark { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: #cfe3ea; }
.ebd-metal { background: linear-gradient(100deg, #8d97a0 0%, #e9eef2 28%, #9aa5ae 50%, #f4f7f9 72%, #8f99a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ebd-icon { display: block; }

/* 1. Hero USP ticker, pinned to the bottom of the hero. */
.ebd-hero-cover { position: relative; }
.ebd-hero-cover > .wp-block-cover__inner-container { position: static !important; }
.ebd-ticker-bar, .ebd-hero-cover ul.ebd-ticker:not(.is-running) { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 !important; padding: 18px 0 !important; overflow: hidden; border-top: 1px solid rgba(255,255,255,.14); background: rgba(14, 28, 38, .38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ebd-hero-cover ul.ebd-ticker:not(.is-running) { display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; padding-left: clamp(1.25rem, 5vw, 5.5rem) !important; }
.ebd-ticker.is-running { display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; width: max-content; margin: 0 !important; padding: 0 !important; animation: ebd-ticker var(--ebd-ticker-speed, 45s) linear infinite; }
.ebd-ticker-bar:hover .ebd-ticker { animation-play-state: paused; }
.ebd-ticker li, .ebd-ticker li:first-child { flex: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 11px 20px !important; border-radius: 999px; background: rgba(255,255,255,.07) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16) !important; font-size: 1.0625rem; margin: 0 !important; }
.ebd-ticker li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #5aafc9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
@keyframes ebd-ticker { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .ebd-ticker-bar { overflow-x: auto; } .ebd-ticker.is-running { animation: none; } }
@media (max-width: 781px) { .ebd-ticker-bar { padding: 12px 0 !important; } .ebd-ticker li, .ebd-ticker li:first-child { font-size: .95rem; padding: 9px 16px !important; } }

/* 2. Services hover: clear, high-contrast reveal. */
.ebd-svc .ebd-svc__title, .ebd-svc .ebd-svc__title a, .ebd-svc .ebd-svc__text, .ebd-svc .ebd-svc__more a { color: #fff !important; }
.ebd-svc::after { background: linear-gradient(180deg, rgba(14,30,42,0) 40%, rgba(14,30,42,.7) 100%) !important; opacity: 1 !important; }
.ebd-svc::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 100, 131, .25) 0%, rgba(16, 36, 50, .92) 72%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.ebd-svc .ebd-svc__text, .ebd-svc .ebd-svc__more { display: grid; max-height: none !important; overflow: visible !important; opacity: 0 !important; transform: translateY(16px) !important; margin: 0 !important; height: 0; transition: opacity .45s ease, transform .55s ease !important; }
.ebd-svc:hover::before, .ebd-svc:focus-within::before { opacity: 1; }
.ebd-svc:hover .ebd-svc__text, .ebd-svc:focus-within .ebd-svc__text, .ebd-svc:hover .ebd-svc__more, .ebd-svc:focus-within .ebd-svc__more { opacity: 1 !important; transform: none !important; height: auto; }
.ebd-svc:hover .ebd-svc__text, .ebd-svc:focus-within .ebd-svc__text { margin-top: 12px !important; }
.ebd-svc:hover .ebd-svc__more, .ebd-svc:focus-within .ebd-svc__more { margin-top: 18px !important; }
.ebd-svc .ebd-svc__more a { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--wp--preset--color--navy) !important; }
.ebd-svc .ebd-svc__title { transition: transform .5s ease; }
@media (hover: none) { .ebd-svc::before { opacity: 1; } .ebd-svc .ebd-svc__text, .ebd-svc .ebd-svc__more { opacity: 1 !important; transform: none !important; height: auto; } .ebd-svc .ebd-svc__text { margin-top: 10px !important; } .ebd-svc .ebd-svc__more { margin-top: 14px !important; } }

/* 3. Why choose Invisalign: card grid around a visual. */
.ebd-why2 { background: radial-gradient(circle at 1px 1px, rgba(23, 39, 53, .09) 1px, transparent 0) 0 0 / 22px 22px, linear-gradient(180deg, #f7f9fa, #fff); }
.ebd-why2 h2 { margin: 0 0 16px !important; }
.ebd-why2__lead { max-width: 34em; margin: 0 auto 60px !important; color: var(--wp--preset--color--ink-soft); }
.ebd-why2__grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.ebd-why2__grid > .ebd-why2__card:nth-child(1) { grid-column: 1; grid-row: 1; }
.ebd-why2__grid > .ebd-why2__card:nth-child(2) { grid-column: 1; grid-row: 2; }
.ebd-why2__grid > .ebd-why2__visual { grid-column: 2; grid-row: 1 / span 2; }
.ebd-why2__grid > .ebd-why2__card:nth-child(4) { grid-column: 3; grid-row: 1; }
.ebd-why2__grid > .ebd-why2__card:nth-child(5) { grid-column: 3; grid-row: 2; }
.ebd-why2__grid > * { margin: 0 !important; }
.ebd-why2__card { position: relative; padding: 30px 28px 32px; border-radius: 20px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px #e3e9ed, 0 1px 2px rgba(23,39,53,.04), 0 18px 40px -28px rgba(23,39,53,.35); transition: transform .45s var(--ebd-ease, ease), box-shadow .45s; }
.ebd-why2__card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #bcd8e2, 0 26px 50px -28px rgba(6, 100, 131, .45); }
.ebd-why2__card > * { margin: 0 !important; }
.ebd-why2__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--wp--preset--color--primary); background: linear-gradient(145deg, #e6f2f6, #fff); box-shadow: inset 0 0 0 1px #d3e6ed, 0 8px 18px -10px rgba(6, 100, 131, .5); }
.ebd-why2__num { position: absolute; top: 28px; right: 28px; font-family: var(--wp--preset--font-family--display); font-size: .78rem; font-weight: 600; letter-spacing: 1px; color: #b5c3cb; }
.ebd-why2__title { margin-top: 26px !important; font-family: var(--wp--preset--font-family--display) !important; font-weight: 600 !important; font-size: 1.2rem !important; letter-spacing: -.01em !important; line-height: 1.3 !important; color: var(--wp--preset--color--navy) !important; }
.ebd-why2__text { margin-top: 10px !important; font-size: .93rem; line-height: 1.6; color: var(--wp--preset--color--ink-soft); }
.ebd-why2__visual { border-radius: 24px; overflow: hidden; min-height: 520px !important; padding: 22px !important; box-shadow: 0 30px 70px -40px rgba(23,39,53,.6); }
.ebd-why2__visual .wp-block-cover__inner-container { width: 100%; }
.ebd-why2__badge { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 12px 30px -16px rgba(23,39,53,.45); }
.ebd-why2__badge > * { margin: 0 !important; }
.ebd-why2__badge p { font-size: .82rem; line-height: 1.4; color: var(--wp--preset--color--ink-soft) !important; }
.ebd-why2__badge strong { font-family: var(--wp--preset--font-family--display); font-size: .98rem; color: var(--wp--preset--color--navy); }
.ebd-why2__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--wp--preset--color--navy); color: #fff; }
@media (max-width: 1023px) {
	.ebd-why2__grid { grid-template-columns: 1fr 1fr; }
	.ebd-why2__grid > .ebd-why2__visual { grid-column: 1 / -1; grid-row: 1; min-height: 380px !important; }
	.ebd-why2__grid > .ebd-why2__card:nth-child(n) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 599px) { .ebd-why2__grid { grid-template-columns: 1fr; } }

/* 4. Results and reviews: navy band. */
.ebd-reviews2 { background: radial-gradient(ellipse 50% 60% at 85% 10%, rgba(90,175,201,.18), transparent 70%), linear-gradient(180deg, #172735, #1d3445); color: #fff; }
.ebd-reviews2 h2 { margin: 0 !important; }
.ebd-reviews2__intro { color: rgba(255,255,255,.72); margin: 0 !important; font-size: 1.125rem; }
.ebd-reviews2__body > .wp-block-column { display: flex; flex-direction: column; }
.ebd-reviews2 .ebd-compare { flex: 1; aspect-ratio: auto; min-height: 460px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -40px rgba(0,0,0,.6); }
.ebd-reviews2 .ebd-compare__note { color: rgba(255,255,255,.55); text-align: left; }
.ebd-quote-carousel { height: 100%; }
.ebd-quote-carousel .ebd-slide { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.ebd-quote-carousel .ebd-slide:hover { transform: none; }
.ebd-quote { box-sizing: border-box; min-height: 460px; height: 100%; padding: 46px 48px 40px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: flex; flex-direction: column; }
.ebd-quote > * { margin: 0 !important; }
.ebd-quote__mark { color: #5aafc9; opacity: .9; }
.ebd-quote__stars { margin-top: 26px !important; color: #f2b84b; letter-spacing: 4px; font-size: 1.1875rem; }
.ebd-quote__text { margin-top: 18px !important; flex: 1; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.3rem, 1.75vw, 1.7rem); line-height: 1.45; letter-spacing: .2px; color: #fff; }
.ebd-quote__who { margin-top: 34px !important; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex !important; align-items: center; gap: 14px; font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.45; }
.ebd-quote__who strong { color: #fff; font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; font-weight: 600; }
.ebd-quote__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #5aafc9, #066483); color: #fff; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.1rem; }
.ebd-quote-carousel .ebd-carousel__nav { margin-top: 20px; }
.ebd-quote-carousel .ebd-carousel__btn { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.ebd-quote-carousel .ebd-carousel__dots button { background: rgba(255,255,255,.3); }
@media (max-width: 781px) { .ebd-quote { min-height: 0; padding: 32px 26px; } .ebd-reviews2 .ebd-compare { min-height: 320px; } }

/* 5. Platinum Invisalign card + associations. */
.ebd-plat { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 64px 0; color: #fff; background: radial-gradient(ellipse 45% 70% at 100% 0%, rgba(90,175,201,.22), transparent 70%), linear-gradient(135deg, #172735 0%, #20394b 100%); box-shadow: 0 40px 90px -50px rgba(23,39,53,.8); }
.ebd-plat .ebd-plat__title { color: #fff !important; font-size: clamp(2.3rem, 3.8vw, 3.6rem) !important; line-height: 1.05 !important; margin: 0 0 20px !important; }
.ebd-plat__text { color: rgba(255,255,255,.75); font-size: 1.125rem; max-width: 36em; margin: 0 !important; }
.ebd-plat__ghost > .wp-block-button__link { color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important; background: transparent !important; border-radius: 999px !important; padding: 15px 26px !important; font-family: var(--wp--preset--font-family--button); text-transform: uppercase; font-size: .95rem; letter-spacing: .5px; }
.ebd-plat__ghost > .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--navy) !important; }
.ebd-plat__cred { position: relative; margin: 0 !important; padding: 40px 36px 34px; border-radius: 22px; background: #fff; color: var(--wp--preset--color--ink); text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.ebd-plat__cred::before { content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 1px solid #e3e9ed; pointer-events: none; }
.ebd-plat__cred > * { margin: 0 !important; }
.ebd-plat__logo img { max-height: 90px; width: auto !important; margin-inline: auto; display: block; border-radius: 0 !important; }
.ebd-plat__tier { margin-top: 22px !important; font-family: var(--wp--preset--font-family--heading); font-size: 1.9rem; letter-spacing: 1px; color: var(--wp--preset--color--navy); }
.ebd-plat__tier .ebd-metal { background-image: linear-gradient(100deg, #5f6b75 0%, #b9c3cb 30%, #6c7883 52%, #c9d1d8 74%, #5d6872 100%); }
.ebd-plat__meta { margin-top: 8px !important; font-family: var(--wp--preset--font-family--button); font-size: .7rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--wp--preset--color--ink-soft); }
.ebd-plat__perks { margin: 56px -64px 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12); }
.ebd-plat__perk { margin: 0 !important; padding: 34px 32px 38px; border-right: 1px solid rgba(255,255,255,.12); }
.ebd-plat__perk:last-child { border-right: 0; }
.ebd-plat__perk > * { margin: 0 !important; }
.ebd-plat__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(90,175,201,.14); color: #8fd0e6; box-shadow: inset 0 0 0 1px rgba(143,208,230,.25); }
.ebd-plat__perk h3 { margin-top: 20px !important; font-family: var(--wp--preset--font-family--display) !important; font-weight: 600 !important; font-size: 1.1875rem !important; letter-spacing: 0 !important; color: #fff !important; }
.ebd-plat__perk p { margin-top: 8px !important; font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.62); }
@media (max-width: 1023px) { .ebd-plat { padding: 44px 28px 0; } .ebd-plat__perks { margin: 44px -28px 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ebd-plat__perk:nth-child(2) { border-right: 0; } .ebd-plat__perk:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 599px) { .ebd-plat__perks { grid-template-columns: 1fr; } .ebd-plat__perk { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); } }
.ebd-assoc2__grid { border-radius: 20px; box-shadow: 0 20px 50px -40px rgba(23,39,53,.45); }
.ebd-assoc2__item { padding: 40px 22px 28px; }
.ebd-assoc2__logo { height: 84px; }
.ebd-assoc2__logo img { max-height: 84px; max-width: 170px; filter: none !important; opacity: 1 !important; }
.ebd-assoc2__item:hover { background: #f7fafb; }
.ebd-assoc2__name { font-family: var(--wp--preset--font-family--button); font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wp--preset--color--ink-soft); }

/* 6. Footer CTA: clean split card. */
.ebd-cta2 { padding: 0 clamp(1.25rem, 5vw, 5.5rem) 110px; }
.ebd-cta2__card { margin: 0 auto !important; max-width: 1320px; border-radius: 28px; overflow: hidden; background: #f1f5f7; box-shadow: 0 0 0 1px #e3e9ed; }
.ebd-cta2__media { position: relative; min-height: 460px; }
.ebd-cta2__media .wp-block-image { position: absolute; inset: 0; margin: 0; }
.ebd-cta2__media img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.ebd-cta2__body { padding: 64px clamp(28px, 5vw, 72px) !important; }
.ebd-cta2__title { font-size: clamp(2.3rem, 3.6vw, 3.5rem) !important; line-height: 1.05 !important; margin: 0 0 16px !important; color: var(--wp--preset--color--navy) !important; }
.ebd-cta2__text { margin: 0 !important; max-width: 30em; color: var(--wp--preset--color--ink-soft); font-size: 1.1875rem; }
.ebd-cta2__actions .is-style-solid > .wp-block-button__link { border-radius: 999px !important; padding: 16px 30px !important; background: var(--wp--preset--color--navy) !important; }
.ebd-cta2__actions .is-style-outline > .wp-block-button__link { border-radius: 999px !important; padding: 15px 28px !important; border: 1px solid #b7c4cc !important; color: var(--wp--preset--color--navy) !important; background: transparent !important; font-family: var(--wp--preset--font-family--display); text-transform: none; font-size: 1.125rem; letter-spacing: 0; }
.ebd-cta2__facts { margin-top: 34px !important; padding-top: 26px; border-top: 1px solid #dce4e8; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 1rem; }
.ebd-cta2__facts > * { margin: 0 !important; }
@media (max-width: 781px) { .ebd-cta2 { padding-bottom: 70px; } .ebd-cta2__media { min-height: 260px; } .ebd-cta2__body { padding: 40px 26px !important; } }
