/*
Theme Name: MyFamily Physio
Theme URI: https://example.com/
Author: MyFamily Physio
Description: Warm, accessible block theme for MyFamily Physio. Every page is built from standard blocks so it can be edited in the WordPress editor without code.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfamily-physio
*/

/* ---------- Basics ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--berry);
	outline-offset: 3px;
}

/* ---------- Text helpers ---------- */
.mfp-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mauve);
	margin-bottom: 0.5rem !important;
}
.mfp-lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--wp--preset--color--muted); max-width: 34em; }
.mfp-muted { color: var(--wp--preset--color--muted); }
.mfp-name {
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 700 !important;
	letter-spacing: -0.05em !important;
	line-height: 0.98 !important;
	color: var(--wp--preset--color--ink) !important;
}

/* ---------- Sections and bands ---------- */
.mfp-section { padding-block: clamp(56px, 7vw, 96px); }
.mfp-section-tight { padding-block: clamp(32px, 4vw, 56px); }
.is-style-mfp-band {
	border-radius: var(--wp--custom--radius--band);
	padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 64px) !important;
}
.is-style-mfp-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(22px, 2.4vw, 30px) !important;
}
.is-style-mfp-card.has-background { border-color: transparent; }
.mfp-hero-photo img, .mfp-photo img {
	width: 100%;
	border-radius: 32px;
	object-fit: cover;
	display: block;
}
.mfp-hero-photo img { aspect-ratio: 5 / 6; }
.mfp-photo img { aspect-ratio: 4 / 3; }
.mfp-portrait img { aspect-ratio: 4 / 5; }

/* Number badge used in step cards */
.mfp-num {
	width: 52px; height: 52px;
	border-radius: 999px;
	display: grid; place-items: center;
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--berry);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	margin: 0;
}

/* ---------- List styles ---------- */
.is-style-mfp-check { list-style: none; padding-left: 0; margin-left: 0; }
.is-style-mfp-check li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
	break-inside: avoid;
}
.is-style-mfp-check li::before {
	content: "";
	position: absolute; left: 0; top: 0.32em;
	width: 18px; height: 18px;
	background: var(--wp--preset--color--berry);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-mfp-check.mfp-cols { columns: 2 240px; column-gap: 28px; }
.is-style-mfp-check.mfp-cols-3 { columns: 3 220px; column-gap: 28px; }

.is-style-mfp-chips { list-style: none; padding: 0; margin-left: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.is-style-mfp-chips li {
	font-size: 15px; font-weight: 500;
	padding: 8px 14px; border-radius: 999px;
	background: var(--wp--preset--color--white);
}

.is-style-mfp-steps { list-style: none; padding: 0; margin-left: 0; counter-reset: mfp-step; display: flex; flex-direction: column; gap: 16px; }
.is-style-mfp-steps li {
	counter-increment: mfp-step;
	display: flex; align-items: center; gap: 18px;
	font-size: 18px; font-weight: 500;
}
.is-style-mfp-steps li::before {
	content: counter(mfp-step);
	flex: none;
	width: 52px; height: 52px; border-radius: 999px;
	display: grid; place-items: center;
	background: #F1EFEB;
	color: var(--wp--preset--color--berry);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
}

/* Symptom checklist: plain list in the editor, tick boxes on the website */
.is-style-mfp-symptoms {
	list-style: none; padding: 0; margin-left: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.is-style-mfp-symptoms li {
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 16px 18px;
	font-size: 16px; line-height: 1.45;
}
.is-style-mfp-symptoms li label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.is-style-mfp-symptoms li input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wp--preset--color--berry); }
.is-style-mfp-symptoms li.is-checked { background: var(--wp--preset--color--blush); border-color: #D58CA8; }
.mfp-symptom-result { border-radius: 20px; padding: 22px !important; }
.mfp-symptom-result.is-empty { background: var(--wp--preset--color--sand) !important; }
.mfp-symptom-result.is-empty > :not(.mfp-symptom-count) { display: none; }
.mfp-symptom-result:not(.is-empty) { background: var(--wp--preset--color--berry-dark) !important; color: #fff; }
.mfp-symptom-result:not(.is-empty) .wp-block-button__link { background: #fff; color: var(--wp--preset--color--berry-dark); }
.mfp-symptom-count { font-family: var(--wp--preset--font-family--heading); font-size: 24px; margin: 0 0 6px; }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex; justify-content: space-between; gap: 16px;
	font-size: 18px; font-weight: 600;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--berry); font-size: 22px; line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin-top: 12px; }

/* ---------- "What brings you in?" picker ---------- */
/* Without JavaScript (and in the editor) it is a list of Details blocks. */
.mfp-pathfinder .wp-block-details {
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 18px 20px;
	margin-bottom: 12px;
}
.mfp-pathfinder.is-enhanced { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.mfp-pathfinder.is-enhanced > .wp-block-details { display: none; }
.mfp-pf-tabs { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.mfp-pf-tab {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	width: 100%; text-align: left;
	padding: 20px 22px; border-radius: 18px;
	border: 1.5px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit; font-size: 18px; font-weight: 600;
	cursor: pointer;
}
.mfp-pf-tab::after { content: "\2192"; opacity: 0.5; }
.mfp-pf-tab[aria-selected="true"] { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.mfp-pf-tab[aria-selected="true"]::after { opacity: 1; }
.mfp-pf-panel {
	flex: 1.4 1 480px; min-width: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 26px;
	padding: clamp(24px, 3vw, 40px);
}
.mfp-pf-panel h3 { margin-top: 0; }
.mfp-pf-panel > * + * { margin-top: 1.2rem; }


/* ---------- Header ---------- */
.mfp-utility { font-size: 14px; padding-block: 10px !important; }
.mfp-utility p { margin: 0; }
.mfp-utility a { color: inherit; text-decoration: none; }
.mfp-header { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 14px !important; }
.mfp-brand .wp-block-site-title { margin: 0; }
/* Logo: the MyFamily Physio medallion is shown until a Site Logo is uploaded in the Site Editor. */
.mfp-brand .wp-block-site-title { display: flex; align-items: center; line-height: 1.2; }
.mfp-brand:not(:has(.wp-block-site-logo img)) .wp-block-site-title a {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mfp-brand:not(:has(.wp-block-site-logo img)) .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 76px;
	height: 76px;
	margin: 0 0 0 -10px;
	background: url("assets/images/logo/medallion-flat.svg") center / contain no-repeat;
}
.mfp-footer .wp-block-site-title a::before {
	content: "";
	display: block;
	width: 104px;
	height: 104px;
	margin: -10px 0 10px -10px;
	background: url("assets/images/logo/medallion-mono-white.svg") center / contain no-repeat;
}
@media (max-width: 781px) {
	.mfp-brand:not(:has(.wp-block-site-logo img)) .wp-block-site-title a::before { width: 56px; height: 56px; }
}
.mfp-header .wp-block-navigation .wp-block-navigation-item__content { padding-block: 10px; }
.mfp-header > .wp-block-group { align-items: center; }
.mfp-brand { align-items: center; }
.mfp-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--berry-dark); box-shadow: inset 0 -2px 0 currentColor; }
.mfp-header .wp-block-button__link { padding: 12px 22px; font-size: 16px; }

/* ---------- Footer ---------- */
.mfp-footer { padding-block: 56px 32px !important; font-size: 15px; }
.mfp-footer a { color: #fff; text-decoration: none; }
.mfp-footer a:hover { text-decoration: underline; color: #fff; }
.mfp-footer .mfp-footer-bottom { border-top: 1px solid #3A474D; padding-top: 22px; font-size: 14px; color: #C5CDD0; }
.mfp-footer .mfp-footer-bottom a { color: #C5CDD0; }
.mfp-footer .wp-block-site-title a { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.mfp-utility .mfp-utility-tagline { display: none; }
	.is-style-mfp-band { border-radius: 28px; }
	.mfp-hero-photo img { aspect-ratio: 4 / 3; }
}

/* Footer extras */
.mfp-footer .mfp-soft { color: #C5CDD0; margin: 0 0 6px; }
.mfp-footer h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.mfp-plain { list-style: none; padding: 0; margin-left: 0; }
.mfp-plain li { margin-bottom: 8px; }

/* ---------- More helpers used by the starter pages ---------- */
.mfp-gap-xl { gap: clamp(32px, 5vw, 64px) !important; }
.mfp-small { font-size: 15px; }
.mfp-strong { font-weight: 700; }
.mfp-bio { font-size: 19px; color: var(--wp--preset--color--ink-soft); max-width: 36em; }
.mfp-note { background: var(--wp--preset--color--ground); border-radius: 16px; padding: 16px 20px; font-size: 16px; }
.mfp-link a { font-weight: 600; text-decoration: none; }
.mfp-h-card { font-family: var(--wp--preset--font-family--body) !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: var(--wp--preset--color--ink) !important; }
.is-style-mfp-check.mfp-inline { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 16px; }
.is-style-mfp-check.mfp-inline li { margin: 0; }
.mfp-name { font-size: clamp(44px, 5.4vw, 80px) !important; margin-bottom: 0 !important; }
.mfp-name + .mfp-lead { margin-top: 8px !important; }
.is-style-mfp-card > * { margin-block: 0; }
.is-style-mfp-card > * + * { margin-block-start: 0.7rem; }
.is-style-mfp-card .wp-block-buttons { margin-block-start: 1.2rem; }
.mfp-check-title { font-family: var(--wp--preset--font-family--body) !important; font-size: 19px !important; font-weight: 700 !important; color: inherit !important; padding-left: 30px; position: relative; }
.mfp-check-title::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px;
	background: var(--wp--preset--color--berry);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mfp-pathfinder .wp-block-details > h3 { display: none; }
.mfp-pathfinder.is-enhanced .mfp-pf-panel h3 { display: block; }
.mfp-pf-panel[hidden] { display: none; }

/* Dark bands (ink background) */
.mfp-on-dark h1, .mfp-on-dark h2, .mfp-on-dark h3, .mfp-on-dark h4 { color: #fff; }
.mfp-on-dark .mfp-lead, .mfp-on-dark .mfp-muted { color: #C5CDD0; }
.mfp-on-dark .mfp-eyebrow { color: #F3B9CE; }
.mfp-on-dark a:not(.wp-block-button__link) { color: #F3B9CE; }
.mfp-on-dark .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); }
.mfp-on-dark .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.mfp-on-dark .mfp-num { background: transparent; color: #F3B9CE; width: auto; height: auto; justify-content: start; font-size: 32px; }
.mfp-on-dark .mfp-check-title::before { background: #F3B9CE; }
.mfp-chips-dark li { background: var(--wp--preset--color--ink-raised); color: #fff; font-size: 16px; padding: 12px 18px; border-radius: 14px; }

/* Keep intro text left-aligned inside centred (constrained) sections */
.is-layout-constrained > .mfp-lead,
.is-layout-constrained > .mfp-bio { margin-left: 0 !important; margin-right: auto !important; }
.mfp-mini-cards .is-style-mfp-card { padding: 16px !important; border-radius: 18px; }
.mfp-mini-cards p { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Card grids: 1 column on phones, 2 on tablets */
@media (max-width: 781px) {
	.wp-block-group.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 782px) and (max-width: 1080px) {
	.wp-block-group.is-layout-grid:not(.mfp-mini-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Cards that stand in the hero instead of a photo */
.mfp-hero-card { box-shadow: 0 24px 60px rgba(31, 42, 48, 0.08); padding: clamp(26px, 3vw, 40px) !important; border-radius: 28px; }
.mfp-hero-card h3 { margin-top: 0.3rem !important; }
.mfp-stack-cards { gap: 12px; }
.mfp-stack-cards .is-style-mfp-card { width: 100%; padding: 16px 20px !important; border-radius: 18px; }
.mfp-stack-cards .mfp-check-title { font-size: 17px !important; }

/* Optional clinic-detail lines (e.g. parking) disappear when left empty */
.wp-block-paragraph:empty, p:empty { display: none; }
