/*
Theme Name: MTZ Chiro
Theme URI: https://github.com/essremodel/martinez-chiropractic
Description: Design layer for the new Martinez Chiropractic site. Child of Twenty Twenty-Five. Office-editable data (phone, hours, prices, team, call button, video) comes from the mtz-site plugin.
Author: sharmanhall
Template: twentytwentyfive
Version: 0.2.13
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mtz-chiro
*/

/* ==========================================================================
   1. Tokens
   Look B, bold blue (navy bands, gold buttons, closer to today's site), is the
   site's look: F.D. and K.B.P. chose it on 2026-09-30 (#86). It applies to every
   page without the mtz-look-a body class. The :root values are the retired Look A
   (clean & light), kept for reference; the dev site shows it with ?look=a. Only
   these variables change between looks.
   ========================================================================== */

:root {
	--mtz-navy: #16477b;
	--mtz-navy-deep: #0f355e;
	--mtz-blue: #1259a1;
	--mtz-gold: #f1c615;
	--mtz-gold-soft: #ffd84a;
	--mtz-cream: #fbf8ec;
	--mtz-butter: #fff4c7;
	--mtz-mist: #f2f6fb;
	--mtz-line: #dfe5ee;
	--mtz-ink: #14202e;
	--mtz-slate: #4f5b6b;

	--mtz-bg: #ffffff;
	--mtz-heading: var(--mtz-navy);
	--mtz-link: var(--mtz-blue);
	--mtz-link-hover: var(--mtz-navy-deep);
	--mtz-kicker: var(--mtz-blue);
	--mtz-focus: var(--mtz-blue);

	--mtz-cta-bg: var(--mtz-navy);
	--mtz-cta-bg-hover: var(--mtz-navy-deep);
	--mtz-cta-ink: #ffffff;
	--mtz-cta-ring: transparent;

	--mtz-topbar-bg: var(--mtz-mist);
	--mtz-topbar-ink: var(--mtz-slate);
	--mtz-header-bg: #ffffff;

	--mtz-hero-bg: linear-gradient(180deg, #ffffff 0%, var(--mtz-mist) 100%);
	--mtz-hero-ink: var(--mtz-ink);
	--mtz-hero-heading: var(--mtz-navy);
	--mtz-hero-muted: var(--mtz-slate);

	--mtz-soft-bg: var(--mtz-mist);
	--mtz-band-bg: var(--mtz-cream);
	--mtz-band-ink: var(--mtz-ink);
	--mtz-band-heading: var(--mtz-navy);
	--mtz-band-link: var(--mtz-blue);

	--mtz-card-bg: #ffffff;
	--mtz-card-border: var(--mtz-line);
	--mtz-card-accent: var(--mtz-blue);

	--mtz-ctaband-bg: var(--mtz-cream);
	--mtz-ctaband-ink: var(--mtz-ink);
	--mtz-ctaband-heading: var(--mtz-navy);

	--mtz-footer-bg: #ffffff;
	--mtz-footer-ink: var(--mtz-ink);
	--mtz-footer-muted: var(--mtz-slate);

	--mtz-radius: 16px;
	--mtz-radius-sm: 10px;
	--mtz-shadow: 0 1px 2px rgba(20, 32, 46, 0.06), 0 10px 30px rgba(20, 32, 46, 0.07);
	--mtz-section-y: clamp(3rem, 2rem + 4vw, 5.5rem);
}

body:not(.mtz-look-a) {
	--mtz-kicker: var(--mtz-blue);
	--mtz-cta-bg: var(--mtz-gold);
	--mtz-cta-bg-hover: var(--mtz-gold-soft);
	--mtz-cta-ink: var(--mtz-navy-deep);
	--mtz-cta-ring: rgba(15, 53, 94, 0.18);

	--mtz-topbar-bg: var(--mtz-navy-deep);
	--mtz-topbar-ink: #dbe6f3;

	--mtz-hero-bg: linear-gradient(135deg, var(--mtz-navy-deep) 0%, var(--mtz-navy) 55%, var(--mtz-blue) 100%);
	--mtz-hero-ink: #e6eef8;
	--mtz-hero-heading: #ffffff;
	--mtz-hero-muted: #c9d8ea;

	--mtz-soft-bg: var(--mtz-cream);
	--mtz-band-bg: var(--mtz-navy);
	--mtz-band-ink: #e6eef8;
	--mtz-band-heading: #ffffff;
	--mtz-band-link: var(--mtz-gold);

	--mtz-card-accent: var(--mtz-gold);

	--mtz-ctaband-bg: var(--mtz-navy);
	--mtz-ctaband-ink: #e6eef8;
	--mtz-ctaband-heading: #ffffff;

	--mtz-footer-bg: var(--mtz-cream);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* A long URL or email wraps instead of widening the page on a phone (#168, WCAG 1.4.10). */
	overflow-wrap: break-word;
}

::selection { background: var(--mtz-butter); color: var(--mtz-ink); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--mtz-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

/* clip-path only: core's :focus rule (the skip link) resets clip-path but not the old `clip`,
   so a `clip` here kept the focused skip link invisible (#167, WCAG 2.4.7). */
.screen-reader-text {
	border: 0; clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}

img { height: auto; max-width: 100%; }

.mtz-main { margin-block-start: 0; }
.mtz-main > .wp-block-post-content { margin-block-start: 0; }

/* Buttons: one primary style everywhere (theme.json), plus outline/light variants. */
.wp-element-button,
.wp-block-button__link {
	box-shadow: inset 0 0 0 2px var(--mtz-cta-ring);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	text-decoration: none;
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.mtz-cta--outline .wp-block-button__link {
	background: transparent;
	color: var(--mtz-heading);
	box-shadow: inset 0 0 0 2px currentColor;
}
.mtz-cta--outline .wp-block-button__link:hover { background: var(--mtz-mist); color: var(--mtz-heading); }
.mtz-cta--light .wp-block-button__link { background: #ffffff; color: var(--mtz-navy-deep); }
/* The CTA shortcode's wrapper carries no core layout class, so give it flex here. */
.mtz-cta-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.mtz-header .mtz-cta-wrap, .mtz-callbar .mtz-cta-wrap, .mtz-hero__actions .mtz-cta-wrap { margin: 0; }
.mtz-center { justify-content: center; }
.mtz-section-links { margin-top: 1.75rem !important; font-weight: 700; }
.mtz-section-links a { text-underline-offset: 3px; }

/* ==========================================================================
   3. Draft bar (dev only, rendered by the mtz-site plugin)
   ========================================================================== */

.mtz-draftbar {
	display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: space-between; align-items: center;
	padding: 0.45rem clamp(1rem, 4vw, 2.5rem);
	background: var(--mtz-butter); color: #4a3b00;
	font-size: 0.875rem; line-height: 1.4;
	border-bottom: 1px solid #ecd982;
}
.mtz-draftbar a {
	color: #4a3b00; text-decoration: none; padding: 0.15rem 0.6rem; border-radius: 999px;
	border: 1px solid rgba(74, 59, 0, 0.25); margin-left: 0.25rem; white-space: nowrap;
}

.mtz-draft-flag {
	font-size: 0.85rem; line-height: 1.45; color: #5a4500;
	background: var(--mtz-butter); border-left: 4px solid #d9ae00;
	padding: 0.5rem 0.75rem; border-radius: 0 6px 6px 0; margin-top: 0.75rem;
}

/* ==========================================================================
   4. Header + navigation
   ========================================================================== */

.mtz-topbar {
	background: var(--mtz-topbar-bg); color: var(--mtz-topbar-ink);
	font-size: 0.875rem; padding-block: 0.4rem;
}
.mtz-topbar p { margin: 0; }
.mtz-topbar a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.mtz-topbar .mtz-phone { font-weight: 700; }

.mtz-header {
	position: sticky; top: 0; z-index: 40;
	background: var(--mtz-header-bg);
	border-bottom: 1px solid var(--mtz-line);
	padding-block: 0.65rem;
}
.admin-bar .mtz-header { top: 32px; }
.mtz-header__inner { gap: 1.5rem; }
.mtz-logo img { width: 232px; }
.mtz-header__actions { gap: 1.5rem; }
/* The call button keeps its full width on one line and never gives up space to the menu
   (#108). The menu labels don't wrap either; below 1240px the menu folds into the
   hamburger instead (see below), so the row never has to squeeze. */
.mtz-header__cta, .mtz-header__cta .wp-block-button { flex-shrink: 0; }
.mtz-header__cta .wp-block-button__link { white-space: nowrap; }
.mtz-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { white-space: nowrap; }

.mtz-nav .wp-block-navigation-item__content { color: var(--mtz-ink); text-decoration: none; padding-block: 0.4rem; }
.mtz-nav .wp-block-navigation-item__content:hover { color: var(--mtz-blue); }
.mtz-nav .current-menu-item > .wp-block-navigation-item__content,
.mtz-nav .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--mtz-navy); box-shadow: inset 0 -2px 0 var(--mtz-gold); }
.mtz-nav.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--mtz-line); border-radius: var(--mtz-radius-sm);
	box-shadow: var(--mtz-shadow); padding: 0.4rem; min-width: 16rem; background: #fff;
}
.mtz-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0.75rem; border-radius: 6px; }
.mtz-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--mtz-mist); }
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 5vw, 2rem); background: #fff; color: var(--mtz-ink);
}
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.75rem; font-size: 1.2rem; }
/* Left-align the phone menu (the desktop menu is right-justified, and core carries that over). */
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important; text-align: left;
}
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 1.5rem; }
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content { font-weight: 800; color: var(--mtz-navy); }
.mtz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0; box-shadow: none; padding: 0.25rem 0 0.5rem 1rem; font-size: 1.05rem;
}
.mtz-nav .wp-block-navigation__responsive-container-open,
.mtz-nav .wp-block-navigation__responsive-container-close { color: var(--mtz-navy); }
.mtz-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
/* 44 px touch area around the 30 px menu icon (#147). The negative margin keeps the icon and
   the header row exactly where they were. */
.mtz-nav .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; margin: -7px; align-items: center; justify-content: center; }
.mtz-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* Collapse the menu to the hamburger below 1240px; core does it only below 600px. Logo, menu
   and call button need about 1190px in one row (#108); the margin covers Windows scrollbars
   and text zoom. */
@media (min-width: 600px) and (max-width: 1239px) {
	.mtz-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.mtz-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ==========================================================================
   5. Page sections
   ========================================================================== */

.mtz-section { padding-block: var(--mtz-section-y); margin-block-start: 0 !important; }
.mtz-section--soft { background: var(--mtz-soft-bg); }
.mtz-band { background: var(--mtz-band-bg); color: var(--mtz-band-ink); }
.mtz-band :where(h1, h2, h3, h4) { color: var(--mtz-band-heading); }
.mtz-band a:not(.wp-element-button) { color: var(--mtz-band-link); }

.mtz-kicker {
	font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--mtz-kicker); margin-bottom: 0.25rem !important;
}
.mtz-band .mtz-kicker, .mtz-hero .mtz-kicker { color: inherit; opacity: 0.85; }
.mtz-lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); color: var(--mtz-slate); }
.mtz-section-head .mtz-lede { max-width: 62ch; }
.mtz-band .mtz-lede, .mtz-hero .mtz-lede { color: inherit; }
.mtz-section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem) !important; }
.mtz-section-head > * { margin-block: 0.35rem; }

/* Hero */
.mtz-hero { background: var(--mtz-hero-bg); color: var(--mtz-hero-ink); padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); margin-block-start: 0 !important; }
.mtz-hero :where(h1, h2) { color: var(--mtz-hero-heading); }
.mtz-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.75rem); max-width: 16ch; }
.mtz-hero .mtz-lede { color: var(--mtz-hero-muted); }
.mtz-hero__cols { gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center !important; }
.mtz-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
body:not(.mtz-look-a) .mtz-hero .mtz-cta--outline .wp-block-button__link { color: #fff; }
body:not(.mtz-look-a) .mtz-hero .mtz-cta--outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); }
.mtz-hero .mtz-checks { margin-top: 1.5rem; }
.mtz-hero__actions { margin-top: 1.75rem !important; }
.mtz-after-steps { margin-top: 2rem !important; }
.mtz-visit__address { font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.mtz-visit .mtz-split { align-items: flex-start !important; }
.mtz-community-cols { align-items: center !important; gap: clamp(1.5rem, 1rem + 3vw, 4rem) !important; }

/* Check list */
.mtz-checks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.mtz-checks li { position: relative; padding-left: 1.9rem; }
.mtz-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--mtz-card-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 100% no-repeat;
}
body:not(.mtz-look-a) .mtz-checks li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%230f355e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E");
}

/* Cards */
.mtz-grid { gap: clamp(1rem, 0.75rem + 1vw, 1.5rem) !important; }
.mtz-card {
	background: var(--mtz-card-bg); border: 1px solid var(--mtz-card-border); border-radius: var(--mtz-radius);
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--mtz-shadow);
	position: relative; overflow: hidden; color: var(--mtz-ink); height: 100%;
	/* border-box: with content-box, height: 100% plus the padding ran the card past its grid row (/community/, 10-15 QA). */
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mtz-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--mtz-card-accent); }
.mtz-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 32, 46, 0.07), 0 16px 40px rgba(20, 32, 46, 0.1); }
.mtz-card :where(h3) { margin-top: 0.25rem; color: var(--mtz-navy); }
.mtz-card p { margin-block: 0.5rem; }
.mtz-card .mtz-more { margin-top: 0.75rem; font-weight: 700; }
.mtz-card .mtz-more a { text-decoration: none; }
.mtz-card .mtz-more a::after { content: " →"; }
.mtz-card .mtz-more a::before { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.mtz-card--soon { border-style: dashed; box-shadow: none; background: transparent; }
.mtz-card--soon::before { background: var(--mtz-line); }
.mtz-card__kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mtz-slate); }
.mtz-card__title { font-size: 1.2rem; margin: 0.25rem 0; }
.mtz-card__title a { text-decoration: none; }
.mtz-card__price { font-weight: 800; color: var(--mtz-navy); }
.mtz-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
/* The lone "coming soon" card takes the whole row instead of a narrow first column. */
.mtz-cards > .mtz-card--soon:only-child { grid-column: 1 / -1; }

/* Steps (first visit) */
.mtz-steps { list-style: none; counter-reset: mtz-step; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.mtz-steps li {
	counter-increment: mtz-step; position: relative; background: var(--mtz-card-bg); border: 1px solid var(--mtz-card-border);
	border-radius: var(--mtz-radius); padding: 3.75rem 1.5rem 1.5rem; box-shadow: var(--mtz-shadow); color: var(--mtz-ink);
}
.mtz-steps li::before {
	content: counter(mtz-step); position: absolute; top: 1.25rem; left: 1.5rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
	display: grid; place-items: center; font-weight: 800; background: var(--mtz-cta-bg); color: var(--mtz-cta-ink);
}
/* Next to the sidebar (first visit) all three steps fit on one row. */
.mtz-layout .mtz-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.mtz-steps strong { display: block; font-size: 1.125rem; color: var(--mtz-navy); margin-bottom: 0.35rem; }

/* Quotes (testimonials) */
.mtz-quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.mtz-quote {
	margin: 0; background: var(--mtz-card-bg); border: 1px solid var(--mtz-card-border); border-radius: var(--mtz-radius);
	padding: 2.25rem 1.5rem 1.5rem; position: relative; box-shadow: var(--mtz-shadow); color: var(--mtz-ink);
}
.mtz-quote::before {
	content: "\201C"; position: absolute; top: 0.1rem; left: 1.1rem; font-size: 4rem; line-height: 1; font-weight: 800;
	color: var(--mtz-card-accent); font-family: Georgia, serif;
}
.mtz-quote p { margin: 0; font-size: 1.05rem; }
.mtz-quote cite { display: block; margin-top: 0.85rem; font-style: normal; font-size: 0.875rem; color: var(--mtz-slate); font-weight: 600; }

/* Split media + text */
.mtz-split { gap: clamp(1.5rem, 1rem + 3vw, 4rem) !important; align-items: center !important; }
.mtz-portrait img { border-radius: var(--mtz-radius); box-shadow: var(--mtz-shadow); aspect-ratio: 1; object-fit: cover; }

/* ==========================================================================
   6. Office-data components (mtz-site plugin output)
   ========================================================================== */

/* Video (#89) */
.mtz-video {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--mtz-radius); overflow: hidden;
	box-shadow: 0 2px 6px rgba(15, 53, 94, 0.15), 0 24px 60px rgba(15, 53, 94, 0.18); background: var(--mtz-navy-deep);
}
.mtz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mtz-video__button {
	all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center;
	background-size: cover; background-position: center;
}
.mtz-video--placeholder {
	display: grid; place-content: center; justify-items: center; gap: 0.6rem; text-align: center;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 244, 199, 0.18), transparent 45%),
		linear-gradient(135deg, var(--mtz-navy-deep), var(--mtz-blue));
	color: #fff;
}
.mtz-video__play {
	width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--mtz-butter); position: relative;
	box-shadow: 0 0 0 10px rgba(255, 244, 199, 0.18);
}
.mtz-video__play::after {
	content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 0.8rem 0 0.8rem 1.3rem; border-color: transparent transparent transparent var(--mtz-navy);
}
.mtz-video__button .mtz-video__label {
	position: absolute; left: 1rem; bottom: 1rem; background: rgba(15, 53, 94, 0.85); color: #fff;
	padding: 0.35rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}
.mtz-video--placeholder .mtz-video__label { font-weight: 800; font-size: 1.15rem; }
.mtz-video__soon { font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.06em; text-transform: uppercase; }

/* Look B: the hero is navy, so the placeholder becomes a cream card (the badge's colours). */
body:not(.mtz-look-a) .mtz-hero .mtz-video--placeholder {
	background: radial-gradient(circle at 50% 45%, #ffffff 0%, var(--mtz-butter) 60%, #f6e7a6 100%);
	color: var(--mtz-navy-deep);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.3);
}
body:not(.mtz-look-a) .mtz-hero .mtz-video--placeholder .mtz-video__play { background: var(--mtz-navy); box-shadow: 0 0 0 10px rgba(22, 71, 123, 0.15); }
body:not(.mtz-look-a) .mtz-hero .mtz-video--placeholder .mtz-video__play::after { border-left-color: var(--mtz-butter); }

/* Photo slot (#26) */
.mtz-photo-slot {
	margin: 0; display: grid; place-items: center; border-radius: var(--mtz-radius);
	border: 2px dashed #b9c6d8; color: var(--mtz-slate); text-align: center; padding: 1rem;
	background: repeating-linear-gradient(45deg, var(--mtz-mist), var(--mtz-mist) 12px, #ffffff 12px, #ffffff 24px);
}
.mtz-photo-slot figcaption { background: #ffffff; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; box-shadow: var(--mtz-shadow); }
.mtz-photo-slot figcaption::before { content: "📷 "; }
/* Top margin: the figure's own margin would cancel the block gap, so it sat flush under the team cards. */
.mtz-media { margin: 1.25rem 0 0; }
.mtz-media__img { display: block; width: 100%; height: auto; border-radius: var(--mtz-radius); }

/* Prices (#21) */
.mtz-prices { display: grid; gap: 1.25rem; }
.mtz-prices--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
/* /payment-options/: the four cards as an even 2 × 2 at the wide width. */
@media (min-width: 782px) { .mtz-prices-wide .mtz-prices--grid { grid-template-columns: 1fr 1fr; } }
.mtz-price-card {
	background: var(--mtz-card-bg); border: 1px solid var(--mtz-card-border); border-radius: var(--mtz-radius);
	padding: 1.5rem; box-shadow: var(--mtz-shadow); color: var(--mtz-ink);
}
.mtz-price-card__title { margin: 0 0 0.25rem; font-size: 1.25rem; color: var(--mtz-navy); }
.mtz-price-card__intro { font-size: 0.95rem; color: var(--mtz-slate); margin: 0.25rem 0 0.75rem; }
.mtz-price-table { width: 100%; border-collapse: collapse; }
.mtz-price-table th, .mtz-price-table td { padding: 0.65rem 0; border-bottom: 1px solid var(--mtz-line); vertical-align: top; }
.mtz-price-table tr:last-child th, .mtz-price-table tr:last-child td { border-bottom: 0; }
.mtz-price-table th { text-align: left; font-weight: 500; padding-right: 1rem; }
.mtz-price-table td { text-align: right; font-weight: 800; color: var(--mtz-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtz-price-table__note { display: block; font-size: 0.85rem; color: var(--mtz-slate); font-weight: 400; margin-top: 0.15rem; }
.mtz-price-card__note { font-size: 0.9rem; color: var(--mtz-slate); margin: 0.75rem 0 0; }
/* Care packages: led by Dr. Fred's top tier, no prices until the office confirms them (#91) */
.mtz-packages { margin-block: 1.25rem; border-top: 4px solid var(--mtz-card-accent); }
.mtz-packages p { margin-block: 0.5rem; }
.mtz-packages .mtz-packages__call { font-weight: 600; }
.mtz-disclaimer { font-size: 0.85rem; color: var(--mtz-slate); margin-top: 1rem; max-width: 70ch; }
.mtz-band .mtz-disclaimer { color: inherit; opacity: 0.85; }

/* Hours */
.mtz-hours table { width: 100%; border-collapse: collapse; }
.mtz-hours th, .mtz-hours td { padding: 0.45rem 0; border-bottom: 1px solid var(--mtz-line); text-align: left; vertical-align: top; }
.mtz-hours th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.mtz-hours td { font-variant-numeric: tabular-nums; }
.mtz-hours tr.is-closed td { color: var(--mtz-slate); }
.mtz-hours tr.is-today th, .mtz-hours tr.is-today td { font-weight: 800; color: var(--mtz-navy); }
.mtz-hours tr.is-today th::after { content: " · today"; font-weight: 600; font-size: 0.8rem; color: var(--mtz-blue); }
.mtz-hours--compact th, .mtz-hours--compact td { padding: 0.25rem 0; border: 0; font-size: 0.95rem; }
.mtz-hours__note { font-size: 0.9rem; color: var(--mtz-slate); margin: 0.5rem 0 0; }

/* Team (#87) */
/* 13rem: three cards across the 720 px text column. */
.mtz-team { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.mtz-team__card {
	background: var(--mtz-card-bg); border: 1px solid var(--mtz-card-border); border-radius: var(--mtz-radius);
	overflow: hidden; box-shadow: var(--mtz-shadow); color: var(--mtz-ink); display: flex; flex-direction: column;
}
.mtz-team__photo { aspect-ratio: 1; background: var(--mtz-mist); display: grid; place-items: center; overflow: hidden; }
.mtz-team__img { width: 100%; height: 100%; object-fit: cover; }
/* Navy at 0.8 on the mist panel: 5.2:1 (0.55 was 2.8:1, below AA for large text, #143). */
.mtz-team__initials { font-size: 2.75rem; font-weight: 800; color: var(--mtz-navy); opacity: 0.8; }
.mtz-team__body { padding: 1.1rem 1.25rem 1.35rem; }
.mtz-team__name { margin: 0; font-size: 1.2rem; color: var(--mtz-navy); }
/* A card name is an h2 when it follows the page title (level="2"); keep the card size, not the section-heading size. */
.mtz-page-content .mtz-team--cards .mtz-team__name { font-size: 1.2rem; }
.mtz-team__creds { font-weight: 600; font-size: 0.95rem; color: var(--mtz-slate); }
.mtz-team__title { margin: 0.2rem 0 0.5rem; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mtz-blue); }
.mtz-team__bio { margin: 0.5rem 0; font-size: 0.98rem; }
.mtz-team__more { margin: 0.5rem 0 0; font-weight: 700; }
.mtz-team--feature { grid-template-columns: 1fr; }
.mtz-team--feature .mtz-team__card { flex-direction: row; align-items: stretch; }
.mtz-team--feature .mtz-team__photo { flex: 0 0 min(40%, 20rem); aspect-ratio: auto; }
.mtz-team--feature .mtz-team__body { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); align-self: center; }
.mtz-team--feature .mtz-team__name { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.mtz-team--feature .mtz-team__bio { font-size: 1.05rem; line-height: 1.65; }

/* Contact facts */
.mtz-facts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.mtz-facts h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mtz-slate); margin-bottom: 0.4rem; }
.mtz-facts .mtz-phone { font-size: 1.35rem; font-weight: 800; text-decoration: none; }

/* ==========================================================================
   7. Page head (inner pages)
   ========================================================================== */

.mtz-pagehead { background: var(--mtz-soft-bg); padding-block: clamp(2rem, 1.25rem + 3vw, 3.75rem); border-bottom: 1px solid var(--mtz-line); }
body:not(.mtz-look-a) .mtz-pagehead { background: var(--mtz-navy); border-bottom: 0; }
body:not(.mtz-look-a) .mtz-pagehead :where(h1, p, a) { color: #fff; }
.mtz-pagehead__title { margin: 0; }
.mtz-page-content { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Inner pages: readable copy, a sidebar card, multi-column lists, FAQ */
.mtz-page-content > * + h2, .mtz-layout .wp-block-column > * + h2, .mtz-prose h2 { margin-top: 2.5rem; }
.mtz-page-content h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.mtz-page-content .mtz-lede { margin-bottom: 1.75rem; }
.mtz-layout { gap: clamp(1.5rem, 1rem + 3vw, 3.5rem) !important; align-items: flex-start !important; }
.mtz-aside {
	background: var(--mtz-soft-bg); border: 1px solid var(--mtz-line); border-radius: var(--mtz-radius);
	padding: 1.5rem; position: sticky; top: 6.5rem;
}
.mtz-aside h2, .mtz-aside h3 { margin-top: 1.75rem !important; font-size: 1.2rem; }
.mtz-aside > :first-child { margin-top: 0 !important; }
.mtz-aside .mtz-price-table th, .mtz-aside .mtz-price-table td { font-size: 0.95rem; padding-block: 0.5rem; }
.mtz-aside .mtz-phone { font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.mtz-aside .mtz-prices--grid { grid-template-columns: 1fr; }
.mtz-aside .mtz-price-card { box-shadow: none; padding: 1.1rem 1.25rem; }
.mtz-aside .mtz-cta-wrap { margin-top: 1rem; display: block; }
.mtz-aside .mtz-cta .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
.mtz-aside .mtz-cta { width: 100%; }
.mtz-columns-list { columns: 3 13rem; column-gap: 2rem; padding-left: 1.1rem; }
/* No top margin: column 1 kept it while columns 2 and 3 lost it at the break, so column 1 sat lower. */
.mtz-columns-list li { break-inside: avoid; margin: 0 0 0.4rem; }
.mtz-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mtz-chips li { background: var(--mtz-mist); border: 1px solid var(--mtz-line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.95rem; }
.mtz-faq .wp-block-details {
	border: 1px solid var(--mtz-line); border-radius: var(--mtz-radius-sm); padding: 0.9rem 1.2rem; background: #fff; margin-top: 0.75rem;
}
.mtz-faq .wp-block-details summary { font-weight: 700; color: var(--mtz-navy); cursor: pointer; font-size: 1.1rem; }
.mtz-faq .wp-block-details[open] summary { margin-bottom: 0.5rem; }
.mtz-quotes--wall { display: block; columns: 2 22rem; column-gap: 1.25rem; }
.mtz-quotes--wall .mtz-quote { break-inside: avoid; margin: 0 0 1.25rem; }
.mtz-note { font-size: 0.9rem; color: var(--mtz-slate); }
.mtz-contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.mtz-contact-grid > div { background: var(--mtz-card-bg); border: 1px solid var(--mtz-line); border-radius: var(--mtz-radius); padding: 1.5rem; box-shadow: var(--mtz-shadow); }
.mtz-contact-grid h2 { font-size: 1rem !important; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mtz-slate) !important; margin: 0 0 0.6rem !important; }
.mtz-contact-grid .mtz-phone { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
/* The email breaks before "@" (<wbr>), and anywhere as a last resort, so it never leaves its card (#148). */
.mtz-email { overflow-wrap: anywhere; }
/* Search results (#145): one list, each result its title and excerpt; never whole page bodies. */
/* Limit the input, not the block: a narrower block gets centred by the constrained layout. */
.mtz-search__form { margin-bottom: 2rem; }
.mtz-search__form .wp-block-search__inside-wrapper { max-width: 36rem; }
.mtz-search__results .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.mtz-search__results .wp-block-post { margin: 0; padding-block: 1.1rem; border-bottom: 1px solid var(--mtz-line); }
.mtz-search__results .wp-block-post:first-child { border-top: 1px solid var(--mtz-line); }
.mtz-page-content .mtz-search__title { font-size: 1.25rem; margin: 0 0 0.35rem; }
.mtz-search__title a { text-decoration: none; }
.mtz-search__title a:hover, .mtz-search__title a:focus-visible { text-decoration: underline; }
.mtz-search__excerpt p { margin: 0; color: var(--mtz-slate); }
.mtz-search .wp-block-query-pagination { margin-top: 1.5rem; }
@media (max-width: 781px) {
	.mtz-aside { position: static; }
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.mtz-ctaband { background: var(--mtz-ctaband-bg); color: var(--mtz-ctaband-ink); padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); margin-block-start: 0 !important; }
.mtz-ctaband .mtz-ctaband__title { color: var(--mtz-ctaband-heading); margin-bottom: 0.25rem; }
.mtz-ctaband__text { max-width: 52ch; margin-inline: auto !important; }

.mtz-footer { background: var(--mtz-footer-bg); color: var(--mtz-footer-ink); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem; border-top: 1px solid var(--mtz-line); margin-block-start: 0 !important; }
.mtz-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.mtz-footer__brand p { color: var(--mtz-footer-muted); max-width: 26ch; font-size: 0.95rem; }
.mtz-footer__logo img { width: 120px; height: auto; display: block; }
.mtz-footer__title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mtz-footer-muted); margin: 0 0 0.75rem; }
.mtz-footer__col p { margin: 0 0 0.75rem; }
.mtz-footer__col .mtz-phone { font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.mtz-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.mtz-footer__links a, .mtz-footer__legal a { color: var(--mtz-footer-ink); text-decoration: none; }
.mtz-footer__links a:hover, .mtz-footer__legal a:hover { color: var(--mtz-blue); text-decoration: underline; }
.mtz-footer__legal {
	display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center;
	margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mtz-line); font-size: 0.85rem; color: var(--mtz-footer-muted);
}
.mtz-footer__legal p { margin: 0; }
.mtz-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.mtz-footer__legal a { color: var(--mtz-footer-muted); }

/* Mobile call bar (rendered in wp_footer by functions.php) */
.mtz-callbar { display: none; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */

@media (max-width: 1239px) {
	.mtz-header__cta .wp-block-button__link { padding-inline: 1.1em; }
}

@media (max-width: 960px) {
	.mtz-footer__grid { grid-template-columns: 1fr 1fr; }
	.mtz-team--feature .mtz-team__card { flex-direction: column; }
	.mtz-team--feature .mtz-team__photo { flex-basis: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 781px) {
	.mtz-topbar { display: none; }
	.admin-bar .mtz-header { top: 46px; }
	.mtz-logo img { width: 184px; }
	.mtz-callbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-sizing: border-box;
		padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--mtz-line);
		box-shadow: 0 -6px 20px rgba(20, 32, 46, 0.08);
	}
	.mtz-callbar .wp-block-buttons { display: block; }
	.mtz-callbar .wp-block-button { display: block; width: 100%; }
	.mtz-callbar .wp-block-button__link { display: block; width: 100%; box-sizing: border-box; text-align: center; padding-block: 0.9em; }
	body { padding-bottom: 4.75rem; }
	/* The open phone menu covers the page, so the call bar steps aside instead of hiding its last item. */
	.has-modal-open .mtz-callbar { display: none; }
	/* Tab and #anchor jumps stop above the call bar instead of under it (#167, WCAG 2.4.11). */
	html { scroll-padding-bottom: 5rem; }
	/* 48 px touch targets for the footer menu on touch layouts, like the legal links (#147). */
	.mtz-footer__links { gap: 0; }
	.mtz-footer__links a { display: inline-flex; align-items: center; min-height: 48px; }
	.mtz-hero h1 { max-width: none; }
}

@media (max-width: 599px) {
	.mtz-header__cta { display: none; }
	.mtz-footer__grid { grid-template-columns: 1fr; }
	.mtz-footer__legal { flex-direction: column; align-items: flex-start; }
	/* 48 px tap targets for the small legal links (Lighthouse tap-targets, 2026-10-01). */
	.mtz-footer__legal ul { gap: 0 1.25rem; }
	.mtz-footer__legal a { display: inline-flex; align-items: center; min-height: 48px; }
	.mtz-price-table th { font-size: 0.98rem; }
	.mtz-draftbar { font-size: 0.8rem; }
}

@media (max-width: 600px) {
	.admin-bar .mtz-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.wp-block-button__link:hover, .mtz-card:hover { transform: none; }
}

@media print {
	.mtz-draftbar, .mtz-topbar, .mtz-callbar, .mtz-nav, .mtz-ctaband { display: none !important; }
	.mtz-header { position: static; }
}

/* Service photography: reserve the same frame before and after each image loads. */
.mtz-service-image { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--mtz-radius); }
.mtz-service-image__img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
