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

:root {
	--g-radius: 18px;
	--g-shadow: 0 1px 2px rgba(1, 51, 136, .06), 0 8px 24px rgba(1, 51, 136, .08);
	--g-shadow-lift: 0 2px 4px rgba(1, 51, 136, .08), 0 18px 40px rgba(1, 51, 136, .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(1, 51, 136, .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%), #012A70;
	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(1, 51, 136, .08), 0 4px 12px rgba(1, 51, 136, .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: #0A1F4D; 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; }

/* Mobile action bar */
.mobile-bar { display: none !important; }
@media (max-width: 781px) {
	body { padding-bottom: 4.5rem; }
	.mobile-bar { display: flex !important; position: fixed; left: .5rem; right: .5rem; bottom: .5rem; z-index: 60; gap: .4rem !important; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: .4rem; box-shadow: 0 10px 30px rgba(1, 51, 136, .18); }
	.mobile-bar__item { flex: 1; margin: 0; }
	.mobile-bar__item a { display: block; text-align: center; padding: .8rem .25rem; border-radius: 13px; font-weight: 700; text-decoration: none; color: var(--wp--preset--color--navy); background: var(--wp--preset--color--mist); }
	.mobile-bar__item--primary { flex: 1.4; }
	.mobile-bar__item--primary a { background: var(--wp--preset--color--blue); color: #fff; }
}

/* Inner pages */
.page-main { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }

/* 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; }

.hero-smile .showpiece-canvas { cursor: grab; touch-action: none; }
.hero-smile .showpiece-canvas.is-dragging { cursor: grabbing; }
