/* =========================================================================
   MRI Dental Deco 1.0.0 -- the CSS theme.json cannot express.

   Design tokens (colors, type, spacing) live in theme.json; this file only holds layout, the chamfered frame, the
   header states and the few component rules blocks cannot carry. Every color is a --wp--preset--color--* variable, so a
   brand-color override (functions.php, palette filter) reaches everything.

   Contents
     1. Base and focus
     2. Buttons
     3. Ornaments: the chamfered frame, label tags, apothecary tags, eyebrow double rules
     4. Header (one row, three zones; overlay on the front page)
     5. Sections: hero, intro, services, doctor, visit, closing, inner hero, prose, posts
     6. Footer, Google profile, reviews
     7. Mobile sticky bar
     8. Motion (hero only) and reduced motion
   ========================================================================= */

/* -----------------------------------------------------------------------
   1. Base and focus
   -------------------------------------------------------------------- */
:root {
	--deco-line: var(--wp--preset--color--lilac);
	--deco-display: var(--wp--preset--font-family--display);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; } /* no horizontal scroll at any width (STANDARD rule 10); clip, unlike hidden, keeps sticky working */
.wp-site-blocks > * { margin-block: 0; }
[id] { scroll-margin-top: calc(var(--deco-header-h, 88px) + 16px); }
img { max-width: 100%; height: auto; }

/* Dark panels: headings, links and eyebrows follow the panel. */
:is(.has-night-background-color, .has-plum-background-color, .has-band-background-color, .has-band-alt-background-color, .has-primary-deep-background-color) :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--cream);
}
:is(.has-night-background-color, .has-plum-background-color, .has-band-background-color, .has-band-alt-background-color) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--cream);
}

/* Visible keyboard focus: plum on light, cream on dark panels (both well above 3:1). */
:where(a, button, summary, [tabindex]):focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--plum);
	outline-offset: 3px;
}
:is(.has-night-background-color, .has-plum-background-color, .has-band-background-color, .has-band-alt-background-color, .deco-footer, .deco-sticky-cta) :is(a, button, .wp-element-button):focus-visible,
.deco-header-part.is-overlay:not(.is-solid) :is(a, button):focus-visible {
	outline-color: var(--wp--preset--color--cream);
}

/* -----------------------------------------------------------------------
   2. Buttons: square, uppercase, tracked. Light-on-dark variant for night and plum panels.
   -------------------------------------------------------------------- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--button--height, 52px);
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.is-size-sm .wp-block-button__link { min-height: var(--wp--custom--button--height-sm, 44px); padding-inline: 1.35rem; }
.wp-block-button.is-style-on-dark .wp-block-button__link {
	background-color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--night);
}
.wp-block-button.is-style-on-dark .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--night);
}
.wp-block-button.is-style-outline.is-style-on-dark .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cream);
}
.wp-block-button.is-style-outline.is-style-on-dark .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--night);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--cream);
}
.wp-block-buttons { gap: 0.9rem 1rem; }

/* -----------------------------------------------------------------------
   3. Ornaments. The one decorative idea: a double line (two hairlines 3px apart) inside a chamfered shape.

   The shape is cut with clip-path (corners at 45 degrees, length --deco-cut). The double line is drawn by ::before and
   ::after, each an inset copy of the octagon with a ring-shaped clip-path (outer polygon + inner polygon, even-odd fill),
   so the line follows the diagonal corners. Both pseudo-elements sit INSIDE the clipped element, so the clip never
   removes them. For an inset box of --i from the edge the cut shrinks by 0.586 * i; the inner edge of a line of
   thickness --deco-w steps in by 0.414 * w along each diagonal.

   Used by: .deco-frame (photos and groups), .deco-label (tags), .deco-tag (apothecary labels), .deco-review.
   -------------------------------------------------------------------- */
.deco-frame, .is-style-deco-frame,
.deco-label, .is-style-deco-label,
.deco-tag, .deco-review, .deco-gprofile__map {
	--deco-cut: 22px;  /* chamfer length */
	--deco-in: 8px;    /* distance from the edge to the outer line */
	--deco-w: 1px;     /* line thickness */
	--deco-gap: 3px;   /* gap between the two lines */
	position: relative;
	box-sizing: border-box;
	clip-path: polygon(
		var(--deco-cut) 0, calc(100% - var(--deco-cut)) 0, 100% var(--deco-cut), 100% calc(100% - var(--deco-cut)),
		calc(100% - var(--deco-cut)) 100%, var(--deco-cut) 100%, 0 calc(100% - var(--deco-cut)), 0 var(--deco-cut)
	);
}
:is(.deco-frame, .is-style-deco-frame, .deco-label, .is-style-deco-label, .deco-tag, .deco-review, .deco-gprofile__map)::before,
:is(.deco-frame, .is-style-deco-frame, .deco-label, .is-style-deco-label, .deco-tag, .deco-review, .deco-gprofile__map)::after {
	--cp: calc(var(--deco-cut) - 0.586 * var(--i));
	--k: calc(0.414 * var(--deco-w));
	content: "";
	position: absolute;
	inset: var(--i);
	z-index: 2;
	pointer-events: none;
	background: var(--deco-line);
	clip-path: polygon(evenodd,
		var(--cp) 0, calc(100% - var(--cp)) 0, 100% var(--cp), 100% calc(100% - var(--cp)),
		calc(100% - var(--cp)) 100%, var(--cp) 100%, 0 calc(100% - var(--cp)), 0 var(--cp), var(--cp) 0,
		calc(var(--cp) + var(--k)) var(--deco-w), calc(100% - var(--cp) - var(--k)) var(--deco-w),
		calc(100% - var(--deco-w)) calc(var(--cp) + var(--k)), calc(100% - var(--deco-w)) calc(100% - var(--cp) - var(--k)),
		calc(100% - var(--cp) - var(--k)) calc(100% - var(--deco-w)), calc(var(--cp) + var(--k)) calc(100% - var(--deco-w)),
		var(--deco-w) calc(100% - var(--cp) - var(--k)), var(--deco-w) calc(var(--cp) + var(--k)),
		calc(var(--cp) + var(--k)) var(--deco-w)
	);
}
:is(.deco-frame, .is-style-deco-frame, .deco-label, .is-style-deco-label, .deco-tag, .deco-review, .deco-gprofile__map)::before { --i: var(--deco-in); }
:is(.deco-frame, .is-style-deco-frame, .deco-label, .is-style-deco-label, .deco-tag, .deco-review, .deco-gprofile__map)::after { --i: calc(var(--deco-in) + var(--deco-w) + var(--deco-gap)); }

/* Photo / group frame: large cut, lines 14px in. Works on core/image (figure) and core/group. */
.deco-frame, .is-style-deco-frame { --deco-cut: 44px; --deco-in: 14px; --deco-w: 1.5px; margin: 0; }
.deco-frame img, .is-style-deco-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	.deco-frame, .is-style-deco-frame { --deco-cut: 30px; --deco-in: 10px; }
}

/* Label tag: a small chamfered tag with the same double line, for a name or a short label. */
.deco-label, .is-style-deco-label {
	--deco-cut: 10px; --deco-in: 3px; --deco-w: 1px; --deco-gap: 3px;
	display: inline-block;
	margin: 0;
	padding: 0.7rem 1.6rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--night);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}
:is(.has-night-background-color, .has-plum-background-color) :is(.deco-label, .is-style-deco-label) {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--night);
}

/* Apothecary tag: a chamfered cream "label" with a name, a line and a link. */
.deco-tag {
	--deco-cut: 24px; --deco-in: 9px; --deco-w: 1px; --deco-gap: 3px;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: clamp(2rem, 3vw, 2.75rem) clamp(1.75rem, 2.6vw, 2.5rem);
	background: var(--wp--preset--color--cream);
}
.has-cream-background-color .deco-tag { background: var(--wp--preset--color--paper); }
.deco-tag > * { margin: 0 !important; }
.deco-tag__name { font-size: 1.375rem; line-height: 1.25; }
.deco-tag p { color: var(--wp--preset--color--muted); }
.deco-tag__more { margin-top: auto !important; padding-top: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.deco-tag__more a { color: var(--wp--preset--color--plum); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.deco-tag .wp-block-buttons { margin-top: 0.75rem !important; }
.deco-tags { gap: 1.25rem; margin-block-start: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .deco-tags.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Eyebrow: body face, uppercase, wide tracking, between two short double rules (two hairlines 3px apart). */
.deco-eyebrow, .is-style-deco-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--plum);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}
.deco-eyebrow::before, .deco-eyebrow::after,
.is-style-deco-eyebrow::before, .is-style-deco-eyebrow::after {
	content: "";
	flex: none;
	width: 2rem;
	height: 5px;
	box-sizing: border-box;
	border-block: 1px solid var(--deco-line);
}
.deco-eyebrow.has-text-align-center, .is-style-deco-eyebrow.has-text-align-center { justify-content: center; }
:is(.has-night-background-color, .has-band-background-color) :is(.deco-eyebrow, .is-style-deco-eyebrow) { color: var(--wp--preset--color--lilac); }
:is(.has-plum-background-color) :is(.deco-eyebrow, .is-style-deco-eyebrow) { color: var(--wp--preset--color--cream); }
.deco-eyebrow + :is(h1, h2, h3) { margin-block-start: 0.5rem; }

/* Statement line: large Poiret One, never below 32px (the font is thin). */
.deco-statement {
	margin-block: 0 1.5rem;
	color: var(--wp--preset--color--plum);
	font-family: var(--deco-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.15;
	text-wrap: balance;
}
/* Open question for the practice (STANDARD rule 14): visible until answered, gone before launch. */
.deco-confirm { margin-top: 0.75rem; font-weight: 600; color: var(--wp--preset--color--plum); }
:is(.has-night-background-color, .has-plum-background-color) .deco-confirm { color: var(--wp--preset--color--lilac); }

/* -----------------------------------------------------------------------
   4. Header: one row, three zones (nav | logo + wordmark | phone + Book).

   Colors come from two variables on the part: --deco-hc (text) and --deco-hbg (background). Solid by default;
   transparent with cream text on the front page (.is-overlay) until .is-solid is added on scroll (deco.js). The part
   never changes height, so the page can reserve it. Fixed once deco.js has measured it (html.deco-fixed-header);
   sticky (inner pages) or absolute (front page) without JavaScript.
   -------------------------------------------------------------------- */
.deco-header-part {
	--deco-hc: var(--wp--preset--color--ink);
	--deco-hbg: var(--wp--preset--color--cream);
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background-color: var(--deco-hbg);
	color: var(--deco-hc);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.deco-header-part.is-overlay { position: absolute; left: 0; right: 0; }
.deco-header-part.is-overlay:not(.is-solid) { --deco-hc: var(--wp--preset--color--cream); --deco-hbg: transparent; }
html.deco-fixed-header .deco-header-part { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); }
/* Inner pages: the body reserves the header's height. Front page: the hero pads itself instead. */
html.deco-fixed-header:not(.deco-has-overlay) body { padding-top: var(--deco-header-h, 0px); }
/* A double line closes the header once it is solid (inside its own box, so nothing sits under it). */
.deco-header-part:not(.is-overlay)::after,
.deco-header-part.is-overlay.is-solid::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 5px;
	box-sizing: border-box;
	border-block: 1px solid var(--deco-line);
	pointer-events: none;
}
.deco-header { margin: 0; }
.deco-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 1rem;
	box-sizing: border-box;
	max-width: 1320px;
	margin-inline: auto;
	padding: 0.85rem clamp(1rem, 4vw, 2rem) 1.1rem;
}
.deco-header__inner > * { margin: 0; min-width: 0; }
.deco-header__nav { justify-self: start; }
.deco-header__brand { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: nowrap; }
.deco-header__cta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 1.5rem; }
.deco-header .wp-block-site-logo { margin: 0; line-height: 0; }
.deco-header .wp-block-site-logo img,
.deco-footer .wp-block-site-logo img { width: auto !important; height: auto; max-height: 56px; max-width: 150px; }
.deco-footer .wp-block-site-logo img { max-height: 72px; max-width: 180px; }
.deco-wordmark {
	margin: 0;
	max-width: 14rem;
	color: var(--deco-hc, var(--wp--preset--color--cream));
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.25;
	text-transform: uppercase;
}
.deco-wordmark--footer { max-width: 22rem; font-size: 1rem; color: var(--wp--preset--color--cream); }
.deco-header__phone { margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.deco-header__phone a { color: var(--deco-hc); text-decoration: none; }
.deco-header__phone a:hover { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.deco-header__book .wp-block-button__link { padding: 0.7rem 1.35rem; font-size: 0.75rem; white-space: nowrap; }
.deco-header-part.is-overlay:not(.is-solid) .deco-header__book .wp-block-button__link {
	background-color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--night);
}
.deco-header-part.is-overlay:not(.is-solid) .deco-header__book .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
}

/* Navigation: link colors follow the header state; no underline until hover. */
.deco-header .deco-nav a,
.deco-header .deco-nav .wp-block-navigation-item__content { color: var(--deco-hc); text-decoration: none; }
.deco-header .deco-nav .wp-block-navigation__container { gap: 0.5rem 1.15rem; flex-wrap: nowrap; }
.deco-header .deco-nav .wp-block-navigation-item__content { padding-block: 0.4rem; }
.deco-header .deco-nav .wp-block-navigation-item__content:hover {
	text-decoration: underline; text-decoration-color: var(--deco-line); text-decoration-thickness: 1px; text-underline-offset: 0.6em;
}
.deco-header .deco-nav .wp-block-navigation__responsive-container-open,
.deco-header .deco-nav .wp-block-navigation__responsive-container-close {
	min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--deco-hc);
}
.deco-header .deco-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
/* Open mobile menu: night panel, cream links (also overrides the header-state colors above). */
.deco-header .deco-nav .is-menu-open { background-color: var(--wp--preset--color--night); color: var(--wp--preset--color--cream); }
.deco-header .deco-nav .is-menu-open a,
.deco-header .deco-nav .is-menu-open .wp-block-navigation-item__content,
.deco-header .deco-nav .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--cream); }
.deco-header .deco-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.0625rem; letter-spacing: 0.16em; }
.deco-header .deco-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

/* The header degrades in a fixed order as space runs out and never wraps:
   >=1280 logo + wordmark | 1180-1279 wordmark hidden when a logo is set | <1180 phone hidden |
   <1024 hamburger replaces the links | <768 Book moves to the bottom bar. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.deco-header__brand:has(.wp-block-site-logo) .deco-wordmark { display: none; }
}
@media (max-width: 1179px) { .deco-header__phone { display: none !important; } }
@media (min-width: 600px) and (max-width: 1023px) {
	/* Core shows the inline links from 600px; Deco wants the hamburger until 1024px. */
	.deco-header .deco-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.deco-header .deco-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1023px) {
	.deco-header__brand:has(.wp-block-site-logo) .deco-wordmark { display: none; }
	.deco-header__nav { margin-inline-start: -0.5rem; }
}
@media (max-width: 767px) {
	.deco-header__cta { display: none !important; }
	.deco-header__inner { padding-block: 0.6rem 0.8rem; }
	.deco-wordmark { font-size: 0.75rem; letter-spacing: 0.16em; max-width: 11rem; text-align: center; }
	.deco-header .wp-block-site-logo img { max-height: 44px; max-width: 120px; }
}

/* -----------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------- */
.deco-section {
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--70);
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.deco-section > :is(.wp-block-heading, h2) { margin-block-start: 0.5rem; }
.deco-section > .wp-block-buttons { margin-top: clamp(2rem, 4vw, 3rem); }

/* Hero: dark panel at full height, text left, framed photo right. Pads itself by the (reserved) header height. */
.deco-hero {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: clamp(560px, 100svh, 940px);
	padding: calc(var(--deco-header-h, 96px) + clamp(1.5rem, 4vw, 3rem)) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 6rem);
	background-image: radial-gradient(110% 90% at 88% 38%, color-mix(in srgb, var(--wp--preset--color--plum) 38%, transparent), transparent 62%);
}
.deco-hero > .wp-block-columns {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.deco-hero__text > * { margin-block: 0; }
.deco-hero__text > * + * { margin-block-start: 1.5rem; }
.deco-hero__text > .deco-eyebrow { margin-block-end: 0.5rem; }
.deco-hero__text h1 { color: var(--wp--preset--color--cream); text-wrap: balance; }
.deco-hero__text .has-md-font-size { max-width: 30rem; color: rgb(245 239 230 / 0.92); }
.deco-hero__text .wp-block-buttons { margin-top: 2.25rem; }
.deco-hero__img { aspect-ratio: 4 / 5; max-height: min(720px, 78svh); }
.deco-hero__photo-col { min-width: 0; }
@media (max-width: 781px) {
	.deco-hero { min-height: 0; padding-bottom: clamp(2.5rem, 8vw, 4rem); }
	.deco-hero__photo-col { order: -1; }          /* phone: photo first */
	.deco-hero__img { aspect-ratio: 4 / 3; max-height: none; }  /* cropped shorter */
	.deco-hero > .wp-block-columns { gap: 2rem; }
}

/* Intro statement. */
.deco-intro { text-align: center; }
.deco-intro .deco-eyebrow { justify-content: center; }

/* Services grid sits on paper. */
.deco-services > .wp-block-buttons { margin-top: clamp(2rem, 4vw, 3rem); }

/* Doctor: framed portrait left, bio right, on night. */
.deco-doctor__cols { gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-block: 0; }
.deco-doctor__img { aspect-ratio: 4 / 5; max-height: min(680px, 78svh); }
.deco-doctor__cols .deco-label { margin-block: 0.5rem 1.25rem; }
.deco-doctor__cols .wp-block-buttons { margin-top: 1.75rem; }
.deco-doctor-page .deco-doctor__cols .deco-label { margin-block: 0 0.75rem; }

/* Visit: heading left, practical facts right. */
.deco-visit__cols { gap: clamp(1.5rem, 5vw, 4rem); margin-block: 0; }
.deco-visit__label {
	margin: 1.75rem 0 0.35rem;
	color: var(--wp--preset--color--plum);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.deco-visit__info > .deco-visit__label:first-child { margin-top: 0.25rem; }
.deco-visit__info p { margin-block-end: 0; }
.deco-visit__info .wp-block-buttons { margin-top: 1.75rem; }

/* Closing band. */
.deco-closing { text-align: center; }
.deco-closing .deco-eyebrow { justify-content: center; }

/* Inner hero (pattern and templates): short night panel. */
.deco-ihero {
	box-sizing: border-box;
	padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 5vw, 4rem);
}
.deco-ihero--tall { padding-block: clamp(5rem, 12vw, 9rem); }
.deco-ihero h1 { margin-block: 0; text-wrap: balance; }
.deco-ihero__sub { max-width: 36rem; margin-block: 1rem 0; color: rgb(245 239 230 / 0.9); }
.deco-ihero .wp-block-post-date { margin: 0 0 0.75rem; }
.deco-ihero .wp-block-buttons { margin-top: 2rem; }

/* Reading column. */
.deco-prose > * { max-width: 100%; }
.deco-prose h2 { font-size: var(--wp--preset--font-size--xl); margin-block: 2.5rem 0.75rem; }
.deco-prose h2:first-child { margin-top: 0; }
.deco-prose .wp-block-post-featured-image { margin-bottom: 2.5rem; }
.deco-prose .wp-block-post-navigation-link { margin-top: 1.5rem; }

/* Posts grid (index, home). */
.deco-post { gap: 0.75rem; }
.deco-post .wp-block-post-featured-image { margin: 0 0 0.5rem; }
.deco-post .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.deco-post .wp-block-post-title { margin: 0; font-size: 1.375rem; }
.deco-post .wp-block-post-title a { color: var(--wp--preset--color--plum); text-decoration: none; }
.deco-post .wp-block-post-excerpt { margin: 0; }
.deco-post .wp-block-post-excerpt__excerpt { margin: 0; }
.deco-post .wp-block-post-date { display: inline-block; align-self: flex-start; }
.wp-block-query-pagination { margin-top: 2.5rem; gap: 1.25rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--wp--preset--font-size--xs); }
.wp-block-post-template.is-layout-grid { gap: 1.25rem; }
@media (min-width: 960px) { .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* -----------------------------------------------------------------------
   6. Footer (two halves), Google profile, reviews
   -------------------------------------------------------------------- */
.deco-footer { padding: 0 !important; }
.deco-footer__halves { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.deco-footer__halves > * { margin: 0; }
.deco-footer__left,
.deco-footer__right {
	box-sizing: border-box;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.deco-footer__left { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; }
.deco-footer__left > * { margin: 0; }
.deco-footer__location { color: rgb(245 239 230 / 0.86); }
.deco-footer__location a { color: var(--wp--preset--color--cream); text-underline-offset: 0.3em; }
.deco-footer__right > * { max-width: 34rem; }
.deco-footer__phone { margin: 0.25rem 0 1.75rem; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; }
.deco-footer__phone a { color: var(--wp--preset--color--cream); text-decoration: none; }
.deco-footer__phone a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.deco-footer .deco-footer__nav { margin-bottom: 0.5rem; }
.deco-footer .deco-footer__nav .wp-block-navigation__container { gap: 0.4rem 1.5rem; }
.deco-footer .deco-footer__nav a,
.deco-footer .deco-footer__nav .wp-block-navigation-item__content { color: var(--wp--preset--color--cream); text-decoration: none; }
.deco-footer .deco-footer__nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.deco-footer__legal {
	box-sizing: border-box;
	margin: 0;
	padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
	gap: 0.5rem 2rem;
	border-top: 1px solid rgb(166 152 174 / 0.35);
}
.deco-footer__legal p { margin: 0; color: rgb(245 239 230 / 0.82); }
.deco-footer__legal a { color: var(--wp--preset--color--cream); text-underline-offset: 0.3em; }
@media (max-width: 781px) {
	.deco-footer__halves { grid-template-columns: 1fr; }
}

/* Google profile (footer): the map sits in a small chamfered frame. Prints nothing without a profile link. */
.deco-gprofile { margin: 1.75rem 0 0; }
.deco-gprofile__map {
	--deco-cut: 18px; --deco-in: 8px; --deco-w: 1px; --deco-gap: 3px;
	max-width: 600px; /* Google draws its place card only from about 440 x 320 up */
	height: 320px;
	overflow: hidden;
	background: var(--wp--preset--color--night);
}
.deco-gprofile__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.deco-gprofile__links { margin: 1rem 0 0; font-size: var(--wp--preset--font-size--sm); }
.deco-gprofile__links a { color: var(--wp--preset--color--cream); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.deco-gprofile__sep { margin: 0 0.6rem; color: var(--wp--preset--color--lilac); }
@media (max-width: 781px) { .deco-gprofile__map { height: 260px; } }

/* Reviews band (cream): chamfered cards. The block prints nothing at all without 4 and 5 star reviews. */
.deco-reviews { background-color: var(--wp--preset--color--cream); }
.deco-reviews__inner {
	box-sizing: border-box;
	max-width: calc(1180px + 2 * clamp(1rem, 4vw, 2rem));
	margin-inline: auto;
}
.deco-reviews h2 { margin: 0; }
.deco-reviews__list {
	list-style: none;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
}
.deco-reviews__item { flex: 1 1 300px; max-width: 380px; margin: 0; display: flex; }
.deco-review {
	--deco-cut: 24px; --deco-in: 9px;
	width: 100%;
	margin: 0;
	padding: 2.25rem 2rem 2rem;
	background-color: var(--wp--preset--color--paper);
	display: flex;
	flex-direction: column;
	text-align: left;
}
.deco-review__stars { color: var(--wp--preset--color--plum); font-size: 1.0625rem; letter-spacing: 0.18em; line-height: 1; }
.deco-review__text { margin: 1rem 0 0; padding: 0; border: 0; flex: 1 1 auto; }
.deco-review__text p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--wp--preset--color--ink); }
.deco-review__author {
	margin-top: 1.25rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.deco-reviews__more { margin: 2rem 0 0; text-align: center; font-size: var(--wp--preset--font-size--sm); }
.deco-reviews__more a { color: var(--wp--preset--color--plum); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.deco-reviews__sep { margin: 0 0.6rem; color: var(--wp--preset--color--muted); }
@media (max-width: 767px) {
	.deco-reviews__item { flex-basis: 100%; max-width: none; }
}

/* -----------------------------------------------------------------------
   7. Mobile sticky bar: "Call" and "Book a consultation", below 768px only.
   -------------------------------------------------------------------- */
.deco-sticky-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	box-sizing: border-box;
	padding: 0.85rem clamp(1rem, 4vw, 1.5rem) 0.7rem;
	/* !important: core's is-layout-flex rule would otherwise win and show the bar on desktop. */
	display: none !important;
}
.deco-sticky-cta::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 5px;
	box-sizing: border-box;
	border-block: 1px solid var(--deco-line);
}
.deco-sticky-cta .wp-block-buttons { width: 100%; flex-wrap: nowrap; gap: 0.6rem; }
.deco-sticky-cta .wp-block-button { flex: 1 1 0; min-width: 0; }
.deco-sticky-cta .wp-block-button.deco-sticky-cta__call { flex: 0 0 30%; }
.deco-sticky-cta .wp-block-button__link {
	width: 100%;
	min-height: 46px;
	padding: 0.5rem 0.4rem;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	line-height: 1.2;
}
@media (max-width: 767px) {
	.deco-sticky-cta { display: flex !important; }
	body { padding-bottom: 76px; } /* keeps the bar from covering the footer's last lines */
}

/* -----------------------------------------------------------------------
   8. Motion: the hero fades up once on load (300ms, 60ms stagger). Nothing else moves.
      The animation lives entirely inside no-preference, so reduced motion never hides or moves anything.
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	@keyframes deco-rise {
		from { opacity: 0; transform: translateY(14px); }
		to   { opacity: 1; transform: none; }
	}
	.deco-hero__text > *,
	.deco-hero__img { animation: deco-rise 300ms ease-out both; }
	.deco-hero__text > :nth-child(2) { animation-delay: 60ms; }
	.deco-hero__text > :nth-child(3) { animation-delay: 120ms; }
	.deco-hero__text > :nth-child(4) { animation-delay: 180ms; }
	.deco-hero__img { animation-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
	.deco-header-part, .wp-block-button__link { transition: none; }
}

/* -------------------------------------------------------------------------
   1.0.1 fixes after the first staging render.
   Logos are usually dark artwork on transparent: over the night hero (overlay header before scroll) and in the
   night footer half they would vanish, so they render as a light silhouette there. Section bands butt together:
   the top-level block gap showed the page background as thin stripes between bands.
   ---------------------------------------------------------------------- */
.deco-header .wp-block-site-logo img { max-height: 64px; max-width: 220px; }
.deco-header-part.is-overlay:not(.is-solid) .wp-block-site-logo img,
.deco-footer__left .wp-block-site-logo img { filter: brightness(0) invert(0.95); }
.deco-footer .wp-block-site-logo img { max-height: 84px; max-width: 240px; }
.deco-main > *,
.deco-main + *,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-of-type { margin-block-start: 0; }
@media (max-width: 1023px) {
	.deco-header .wp-block-site-logo img { max-height: 48px; max-width: 160px; }
}
/* 1.0.2: the logo block's width attribute is the upper bound; the max-height above keeps square marks in scale. */
.deco-header .wp-block-site-logo, .deco-footer .wp-block-site-logo { width: auto; }
/* 1.0.4: footer left half is a full column, not a floating logo. Content starts at the top like the right half,
   and on wide screens both halves keep their content near the middle of the page instead of the far edges. */
.deco-footer__left { justify-content: flex-start; gap: 0.9rem; }
.deco-footer__left .wp-block-site-logo { margin-bottom: 0.6rem; }
.deco-footer__left .deco-footer__hours-label { margin-top: 0.8rem; }
.deco-footer__hours { color: rgb(245 239 230 / 0.86); }
.deco-footer__cta { margin-top: 1rem; }
.deco-footer__book .wp-block-button__link { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--night); }
.deco-footer__book .wp-block-button__link:hover { background: var(--wp--preset--color--paper); }
@media (min-width: 1024px) {
	.deco-footer__left { padding-left: max(clamp(1.5rem, 5vw, 4rem), calc((100vw - 1320px) / 2 + 1.5rem)); }
	.deco-footer__right { padding-right: max(clamp(1.5rem, 5vw, 4rem), calc((100vw - 1320px) / 2 + 1.5rem)); }
}
/* 1.0.5: the legal line lines up with the two halves above it on wide screens. */
@media (min-width: 1024px) {
	.deco-footer__legal {
		padding-left: max(clamp(1.5rem, 5vw, 4rem), calc((100vw - 1320px) / 2 + 1.5rem)) !important;
		padding-right: max(clamp(1.5rem, 5vw, 4rem), calc((100vw - 1320px) / 2 + 1.5rem)) !important;
	}
}
/* 1.0.6 (visual QA): headings break into balanced lines (no single orphaned word under a long line), and a link
   inside a heading reads as the heading, not as an underlined body link. */
:is(h1, h2, h3, h4, .wp-block-heading) { text-wrap: balance; }
:is(p, li) { text-wrap: pretty; }
:is(h1, h2, h3, h4, .wp-block-heading) a { color: inherit; text-decoration: none; }
:is(h1, h2, h3, h4, .wp-block-heading) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
/* 1.0.7 (visual QA): the doctor's name label sits clear of the heading above it; on page and post templates the
   inner hero title shares the 42rem column of the text below it (templates/page.html, single.html). */
.deco-doctor .deco-label, .deco-section .wp-block-heading + .deco-label { margin-top: 1.25rem; }

/* 1.1.0 image-rich homepage: intro with a framed photo left, service labels topped with photos.
   The tag photo is clipped with a plain top-corner chamfer (the label's double line is drawn on the tag itself). */
.deco-intro--photo { text-align: left; }
.deco-intro--photo .deco-intro__text .deco-eyebrow { justify-content: flex-start; }
.deco-intro--photo .deco-intro__img{aspect-ratio:4/5;margin:0}
.deco-intro--photo .deco-intro__img img{width:100%;height:100%;object-fit:cover}
.deco-intro__text{padding-left:clamp(0rem,4vw,3rem)}
.deco-tag{position:relative}
.deco-tag__img{position:relative;z-index:1;margin:0.35rem 0 1.1rem!important;aspect-ratio:4/3;clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%,0 14px)}
.deco-tag__img img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:781px){.deco-intro--photo .deco-intro__img{aspect-ratio:4/3}.deco-intro__text{padding-left:0}}
