.elementor-kit-6{--e-global-color-primary:#1f3a5f;--e-global-color-secondary:#8faacb;--e-global-color-text:#1a2433;--e-global-color-accent:#c8a35a;--e-global-color-ddd69c81:#152a46;--e-global-color-69838c53:#dfe8f2;--e-global-color-99c3b3b0:#f2f6fa;--e-global-color-a5c045ee:#eceef1;--e-global-color-fcae26b9:#5d6878;--e-global-color-d4dc6d01:#e6e2db;--e-global-color-3347849e:#ffffff;--e-global-typography-primary-font-family:"DM Serif Display";--e-global-typography-primary-font-weight:500;--e-global-typography-secondary-font-family:"DM Serif Display";--e-global-typography-secondary-font-weight:500;--e-global-typography-secondary-font-style:italic;--e-global-typography-text-font-family:"Figtree";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Figtree";--e-global-typography-accent-font-weight:600;color:#1a2433;font-family:"Figtree", Sans-serif;font-size:1rem;line-height:1.7;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-kit-6 a{color:var( --e-global-color-primary );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}:root { --navy:#1f3a5f; --navy-deep:#152a46; --powder:#8faacb; --powder-soft:#dfe8f2; --sky:#f2f6fa; --ivory:#eceef1; --white:#ffffff; --ink:#1a2433; --muted:#5d6878; --line:#e6e2db; --gold:#c8a35a; --font-display:DM Serif Display; --font-body:Figtree; --fs-display:clamp(2.6rem, 5.4vw, 4.875rem); --fs-h1:clamp(2.4rem, 4.4vw, 4rem); --fs-h2:clamp(2rem, 3.4vw, 3.1rem); --fs-h3:clamp(1.5rem, 2vw, 1.9rem); --fs-h4:1.25rem; --fs-lead:clamp(1.05rem, 1.3vw, 1.2rem); --fs-body:1rem; --fs-small:0.875rem; --fs-eyebrow:0.75rem; --s-1:0.5rem; --s-2:1rem; --s-3:1.5rem; --s-4:2rem; --s-5:3rem; --s-6:4rem; --s-7:6rem; --s-8:8rem; --section-y:clamp(5rem, 10vw, 9rem); --container:1240px; --gutter:clamp(1rem, 4vw, 2.5rem); --r-sm:10px; --r-md:18px; --r-lg:28px; --r-pill:999px; --navy-text:#c9d6e6; --navy-copy:#dbe4ef; --footer-text:#a9b8cb; --utility-text:#c3d0e0; }
/* Start custom CSS */:root { --shadow-soft: 0 1px 2px rgba(21,42,70,.04), 0 12px 32px -12px rgba(21,42,70,.12); }  /* the HTML design system token; not an Elementor variable */
/* Load order: this file prints BEFORE Elementor's base/class CSS, so rules that must beat a class use .elementor + one more .elementor-kit-6.
   Londrey design system: only what v4 style props can't express (pseudo-elements, keyframes, JS states).
   Tokens live in Elementor Variables (--navy, --powder, …); components live in Global Classes.
   Lives in Site Settings > Custom CSS. */

/* Accent word in headings: <em> */
.e-heading-base em { font-style: italic; color: var(--powder); }

/* Keyboard focus, same ring as the HTML build */
:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }

/* Motion: hero rises on load; blocks below fade up as they scroll in (.reveal / .is-in come from site-behaviors.js) */
@keyframes ld-rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
[data-interaction-id="hero-eyebrow"], [data-interaction-id="hero-heading"], .s-hero-side { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
[data-interaction-id="hero-heading"] { animation-delay: .12s; }
.s-hero-side { animation-delay: .3s; }
.hero-slider { animation: ld-rise-in 1.1s cubic-bezier(.2,.7,.2,1) .4s both; }
/* :not(#ld) lifts these above component classes (e.g. .card's own .3s transition) while the reveal plays */
.reveal:not(#ld) { opacity: 0; transform: translateY(32px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in:not(#ld) { opacity: 1; transform: none; }

/* Buttons and arrow links never wrap mid-label */
.btn-primary, .btn-outline, .btn-light, .btn-ghost-light, .link-arrow { white-space: nowrap; }

/* Arrow links */
.link-arrow::after { content: " →"; display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:is(:hover, :focus) { color: var(--navy); background: transparent; }

/* Hero slider: crossfade + Ken Burns. Classes is-active / is-prev / is-ready come from site-behaviors.js */
.hero-slide { transition: opacity 1.6s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.elementor .hero-slider:not(.is-ready) .hero-slide:first-of-type, .elementor .hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-active, .hero-slide.is-prev { animation: ld-kenburns 8.6s linear both; }
.hero-slide:nth-of-type(even).is-active, .hero-slide:nth-of-type(even).is-prev { animation-name: ld-kenburns-alt; }
@keyframes ld-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes ld-kenburns-alt { from { transform: scale(1.12) translate(1.5%, -1%); } to { transform: scale(1.02); } }
.ld-dots { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1.4rem, 3.4vw, 2.4rem); z-index: 2; display: flex; gap: .5rem; }
.ld-dots button, .ld-dots button:is(:hover, :focus) { all: unset; cursor: pointer; width: 44px; padding: 10px 0; }
.ld-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ld-dots i { display: block; height: 2px; border-radius: 2px; background: rgba(255,255,255,.45); overflow: hidden; }
.ld-dots i::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.ld-dots .is-active i::after { animation: ld-fill var(--dur, 7s) linear forwards; }
.ld-dots .is-done i::after { transform: scaleX(1); }
@keyframes ld-fill { to { transform: scaleX(1); } }
@media (max-width: 767px) { .ld-dots button { width: 28px; } .ld-dots { top: 12px; right: 12px; bottom: auto; padding: 0 10px; border-radius: 999px; background: rgba(21,42,70,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } }

/* Image hover: slow zoom inside its frame */
.elementor .frame .cover-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }  /* v4's transition prop has no easing control */
.frame:hover .cover-img { transform: scale(1.045); }

/* Locations map: the HTML widget fills the frame so the iframe has a height */
.elementor .map-frame > .elementor-widget-html, .elementor .map-frame .elementor-widget-container { position: absolute; inset: 0; }

/* Service icons: outline strokes at 28px, like the HTML build */
.elementor .icon-chip .e-svg-base, .elementor .icon-chip svg { width: 28px; height: 28px; }
.elementor .icon-chip svg, .elementor .icon-chip svg * { fill: none; stroke: currentColor; }

/* Gallery: the After tag sits bottom-left at every breakpoint */
.elementor .ba .ba-tag-after { top: auto; }

/* Homepage gallery: hover lifts the card, zooms the photo, adds a navy veil and an "Enlarge" pill; click opens the lightbox (pages/home-gallery.behaviors.js) */
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"] { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] .ba { cursor: zoom-in; transition: box-shadow .5s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] .ba img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] .ba .ba-tag { z-index: 2; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] .ba::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(21,42,70,.05) 30%, rgba(21,42,70,.5)); opacity: 0; transition: opacity .5s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] .ba::after { content: "Enlarge"; position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; padding: .7rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font: 600 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translate(-50%, -35%); transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:hover { transform: translateY(-6px); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:hover .ba { box-shadow: 0 28px 50px -26px rgba(21,42,70,.55); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:hover .ba img { transform: scale(1.06); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:hover .ba-tag { transform: translateY(-3px); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:hover .ba-tag-after { transform: translateY(3px); }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:is(:hover, :focus-within) .ba::before { opacity: 1; }
:root .elementor [data-id="gallery-grid"] > [data-id^="case-"]:is(:hover, :focus-within) .ba::after { opacity: 1; transform: translate(-50%, -50%); }
:root .elementor [data-id="gallery-grid"] .ba:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { :root .elementor [data-id="gallery-grid"] > [data-id^="case-"], :root .elementor [data-id="gallery-grid"] .ba img, :root .elementor [data-id="gallery-grid"] .ba-tag { transform: none !important; } }

/* Check lists */
.elementor .check-item::before { content: ""; position: absolute; inset: auto; left: 0; top: 1.25rem; width: 14px; height: 8px; border-left: 2px solid var(--powder); border-bottom: 2px solid var(--powder); transform: rotate(-45deg); }


/* Service cards: icon tilts on hover */
.card:hover .icon-chip { transform: rotate(-6deg) scale(1.06); }

/* Reviews: clamp long text; "Read more" toggle is added by site-behaviors.js */
.review-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.review.is-open .review-body { -webkit-line-clamp: unset; }
.review-more, .review-more:is(:hover, :focus) { all: unset; cursor: pointer; align-self: flex-start; margin-top: -.5rem; font: 600 .85rem/1.7 var(--font-body); color: var(--navy); border-bottom: 1px solid var(--powder); }
.review-more:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }

/* Locations: the selected card turns navy with white text (is-active comes from site-behaviors.js) */
.elementor .loc-card { transition: background-color .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
.elementor .loc-card.is-active { background: var(--navy); border-color: var(--navy); box-shadow: 0 1px 2px rgba(21,42,70,.04), 0 16px 36px -14px rgba(21,42,70,.45); }
.elementor .loc-card.is-active :is(p, a, span, h3, h4) { color: var(--white) !important; }  /* !important: the card's text carries local colours */
.elementor .loc-card.is-active a { border-color: rgba(255,255,255,.45) !important; }
.loc-card:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }

/* Service ribbon marquee */
.ribbon-track { width: max-content; animation: ld-marquee 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.elementor .ribbon-item { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.ribbon-item::after { content: "✦"; font-size: .7rem; color: var(--powder);  }
@keyframes ld-marquee { to { transform: translateX(-50%); } }

/* ---------- Header ----------
   The header template sticks; announce + utility bars scroll away (--ld-topbars is set by site-behaviors.js). */
.elementor-location-header { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--ld-topbars, 0px)); z-index: 50; }
.s-site-header { backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.s-site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(21,42,70,.35); }
.elementor a.nav-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s cubic-bezier(.2,.7,.2,1), color .3s; }
.elementor a.nav-link:hover { background-size: 100% 1px; }
.s-announce:hover > :nth-child(n+3) { border-color: var(--powder); }
.s-announce > :nth-child(n+3) { white-space: nowrap; }  /* the link never splits from its arrow */

/* Burger: three lines drawn in CSS, morphs to an X while the menu is open */
.elementor .s-menu-toggle:is(:hover, :focus) { background: transparent; color: transparent; }
.s-menu-toggle::before, .s-menu-toggle::after { content: ""; position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--navy); transition: top .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.s-menu-toggle::before { top: 15px; box-shadow: 0 6px 0 var(--navy); }
.s-menu-toggle::after { top: 27px; }
.menu-open .s-menu-toggle::before { top: 21px; transform: rotate(45deg); box-shadow: none; }
.menu-open .s-menu-toggle::after { top: 21px; transform: rotate(-45deg); }
.elementor .s-site-top .s-menu-panel { display: none; }
.elementor .s-site-top.menu-open .s-menu-panel { display: grid; animation: ld-menu-drop .55s cubic-bezier(.2,.7,.2,1) both; box-shadow: 0 24px 40px -28px rgba(21,42,70,.35); }
.menu-open .s-menu-panel > * { animation: ld-menu-link .5s cubic-bezier(.2,.7,.2,1) both; }
.menu-open .s-menu-panel > :nth-child(2) { animation-delay: .05s; } .menu-open .s-menu-panel > :nth-child(3) { animation-delay: .1s; }
.menu-open .s-menu-panel > :nth-child(4) { animation-delay: .15s; } .menu-open .s-menu-panel > :nth-child(5) { animation-delay: .2s; }
.menu-open .s-menu-panel > :nth-child(6) { animation-delay: .25s; } .menu-open .s-menu-panel > :nth-child(7) { animation-delay: .3s; }
.menu-closing .s-menu-panel { animation: ld-menu-drop .35s cubic-bezier(.2,.7,.2,1) reverse both; }
.menu-closing .s-menu-panel > * { animation: none; }
@keyframes ld-menu-drop { from { clip-path: inset(0 0 100% 0); opacity: .6; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes ld-menu-link { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 1025px) { .elementor .s-site-top .s-menu-panel { display: none; } }

/* ---------- Footer ---------- */
.s-footer-legal > * + *::before { content: ""; display: inline-block; width: 1px; height: .85em; background: rgba(255,255,255,.25); margin: 0 .85rem; vertical-align: -1px; }
.s-footer-legal b { color: var(--white); font-weight: 600; }
@media (max-width: 767px) {
  .s-footer-legal > * + *::before { display: none; }
  .s-footer-legal > :first-child { flex-basis: 100%; }
  body { padding-bottom: 76px; }
}

@keyframes ld-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Service pages (Theme Builder "Service Page (v4)" + section kit) ---------- */
/* Hero rises on load, staggered like the homepage hero */
.s-svc-hero-copy > *, .s-svc-hero-media { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
.s-svc-hero-copy > :nth-child(2) { animation-delay: .1s; } .s-svc-hero-copy > :nth-child(3) { animation-delay: .2s; }
.s-svc-hero-copy > :nth-child(n+4) { animation-delay: .3s; } .s-svc-hero-media { animation-delay: .35s; }
.elementor .crumb a:hover { color: var(--navy); }  /* the link is a child <a> of the crumb paragraph */
/* Inline links inside copy (service interlinks). Classless <a> only: button and linked-paragraph anchors carry classes. */
.elementor .e-paragraph-base a:not([class]) { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--powder); transition: text-decoration-color .2s; }
/* v3 text-editor headings (legal pages): same type as the rest of the site: h1–h3 DM Serif navy, h4 Figtree 700 */
.elementor .elementor-widget-text-editor :is(h1, h2, h3) { font-family: var(--font-display), serif; font-weight: 400; color: var(--navy); letter-spacing: -.005em; }
.elementor .elementor-widget-text-editor :is(h1, h2, h3) b { font-weight: inherit; }
.elementor .elementor-widget-text-editor h4 { font-family: var(--font-body), sans-serif; font-weight: 700; color: var(--navy); font-size: 1.25rem; }
/* v3 text-editor links (legal pages): same underline as atomic inline links; colour comes from the kit link colour (navy); hover is set here */
.elementor .elementor-widget-text-editor a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--powder); transition: text-decoration-color .2s; }
.elementor .elementor-widget-text-editor a:not([class]):hover { color: var(--navy-deep); text-decoration-color: currentColor; }  /* hover colour lives here, not in the kit: a kit a:hover beats every button's own text colour */
.elementor .e-paragraph-base a:not([class]):hover { text-decoration-color: currentColor; }
.elementor .e-paragraph-base a:not([class]):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.elementor .bg-navy .e-paragraph-base a:not([class]) { color: var(--white); }
[data-id="svc-approach"]:hover .cover-img { transform: scale(1.045); }  /* like the homepage spotlight: hovering the panel zooms the photo */
.elementor .s-svc-hero-media:hover .cover-img { transform: none; }  /* the service hero photo stays still */
.elementor .s-svc-proof span { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }  /* stars in the hero's reviews line */

/* FAQ accordion (is-open comes from site-behaviors.js): + in a circle turns into × on navy */
.elementor .faq.is-open .faq-a { display: block; animation: ld-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 1.1rem/1 var(--font-body); color: var(--navy); transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s, color .3s; }
.faq.is-open .faq-q::after { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: var(--white); }
.elementor .faq-q:hover { color: var(--navy-deep); }
.faq-q:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reveal:not(#ld) { opacity: 1; transform: none; transition: none; }
  [data-interaction-id^="hero-"], .s-hero-side, .hero-slider { animation: none !important; }
  .hero-slide, .ribbon-track, .ld-dots i::after, .s-menu-panel, .s-menu-panel > * { animation: none !important; transition: none !important; }
  .s-svc-hero-copy > *, .s-svc-hero-media, .faq-a, .faq-q::after { animation: none !important; transition: none !important; }
}

/* ---- Services hub (/services/, page 237) ---- */
.page-id-237 [data-interaction-id="svc-crumb-services"], .page-id-237 .s-svc-crumb-sep-2 { display: none; }  /* template crumbs read Home / Services / <title> */
.elementor .hub-pill { transition: border-color .3s cubic-bezier(.2,.7,.2,1), background-color .3s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.2,.7,.2,1); }
.elementor .hub-pill:hover { border-color: var(--navy); background-color: var(--navy); color: var(--white); }
.elementor .svc-row { transition: background-color .3s cubic-bezier(.2,.7,.2,1); }
.elementor .svc-row:hover { background-color: rgba(255,255,255,.7); }
.elementor .bg-ivory .svc-row:hover, .elementor .bg-sky .svc-row:hover { background-color: rgba(255,255,255,.55); }
.elementor .bg-sky .svc-row .icon-chip { background-color: var(--white); }
.elementor ul.svc-list { list-style: none; margin: 0; padding: 0; } .elementor .svc-list > li { list-style: none; }
.elementor .svc-row .icon-chip { margin: 0; }  /* the shared chip class carries a bottom margin for cards */
.elementor .hub-pill:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }
.elementor .svc-row .svc-go { transition: background-color .3s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.2,.7,.2,1), border-color .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
.elementor .svc-row:hover .svc-go { background-color: var(--navy); border-color: var(--navy); color: var(--white); transform: translateX(3px); }
.elementor .svc-row:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.elementor .svc-go .e-svg-base, .elementor .svc-go svg { width: 16px; height: 16px; }  /* e-svg fills its box by default */

/* ---------- Client round 1 (Nov 2026) ----------
   :root prefix: atomic elements print their local styles (display, padding, width) after this file at equal specificity. */
/* Hero reviews proof */
:root .elementor .s-hero-proof span { color: var(--gold); letter-spacing: .15em; margin-right: .35rem; }

/* Services mega menu (desktop). Opened by site-behaviors.js: .services-open on the header bar */
:root .elementor [data-id="header-bar"] { position: relative; }
:root .elementor a[data-interaction-id="41563d7"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.services-open a[data-interaction-id="41563d7"]::after { transform: translateY(0) rotate(225deg); }
:root .elementor [data-id="services-menu"] { position: absolute; top: calc(100% - 6px); left: 50%; width: min(1040px, calc(100vw - 48px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(21,42,70,.35); z-index: 60; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s .25s; }
:root .elementor .services-open [data-id="services-menu"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
:root .elementor [data-id="services-menu-in"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; margin-bottom: var(--s-3); }
:root .elementor [data-id="services-menu-in"] > div { display: grid; align-content: start; }
:root .elementor [data-id="services-menu-in"] > div > p:first-child { line-height: 1.45; min-height: calc(2.9em + 9px); }  /* + the eyebrow's 9px top padding */
:root .elementor [data-id="services-menu-in"] a { display: flex; justify-content: flex-start; text-align: left; width: 100%; padding: .32rem 0; font-size: .92rem; line-height: 1.35; color: var(--ink); text-decoration: none; background: none; border: 0; transition: color .2s; }
:root .elementor [data-id="services-menu-in"] a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--powder); text-underline-offset: .2em; }
:root .elementor [data-id="services-menu"] a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 1024px) { :root .elementor [data-id="services-menu"] { display: none; } }

/* Mobile menu: services list under "Services", toggled by the + button site-behaviors.js adds */
:root .elementor [data-id="menu-services"] { display: none; padding: 0 0 .5rem 1rem; }
:root .elementor .menu-services-open [data-id="menu-services"] { display: grid; }
:root .elementor [data-id="menu-locations"] { display: none; padding: 0 0 .5rem 1rem; }
:root .elementor .menu-locations-open [data-id="menu-locations"] { display: grid; }
:root .elementor [data-id="menu-locations"] a { justify-content: flex-start; text-align: left; padding: .45rem 0; font-size: .95rem; color: var(--muted); text-decoration: none; background: none; border: 0; }
:root .elementor .s-site-top.menu-open .s-menu-panel { max-height: calc(100dvh - var(--ld-panel-top, 150px) - 69px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }  /* the panel sits in the sticky header, so it scrolls itself */
:root .elementor [data-id="menu-services"] a { justify-content: flex-start; text-align: left; padding: .45rem 0; font-size: .95rem; color: var(--muted); text-decoration: none; background: none; border: 0; }
.menu-services-row { display: flex; align-items: center; justify-content: space-between; }
.menu-services-toggle { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); font: 400 1.1rem/1 var(--font-body); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
:root .menu-services-toggle.is-open { transform: rotate(45deg); }
.menu-services-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:root .menu-services-toggle:is(:hover, :focus, :active) { background: transparent; color: var(--navy); border-color: var(--navy); }  /* the theme's button:hover is pink */

/* Utility bar: Instagram + Facebook */
:root .elementor [data-id="utility-social"] { display: flex; align-items: center; gap: .85rem; order: 9; width: auto; }
:root .elementor [data-id="utility-social"] a { width: 24px; height: 24px; display: grid; place-items: center; color: var(--white); opacity: .8; transition: opacity .2s; }
:root .elementor [data-id="utility-social"] a:hover { opacity: 1; }
:root .elementor [data-id="utility-social"] .e-svg-base, :root .elementor [data-id="utility-social"] svg { width: 15px; height: 15px; }
:root .elementor [data-id="utility-social"] svg { fill: none; }  /* e-svg rewrites the file's fill="none" to currentColor */
@media (max-width: 767px) { :root .elementor [data-id="utility-links"] > a[href^="tel:"] { display: none; } }  /* phones use the office chooser in the bottom bar */

/* Office choosers (call + pay): #call-office / #pay-online open them; site-behaviors.js adds .is-open */
:root .elementor [data-id$="-sheet"] { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(21,42,70,.5); }
:root .elementor [data-id$="-sheet"].is-open { display: flex; }
:root .elementor [data-id$="-sheet-panel"] { position: relative; width: min(460px, 100%); padding: 2.25rem 2rem 2rem; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(21,42,70,.5); animation: ld-sheet-up .4s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id$="-sheet-options"] { display: grid; gap: .75rem; }
:root .elementor :is([data-id$="-sheet-mid"], [data-id$="-sheet-ric"]) { display: grid; gap: .15rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--navy); transition: border-color .25s, background-color .25s; }
:root .elementor :is([data-id$="-sheet-mid"], [data-id$="-sheet-ric"]):hover { border-color: var(--navy); background: var(--powder-soft); }
:root .elementor [data-id$="-sheet-options"] p { margin: 0; }
:root .elementor :is([data-interaction-id$="-sheet-mid-name"], [data-interaction-id$="-sheet-ric-name"]) { font: 500 1.35rem/1.2 var(--font-display); color: var(--navy); }
:root .elementor :is([data-interaction-id$="-sheet-mid-num"], [data-interaction-id$="-sheet-ric-num"]) { font-weight: 600; color: var(--navy); }
:root .elementor :is([data-interaction-id$="-sheet-mid-addr"], [data-interaction-id$="-sheet-ric-addr"]) { color: var(--muted); }
:root .elementor a[data-interaction-id$="-sheet-close"] { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: none; color: var(--navy); font-size: 1.4rem; line-height: 1; text-decoration: none; }
:root .elementor a[data-interaction-id$="-sheet-close"]:hover { background: var(--powder-soft); }
@keyframes ld-sheet-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  :root .elementor [data-id$="-sheet"] { align-items: flex-end; padding: 0; }
  :root .elementor [data-id$="-sheet-panel"] { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { [data-id$="-sheet-panel"], [data-id="services-menu"] { animation: none !important; transition: none !important; } }

:root .elementor [data-id="utility-links"] { flex-wrap: nowrap; align-items: center; }
@media (max-width: 767px) { :root .elementor [data-id="utility-social"] { margin-left: auto; } :root .elementor [data-id="utility-links"] { flex: 1; } }
:root .elementor [data-id="utility-links"] > a { white-space: nowrap; }

@media (min-width: 768px) and (max-width: 1024px) { :root .elementor [data-id="doctors-cards"] .label-caps { min-height: calc(2.9em + 9px); } }
/* Cherry floating button: Cherry renders into #widget-floatingEstimator-mount (class hashes change, so match on the prefix).
   Hidden behind the phone menu and our pop-ups; fades out over the footer legal links (.cherry-clear, site-behaviors.js); theme pink overridden. */
:root body:is(:has(.menu-open), :has(.elementor-element-call-sheet.is-open), :has(.elementor-element-pay-sheet.is-open)) #widget-floatingEstimator-mount { display: none; }
:root body [class*="floatingEstimator-floatingButton"] { transition: opacity .3s cubic-bezier(.2,.7,.2,1), background-color .2s; }
:root body.cherry-clear [class*="floatingEstimator-floatingButton"] { opacity: 0; pointer-events: none; }
:root body.cherry-clear [class*="floatingEstimator-floatingContainer-"] { visibility: hidden; pointer-events: none; transition: visibility 0s .3s; }  /* the container, not just the button, caught clicks and Tab */
@media (max-width: 767px) { :root body [class*="floatingEstimator-floatingContainer-"] { bottom: 86px !important; right: 16px !important; } }  /* clear of the sticky call bar, in CSS so it survives rotation */
:root body [class*="floatingEstimator-floatingButton"]:is(:hover, :focus) { background: var(--navy-deep) !important; color: var(--white) !important; }
:root body [class*="floatingEstimator-floatingButton"]:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }
:root body [class*="floatingEstimator-closeButton"]:is(:hover, :focus) { background: transparent !important; color: var(--navy) !important; }
/* Cherry's rate cards clip "for N months" on phones (fixed 88px height) */
@media (max-width: 429px) { :root body [class*="calculator-month_option_container"] { height: auto !important; min-height: 88px; } }

/* ---------- Client round 2: reviews slider ----------
   Head on top, cards in one scroll-snap row (3 / 2 / 1 visible). Arrows + autoplay are added by site-behaviors.js. */
:root .elementor [data-id="reviews-grid"] { display: block; }
:root .elementor [data-id="reviews-head"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; margin-bottom: var(--s-5); }
:root .elementor [data-id="reviews-head"] > * { grid-column: 1; }
:root .elementor [data-id="reviews-head"] > [data-id="review-score"] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.rv-stage { position: relative; }
:root .elementor [data-id="reviews-track"] { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px -14px; }
:root .elementor [data-id="reviews-track"]::-webkit-scrollbar { display: none; }
:root .elementor [data-id="reviews-track"] > * { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { :root .elementor [data-id="reviews-track"] { scroll-behavior: auto; } }
:root .rv-arrow { all: unset; box-sizing: border-box; position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(21,42,70,.45); transition: background .25s, color .25s, border-color .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
:root .rv-arrow:focus:not(:focus-visible):not(:hover):not(:active) { background: var(--white); color: var(--navy); border-color: var(--line); }  /* a mouse click keeps focus; no theme pink, no stuck fill */
:root .rv-arrow:focus-visible, :root .rv-arrow:active { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (hover: hover) { :root .rv-arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); } }
:root .rv-arrow:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
:root .rv-arrow svg { width: 18px; height: 18px; }
:root .rv-prev { left: -72px; } :root .rv-next { right: -72px; }   /* :root: the base rule's all:unset would reset these */
@media (hover: hover) { :root .rv-prev:hover { transform: translateX(-2px); } :root .rv-next:hover { transform: translateX(2px); } }
@media (max-width: 1360px) { :root .rv-prev { left: -28px; } :root .rv-next { right: -28px; } }
@media (min-width: 768px) and (max-width: 1100px) { :root .rv-arrow { width: 38px; height: 38px; margin-top: -19px; } :root .rv-prev { left: -20px; } :root .rv-next { right: -20px; } }  /* cards stay aligned with the heading; arrows keep ~15px from the screen edge */
@media (max-width: 1024px) { :root .elementor [data-id="reviews-track"] { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 767px) {
  :root .elementor [data-id="reviews-head"] { grid-template-columns: minmax(0, 1fr); }
  :root .elementor [data-id="reviews-head"] > [data-id="review-score"] { grid-column: 1; grid-row: auto; margin-top: var(--s-3); }
  :root .elementor [data-id="reviews-track"] { grid-auto-columns: 86%; gap: 14px; }
  .rv-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .rv-stage > [data-id="reviews-track"] { order: -1; width: 100%; flex: 0 0 100%; margin-bottom: 4px; }
  :root .rv-arrow { position: static; margin: 0; }
}

/* ---------- Locations dropdown (desktop): opened by site-behaviors.js (.locations-open), placed under the trigger ---------- */
:root .elementor a[href="#locations-menu"] { cursor: pointer; }
:root .elementor [data-id="header-nav"] a[href="#locations-menu"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.locations-open [data-id="header-nav"] a[href="#locations-menu"]::after { transform: translateY(0) rotate(225deg); }
:root .elementor [data-id="locations-menu"] { position: absolute; top: calc(100% - 6px); width: 300px; display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(21,42,70,.35); z-index: 60; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s .25s; }
:root .elementor .locations-open [data-id="locations-menu"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
:root .elementor [data-id="locations-menu"] > a { display: grid; gap: .15rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: background-color .2s; }
:root .elementor [data-id="locations-menu"] > a:hover { background: var(--navy); }  /* matches the selected map card */
:root .elementor [data-id="locations-menu"] > a:hover p { color: var(--white); }
:root .elementor [data-id="locations-menu"] > a:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
:root .elementor [data-id="locations-menu"] p { margin: 0; }
:root .elementor [data-interaction-id$="-name"][data-interaction-id^="locations-menu-"] { font: 500 1.3rem/1.2 var(--font-display); color: var(--navy); }
:root .elementor [data-interaction-id$="-addr"][data-interaction-id^="locations-menu-"] { color: var(--muted); line-height: 1.5; }
:root .elementor [data-interaction-id$="-more"][data-interaction-id^="locations-menu-"] { color: var(--navy); font-weight: 600; margin-top: .35rem; }
@media (max-width: 1024px) { :root .elementor [data-id="locations-menu"] { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-id="locations-menu"] { transition: none !important; } }

/* Polish, Nov 2026 (after the DM Serif Display swap): balanced heading lines, no one-word last lines */
.elementor :is(h1, h2, h3) { text-wrap: balance; }
/* About philosophy heading: wider box so it doesn't run to four lines in DM Serif */
:root .elementor [data-id="ab-philosophy-heading"] { max-width: 520px; }
/* Homepage membership label: keeps "Richmond office" together on tablet/phone, with room between lines if it wraps */
@media (max-width: 1024px) { :root .elementor .s-plan-m-eyebrow { letter-spacing: .08em; line-height: 1.6; } }
/* Homepage cosmetic spotlight at tablet: a fixed-height photo frame (the portrait photo was rendering ~1110px tall) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root .elementor [data-id="spotlight-media"] { min-height: 480px; }
  :root .elementor [data-id="spotlight-media"] .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 25%; }
}

/* ---------- Pages: Contact / About / Membership (built Nov 2026 from pages/*.css) ---------- */

/* contact */
/* Contact page (/contact/): only what local styles can't do. Containers by [data-id]; widgets by their local class .s-<id>. */

/* Anchors land below the sticky header (~84px + breathing room) */
:root .elementor :is(#request, #offices, #midlothian, #richmond, #pay-online, #forms) { scroll-margin-top: 110px; }
/* These two land under the header once their reveal translate plays, so they get 10px more */
:root .elementor :is(#richmond, #forms) { scroll-margin-top: 120px; }

/* Hero rises on load, staggered like the master */
:root .elementor [data-id="ct-hero-copy"] > *, :root .elementor [data-id="ct-call-card"] { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="ct-hero-copy"] > :nth-child(2) { animation-delay: .1s; }
:root .elementor [data-id="ct-hero-copy"] > :nth-child(3) { animation-delay: .2s; }
:root .elementor [data-id="ct-hero-copy"] > :nth-child(4) { animation-delay: .3s; }
:root .elementor [data-id="ct-call-card"] { animation-delay: .35s; }

/* Call rows: white wash on hover, phone chip turns navy */
:root .elementor :is([data-id="ct-call-mid"], [data-id="ct-call-rich"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor :is([data-id="ct-call-mid"], [data-id="ct-call-rich"]):hover { background: rgba(255,255,255,.75); }
:root .elementor :is([data-id="ct-call-mid"], [data-id="ct-call-rich"]):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:root .elementor :is([data-id="ct-call-mid-ico"], [data-id="ct-call-rich-ico"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="ct-call-mid"]:hover [data-id="ct-call-mid-ico"], :root .elementor [data-id="ct-call-rich"]:hover [data-id="ct-call-rich-ico"] { background: var(--navy); color: var(--white); }
:root .elementor :is([data-id="ct-call-mid-ico"], [data-id="ct-call-rich-ico"]) :is(.e-svg-base, svg) { width: 20px; height: 20px; }
:root .elementor :is([data-id="ct-call-mid-ico"], [data-id="ct-call-rich-ico"]) :is(svg, svg *) { fill: none; stroke: currentColor; }

/* "Prefer to talk?" phone links */
:root .elementor .s-ct-request-call a:not([class]) { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--powder); white-space: nowrap; }

/* Form card shadow */
:root .elementor [data-id="ct-request-card"] { box-shadow: var(--shadow-soft); }
:root .elementor [data-id="ct-request-card"] iframe { display: block; width: 100%; border: 0; }

/* Office cards: powder border + soft shadow on hover or when targeted from the Locations dropdown */
:root .elementor :is([data-id="ct-midlothian"], [data-id="ct-richmond"]) { transition: border-color .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor :is([data-id="ct-midlothian"], [data-id="ct-richmond"]):is(:hover, :target) { border-color: var(--powder); box-shadow: var(--shadow-soft); }
:root .elementor :is(.s-ct-mid-rating, .s-ct-rich-rating) span { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }
:root .elementor :is([data-id="ct-mid-dl"], [data-id="ct-rich-dl"]) a:not([class]) { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
:root .elementor :is([data-id="ct-mid-dl"], [data-id="ct-rich-dl"]) a:not([class]):hover { text-decoration: underline; text-underline-offset: 3px; }

/* Office maps: the iFrame widget fills the frame (min-height 480 / 380 / 300 set locally) */
:root .elementor :is([data-id="ct-mid-map"], [data-id="ct-rich-map"]) > .elementor-widget { position: absolute; inset: 0; margin: 0; }
:root .elementor :is([data-id="ct-mid-map"], [data-id="ct-rich-map"]) > .elementor-widget :is(.elementor-widget-container, div) { height: 100%; }
:root .elementor :is([data-id="ct-mid-map"], [data-id="ct-rich-map"]) iframe { display: block; width: 100%; height: 100% !important; border: 0; filter: saturate(.75); }

/* Pay buttons (linked divs carrying btn-light / btn-ghost-light): hover like the master's .btn */
:root .elementor :is([data-id="ct-pay-richmond"], [data-id="ct-pay-midlothian"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="ct-pay-richmond"]:hover { background: var(--powder-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(21, 42, 70, .45); }
:root .elementor [data-id="ct-pay-midlothian"]:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }

/* Patient forms */
:root .elementor .s-ct-forms-text b { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  :root .elementor [data-id="ct-hero-copy"] > *, :root .elementor [data-id="ct-call-card"] { animation: none; }
}
/* Both office cards: info left, map right (Mark, 12 Nov 2026: no zig-zag). Cancels the flip saved on ct-mid-copy */
:root .elementor [data-id="ct-mid-copy"] { order: 0; }
/* The forms block is single-column now the PDF links are gone */
:root .elementor [data-id="ct-forms"] { grid-template-columns: minmax(0, 1fr); }
:root .elementor .s-ct-forms-more { grid-column: auto; }  /* its old "span 2" made an empty second track */

/* about */
/* About page (/about/): only what v4 local styles can't express. Ids come from pages/about.build.js. */

/* Hero: copy and photo rise on load (same motion as the service hero); stars in the reviews line */
:root .elementor [data-id="ab-hero-copy"] > *, :root .elementor [data-id="ab-hero-media"] { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="ab-hero-copy"] > :nth-child(2) { animation-delay: .1s; }
:root .elementor [data-id="ab-hero-copy"] > :nth-child(3) { animation-delay: .2s; }
:root .elementor [data-id="ab-hero-copy"] > :nth-child(n+4) { animation-delay: .3s; }
:root .elementor [data-id="ab-hero-media"] { animation-delay: .35s; }
:root .elementor [data-id="ab-hero-media"]:hover .cover-img { transform: none; }
:root .elementor [data-id="ab-proof"] span { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }

/* Values: navy rule draws across the top on hover (.why in the master) */
:root .elementor :is([data-id="ab-value-family"], [data-id="ab-value-honest"], [data-id="ab-value-service"]) { position: relative; }
:root .elementor :is([data-id="ab-value-family"], [data-id="ab-value-honest"], [data-id="ab-value-service"])::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--navy); transition: width .6s cubic-bezier(.2,.7,.2,1); }
:root .elementor :is([data-id="ab-value-family"], [data-id="ab-value-honest"], [data-id="ab-value-service"]):hover::before { width: 100%; }

/* Jump-link targets clear the sticky header (sections themselves don't reveal) */
:root .elementor :is([data-id="ab-story"], [data-id="ab-dentists"], [data-id="ab-philosophy"], [data-id="ab-team"], [data-id="ab-technology"]) { scroll-margin-top: 110px; }

/* Doctor rows: anchor offset under the sticky header; hovering a row (or a team card, or the spotlight) zooms its photo */
:root .elementor :is([data-id="ab-james"], [data-id="ab-jed"], [data-id="ab-lily"]) { scroll-margin-top: 110px; }
:root .elementor :is([data-id="ab-james"], [data-id="ab-jed"], [data-id="ab-lily"], [data-id="ab-philosophy-panel"]):hover .cover-img { transform: scale(1.045); }

@media (prefers-reduced-motion: reduce) {
  :root .elementor [data-id="ab-hero-copy"] > *, :root .elementor [data-id="ab-hero-media"] { animation: none !important; }
}

/* membership */
/* Membership page (/membership/): only what local styles can't do. Replace 383 with the page's WordPress id. */

/* The site-wide "No insurance?" bar links to this page, so it's hidden here */
:root .page-id-383 [data-id="announce"] { display: none; }

/* Hero rises on load, staggered like the service hero */
:root .elementor .s-mb-hero-copy > *, :root .elementor .s-mb-hero-media { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor .s-mb-hero-copy > :nth-child(2) { animation-delay: .1s; } :root .elementor .s-mb-hero-copy > :nth-child(3) { animation-delay: .2s; }
:root .elementor .s-mb-hero-copy > :nth-child(n+4) { animation-delay: .3s; } :root .elementor .s-mb-hero-media { animation-delay: .35s; }
:root .elementor .s-mb-hero-media:hover .cover-img { transform: none; }
@media (prefers-reduced-motion: reduce) { :root .elementor .s-mb-hero-copy > *, :root .elementor .s-mb-hero-media { animation: none !important; } }

/* Inline emphasis in the hero lead and proof line */
:root .elementor .s-mb-hero-lead strong { color: var(--navy); font-weight: 600; }
:root .elementor .s-mb-proof b { color: var(--navy); font-weight: 700; }

/* Steps: one column from 900px down, like the master (no native breakpoint there) */
@media (max-width: 900px) { :root .elementor [data-id="mb-steps"] { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }

/* Richmond prices: big price figure, never wrapped */
:root .elementor :is(.s-mb-ric-plan-1-price, .s-mb-ric-plan-2-price, .s-mb-ric-plan-3-price) { white-space: nowrap; }  /* price only; the notes wrap */
:root .elementor [data-id="mb-ric-prices"] b { font: 500 2.2rem/1 var(--font-display); color: var(--white); }
@media (max-width: 767px) { :root .elementor [data-id="mb-ric-prices"] b { font-size: 1.9rem; } }

/* Richmond terms: powder dots */
:root .elementor [data-id="mb-ric-terms"] > p::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--powder); }

/* Linked paragraphs (phone links) keep their own colour, no theme underline */
:root .elementor :is(.s-mb-ric-call, .s-mb-contact-ric-phone, .s-mb-contact-mid-phone, .s-mb-ric-call a, .s-mb-contact-ric-phone a, .s-mb-contact-mid-phone a) { color: var(--white); text-decoration: none; }
:root .elementor .s-mb-ric-call { transition: border-color .2s; }
:root .elementor .s-mb-ric-call:hover { border-color: var(--white); }

/* smile-gallery */
/* Smile Gallery page (/smile-gallery/): only what v4 local styles can't do. Containers by [data-id]; widgets by their local class .s-<id>.
   Ids come from pages/smile-gallery.build.js. The lightbox dialog is built by pages/smile-gallery.behaviors.js. */

/* Anchors land below the sticky header (~84px + breathing room) */
:root .elementor :is(#cases, #veneers, #makeovers, #approach, #contact) { scroll-margin-top: 110px; }

/* Hero rises on load, staggered like the service hero; gold stars in the reviews line; hero photo stays still */
:root .elementor [data-id="sg-hero-copy"] > *, :root .elementor [data-id="sg-hero-media"] { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="sg-hero-copy"] > :nth-child(2) { animation-delay: .1s; }
:root .elementor [data-id="sg-hero-copy"] > :nth-child(3) { animation-delay: .2s; }
:root .elementor [data-id="sg-hero-copy"] > :nth-child(n+4) { animation-delay: .3s; }
:root .elementor [data-id="sg-hero-media"] { animation-delay: .35s; }
:root .elementor [data-id="sg-hero-media"]:hover .cover-img { transform: none; }
:root .elementor .s-sg-proof span { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }

/* Case photos: zoom-in cursor; hovering the card zooms its photo (master .ba-card:hover .ba img); magnifier fades in on hover/focus (always shown on phones) */
:root .elementor [data-id^="sg-case-"][data-id$="-photo"] { cursor: zoom-in; }
:root .elementor [data-id^="sg-case-"]:hover > [data-id$="-photo"] .cover-img { transform: scale(1.045); }
:root .elementor [data-id^="sg-case-"][data-id$="-photo"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
:root .elementor [data-id^="sg-case-"][data-id$="-zoom"] { opacity: 0; transform: scale(.9); transition: opacity .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id^="sg-case-"][data-id$="-photo"]:is(:hover, :focus-visible) [data-id$="-zoom"] { opacity: 1; transform: none; }
:root .elementor [data-id^="sg-case-"][data-id$="-zoom"] :is(.e-svg-base, svg) { width: 16px; height: 16px; }
:root .elementor [data-id^="sg-case-"][data-id$="-zoom"] :is(svg, svg *) { fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 767px) { :root .elementor [data-id^="sg-case-"][data-id$="-zoom"] { opacity: 1; transform: none; } }

/* Caption treatment link: powder underline, navy on hover */
:root .elementor [class*="s-sg-case-"][class*="-cap-title"] a { color: var(--navy); font-weight: inherit; text-decoration: underline; text-decoration-color: var(--powder); text-underline-offset: 4px; transition: text-decoration-color .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [class*="s-sg-case-"][class*="-cap-title"] a:hover { text-decoration-color: var(--navy); color: var(--navy); }
:root .elementor [class*="s-sg-case-"][class*="-cap-title"] b { font-weight: inherit; }

/* Approach photo stays still (master); hovering the navy contact card zooms its photo (master .contact:hover .frame img) */
:root .elementor [data-id="sg-approach-media"]:hover .cover-img { transform: none; }
:root .elementor [data-id="sg-contact-card"]:hover .cover-img { transform: scale(1.045); }

/* Cosmetic-care pills: navy on hover (same as the master's pill list) */
:root .elementor [data-id="sg-approach-pills"] a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  :root .elementor [data-id="sg-hero-copy"] > *, :root .elementor [data-id="sg-hero-media"] { animation: none !important; }
  :root .elementor [data-id^="sg-case-"][data-id$="-zoom"] { transition: none; }
}

/* ---------- Enlarged view (native <dialog> built in JS; Esc closes, focus returns to the photo) ---------- */
:root .sg-lightbox { border: 0; padding: 0; background: transparent; width: min(92vw, 1100px); max-width: none; max-height: 94vh; overflow: visible; color: #dbe4ef; }
:root .sg-lightbox::backdrop { background: rgba(21, 42, 70, .86); backdrop-filter: blur(4px); }
:root .sg-lightbox[open] { animation: sg-lb-rise .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sg-lb-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
:root .sg-lightbox-body { display: flex; justify-content: center; gap: .75rem; }
:root .sg-lightbox-body figure { margin: 0; position: relative; min-width: 0; display: flex; justify-content: center; }
:root .sg-lightbox-body img { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; border-radius: var(--r-md, 18px); }
:root .sg-lightbox-tag { position: absolute; left: .9rem; top: .9rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); font: 600 .65rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
:root .sg-lightbox-tag.is-after { background: var(--navy); color: var(--white); }
:root .sg-lightbox-cap { margin: 1rem 0 0; text-align: center; color: #dbe4ef; font: 400 .9rem/1.5 var(--font-body); }
:root .sg-lightbox-cap b { color: var(--white); }
:root .sg-lightbox-close { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: -.5rem; right: -.5rem; transform: translateY(-100%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 400 1.5rem/1 var(--font-body); }
:root .sg-lightbox-close:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }
@media (max-width: 767px) {
  :root .sg-lightbox { margin-top: 4vh; }
  :root .sg-lightbox-body { flex-direction: column; align-items: center; }
  :root .sg-lightbox-body img { max-height: 70vh; }
  :root .sg-lightbox-body.is-pair img { max-height: 38vh; }
  :root .sg-lightbox-close { top: auto; bottom: -.5rem; right: 50%; transform: translate(50%, 100%); }
}
@media (prefers-reduced-motion: reduce) { :root .sg-lightbox[open] { animation: none; } }

/* insurance-and-financing */
/* Insurance & Financing page (/insurance-and-financing/): only what local styles can't do. Replace 395 with the page's WordPress id. */

/* The master has no "No insurance?" bar (the phrase is this page's membership H2), so it's hidden here */
:root .page-id-395 [data-id="announce"] { display: none; }

/* Anchors land below the sticky header */
:root .elementor :is(#insurance, #why-out-of-network, #payment, #membership, #financing, #pay-bill, #faq, #contact) { scroll-margin-top: 110px; }

/* Hero rises on load, staggered like the service hero */
:root .elementor [data-id="if-hero-copy"] > *, :root .elementor [data-id="if-hero-media"] { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="if-hero-copy"] > :nth-child(2) { animation-delay: .1s; } :root .elementor [data-id="if-hero-copy"] > :nth-child(3) { animation-delay: .2s; }
:root .elementor [data-id="if-hero-copy"] > :nth-child(n+4) { animation-delay: .3s; } :root .elementor [data-id="if-hero-media"] { animation-delay: .35s; }
:root .elementor [data-id="if-hero-media"]:hover .cover-img { transform: none; }

/* Spotlight: hovering the panel zooms the photo, like the homepage / service spotlight */
:root .elementor [data-id="if-why-card"]:hover .cover-img { transform: scale(1.045); }

/* Closing contact card: hovering it zooms the photo (master .contact:hover .frame img) */
:root .elementor [data-id="if-contact-card"]:hover .cover-img { transform: scale(1.045); }
/* Membership photo stays still on hover (the master has no zoom there) */
:root .elementor [data-id="if-mem-media"]:hover .cover-img { transform: none; }

/* Insurance grid: the master's clamp() gap (local styles reject clamp for gap) */
:root .elementor [data-id="if-ins-grid"] { gap: clamp(2rem, 6vw, 6rem); }

/* Inline links: weight 400 like the master (the site rule makes them 600). Navy + powder underline in cards, Cherry copy and FAQs */
:root .elementor :is([data-id="if-pay-3-text"], [data-interaction-id="if-pay-3-text"], .s-if-pay-3-text, .s-if-fin-text, .s-if-faq-text, .s-if-faq-5-a, .s-if-faq-6-a) a[href] { font-weight: 400; color: var(--navy); text-decoration: underline; text-decoration-color: var(--powder); text-underline-offset: 3px; }
:root .elementor :is([data-id="if-pay-3-text"], [data-interaction-id="if-pay-3-text"], .s-if-pay-3-text, .s-if-fin-text, .s-if-faq-text, .s-if-faq-5-a, .s-if-faq-6-a) a[href]:hover { text-decoration-color: var(--navy); }
/* Ways-to-pay note: the link keeps the note's muted grey, underline in the same grey */
:root .elementor .s-if-pay-note a[href] { font-weight: 400; color: inherit; text-decoration: underline; text-decoration-color: currentColor; }

/* Pay buttons: the office street is solid colour at 75% opacity, as the master's .pay-sub */
:root .elementor :is(.s-if-pay-richmond-sub, .s-if-pay-midlothian-sub) { opacity: .75; }

/* Pay buttons (linked divs carrying btn-light / btn-ghost-light): hover like the master's .btn */
:root .elementor :is([data-id="if-pay-richmond"], [data-id="if-pay-midlothian"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="if-pay-richmond"]:hover { background: var(--powder-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(21, 42, 70, .45); }
:root .elementor [data-id="if-pay-midlothian"]:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }

/* Contact card phone links (linked paragraphs) keep their own colour, no theme underline */
:root .elementor :is(.s-if-contact-mid-phone, .s-if-contact-ric-phone, .s-if-contact-mid-phone a, .s-if-contact-ric-phone a) { color: var(--white); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  :root .elementor [data-id="if-hero-copy"] > *, :root .elementor [data-id="if-hero-media"] { animation: none !important; }
}

/* Elementor drops flex-grow / white-space from these local styles */
:root .elementor .s-if-pay-bill-copy { flex-grow: 1; }
:root .elementor .s-if-pay-richmond-name, :root .elementor .s-if-pay-richmond-sub, :root .elementor .s-if-pay-midlothian-name, :root .elementor .s-if-pay-midlothian-sub { white-space: nowrap; }

/* 404 */
/* 404 template: only what local styles can't do. Containers by [data-id]. */

/* Hero rises on load, staggered like the master */
:root .elementor [data-id="nf-hero-copy"] > *, :root .elementor [data-id="nf-call-card"] { animation: ld-rise-in 1s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="nf-hero-copy"] > :nth-child(2) { animation-delay: .1s; }
:root .elementor [data-id="nf-hero-copy"] > :nth-child(3) { animation-delay: .2s; }
:root .elementor [data-id="nf-hero-copy"] > :nth-child(4) { animation-delay: .3s; }
:root .elementor [data-id="nf-call-card"] { animation-delay: .35s; }

/* Call rows: white wash on hover, phone chip turns navy */
:root .elementor :is([data-id="nf-call-mid"], [data-id="nf-call-rich"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor :is([data-id="nf-call-mid"], [data-id="nf-call-rich"]):hover { background: rgba(255,255,255,.75); }
:root .elementor :is([data-id="nf-call-mid"], [data-id="nf-call-rich"]):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:root .elementor :is([data-id="nf-call-mid-ico"], [data-id="nf-call-rich-ico"]) { transition: background-color .3s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="nf-call-mid"]:hover [data-id="nf-call-mid-ico"], :root .elementor [data-id="nf-call-rich"]:hover [data-id="nf-call-rich-ico"] { background: var(--navy); color: var(--white); }
:root .elementor :is([data-id="nf-call-mid-ico"], [data-id="nf-call-rich-ico"]) :is(.e-svg-base, svg) { width: 20px; height: 20px; }
:root .elementor :is([data-id="nf-call-mid-ico"], [data-id="nf-call-rich-ico"]) :is(svg, svg *) { fill: none; stroke: currentColor; }

/* Popular-service cards (linked .card divs): lift + powder border, arrow circle turns navy */
:root .elementor [data-id="nf-services-grid"] > .card { transition: border-color .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="nf-services-grid"] > .card:hover { border-color: var(--powder); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
:root .elementor [data-id="nf-services-grid"] > .card:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
:root .elementor [data-id="nf-services-grid"] .svc-go { transition: background-color .3s cubic-bezier(.2,.7,.2,1), color .3s cubic-bezier(.2,.7,.2,1), border-color .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="nf-services-grid"] > .card:hover .svc-go { background-color: var(--navy); border-color: var(--navy); color: var(--white); transform: translateX(3px); }
:root .elementor [data-id="nf-services-grid"] .svc-go :is(svg, svg *) { fill: none; stroke: currentColor; }
/* e-svg rewrites fill="none" to currentColor, so the implant's closed crown/post shapes render solid. Master: stroke only. */
:root .elementor [data-id="nf-card-dental-implants-chip"] :is(svg, svg *) { fill: none !important; stroke: currentColor; }
@media (max-width: 767px) {
  :root .elementor [data-id="nf-services-grid"] .icon-chip :is(.e-svg-base, svg) { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  :root .elementor [data-id="nf-hero-copy"] > *, :root .elementor [data-id="nf-call-card"] { animation: none; }
}

/* Elementor drops white-space from local styles */
:root .elementor .s-nf-call-mid-num, :root .elementor .s-nf-call-rich-num { white-space: nowrap; }

/* On the 404 template the header's local styles print after its global-class CSS, so hide-mobile / only-mobile lose. Reassert them. */
@media (min-width: 768px) { :root body.error404 .elementor .only-mobile { display: none; } }
@media (max-width: 767px) { :root body.error404 .elementor .hide-mobile { display: none; } }

/* home-popup */
/* Homepage membership pop-up (ids from pages/home-popup.build.js; opened by site-behaviors.js with .is-open) */
:root .elementor [data-id="mp"] { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(21,42,70,.6); backdrop-filter: blur(3px); }
:root .elementor [data-id="mp"].is-open { display: flex; }
:root .elementor [data-id="mp-panel"] { position: relative; width: min(92vw, 860px); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding: 0; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(21,42,70,.55); animation: ld-rise .5s cubic-bezier(.2,.7,.2,1) both; }
:root .elementor [data-id="mp-photo"] { position: relative; min-height: 460px; border-radius: 0; }
:root .elementor [data-id="mp-photo"] .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; }
:root .elementor [data-id="mp-panel"]:hover .cover-img { transform: none; }
:root .elementor [data-id="mp-copy"] { background: var(--sky); padding: clamp(2.25rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
:root .elementor [data-id="mp-copy"] .eyebrow { margin-bottom: var(--s-2); line-height: 1; }
:root .elementor [data-interaction-id="mp-title"] { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.08; color: var(--navy); }
:root .elementor [data-interaction-id="mp-title"] em { color: var(--powder); }
:root .elementor [data-interaction-id="mp-text"] { color: var(--muted); }
:root .elementor [data-interaction-id="mp-note"] { display: flex; align-items: center; gap: .5rem; margin: var(--s-3) 0 0; font-size: .85rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
:root .elementor [data-interaction-id="mp-note"]::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--powder); }
:root .elementor a[data-interaction-id="mp-close"] { position: absolute; top: .9rem; right: .9rem; left: auto; box-shadow: 0 0 0 1px var(--line); width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); font: 400 1.5rem/1 var(--font-body); text-decoration: none; z-index: 2; transition: background .2s; }
:root .elementor a[data-interaction-id="mp-close"]:hover { background: var(--white); color: var(--navy); }
:root .elementor a[data-interaction-id="mp-close"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 767px) {
  :root .elementor [data-id="mp"] { padding: 16px; }
  :root .elementor [data-id="mp-panel"] { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 32px); }
  :root .elementor [data-id="mp-photo"] { min-height: 0; aspect-ratio: 16 / 10; }
  :root .elementor [data-id="mp-copy"] { padding: 1.75rem 1.5rem 2rem; }
  :root .elementor a[data-interaction-id="mp-cta"] { width: 100%; justify-content: center; }
  :root .elementor a[data-interaction-id="mp-close"] { left: auto; right: .9rem; }
}
:root body:has(.elementor-element-mp.is-open) #widget-floatingEstimator-mount { display: none; }
@media (prefers-reduced-motion: reduce) { :root .elementor [data-id="mp-panel"] { animation: none; } }

/* reviews-resources */
/* ---------- Patient Resources mega menu + reviews wall (Mark approved site/mockups/reviews-and-resources.html, 12 Nov 2026) ---------- */

/* Header: "Patient Resources" opens a mega panel like Services (desktop). site-behaviors.js adds .resources-open on the header bar */
:root .elementor [data-id="header-nav"] a[href="#resources-menu"] { cursor: pointer; }
:root .elementor [data-id="header-nav"] a[href="#resources-menu"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.resources-open [data-id="header-nav"] a[href="#resources-menu"]::after { transform: translateY(0) rotate(225deg); }
:root .elementor [data-id^="resources-menu"] { padding: 0; }
:root .elementor [data-id="resources-menu"] { position: absolute; top: calc(100% - 6px); left: 50%; width: min(1080px, calc(100vw - 48px)); padding: 2.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(21,42,70,.35); z-index: 60; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s .25s; }
:root .elementor .resources-open [data-id="resources-menu"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
:root .elementor [data-id="resources-menu-in"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 2rem; }
:root .elementor [data-id="resources-menu-in"] > div { display: grid; align-content: start; }
:root .elementor [data-id="resources-menu-in"] > div > p:first-child { margin: 0 0 .75rem; line-height: 1.45; }
:root .elementor [data-id="resources-menu-in"] > div > a { display: grid; gap: .1rem; padding: .4rem 0; text-decoration: none; color: var(--ink); }
:root .elementor [data-id="resources-menu-in"] > div > a p { margin: 0; }
:root .elementor [data-id="resources-menu-in"] > div > a p:first-child { font-size: .92rem; line-height: 1.35; color: var(--ink); transition: color .2s; }
:root .elementor [data-id="resources-menu-in"] > div > a p + p { font-size: .78rem; line-height: 1.4; color: var(--muted); }
:root .elementor [data-id="resources-menu-in"] > div > a:hover p:first-child { color: var(--navy); text-decoration: underline; text-decoration-color: var(--powder); text-underline-offset: .2em; }
:root .elementor [data-id="resources-menu"] a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:root .elementor a[data-id="resources-menu-feature"] { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--r-md); background: var(--navy); color: var(--white); text-decoration: none; transition: background-color .25s; }
:root .elementor a[data-id="resources-menu-feature"]:hover { background: var(--navy-deep); }
:root .elementor a[data-id="resources-menu-feature"] p { margin: 0; color: rgba(255,255,255,.85); }
:root .elementor [data-interaction-id="resources-menu-feature-stars"] { color: var(--gold) !important; letter-spacing: .15em; font-size: .9rem; }
:root .elementor [data-interaction-id="resources-menu-feature-num"] { font: 400 2.6rem/1 var(--font-display); color: var(--white) !important; }
:root .elementor [data-interaction-id="resources-menu-feature-quote"] { font-size: .88rem; line-height: 1.55; font-style: italic; }
:root .elementor [data-interaction-id="resources-menu-feature-more"] { margin-top: auto !important; padding-top: .4rem; font-weight: 600; font-size: .85rem; color: var(--white) !important; }
@media (max-width: 1024px) { :root .elementor [data-id="resources-menu"] { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-id="resources-menu"] { transition: none !important; } }

/* Mobile menu: list under "Patient Resources", toggled by the + button */
:root .elementor [data-id="menu-resources"] { display: none; padding: 0 0 .5rem 1rem; }
:root .elementor .menu-resources-open [data-id="menu-resources"] { display: grid; }
:root .elementor [data-id="menu-resources"] a { justify-content: flex-start; text-align: left; padding: .45rem 0; font-size: .95rem; color: var(--muted); text-decoration: none; background: none; border: 0; }

/* Reviews section (every page): copy left, scrolling wall right */
:root .elementor [data-id="reviews-grid"] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
:root .elementor [data-id="reviews-head"] { display: block; margin: 0; }
:root .elementor [data-id="reviews-head"] > [data-id="review-score"] { margin: 2rem 0; }
:root .elementor [data-interaction-id="reviews-lead"] { margin: 0; }
:root .elementor [data-id="reviews-actions"] { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding: 0; }

/* The wall: site-behaviors.js splits the cards into .rv-col columns (2 here, 3 on /reviews/, 1 on phones) */
:root .elementor .rv-wall { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--rv-cols, 2), minmax(0, 1fr)); align-items: start; gap: 1.25rem; height: 620px; overflow: hidden; padding: 0; margin: 0; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
:root .elementor .rv-wall[data-id="rp-track"] { height: 760px; }
.rv-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; animation: rv-up var(--rv-dur, 60s) linear infinite; }
.rv-col.rv-offset { margin-top: -140px; }
.rv-col > * { flex: none; height: auto; }
.rv-wall:hover .rv-col, .rv-wall.is-paused .rv-col { animation-play-state: paused; }
@keyframes rv-up { to { transform: translateY(calc(-50% - .625rem)); } }
.rv-pause, .rv-pause:is(:hover, :focus) { all: unset; cursor: pointer; display: block; width: max-content; margin: 1rem 0 0 auto; font: 600 .82rem/1.7 var(--font-body); color: var(--navy); border-bottom: 1px solid var(--powder); }
.rv-pause:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) { .rv-pause:hover { color: var(--navy-deep); border-bottom-color: var(--navy); } }
:root .elementor [data-id="reviews-grid"] > .rv-pause { grid-column: 2; }
@media (prefers-reduced-motion: reduce) {
  :root .elementor .rv-wall { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-col { animation: none; } .rv-col.rv-offset { margin-top: 0; }
}
@media (max-width: 1024px) {
  :root .elementor [data-id="reviews-grid"] { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  :root .elementor [data-id="reviews-grid"] > .rv-pause { grid-column: 1; margin-top: -2rem; }
}
@media (max-width: 767px) {
  :root .elementor [data-id="reviews-grid"] { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  :root .elementor [data-id="reviews-grid"] > .rv-pause { grid-column: 1; margin-top: -1.5rem; }
  :root .elementor .rv-wall, :root .elementor .rv-wall[data-id="rp-track"] { height: 540px; }
  :root .elementor [data-id="rp-head"] > [data-id="rp-review-score"] { width: auto; }
}

/* /reviews/ page */
:root .elementor [data-id="rp-head"] { max-width: 780px; margin: 0 auto 4rem; padding: 0; text-align: center; }
:root .elementor [data-interaction-id="rp-heading"] { margin: 0 0 1.5rem; font: 500 clamp(2.4rem, 4.4vw, 4rem)/1.08 var(--font-display); letter-spacing: -.01em; color: var(--navy); }
:root .elementor [data-interaction-id="rp-heading"] em { color: var(--powder); }
:root .elementor [data-interaction-id="rp-lead"] { margin: 0; }
:root .elementor [data-id="rp-head"] > [data-id="rp-review-score"] { width: max-content; margin: 2rem auto 0; text-align: left; }
:root .elementor [data-id="rp-offices"] { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin-top: 1.5rem; padding: 0; }
:root .elementor [data-id="rp-offices"] > a { width: auto; flex: none; display: flex; align-items: center; gap: .6rem; padding: .65rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; transition: border-color .25s; }
:root .elementor [data-id="rp-offices"] > a:hover { border-color: var(--navy); }
:root .elementor [data-id="rp-offices"] > a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:root .elementor [data-id="rp-offices"] p { margin: 0; }
:root .elementor [data-id="rp-offices"] p:first-child { font-weight: 700; color: var(--navy); }
:root .elementor [data-id="rp-track"] + .rv-pause { margin-right: 0; }
:root .elementor [data-id="rp-cta"] { display: grid; justify-content: center; margin-top: 3rem; padding: 0; }

/* Locations section: full section padding on top wherever it follows a coloured band (service pages, /reviews/).
   The homepage keeps 0 because the white contact section above already supplies the space. */
:root .elementor [data-id="locations"] { padding-top: clamp(5rem, 10vw, 9rem); }
:root .elementor-171 > [data-id="locations"] { padding-top: 0; }

/* Legal pages: long words (e.g. the bold OPT OUT) wrap instead of pushing the page sideways on phones */
:root .elementor .elementor-widget-text-editor { overflow-wrap: anywhere; }

/* home-cards */
/* ---------- Homepage service cards (Mark approved option H in site/mockups/service-cards-v2.html, 12 Nov 2026) ----------
   White split cards: details on top, the practice's own doctor photo below. "Learn more" is a text link. */
:root .elementor [data-id="services-cards"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
:root .elementor [data-id="services-cards"] > a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 10px; background: var(--white); border-radius: 26px; text-decoration: none; color: var(--ink); box-shadow: 0 30px 60px -40px rgba(21,42,70,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="services-cards"] > a:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(21,42,70,.55); }
:root .elementor [data-id="services-cards"] > a:focus-visible { outline: 2px solid var(--navy) !important; outline-offset: 3px; }   /* beats the global powder focus ring (2.2:1 on sky) */
:root .elementor [data-id="services-cards"] [data-id$="-txt"] { padding: 1.1rem 1.1rem 1rem; }
:root .elementor [data-id="services-cards"] [data-id$="-row"] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0; }
:root .elementor [data-id="services-cards"] [data-id$="-pic"] { position: relative; aspect-ratio: 5 / 4; padding: 0; border-radius: 18px; overflow: hidden; }
:root .elementor [data-id="services-cards"] [data-id$="-pic"] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="services-cards"] > a:hover [data-id$="-pic"] img { transform: scale(1.05); }
:root .elementor [data-interaction-id="svc-card-emergency-img"] { object-position: 50% 23%; }   /* heads sit the same distance from the top as the other photos */
:root .elementor [data-interaction-id="svc-card-veneers-img"] { object-position: 50% 32%; }
:root .elementor [data-id="services-cards"] [data-id$="-pic"]::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(31,58,95,0) 0%, rgba(31,58,95,.55) 60%, rgba(31,58,95,.82) 100%); pointer-events: none; }   /* navy fade at the bottom of each photo (Mark, 12 Nov) */
:root .elementor [data-id="services-cards"] [data-interaction-id$="-who"] { position: absolute; z-index: 2; left: 14px; bottom: 14px; margin: 0; padding: .4rem .85rem; font-size: .78rem; font-weight: 600; line-height: 1.4; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(21,42,70,.5); }   /* solid light tag so the fade never swallows the name */
:root .elementor [data-id="services-cards"] [data-interaction-id$="-title"] { margin: 0 0 .5rem; font-size: 1.65rem; }
:root .elementor [data-id="services-cards"] [data-interaction-id$="-text"] { margin: 0 0 1.25rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
:root .elementor [data-id="services-cards"] [data-interaction-id$="-where"] { margin: 0; color: var(--muted); font-size: .82rem; }
:root .elementor [data-id="services-cards"] [data-interaction-id$="-more"] { margin: 0; padding-bottom: 2px; color: var(--navy); font-weight: 600; font-size: .85rem; border-bottom: 1px solid var(--powder); transition: color .3s, border-color .3s; }
:root .elementor [data-id="services-cards"] > a:hover [data-interaction-id$="-more"] { color: var(--navy-deep); border-bottom-color: var(--navy); }
@media (max-width: 1024px) { :root .elementor [data-id="services-cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { :root .elementor [data-id="services-cards"] { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { :root .elementor [data-id="services-cards"] > a, :root .elementor [data-id="services-cards"] img { transition: none; } :root .elementor [data-id="services-cards"] > a:hover { transform: none; } }

/* contact: Elementor drops white-space from local styles */
:root .elementor .s-ct-call-mid-num, :root .elementor .s-ct-call-rich-num, :root .elementor [class*="s-ct-rich-hours-"], :root .elementor [class*="s-ct-mid-hours-"] { white-space: nowrap; }

/* Mobile header: "Request Appointment" (was "Request"); the menu button never shrinks, the Request button gives way instead */
@media (max-width: 1024px) {
  :root .elementor .s-menu-toggle { flex: 0 0 44px; width: 44px; min-width: 44px; }
  :root .elementor [data-id="header-cta"] { min-width: 0; flex-wrap: nowrap; }
}
@media (max-width: 767px) { :root .elementor a[data-interaction-id="header-book-sm"] { font-size: .8rem; padding: .6rem .95rem; white-space: nowrap; letter-spacing: 0; min-width: 0; } }
@media (max-width: 400px) {
  :root .elementor [data-interaction-id="header-logo"], :root .elementor [data-interaction-id="header-logo"] img { width: 140px !important; max-width: 140px; height: auto; }
  :root .elementor a[data-interaction-id="header-book-sm"] { font-size: .74rem; padding: .55rem .8rem; }
}
@media (max-width: 359px) {
  :root .elementor [data-interaction-id="header-logo"], :root .elementor [data-interaction-id="header-logo"] img { width: 118px !important; max-width: 118px; }
  :root .elementor a[data-interaction-id="header-book-sm"] { font-size: .68rem; padding: .5rem .65rem; }
}

/* Keyboard focus: one soft powder ring for atomic buttons and linked blocks (Elementor's default ring is near-black) */
:root .elementor :is(.e-button-base, a.e-div-block-base, a.e-con):focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; }
:root .elementor .bg-navy :is(.e-button-base, a.e-div-block-base, a.e-con):focus-visible { outline-color: var(--white); }

/* Eyebrows removed site-wide (Mark, 12 Nov 2026). Quote names and Services-menu group labels share the .eyebrow class but aren't eyebrows, so they stay. */
:root .elementor [data-interaction-id$="-eyebrow"] { display: none !important; }

/* Arrow is a pseudo-element so it can slide on hover (text is "Learn more") */
:root .elementor [data-id="services-cards"] [data-interaction-id$="-more"]::after { content: "→"; display: inline-block; margin-left: .45rem; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
:root .elementor [data-id="services-cards"] > a:hover [data-interaction-id$="-more"]::after { transform: translateX(4px); }
/* Heading to cards: 56px like option H */
:root .elementor [data-id="services-head"] { margin-bottom: 32px !important; }
@media (max-width: 767px) { :root .elementor [data-id="services-head"] { margin-bottom: 56px !important; } }

/* Reviews moved under the doctors: Why and Membership are both white, so drop the doubled padding */
:root .elementor-171 > [data-id="membership"] { padding-top: 0; }

/* Homepage rhythm (13 Nov): reviews light blue, services white. Cosmetic follows white services, so no doubled padding; white cards on white get a hairline */
:root .elementor-171 > [data-id="gallery"] { padding-top: clamp(5rem, 10vw, 9rem); }   /* cosmetic has a light-blue band now (Mark, 13 Nov), so gallery needs its own top padding */
:root .elementor-171 [data-id="services-cards"] > a { box-shadow: 0 0 0 1px rgba(31,58,95,.08), 0 30px 60px -36px rgba(21,42,70,.4); }
:root .elementor-171 [data-id="services-cards"] > a:hover { box-shadow: 0 0 0 1px rgba(31,58,95,.12), 0 40px 70px -36px rgba(21,42,70,.5); }

/* 18 Nov 2026: full-face cases (ids end in -faces) are side by side, so they span two columns, match the 4:5 card beside them, and the After tag sits top-right */
:root .elementor [data-id^="sg-case-"][data-id$="-faces"] { grid-column: span 2; display: flex !important; flex-direction: column; }
:root .elementor [data-id^="sg-case-"][data-id$="-faces-photo"] { aspect-ratio: auto !important; flex: 1 1 0; min-height: 0; }
:root .elementor [data-id^="sg-case-"][data-id$="-faces-photo"] img { object-position: 50% 35% !important; }
:root .elementor [data-interaction-id^="sg-case-"][data-interaction-id$="-faces-after"] { inset-block-end: auto !important; inset-inline-start: auto !important; top: .9rem !important; right: .9rem !important; }
@media (max-width: 1024px) { :root .elementor [data-id^="sg-case-"][data-id$="-faces-photo"] { aspect-ratio: 8 / 5 !important; flex: none; } }
@media (max-width: 767px) {
  :root .elementor [data-id^="sg-case-"][data-id$="-faces"] { grid-column: auto; }
  :root .elementor [data-id^="sg-case-"][data-id$="-faces-photo"] { aspect-ratio: 5 / 4 !important; }
  :root .elementor [data-interaction-id^="sg-case-"][data-interaction-id$="-faces-after"] { top: .75rem !important; right: .75rem !important; }
}

@media (max-width: 1024px) { :root .elementor :is([data-id="sg-veneers-grid"], [data-id="sg-makeovers-grid"]) { grid-auto-flow: row dense; } }   /* tablet: a single card fills the gap next to a two-column -faces card */

/* 18 Nov 2026: Midlothian plan card (clone of Richmond's, ids mb-mid-*) and two equal cards, no photo */
@media (min-width: 1025px) { :root .elementor [data-id="mb-offices"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root .elementor :is(.s-mb-mid-plan-1-price, .s-mb-mid-plan-2-price, .s-mb-mid-plan-3-price) { white-space: nowrap; }
:root .elementor [data-id="mb-mid-prices"] b { font: 500 2.2rem/1 var(--font-display); color: var(--white); }
@media (max-width: 767px) { :root .elementor [data-id="mb-mid-prices"] b { font-size: 1.9rem; } }
:root .elementor [data-id="mb-mid-terms"] > p::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--powder); }
:root .elementor :is(.s-mb-mid-call, .s-mb-mid-call a) { color: var(--white); text-decoration: none; }
:root .elementor .s-mb-mid-call { transition: border-color .2s; }
:root .elementor .s-mb-mid-call:hover { border-color: var(--white); }

:root .elementor :is([data-id="mb-ric"], [data-id="mb-mid"]) { display: flex; flex-direction: column; } :root .elementor :is([data-id="mb-ric-body"], [data-id="mb-mid-body"]) { flex: 1; display: flex; flex-direction: column; } :root .elementor :is([data-id="mb-ric-actions"], [data-id="mb-mid-actions"]) { margin-top: auto !important; }   /* both Join buttons line up at the bottom */

:root .elementor [data-id^="sg-case-"][data-id$="-faces"]:last-child [data-id$="-faces-photo"] { aspect-ratio: 8 / 5 !important; flex: none; }   /* a -faces card that ends its group has no 4:5 neighbour to take its height from */


:root .elementor :is([data-id="sg-veneers-grid"], [data-id="sg-makeovers-grid"]) { grid-auto-flow: row dense; }   /* all widths: a single card fills any slot a two-column -faces card leaves */

@media (min-width: 1025px) { :root .elementor [data-id="sg-makeovers-grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }   /* 3 cards since Smile close-up removed (30 Nov) */
@media (min-width: 768px) and (max-width: 1024px) { :root .elementor [data-id="sg-case-f-side"] { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px) !important; } }
@media (min-width: 768px) and (max-width: 1024px) { :root .elementor [data-id="sg-case-d"] { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px) !important; } }   /* lone last makeover card centred on tablet (30 Nov) *//* End custom CSS */