/*
Theme Name: Griffin Dental
Theme URI: https://griffindentalpapatoetoe.com/
Description: Lightweight block theme for Griffin Dental Papatoetoe. Fast, accessible and editable in the block editor.
Version: 2.20.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: griffin
*/

:root {
	--g-radius: 18px;
	--g-shadow: 0 1px 2px rgba(13, 71, 161, .06), 0 8px 24px rgba(13, 71, 161, .08);
	--g-shadow-lift: 0 2px 4px rgba(13, 71, 161, .08), 0 18px 40px rgba(13, 71, 161, .14);
	--g-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(a, button):focus-visible { outline: 3px solid var(--wp--preset--color--sky); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s, transform .2s var(--g-ease), box-shadow .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 112, 217, .28); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--navy);
	border: 2px solid currentColor; padding: calc(.85rem - 2px) calc(1.5rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }

/* Top bar */
.topbar { background: var(--wp--preset--color--navy); color: #fff; font-size: .875rem; padding-block: .45rem; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 700; }
.topbar__inner { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; gap: .25rem 1.5rem; }
.topbar__hours strong { color: var(--wp--preset--color--sun); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; padding-block: .75rem; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside the header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header.is-scrolled { border-color: var(--wp--preset--color--line); box-shadow: 0 4px 20px rgba(13, 71, 161, .06); }
.site-header__inner { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; gap: 1.5rem; }
.site-logo { margin: 0; flex-shrink: 0; }
.site-logo img { width: clamp(130px, 14vw, 172px); display: block; }
.site-nav { flex: 1; font-weight: 600; font-size: .975rem; }
.site-nav .wp-block-navigation__container { flex-wrap: nowrap; gap: 1.4rem; }
@media (max-width: 1180px) { .site-nav .wp-block-navigation__container { gap: 1rem; } .site-nav { font-size: .925rem; } }
.site-nav a { text-decoration: none; color: var(--wp--preset--color--ink); }
.site-nav a:hover { color: var(--wp--preset--color--blue); }
.site-header__cta { flex-shrink: 0; gap: .5rem; }
.site-header__cta .wp-block-button__link { padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 1080px) { .site-header__cta .is-style-outline { display: none; } }
@media (max-width: 781px) {
	.site-header__cta .wp-block-button__link { padding: .55rem 1rem; font-size: .9rem; }
	.topbar__inner { justify-content: center !important; text-align: center; }
	.topbar__hours { font-size: .78rem; }
	.topbar__contact { display: none; }
}

/* Side gutters for full and wide sections inside the main column */
main.wp-block-group > .alignfull { padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }

/* Shared section styles */
.section { padding-block: var(--wp--preset--spacing--60); }
.section--mist { background: var(--wp--preset--color--mist); }
.section--navy { background: var(--wp--preset--color--navy); color: #fff; }
.section--navy :where(h2, h3) { color: #fff; }
.section__head { text-align: center; margin-bottom: var(--wp--preset--spacing--50); }
.section__head > * { margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--blue); margin-bottom: .5rem; }
.hl { position: relative; isolation: isolate; white-space: nowrap; color: var(--wp--preset--color--blue); }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; border-radius: 99px; background: var(--wp--preset--color--sun); z-index: -1; transform-origin: left; animation: hl-in .9s .3s var(--g-ease) both; }
@keyframes hl-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stars { color: var(--wp--preset--color--sun); letter-spacing: .08em; }

/* Hero: full-screen cover. Add a background video from the Cover block's media button. */
.hero-cover { color: #fff; overflow: hidden; isolation: isolate;
	background: radial-gradient(900px 600px at 80% 20%, #0089FF 0%, transparent 60%), radial-gradient(700px 500px at 10% 90%, #0070D9 0%, transparent 55%), #0B3F93;
	background-size: 140% 140%; animation: drift 18s ease-in-out infinite alternate; padding-block: var(--wp--preset--spacing--60); }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.hero-cover .wp-block-cover__inner-container { width: 100%; }
.hero-cover__cols { gap: clamp(1.5rem, 5vw, 4rem) !important; }
.hero-cover__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 1.5rem; animation: rise .9s var(--g-ease) both; }
.hero-cover .hl { color: #7CC0FF; }
.triad { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: .02em; color: #D6E6FF; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.triad span { opacity: 0; animation: rise .8s var(--g-ease) forwards; }
.triad span:nth-child(1) { animation-delay: .5s; }
.triad span:nth-child(2) { animation-delay: .8s; }
.triad span:nth-child(3) { animation-delay: 1.1s; }
.triad span + span::before { content: ""; display: inline-block; width: .4em; height: .4em; border-radius: 50%; background: var(--wp--preset--color--sun); margin-right: 1.1rem; vertical-align: middle; }
.hero-smile { margin: 0; }
.hero-smile img { width: min(100%, 460px); margin-inline: auto; display: block; animation: rise 1.2s .2s var(--g-ease) both; }
.hero-smile { position: relative; }
.hero-smile.is-3d img { display: none; }
.showpiece-canvas { display: block; width: min(100%, 520px) !important; height: auto !important; aspect-ratio: 1; margin-inline: auto; animation: rise 1s var(--g-ease) both; }
@media (max-width: 781px) { .showpiece-canvas { width: 240px !important; } }
.scroll-cue { text-align: center; margin: var(--wp--preset--spacing--50) 0 0 !important; }
.scroll-cue a { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; }
.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 781px) {
	.hero-cover { min-height: 78svh !important; }
	.hero-cover__art { order: -1; }
	.hero-smile img { width: 180px; }
	.triad span + span::before { margin-right: .7rem; }
}

/* "What brings you in?" picker */
.picker__grid { gap: 1.25rem !important; }
.choice { position: relative; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); overflow: hidden; box-shadow: var(--g-shadow); transition: transform .35s var(--g-ease), box-shadow .35s; }
.choice:hover, .choice:focus-within { transform: translateY(-6px); box-shadow: var(--g-shadow-lift); }
.choice__photo { margin: 0; overflow: hidden; }
.choice__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--g-ease); }
.choice:hover .choice__photo img { transform: scale(1.05); }
.choice__title { margin: 1.1rem 1.25rem .35rem; font-size: 1.2rem; }
.choice__title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.choice__title a::after { content: ""; position: absolute; inset: 0; }
.choice__title a::before { content: "→"; float: right; color: var(--wp--preset--color--blue); transition: transform .25s var(--g-ease); }
.choice:hover .choice__title a::before { transform: translateX(4px); }
.choice p { margin: 0 1.25rem 1.25rem; color: var(--wp--preset--color--muted); font-size: .975rem; }
@media (max-width: 781px) {
	.picker__grid { grid-template-columns: 1fr 1fr !important; gap: .75rem !important; }
	.choice__title { margin: .75rem .85rem .85rem; font-size: 1rem; }
	.choice__title a::before { display: none; }
	.choice p { display: none; }
}

/* Services: two rows drifting in opposite directions */
.services { overflow: hidden; }
.marquee { gap: .75rem !important; width: max-content !important; max-width: none !important; margin-block: 0 .75rem !important; animation: marquee 48s linear infinite; }
.marquee--reverse { animation-direction: reverse; }
.services:hover .marquee, .marquee:focus-within { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.service-link { margin: 0; flex-shrink: 0; }
.service-link a { display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1rem 1.35rem; text-decoration: none; color: var(--wp--preset--color--navy); font-weight: 650; white-space: nowrap; transition: border-color .2s, box-shadow .2s, background .2s; }
.service-link a:hover { border-color: var(--wp--preset--color--blue); box-shadow: var(--g-shadow); }
.service-link img { width: 26px; height: 26px; }
.services__all { text-align: center; margin-top: var(--wp--preset--spacing--40) !important; font-weight: 700; }
.services__all a { text-decoration: none; }
@media (max-width: 781px) { .service-link a { padding: .7rem 1rem; font-size: .9rem; } .service-link img { width: 22px; height: 22px; } .topbar__more { display: none; } }
@media (prefers-reduced-motion: reduce) { .marquee { width: auto !important; flex-wrap: wrap !important; justify-content: center; } }

/* Dr Sonia */
.sonia__cols { gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: center !important; }
.sonia__photo { margin: 0; }
.sonia__photo img { border-radius: 120px 28px 28px 28px; box-shadow: var(--g-shadow-lift); width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.langs { font-weight: 700; color: var(--wp--preset--color--navy); letter-spacing: .01em; }
.sonia__quote { border-left: 4px solid var(--wp--preset--color--sun); padding-left: 1.25rem; margin-block: 1.5rem; font-size: 1.15rem; color: var(--wp--preset--color--navy); }
.sonia__quote cite { display: block; font-size: .875rem; font-style: normal; color: var(--wp--preset--color--muted); margin-top: .25rem; }

/* Steps */
.steps { gap: 0 !important; align-items: stretch; }
.step { flex: 1 1 0; min-width: 12rem; max-width: 17rem; text-align: center; padding: 0 1.75rem; position: relative; }
.step + .step::before { content: "→"; position: absolute; left: -.6rem; top: .55rem; font-size: 1.5rem; color: var(--wp--preset--color--sun); }
.step__num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--sky); color: #fff; font-weight: 800; font-size: 1.15rem; margin: 0 auto 1rem; box-shadow: 0 0 0 8px rgba(0, 137, 255, .18); }
.step h3 { margin: 0 0 .4rem; }
.step p:last-child { margin: 0; color: #D6E3FA; }
@media (max-width: 781px) {
	.steps { flex-direction: column; align-items: center; gap: 2.25rem !important; }
	.step { max-width: 20rem; }
	.step + .step::before { content: "↓"; left: 50%; top: -2.1rem; transform: translateX(-50%); }
}

/* Reviews */
.review-grid { gap: 1rem !important; }
.review { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); padding: 1.5rem; box-shadow: var(--g-shadow); }
.review p { margin: 0 0 .75rem; }
.review__name { font-weight: 700; color: var(--wp--preset--color--navy); font-size: .9rem; margin: 0 !important; }
.rating { color: var(--wp--preset--color--muted); }
.reviews__more { text-align: center; margin-top: var(--wp--preset--spacing--40) !important; font-weight: 700; }

/* Payments */
.pay-logos { gap: 1rem !important; }
.pay-logo { margin: 0; }
.pay-logo img { width: 116px; height: 74px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(13, 71, 161, .08), 0 4px 12px rgba(13, 71, 161, .06); transition: transform .25s var(--g-ease); }
.pay-logo img:hover { transform: translateY(-3px); }
@media (max-width: 781px) { .pay-logos { gap: .6rem !important; } .pay-logo img { width: 92px; height: 58px; } }

/* Visit */
.visit .wp-block-columns { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
.visit__line { padding-left: 2.25rem; background: no-repeat left .1rem / 1.4rem; }
.visit__line--pin { background-image: url(assets/icons/pin.svg); }
.visit__line--phone { background-image: url(assets/icons/chat.svg); }
.visit__line--clock { background-image: url(assets/icons/clock.svg); }
.visit__line a { font-weight: 700; }
.visit__map { margin: 0; }
.visit__map img { border-radius: var(--g-radius); width: 100%; box-shadow: var(--g-shadow); }

/* Footer */
.site-footer { background: #0B3478; color: #C9D6EE; padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.site-footer__cols { max-width: var(--wp--style--global--wide-size) !important; gap: 2rem !important; }
.hours-table { margin: 0; }
.hours-table table { border-collapse: collapse; width: 100%; font-size: .925rem; }
.hours-table td { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .35rem 0; }
.hours-table td:last-child { text-align: right; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer__legal { max-width: var(--wp--style--global--wide-size) !important; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.25rem; margin-top: 2.5rem !important; font-size: .85rem; }

/* Block styles from the Styles panel */
.motion-ready .is-style-fade-up:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.motion-ready .is-style-slide-in:not(.is-visible) { opacity: 0; transform: translateX(-32px); }
.motion-ready :is(.is-style-fade-up, .is-style-slide-in) { transition: opacity .7s var(--g-ease), transform .7s var(--g-ease); }
.picker__grid > .is-style-fade-up:nth-child(2), .steps > .is-style-fade-up:nth-child(2) { transition-delay: .08s; }
.picker__grid > .is-style-fade-up:nth-child(3), .steps > .is-style-fade-up:nth-child(3) { transition-delay: .16s; }
.picker__grid > .is-style-fade-up:nth-child(4), .steps > .is-style-fade-up:nth-child(4) { transition-delay: .24s; }
.is-style-lift { transition: transform .3s var(--g-ease), box-shadow .3s; }
.is-style-lift:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-lift); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 3D tooth sits inside the hero badge: the badge art moves to the background when WebGL is running. */
.hero-smile.is-3d { background: url(assets/img/hero-badge-bg.svg) center / min(100%, 520px) no-repeat; }
@media (max-width: 781px) { .hero-smile.is-3d { background-size: 240px; } }

/* Mobile menu: full-screen panel with large tap targets. */
.site-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--wp--preset--color--ink); padding: 1.25rem clamp(1rem, 5vw, 2rem) 2rem; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; align-items: stretch !important; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; text-align: left; }
.site-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; flex-wrap: nowrap; gap: 0 !important; width: 100%; align-items: stretch !important; }
.site-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.site-nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 1rem 0 !important; font-size: 1.35rem; color: var(--wp--preset--color--navy); }
.site-nav .wp-block-navigation__responsive-container-close { top: 1.25rem; right: clamp(1rem, 5vw, 2rem); }
.site-nav .wp-block-navigation__responsive-container-open svg, .site-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* pan-y: vertical swipes still scroll the page on phones; sideways drags turn the tooth. */
.hero-smile .showpiece-canvas { cursor: grab; touch-action: pan-y; }
.hero-smile .showpiece-canvas.is-dragging { cursor: grabbing; }

/* ---------- Home hero: navy over a clinic photo, with a slow push-in ---------- */
.hero-buttons { gap: .75rem; margin-top: 2rem !important; }
.hero-buttons .wp-block-button__link { padding: .95rem 1.7rem; font-size: 1.05rem; }
.is-on-dark > .wp-block-button__link { color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; }
.is-on-dark > .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--navy) !important; }

.hero-photo { color: #fff; overflow: hidden; padding-block: var(--wp--preset--spacing--60); }
.hero-photo .wp-block-cover__inner-container { width: 100%; }
.hero-photo .wp-block-cover__image-background { animation: push-in 22s ease-out both; }
@keyframes push-in { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-photo .eyebrow { color: #9fd0ff; font-size: .9rem; }
.hero-photo .hero-cover__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 1rem; }
.hero-photo .hl { color: #7CC0FF; }
.hero-photo__sub { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; color: #fff; margin: 0 0 .9rem; animation: rise .9s .15s var(--g-ease) both; }
.hero-photo .triad { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; }
@media (max-width: 781px) {
	.hero-photo { background: #0A3B8C; min-height: 70svh !important; padding-top: 52vw !important; padding-bottom: 3rem !important; align-items: flex-end !important; }
	.hero-photo .wp-block-cover__image-background { height: 62vw !important; bottom: auto !important; object-position: 66% 30% !important; }
	.hero-photo .wp-block-cover__background { background: linear-gradient(180deg, rgba(10, 59, 140, 0) 0, rgba(10, 59, 140, .1) 38vw, #0A3B8C 62vw) !important; }
}

/* ---------- Inner pages: same navy photo banner, then readable content ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); background: #0A3B8C; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) right 30% / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 59, 140, .97) 0%, rgba(11, 63, 147, .88) 45%, rgba(13, 71, 161, .35) 100%); }
.page-hero__inner > * { margin-inline: 0 auto !important; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1rem; animation: rise .8s var(--g-ease) both; }
.page-hero__lede, .page-hero__lede p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: #E3EDFF; margin: 0; }
.page-hero__lede .wp-block-post-excerpt__more-text { display: none; }
.page-hero__date { color: #B9CEF5; font-size: .9rem; margin-top: 1rem; }
.page-hero .hero-buttons { margin-top: 1.75rem !important; }
.page-hero .hero-buttons .wp-block-button__link { padding: .8rem 1.5rem; font-size: 1rem; }
@media (max-width: 781px) {
	.page-hero::after { background: linear-gradient(180deg, rgba(10, 59, 140, .9), rgba(10, 59, 140, .97)); }
	.page-hero .hero-buttons { display: none; } /* The Call / Book bar is already fixed to the bottom on phones. */
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1.1rem; font-size: .85rem; color: #B9CEF5; }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; opacity: .7; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.entry-content { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); font-size: 1.075rem; line-height: 1.7; }
.entry-content > h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.6rem; margin-bottom: .8rem; }
.entry-content > h3 { font-size: 1.2rem; margin-top: 1.8rem; margin-bottom: .5rem; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content a:not(.wp-block-button__link) { color: var(--wp--preset--color--blue); text-underline-offset: .15em; }
.entry-content > ul, .entry-content > ol { padding-left: 0; list-style: none; }
.entry-content > ul > li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.entry-content > ul > li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--wp--preset--color--sky); box-shadow: 0 0 0 4px rgba(0, 137, 255, .14); }
.entry-content > ol { counter-reset: step; }
.entry-content > ol > li { counter-increment: step; position: relative; padding: .1rem 0 .1rem 3.1rem; margin-bottom: 1rem; min-height: 2.2rem; }
.entry-content > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: var(--wp--preset--color--navy); }
.entry-content > ol > li:not(:last-child)::after { content: ""; position: absolute; left: 1.08rem; top: 2.4rem; bottom: -.9rem; width: 2px; background: var(--wp--preset--color--line); }

/* FAQs */
.entry-content .wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff; margin-block: .6rem; transition: box-shadow .25s, border-color .25s; }
.entry-content .wp-block-details[open] { box-shadow: var(--g-shadow); border-color: transparent; }
.entry-content .wp-block-details summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; color: var(--wp--preset--color--navy); position: relative; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--wp--preset--color--blue); transition: transform .25s var(--g-ease); }
.entry-content .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.entry-content .wp-block-details > :not(summary) { margin: 0; padding: 0 1.2rem 1.1rem; }

/* Notes, alerts, cards */
.note, .alert { border-radius: 14px; padding: 1.1rem 1.3rem; margin-block: 1.5rem; }
.note { background: var(--wp--preset--color--mist); border-left: 4px solid var(--wp--preset--color--sky); }
.alert { background: #FFF4F2; border-left: 4px solid #C8372D; color: #5A1A14; }
.note > p, .alert > p { margin: 0; }
.note > p + p, .alert > p + p { margin-top: .6rem; }
.cards { gap: 1.1rem !important; margin-block: 1.5rem; }
.entry-content > .cards { max-width: 1040px !important; }
.card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); padding: 1.3rem 1.4rem; box-shadow: var(--g-shadow); position: relative; }
.card :where(h2, h3) { font-size: 1.12rem; margin: 0 0 .35rem; }
.card :where(h2, h3) a { color: var(--wp--preset--color--navy); text-decoration: none; }
.card :where(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.card :where(h2, h3) a::before { content: "→"; float: right; margin-left: .75rem; color: var(--wp--preset--color--blue); transition: transform .25s var(--g-ease); }
.card:hover :where(h2, h3) a::before { transform: translateX(4px); }
.card p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.entry-list { padding-block: var(--wp--preset--spacing--50); }
.entry-list .cards { list-style: none; padding: 0; }
.content-photo { margin-block: 1.5rem; }
.content-photo img { border-radius: var(--g-radius); box-shadow: var(--g-shadow); max-width: min(100%, 420px); height: auto; }
.entry-content .hero-buttons { margin-top: 1.5rem !important; }

.reviewed { max-width: var(--wp--style--global--content-size); margin: 0 auto var(--wp--preset--spacing--40) !important; font-size: .9rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; }
.reviewed a { color: inherit; }

/* Booking strip at the bottom of inner pages */
.cta-band { background: linear-gradient(120deg, #0B3F93, #1556B8); color: #fff; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem); margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60) !important; gap: 1.25rem 2rem; }
.cta-band__text { flex: 1 1 22rem; }
.cta-band__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #D6E6FF; }
.cta-band a:not(.wp-block-button__link) { color: #fff; font-weight: 700; }
.cta-band .hero-buttons { margin-top: 0 !important; }
.reviews__stars { font-size: 1.5rem; margin: 0 0 .25rem; }
.reviews .section__head { margin-bottom: 0; }
.reviews .wp-block-buttons { margin-top: 1.5rem; }

/* Hours table, map and contact form */
.hours-card { margin: 1.5rem 0; }
.hours-card table { width: 100%; max-width: 26rem; border-collapse: collapse; }
.hours-card caption { text-align: left; font-weight: 700; color: var(--wp--preset--color--navy); padding-bottom: .5rem; }
.hours-card th, .hours-card td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--wp--preset--color--line); font-weight: 400; }
.hours-card td { text-align: right; }
.map-card { margin-block: 1.5rem; }
.map-card img, .map-card iframe { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 0; border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.map-card__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: .9rem 0 0; }
.map-card__load { font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--wp--preset--color--navy); background: #fff; color: var(--wp--preset--color--navy); border-radius: 99px; padding: .55rem 1.1rem; }
.map-card__load:hover { background: var(--wp--preset--color--navy); color: #fff; }
.contact-form { background: var(--wp--preset--color--mist); border-radius: var(--g-radius); padding: clamp(1.1rem, 3vw, 1.75rem); margin-block: 1.5rem; }
.contact-form p { margin: 0 0 1rem; }
.contact-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--wp--preset--color--navy); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .75rem .9rem; border: 1px solid #B8C6DD; border-radius: 10px; background: #fff; color: var(--wp--preset--color--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(0, 137, 255, .35); border-color: var(--wp--preset--color--sky); }
.contact-form__trap { position: absolute; left: -9999px; }
.contact-form__note { font-size: .88rem; color: var(--wp--preset--color--muted); }
.contact-form__error { background: #FFF4F2; color: #5A1A14; border-left: 4px solid #C8372D; padding: .75rem 1rem; border-radius: 8px; }
.contact-form button { border: 0; cursor: pointer; }


/* =======================================================================
   ROUND 2 — Lumino-style refresh: mega menu, colour bands, alignment,
   geometry, team + offers grids, WhatsApp, rotating tooth.
   ======================================================================= */

:root { --col: 900px; --gut: clamp(1rem, 4vw, 2rem); }

/* ---- Subtle brand geometry so no page is flat white ---- */
body { position: relative; background: var(--wp--preset--color--white); }
body::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background: url(assets/img/geo/dots.svg) 0 0 / 46px 46px;
}

/* ---- One shared content width: hero, body, cards, bands, CTA all share an edge ---- */
.page-hero__inner { max-width: var(--col) !important; margin-inline: auto !important; }
.entry-content { padding-inline: 0 !important; }
.entry-content > :not(.alignfull):not(.band),
.entry-content > .reviewed,
.reviewed,
.cta-band {
	width: min(var(--col), 100% - 2 * var(--gut));
	max-width: none !important;
	margin-inline: auto !important;
}
.band > :not(.alignfull) {
	width: min(var(--col), 100% - 2 * var(--gut));
	margin-inline: auto !important;
}
.entry-content > .cards { max-width: none !important; }

/* ---- Colour bands (full-width tinted sections inside a page) ---- */
.band { padding-block: clamp(2.25rem, 5vw, 3.5rem); margin-block: clamp(2rem, 5vw, 3.25rem) 0; position: relative; }
.band + .cta-band, .band:last-child { margin-bottom: 0; }
.band--mist { background: var(--wp--preset--color--mist); }
.band--blue { background: linear-gradient(135deg, #EAF3FF 0%, #F4F9FF 100%); }
.band--navy { background: radial-gradient(1200px 500px at 85% -10%, #1C62C9 0%, transparent 55%), var(--wp--preset--color--navy); color: #fff; }
.band--navy :where(h2, h3, p, li, a) { color: #fff; }
.band--navy a { text-decoration: underline; }
.band > :first-child { margin-top: 0 !important; }
.band .wp-block-details { background: #fff; }
.band--navy .wp-block-details { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.band--navy .wp-block-details summary { color: #fff; }

/* ---- Page hero: add soft colour blobs + a wave foot ---- */
.page-hero::before { background: var(--hero-img) right 30% / cover no-repeat, #0A3B8C; }
.page-hero { padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(42px); opacity: .55; pointer-events: none; }
.page-hero::after { background: linear-gradient(90deg, rgba(10, 59, 140,.97) 0%, rgba(11, 63, 147,.86) 46%, rgba(13, 71, 161,.42) 100%); }
.page-hero { background-image: radial-gradient(520px 320px at 88% 20%, rgba(0,137,255,.55), transparent 70%), radial-gradient(420px 300px at 70% 120%, rgba(255,186,3,.18), transparent 70%); background-color: #0A3B8C; }
.page-hero > .griffin-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: clamp(28px, 4vw, 54px); width: 100%; display: block; }

/* ---- Team grid ---- */
.team-grid { gap: 1.1rem !important; margin-block: .5rem; }
.band .team-grid, .entry-content > .team-grid { width: min(var(--col), 100% - 2 * var(--gut)); margin-inline: auto !important; }
.team-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); padding: 1.5rem 1rem; text-align: center; box-shadow: var(--g-shadow); transition: transform .3s var(--g-ease), box-shadow .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-lift); }
.team-card__avatar { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: .02em; }
.team-card__avatar--a { background: linear-gradient(135deg, #0089FF, #0D47A1); }
.team-card__avatar--b { background: linear-gradient(135deg, #0070D9, #0B3F93); }
.team-card__avatar--c { background: linear-gradient(135deg, #22a3ff, #0062c0); }
.team-card__avatar--d { background: linear-gradient(135deg, #1C62C9, #0D47A1); }
.team-card__avatar--e { background: linear-gradient(135deg, #0089FF, #1C62C9); }
.team-card__avatar--f { background: linear-gradient(135deg, #1f7ae0, #0B3F93); }
.team-card__name { font-weight: 750; color: var(--wp--preset--color--navy); margin: 0 0 .15rem; font-size: 1.05rem; }
.team-card__name a { color: inherit; text-decoration: none; }
.team-card__name a:hover { color: var(--wp--preset--color--blue); }
.team-card__role { margin: 0; color: var(--wp--preset--color--muted); font-size: .9rem; }

/* ---- Offers grid ---- */
.offers-grid { gap: 1.1rem !important; margin-block: .5rem; }
.band .offers-grid, .entry-content > .offers-grid { width: min(var(--col), 100% - 2 * var(--gut)); margin-inline: auto !important; }
.offer-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); padding: 1.5rem 1.4rem; box-shadow: var(--g-shadow); position: relative; transition: transform .3s var(--g-ease), box-shadow .3s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-lift); }
.offer-card__icon { width: 54px; height: 54px; border-radius: 15px; background: var(--wp--preset--color--mist) no-repeat center / 30px 30px; margin-bottom: .9rem; }
.offer-card__icon--winz { background-image: url(assets/img/offer/winz.svg); }
.offer-card__icon--acc { background-image: url(assets/img/offer/acc.svg); }
.offer-card__icon--child { background-image: url(assets/img/offer/child.svg); }
.offer-card__icon--card { background-image: url(assets/img/offer/card.svg); }
.offer-card__title { font-weight: 750; color: var(--wp--preset--color--navy); margin: 0 0 .35rem; font-size: 1.1rem; }
.offer-card__title a { color: inherit; text-decoration: none; }
.offer-card__title a:hover { color: var(--wp--preset--color--blue); }
.offer-card__desc { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; line-height: 1.5; }
.band--blue .offer-card, .band--blue .team-card { border-color: #d7e8fd; }

/* ---- Offers ribbon above footer ---- */
.offer-ribbon { background: var(--wp--preset--color--navy); color: #fff; }
.offer-ribbon__inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; padding: 1rem var(--gut); }
.offer-ribbon__pill { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 650; font-size: .95rem; }
.offer-ribbon__pill:hover { color: var(--wp--preset--color--sun); }
.offer-ribbon__ic { width: 26px; height: 26px; border-radius: 7px; background: #fff no-repeat center / 17px 17px; }
.offer-ribbon__ic--winz { background-image: url(assets/img/offer/winz.svg); }
.offer-ribbon__ic--acc { background-image: url(assets/img/offer/acc.svg); }
.offer-ribbon__ic--child { background-image: url(assets/img/offer/child.svg); }
.offer-ribbon__ic--card { background-image: url(assets/img/offer/card.svg); }
@media (max-width: 600px) { .offer-ribbon__inner { gap: .5rem 1.1rem; } .offer-ribbon__pill { font-size: .82rem; } }

/* ---- Footer brand + rotating tooth ---- */
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-brand .footer-title { margin-bottom: .25rem; }
.footer-brand p { margin: 0; }
.footer-tooth { width: 72px; height: 72px; flex-shrink: 0; }
.footer-tooth .showpiece-canvas { width: 72px !important; height: 72px !important; }

/* ---- Home hero floating tooth ---- */
.hero-tooth { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; z-index: 3; }
.hero-tooth .showpiece-canvas { width: 300px !important; height: 300px !important; }
@media (max-width: 1024px) { .hero-tooth { display: none; } }

/* ---- WhatsApp floating button ---- */
.wa-float {
	position: fixed; right: max(1rem, env(safe-area-inset-right, 0)); bottom: 1.1rem; z-index: 65;
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { display: block; }
@media (max-width: 781px) { .wa-float { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; } }

/* =======================================================================
   v2.1 — Built-in Navigation menu styled as mega menu + compact dropdowns
   ======================================================================= */
.site-header__inner { display: flex; flex-wrap: nowrap !important; align-items: center; }
.site-logo { flex-shrink: 0; }
.site-nav { flex: 1 1 auto; justify-content: flex-end; }
.site-nav .wp-block-navigation__container { gap: .25rem !important; }
.site-nav .wp-block-navigation-item__content { padding: .55rem .7rem; border-radius: 10px; }

@media (min-width: 1025px) {
	/* Panels: hidden with visibility/opacity (not size), so a short close delay works. */
	.site-nav .wp-block-navigation__submenu-container {
		visibility: hidden; opacity: 0; width: auto !important; height: auto !important; overflow: visible !important;
		transition: opacity .15s ease, visibility 0s linear .25s; pointer-events: none;
		background: #fff !important; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 16px;
		box-shadow: var(--g-shadow-lift); padding: .5rem !important; min-width: 250px !important; z-index: 60;
	}
	.site-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.site-nav .has-child:focus-within > .wp-block-navigation__submenu-container {
		visibility: visible; opacity: 1; transition-delay: 0s; pointer-events: auto;
	}
	/* Invisible bridge so the mouse can travel from the item to the panel without closing it. */
	.site-nav .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; }
	.site-nav .has-child:hover > .wp-block-navigation-item__content { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--blue); }

	/* Compact dropdowns (Offers, About): a small card right under the item. */
	.site-nav .wp-block-navigation__container > .has-child:not(.is-mega) > .wp-block-navigation__submenu-container { position: absolute !important; top: calc(100% + 8px) !important; left: 0 !important; }
	.site-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { white-space: nowrap; }
	.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; padding: .55rem .8rem !important; font-weight: 550; color: var(--wp--preset--color--navy); border-radius: 10px; white-space: nowrap; }
	.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--blue); }

	/* Mega panel (Treatments): spans the header, three columns. */
	.site-header__inner { position: relative; }
	.site-nav li.is-mega, .site-nav, .site-nav .wp-block-navigation__responsive-container, .site-nav .wp-block-navigation__responsive-close, .site-nav .wp-block-navigation__responsive-dialog, .site-nav .wp-block-navigation__responsive-container-content, .site-nav .wp-block-navigation__container { position: static !important; }
	.site-nav li.is-mega > .wp-block-navigation__submenu-container {
		position: absolute !important; left: 0 !important; right: 0 !important; top: calc(100% + 6px) !important;
		display: grid !important; grid-template-columns: repeat(3, 1fr); gap: .25rem 2rem; padding: 1.5rem 1.75rem !important;
	}
	.site-nav .is-mega .mega-col { display: block; }
	.site-nav .is-mega .mega-col > .wp-block-navigation-item__content {
		text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 800; color: var(--wp--preset--color--blue);
		padding: .2rem .8rem .5rem !important; background: none !important; pointer-events: none;
	}
	.site-nav .is-mega .mega-col > .wp-block-navigation__submenu-icon { display: none; }
	.site-nav .is-mega .mega-col > .wp-block-navigation__submenu-container {
		position: static !important; visibility: inherit; opacity: 1; pointer-events: inherit; border: 0 !important; box-shadow: none; padding: 0 !important; min-width: 0 !important; background: none !important; transition: none;
	}
	.site-nav .is-mega .mega-col > .wp-block-navigation__submenu-container::before { display: none; }
	.site-nav .is-mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--wp--preset--color--line); margin-top: .75rem; padding-top: .5rem; }
	.site-nav .is-mega .mega-all > .wp-block-navigation-item__content { color: var(--wp--preset--color--blue) !important; font-weight: 700; }
}

/* Tablet and phone: hamburger + core full-screen panel (it has its own close button). */
@media (max-width: 1024px) {
	.site-header__cta { display: none !important; }
	.site-nav { flex: 0 0 auto; margin-left: auto; }
	.site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.site-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.site-nav .wp-block-navigation__responsive-container-open {
		align-items: center; gap: .4rem; background: var(--wp--preset--color--navy); color: #fff; border-radius: 12px; padding: .55rem .85rem;
	}
	.site-nav .wp-block-navigation__responsive-container-open svg { width: 24px !important; height: 24px !important; fill: #fff; }
	.site-nav .wp-block-navigation__responsive-container-open::after { content: "Menu"; font-weight: 700; font-size: 1rem; }

	/* Close button: big, always visible top-right. */
	.site-nav .wp-block-navigation__responsive-container-close {
		position: fixed !important; top: 1rem !important; right: 1rem !important; z-index: 2;
		width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
		background: var(--wp--preset--color--mist); color: var(--wp--preset--color--navy);
	}
	.site-nav .wp-block-navigation__responsive-container-close svg { width: 26px !important; height: 26px !important; }

	/* Panel content: top level as large rows, sub-levels as compact lists. */
	.site-nav .is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .75rem .25rem !important; border: 0 !important; gap: 0 !important; }
	.site-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0 !important; }
	.site-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.02rem !important; padding: .4rem 0 !important; font-weight: 550; }
	.site-nav .is-menu-open .mega-col > .wp-block-navigation-item__content {
		text-transform: uppercase; letter-spacing: .08em; font-size: .74rem !important; font-weight: 800; color: var(--wp--preset--color--blue) !important; padding-top: .9rem !important; pointer-events: none;
	}
	.site-nav .is-menu-open .mega-all > .wp-block-navigation-item__content { color: var(--wp--preset--color--blue) !important; font-weight: 700; }
	.site-nav .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
}

/* ---- v2.1: free-services cards above the footer ---- */
.free-services { background: linear-gradient(135deg, #0D47A1 0%, #1C62C9 60%, #0070D9 100%); color: #fff; position: relative; overflow: hidden; }
.free-services::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.free-services__inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gut); position: relative; text-align: center; }
.free-services .eyebrow { color: #9fd0ff; }
.free-services__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 2rem; }
.free-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.fs-card { display: flex; flex-direction: column; gap: .45rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 1.5rem 1.35rem; color: #fff; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s var(--g-ease), background .3s; }
.fs-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.18); }
.fs-card__icon { width: 56px; height: 56px; border-radius: 16px; background: #fff no-repeat center / 32px 32px; margin-bottom: .5rem; }
.fs-card__icon--winz { background-image: url(assets/img/offer/winz.svg); }
.fs-card__icon--acc { background-image: url(assets/img/offer/acc.svg); }
.fs-card__icon--child { background-image: url(assets/img/offer/child.svg); }
.fs-card__icon--card { background-image: url(assets/img/offer/card.svg); }
.fs-card__icon--denture, .offer-card__icon--denture { background-image: url(assets/img/offer/denture.svg); }
.fs-card__icon--align, .offer-card__icon--align { background-image: url(assets/img/offer/align.svg); }
.fs-card__title { font-weight: 750; font-size: 1.15rem; }
.fs-card__text { color: #D6E6FF; font-size: .95rem; line-height: 1.5; flex: 1; }
.fs-card__more { color: var(--wp--preset--color--sun); font-weight: 700; font-size: .92rem; margin-top: .35rem; }
@media (max-width: 960px) { .free-services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .free-services__grid { grid-template-columns: 1fr; } .fs-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .9rem; } .fs-card__icon { margin: 0; width: 48px; height: 48px; } .fs-card__title { flex: 1; } .fs-card__text, .fs-card__more { flex-basis: 100%; } }

/* ---- v2.1: payment logos smaller and uniform ---- */
.pay-logos { gap: .6rem !important; }
.pay-logo, .pay-logo img { width: 84px !important; height: 54px !important; }
.pay-logo img { object-fit: contain; border-radius: 8px; }
@media (max-width: 781px) { .pay-logos { gap: .45rem !important; } .pay-logo, .pay-logo img { width: 70px !important; height: 45px !important; } }

/* ---- v2.1: real map ---- */
.visit .map-card { margin: 0; }
.visit .map-card iframe { aspect-ratio: 4 / 3.2; }
.map-card__actions a.map-card__load { text-decoration: none; display: inline-block; }

/* ---- v2.1: photos on cards ---- */
.card { overflow: hidden; display: flex; flex-direction: column; }
.card__photo { margin: -1.3rem -1.4rem 1rem !important; }
.card__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .6s var(--g-ease); }
.card:hover .card__photo img { transform: scale(1.05); }

/* ---- v2.1: square photo in the page banner (desktop) ---- */
@media (min-width: 900px) {
	.page-hero__inner:has(.page-hero__photo) { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 3rem; align-items: center; }
	.page-hero__inner:has(.page-hero__photo) > * { grid-column: 1; }
	.page-hero__inner > .page-hero__photo, .page-hero__inner .page-hero__photo { grid-column: 2; grid-row: 1 / span 6; margin: 0 !important; }
}
.page-hero__photo { margin: 0; }
.page-hero__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px 28px 28px 110px; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 20px 50px rgba(0,0,0,.3); display: block; animation: rise .9s .2s var(--g-ease) both; }
@media (max-width: 899px) { .page-hero__photo { display: none; } }

/* ---- v2.1: wave spans the full width and takes the next section's colour ---- */
.page-hero { --wave: #fff; }
.page-hero:has(+ .entry-content > .band--mist:first-child) { --wave: var(--wp--preset--color--mist); }
.page-hero:has(+ .entry-content > .band--blue:first-child) { --wave: #EAF3FF; }
.page-hero:has(+ .entry-content > .band--navy:first-child) { --wave: var(--wp--preset--color--navy); }
.page-hero > .griffin-wave { position: absolute !important; left: 0 !important; right: 0 !important; bottom: -1px; width: 100% !important; max-width: none !important; margin: 0 !important; color: var(--wave); }
.page-hero > .griffin-wave path { fill: currentColor; }
.entry-content > .band:first-child { margin-top: 0; }

/* ---- v2.1: bigger tooth ---- */
.hero-tooth { width: 420px; height: 420px; right: 3%; }
.hero-tooth .showpiece-canvas { width: 420px !important; height: 420px !important; }
@media (max-width: 1280px) { .hero-tooth { width: 340px; height: 340px; } .hero-tooth .showpiece-canvas { width: 340px !important; height: 340px !important; } }
@media (max-width: 1024px) {
	.hero-tooth { display: block; width: 170px; height: 170px; right: 2%; top: 22vw; transform: none; }
	.hero-tooth .showpiece-canvas { width: 170px !important; height: 170px !important; }
}
.footer-tooth { width: 120px; height: 120px; }
.footer-tooth .showpiece-canvas { width: 120px !important; height: 120px !important; }
@media (max-width: 781px) {
	.footer-brand { flex-direction: column; align-items: flex-start; gap: .25rem; }
	.footer-tooth { width: 130px; height: 130px; margin-left: -12px; }
	.footer-tooth .showpiece-canvas { width: 130px !important; height: 130px !important; }
}

/* ---- v2.1: mobile header row + hero buttons clear of the bottom bar ---- */
@media (max-width: 781px) {
	.site-header { padding-block: .6rem; }
	.site-header__inner { gap: .75rem; }
	.site-logo img { width: 132px; }
	.hero-photo { padding-bottom: 4.5rem !important; }
}

/* Open mobile menu sits above the bottom bar and WhatsApp button. */
html.has-modal-open .wa-float { display: none !important; }
@media (max-width: 1024px) { .hero-tooth { top: 4vw; width: 130px; height: 130px; } .hero-tooth .showpiece-canvas { width: 130px !important; height: 130px !important; } }
/* Band content uses the same 900px column as the rest of the page (WordPress caps it at 760px otherwise). */
.band > :not(.alignfull) { max-width: none !important; }
.page-hero + .entry-content { margin-block-start: 0 !important; }
.entry-content:has(> .band:first-child) { padding-top: 0 !important; }
/* Cards: four across on desktop, two on phones. */
.cards { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)) !important; }
@media (max-width: 400px) { .cards .card p { font-size: .88rem; } }
/* Footer brand: tooth above the name so the text isn't squeezed. */
.footer-brand { flex-direction: column; align-items: flex-start; gap: .25rem; }
.footer-tooth { margin-left: -14px; }
.reviews-feed { width: min(var(--wp--style--global--wide-size), 100%); margin: 2rem auto 0; }

/* v2.2: snappier hover. Menus open instantly; cards react in ~0.2s. */
@media (min-width: 1025px) {
	.site-nav.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		transition: opacity .12s ease, visibility 0s linear .15s !important;
	}
	.site-nav.wp-block-navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container {
		transition: opacity .1s ease, visibility 0s !important;
	}
	.site-nav.wp-block-navigation .is-mega .mega-col > .wp-block-navigation__submenu-container { transition: none !important; }
}
.site-nav .wp-block-navigation-item__content { transition: background-color .1s, color .1s; }
/* Once a card has faded in, drop the slow scroll-in timing (and its stagger delay) so hover is immediate. */
.motion-ready :is(.is-style-fade-up, .is-style-slide-in).is-settled {
	transition: transform .2s var(--g-ease), box-shadow .2s, opacity .2s !important; transition-delay: 0s !important;
}
:is(.choice, .card, .team-card, .offer-card, .fs-card, .is-style-lift):not(.is-style-fade-up, .is-style-slide-in), .pay-logo img, .service-link a { transition-duration: .2s !important; transition-delay: 0s !important; }
.choice__photo img, .card__photo img { transition: transform .3s var(--g-ease) !important; }
.choice__title a::before, .card :where(h2, h3) a::before { transition: transform .15s var(--g-ease) !important; }
.card { transition: transform .2s var(--g-ease), box-shadow .2s; }
.card:hover { box-shadow: var(--g-shadow-lift); }
/* v2.3: portrait photo on a landscape card keeps the face in frame. */
.card__photo img[src*="photo-sonia"], .page-hero__photo img[src*="photo-sonia"] { object-position: 50% 18%; }
/* v2.4: real team photos on the team cards. */
.team-card:has(.team-card__photo) { padding: 0 0 1.25rem; overflow: hidden; }
.team-card__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 0 1rem; background: var(--wp--preset--color--mist); }
.team-card:has(.team-card__photo) :is(.team-card__name, .team-card__role) { padding-inline: 1rem; }
h2[id], h3[id] { scroll-margin-top: 7rem; }

/* ---- v2.5 ---- */
/* Smart header: sticks once the top bar has scrolled away, hides on scroll down, returns on scroll up. */
header.smart-header { position: sticky; top: calc(-1 * var(--topbar-h, 0px)); z-index: 60; transition: transform .3s var(--g-ease); }
header.smart-header .site-header { position: relative; top: auto; }
header.smart-header.is-hidden { transform: translateY(-100%); }
html.has-modal-open header.smart-header { transform: none; }
.admin-bar header.smart-header { top: calc(32px - var(--topbar-h, 0px)); }

/* Team: each bio is its own card; the whole photo card links to it. */
.bio-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--g-radius); box-shadow: var(--g-shadow); padding: clamp(1.25rem, 3vw, 2rem) !important; margin-block: 1.25rem !important; scroll-margin-top: 6rem; }
.bio-card > :first-child { margin-top: 0; }
.bio-card > :last-child { margin-bottom: 0; }
.bio-card:target { border-color: var(--wp--preset--color--blue); box-shadow: 0 0 0 3px rgba(0, 112, 217, .15), var(--g-shadow); }
.entry-content > .bio-card { width: min(var(--col), 100% - 2 * var(--gut)); max-width: none !important; margin-inline: auto !important; }
a.team-card { display: block; text-decoration: none; color: inherit; }
a.team-card:hover .team-card__name, a.team-card:focus-visible .team-card__name { color: var(--wp--preset--color--blue); }
.team-card__photo { transition: transform .35s var(--g-ease); }
a.team-card:hover .team-card__photo { transform: scale(1.03); }
.team-card__more { display: block; margin-top: .55rem; font-size: .85rem; font-weight: 700; color: var(--wp--preset--color--blue); padding-inline: 1rem; }

/* Floating tooth: a soft glass disc behind it so it stands out. */
.hero-tooth::before, .footer-tooth::before {
	content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1; pointer-events: none;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 60%, rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.footer-tooth { position: relative; isolation: isolate; }
.hero-tooth { isolation: isolate; }

/* ---- v2.6 ---- */
/* Still tooth shows straight away; the 3D one fades in over it when ready (and it's the fallback without WebGL). */
.hero-tooth::after, .footer-tooth::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: url(assets/img/tooth-still.webp) center / 100% no-repeat;
	transition: opacity .5s ease;
}
.hero-tooth.is-3d::after, .footer-tooth.is-3d::after { opacity: 0; }
.hero-tooth .showpiece-canvas, .footer-tooth .showpiece-canvas { position: relative; z-index: 1; animation: tooth-in .5s ease both; }
@keyframes tooth-in { from { opacity: 0; } to { opacity: 1; } }
/* Scroll-in animations: shorter, so content never feels late. */
.motion-ready :is(.is-style-fade-up, .is-style-slide-in) { transition-duration: .45s; }
.motion-ready .is-style-fade-up:not(.is-visible) { transform: translateY(16px); }

/* ---- v2.8 ---- */
/* Mobile: the tooth sits on the photo (bottom-right of it), clear of the title. */
@media (max-width: 781px) {
	.hero-photo .wp-block-cover__inner-container { position: static; }
	.hero-photo .hero-tooth { top: calc(52vw - 148px); right: 4vw; width: 116px; height: 116px; }
	.hero-photo .hero-tooth .showpiece-canvas { width: 116px !important; height: 116px !important; }
}
.reviews-feed:empty { display: none; }

/* ---- v2.10 ---- */
/* Top banner: slow marquee of the three opening messages, with wide spacing. */
.topbar__inner { flex-wrap: nowrap !important; align-items: center; }
.topbar__ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.topbar__contact { flex: none; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__group { display: flex; flex: none; }
.ticker__group > span { color: var(--wp--preset--color--sun); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; padding-right: clamp(2.5rem, 7vw, 6rem); }
.ticker__group > span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fd0ff; margin-left: clamp(2.5rem, 7vw, 6rem); }
.topbar:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 782px) { .topbar__ticker { max-width: 62%; } }
@media (max-width: 781px) { .topbar__ticker { font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; width: auto; justify-content: center; }
	.ticker__group:not(:first-child) { display: none; }
	.topbar__ticker { -webkit-mask-image: none; mask-image: none; }
}

/* Home: "What sets us apart" */
.apart .section__head { text-align: center; margin-bottom: 2rem; }
.apart .section__head p:not(.eyebrow) { color: #D6E6FF; }
.apart .eyebrow { color: #9fd0ff; }
.apart__grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(3, auto); gap: 1rem; max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.apart-card { display: grid; grid-template-columns: 150px 1fr; background: #fff; color: var(--wp--preset--color--navy); border-radius: var(--g-radius); overflow: hidden; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transition: transform .2s var(--g-ease), box-shadow .2s; }
.apart-card:hover, .apart-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); }
.apart-card__photo { display: block; overflow: hidden; }
.apart-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--g-ease); }
.apart-card:hover .apart-card__photo img { transform: scale(1.05); }
.apart-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; }
.apart-card__title { font-size: 1.2rem; font-weight: 700; }
.apart-card__text { color: #3b4a6b; font-size: .95rem; line-height: 1.5; }
.apart-card__more { margin-top: auto; padding-top: .3rem; color: var(--wp--preset--color--blue); font-weight: 700; font-size: .95rem; }
.apart-card--feature { grid-row: 1 / span 3; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.apart-card--feature .apart-card__photo img { aspect-ratio: 16 / 10; height: auto; }
.apart-card--feature .apart-card__body { padding: 1.5rem 1.6rem 1.6rem; gap: .5rem; }
.apart-card--feature .apart-card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.apart-card--feature .apart-card__text { font-size: 1.05rem; }
.apart-card__tag { align-self: flex-start; color: var(--wp--preset--color--blue); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.apart-card__offer { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; padding: .75rem .9rem; border-radius: 12px; background: var(--wp--preset--color--mist); font-weight: 600; font-size: .95rem; }
.apart-card__offer::before { content: ""; flex: none; width: 28px; height: 28px; background: url(assets/img/offer/denture.svg) center / contain no-repeat; }
@media (max-width: 860px) {
	.apart__grid { grid-template-columns: 1fr; grid-template-rows: none; }
	.apart-card--feature { grid-row: auto; }
}
@media (max-width: 520px) { .apart-card:not(.apart-card--feature) { grid-template-columns: 108px 1fr; } .apart-card__body { padding: .9rem 1rem; } }

/* Hero: tooth sits beside "Open 7 days" on mobile, as part of the navy section. */
.hero-photo__row, .hero-photo__lines { margin: 0 !important; }
.hero-photo__row { margin-block-start: var(--wp--style--block-gap, 1.2rem) !important; }
@media (max-width: 781px) {
	.hero-photo__row { display: flex; align-items: center; gap: 12px; }
	.hero-photo__lines { flex: 1 1 auto; min-width: 0; }
	.hero-photo .hero-tooth { position: relative; top: auto; right: auto; transform: none; flex: none; width: 96px; height: 96px; }
	.hero-photo .hero-tooth .showpiece-canvas { width: 96px !important; height: 96px !important; }
}
@media (max-width: 400px) {
	.hero-photo__row { gap: 8px; }
	.hero-photo .hero-tooth { width: 76px; height: 76px; }
	.hero-photo .hero-tooth .showpiece-canvas { width: 76px !important; height: 76px !important; }
	.hero-photo .hero-photo__sub { font-size: 1.12rem; }
	.hero-photo .triad { font-size: .9rem; column-gap: .55rem; }
	.hero-photo .triad span + span::before { margin-right: .55rem; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- v2.11 ---- */
.fs-free { color: var(--wp--preset--color--sun); font-weight: 800; }
.free-services .eyebrow { color: var(--wp--preset--color--sun); font-size: .95rem; letter-spacing: .14em; }

/* ---- v2.12: lighter blue theme ---- */
/* Primary buttons on blue sections turn white so they stand out from the lighter background. */
:where(.hero-photo, .section--navy, .band--navy, .page-hero, .cta-band, .free-services) .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--navy) !important; }
:where(.hero-photo, .section--navy, .band--navy, .page-hero, .cta-band, .free-services) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #EAF3FF !important; }
/* Steps now sit on a light band, so the blue free-services band above has room to breathe. */
.steps-section .step p:last-child { color: var(--wp--preset--color--muted); }
.steps-section .step__num { background: var(--wp--preset--color--blue); box-shadow: 0 0 0 8px rgba(0, 112, 217, .14); }
.steps-section .step + .step::before { color: var(--wp--preset--color--blue); }
main > .free-services, main > .free-services + * { margin-block-start: 0 !important; }

/* ---- v2.13: one step lighter blue ---- */
/* Keep small yellow and light-blue text readable on the lighter blue. */
.topbar { background: #0D47A1; }
.hero-photo .eyebrow, .apart .eyebrow, .free-services .eyebrow:not(.fs-free) { color: #D9ECFF; }
.free-services .eyebrow { color: var(--wp--preset--color--sun); }
.hero-photo__sub .hl, .hero-photo__sub .hl a { color: #fff; }

/* ---- v2.16 ---- */
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; }
.site-credit { margin-left: auto; white-space: nowrap; }
.site-credit a { display: inline-flex; align-items: center; gap: .3em; margin-left: .3em; font-weight: 700; }
.site-credit img { width: 1.3em; height: 1.3em; display: block; }
.site-credit { display: inline-flex; align-items: center; }
@media (max-width: 781px) { .site-credit { margin-left: 0; flex-basis: 100%; margin-top: .4rem; } }

/* ---- v2.17: speed ---- */
/* Phones show the still tooth with a gentle float instead of loading the 3D model. */
@media (max-width: 781px) and (prefers-reduced-motion: no-preference) {
	.hero-tooth::after, .footer-tooth::after { animation: tooth-float 4.5s ease-in-out infinite; }
}
@keyframes tooth-float { 0%, 100% { transform: translateY(3%); } 50% { transform: translateY(-3%); } }
