/* CFCA overrides: small fixes on top of PhysioZen + Elementor. Hand-edited; keep it short.
   Tokens match the prototype (see docs/SPEC.md). */

/* PhysioZen's own buttons, links and form fields follow the brand */
body.cfca {
	--cfca-ink: #12304F; --cfca-blue: #0255A3; --cfca-cta: #0174B5; --cfca-deep: #01407C;
	--cfca-sky: #CFE4F8; --cfca-mist: #EAF4FD; --cfca-line: #D3E5F7; --cfca-muted: #4D6A87; --cfca-pdf: #D0312D;
}
/* Not inside .cfca-site: the design CSS sets its own link and button colours there (footer, top bar, Call / Join bar). */
body.cfca a:not(.cfca-site a) { color: var(--cfca-cta); }
body.cfca .button:not(.cfca-site *), body.cfca button[type="submit"]:not(.cfca-site *), body.cfca input[type="submit"]:not(.cfca-site *),
body.cfca .woocommerce a.button, body.cfca .woocommerce button.button {
	background: var(--cfca-cta); color: #fff; border: 2px solid var(--cfca-cta); border-radius: 999px;
	font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-weight: 700;
}
body.cfca .button:not(.cfca-site *):hover, body.cfca button[type="submit"]:not(.cfca-site *):hover, body.cfca input[type="submit"]:not(.cfca-site *):hover,
body.cfca .woocommerce a.button:hover, body.cfca .woocommerce button.button:hover {
	background: var(--cfca-deep); border-color: var(--cfca-deep);
}
body.cfca input[type="text"]:not(.cfca-site *), body.cfca input[type="email"]:not(.cfca-site *), body.cfca input[type="password"]:not(.cfca-site *),
body.cfca input[type="tel"]:not(.cfca-site *), body.cfca select:not(.cfca-site *), body.cfca textarea:not(.cfca-site *) {
	border: 1px solid var(--cfca-line); border-radius: 12px; background: var(--cfca-mist); color: var(--cfca-ink);
}

/* Images: width/height attributes must not beat aspect-ratio */
.cfca-site img { height: auto; }

/* Phone-only Call / Join bar */
.cfca-site.cfca-mobile-bar { display: none; }
@media (max-width: 700px) {
	.cfca-site.cfca-mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		background: var(--cfca-deep); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px;
	}
	.cfca-site.cfca-mobile-bar a {
		display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
		font: 700 15px "Montserrat", Arial, sans-serif; text-decoration: none;
	}
	.cfca-site.cfca-mobile-bar .cfca-mobile-bar__call { background: #fff; color: var(--cfca-deep); }
	.cfca-site.cfca-mobile-bar .cfca-mobile-bar__join { background: var(--cfca-cta); color: #fff; }
	body.cfca { padding-bottom: 64px; }
}

/* The page content sets the logo size inline as --s; the scoped design CSS reads --cfca-s. */
.cfca-site .seal[style*="--s:"] { --cfca-s: var(--s); }

/* Elementor containers that hold CFCA markup add no spacing of their own. */
.cfca-tpl { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; }

/* The page content uses the prototype's short variable names inline (var(--white), --s …);
   the scoped design CSS defines them with a --cfca- prefix. Map one to the other. */
.cfca-site {
	--white: var(--cfca-white); --ink: var(--cfca-ink); --cta: var(--cfca-cta);
	--soft: var(--cfca-soft); --display: var(--cfca-display);
}

/* Element resets against PhysioZen's global styles live in cfca-reset.css (loaded before the design CSS). */

/* ---------- Forminator forms (design "None"), styled as the prototype's form fields ---------- */
.cfca-site .cfca-form form.forminator-custom-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.cfca-site .cfca-form .forminator-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 0; padding: 0; }
.cfca-site .cfca-form .forminator-col { min-width: 0; margin: 0; padding: 0; }
.cfca-site .cfca-form .forminator-col-12,
.cfca-site .cfca-form .forminator-row-last .forminator-col { grid-column: 1 / -1; }
@media (max-width: 620px) {
	.cfca-site .cfca-form .forminator-row { grid-template-columns: 1fr; }
}
.cfca-site .cfca-form .forminator-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.cfca-site .cfca-form .forminator-label { font: 600 14px var(--cfca-display); color: var(--cfca-ink); margin: 0; }
.cfca-site .cfca-form .forminator-required { color: inherit; }
.cfca-site .cfca-form .forminator-description { order: 1; font-size: 13px; color: var(--cfca-muted); }
.cfca-site .cfca-form .forminator-file-upload { order: 2; }
.cfca-site .cfca-form .forminator-error-message { order: 3; font-size: 13px; color: #B3261E; }
.cfca-site .cfca-form input.forminator-input,
.cfca-site .cfca-form select,
.cfca-site .cfca-form textarea,
.cfca-site .cfca-form input[type=file] {
	font: 15px var(--cfca-body); padding: 12px 16px; border: 1px solid var(--cfca-line); border-radius: 12px;
	background: var(--cfca-mist); color: var(--cfca-ink); width: 100%; height: auto; box-shadow: none;
}
.cfca-site .cfca-form textarea { min-height: 130px; resize: vertical; }
.cfca-site .cfca-form input[type=file] { padding: 10px; background: var(--cfca-white); }
.cfca-site .cfca-form .forminator-has_error input,
.cfca-site .cfca-form .forminator-has_error textarea { border-color: #B3261E; }
.cfca-site .cfca-form .forminator-title { font-size: 24px; font-weight: 800; margin: 8px 0 0; }
.cfca-site .cfca-form .forminator-radio,
.cfca-site .cfca-form .forminator-checkbox__wrapper { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 0; }
.cfca-site .cfca-form .forminator-checkbox { display: flex; margin: 0; }
.cfca-site .cfca-form .forminator-radio input,
.cfca-site .cfca-form .forminator-checkbox input { width: auto; margin: 4px 0 0; }
.cfca-site .cfca-form .forminator-radio-bullet,
.cfca-site .cfca-form .forminator-checkbox-box,
.cfca-site .cfca-form .forminator-hidden,
.cfca-site .cfca-form .forminator-upload--remove[style*="none"] { display: none !important; }
.cfca-site .cfca-form .forminator-button-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; width: auto;
	font-family: var(--cfca-display); font-weight: 700; font-size: 15px; line-height: 1.2; padding: 13px 24px;
	border-radius: var(--cfca-r-pill); border: 2px solid var(--cfca-cta); background: var(--cfca-cta); color: var(--cfca-white);
	cursor: pointer; transition: background .2s, color .2s;
}
.cfca-site .cfca-form .forminator-button-submit:hover { background: var(--cfca-deep); border-color: var(--cfca-deep); }
.cfca-site .cfca-form .forminator-response-message { display: none; border-radius: 14px; padding: 14px 18px; font-size: 14px; }
.cfca-site .cfca-form .forminator-response-message.forminator-show { display: block; }
.cfca-site .cfca-form .forminator-response-message.forminator-success { background: var(--cfca-mist); border: 1px solid var(--cfca-sky); color: var(--cfca-ink); }
.cfca-site .cfca-form .forminator-response-message.forminator-error { background: #FDECEA; border: 1px solid #F3B8B3; color: #7A1712; }
.cfca-site .cfca-form .forminator-response-message p { margin: 0; }

/* ---------- Find a Specialist list ([cfca_specialists]) ---------- */
.cfca-site .spec-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.cfca-site .spec-jump a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--cfca-mist); border: 1px solid var(--cfca-line); font: 600 14px var(--cfca-display); color: var(--cfca-blue); text-decoration: none; }
.cfca-site .spec-jump a:hover { border-color: var(--cfca-cta); }
.cfca-site .spec-jump small { color: var(--cfca-muted); font-weight: 600; }
.cfca-site .spec-prov { scroll-margin-top: 24px; }
.cfca-site .card.spec { gap: 6px; }
.cfca-site .card.spec h3 { font-size: 18px; }
.cfca-site .card.spec p { margin: 0; font-size: 15px; }
.cfca-site .card.spec .spec-biz { font-weight: 600; color: var(--cfca-ink); }
.cfca-site .card.spec .spec-contact { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.cfca-site .card.spec .spec-contact a { overflow-wrap: anywhere; }
.cfca-site .cfca-dir-fields { border: 1px solid var(--cfca-line); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.cfca-site .cfca-dir-fields legend { font: 700 16px var(--cfca-display); color: var(--cfca-blue); padding: 0 8px; }
.cfca-site .cfca-dir-fields label[for=cfca_dir_listed] { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.cfca-site .cfca-dir-fields label[for=cfca_dir_listed] input { width: auto; margin-top: 4px; }

/* Reminder for logged-in people without an active membership */
.cfca-site .cfca-inactive { margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--cfca-ink); border-style: solid; }
.cfca-site .cfca-inactive p { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cfca-site .cfca-inactive p:first-child { display: block; }
.cfca-site .cfca-inactive-line { margin: 0; font-size: 15px; }

/* ---------- Find a Specialist: featured "Founding Clinic" card ---------- */
.cfca-site .founding { background: #018ede; color: #fff; border-radius: 28px; padding: 44px 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; }
/* Province, top right: the same distance from the top and right edges as the logo is from the top and left. */
.cfca-site .founding { position: relative; }
.cfca-site .founding-prov { position: absolute; top: 44px; right: 48px; background: #fff; color: #01407C; font: 800 20px/1 var(--cfca-display); letter-spacing: .04em; text-transform: uppercase; padding: 12px 22px; border-radius: 999px; }
@media (max-width: 760px) {
	.cfca-site .founding-prov { top: 28px; right: 22px; font-size: 17px; padding: 10px 18px; }
}
.cfca-site .founding-logo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; background: #fff; object-fit: cover; display: block; }
.cfca-site .founding-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cfca-site .founding-pill { align-self: flex-start; background: #01407C; color: #fff; font: 700 13px/1.2 var(--cfca-display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; }
.cfca-site .founding h2 { font: 800 clamp(27px, 3.2vw, 38px)/1.15 var(--cfca-display); color: #fff; margin: 0; letter-spacing: 0; }
.cfca-site .founding p { margin: 0; color: #fff; }
.cfca-site .founding .founding-lead { font-size: 20px; line-height: 1.5; font-weight: 600; max-width: 62ch; }
.cfca-site .founding ul { list-style: none; margin: 0; padding: 0; }
.cfca-site .founding li { margin: 0; }
.cfca-site .founding-details { display: flex; flex-direction: column; gap: 6px; font-size: 18px; font-weight: 700; }
body .cfca-site .founding a { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cfca-site .founding-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
body .cfca-site .founding a.founding-btn { display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1.2 var(--cfca-display); padding: 14px 26px; border-radius: 999px; border: 2px solid #fff; color: #fff; background: transparent; text-decoration: none; transition: background .2s, color .2s; }
body .cfca-site .founding a.founding-btn.main { background: #fff; color: #01407C; }
body .cfca-site .founding a.founding-btn:hover { background: #01407C; border-color: #01407C; color: #fff; }
body .cfca-site .founding a:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; border-radius: 6px; }
body .cfca-site .founding a.founding-btn:focus-visible { border-radius: 999px; box-shadow: 0 0 0 3px #01407C; }
/* --founding-line: one thickness for the rule and the border round Erin King's photo, so they always match */
.cfca-site .founding-also { --founding-line: 2px; border-top: var(--founding-line) solid #fff; margin-top: 8px; padding-top: 18px; display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.cfca-site .founding-founder { display: flex; align-items: stretch; gap: 14px; }
.cfca-site .founding-also-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.cfca-site .founding .founder-name { font: 800 18px/1.3 var(--cfca-display); }
.cfca-site .founding .founder-role { margin-bottom: 6px; }
.cfca-site .founding-also-text p:last-child { font-weight: 600; max-width: 70ch; }
.cfca-site .founding-home { display: flex; flex-direction: column; gap: 6px; }
.cfca-site .founding-also ul { display: flex; flex-direction: column; gap: 2px; }
/* Erin King's photo: a square exactly as tall as the text beside it. The box has no height of its own
   (the picture is positioned inside it), so the text sets the row height and the box stretches to match. */
/* Height: stretched by flexbox to the text's height. Width: set equal to that height by cfca.js (browsers do not
   derive a width from a stretched height); 7em is the width used until the script has run. */
/* max-width: on a narrow screen a full square would squeeze the text into ever more lines, so the photo is never
   wider than a third of the row; there it stays beside the text, still as tall as the text, and is taller than wide. */
.cfca-site .founding-photo { position: relative; flex: none; align-self: stretch; width: 7em; max-width: 34%; border: var(--founding-line) solid #fff; box-sizing: border-box; border-radius: 5px; overflow: hidden; }
.cfca-site .founding-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 760px) {
	.cfca-site .founding { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
	.cfca-site .founding .founding-lead { font-size: 18px; }
	.cfca-site .founding-actions { flex-direction: column; }
	body .cfca-site .founding a.founding-btn { width: 100%; }
}


/* Top strip: same line box as the feetandlife.ca strip (13.76px x 1.65 = 22.704px, not 23px),
   so the links sit on the same pixel row and the bar is the same height on both sites. */
.cfca-site .eco { line-height: 1.65; }

/* Store pages: a single centred column; no placeholder picture, SKU/category line or related products */
body.cfca.single-product .woocommerce-product-gallery--without-images,
body.cfca.single-product .product_meta,
body.cfca.single-product section.related { display: none !important; }
body.cfca.single-product div.product { max-width: 760px; margin-inline: auto; }
body.cfca.single-product div.product .summary { float: none !important; width: 100% !important; margin: 0 !important; }
body.cfca.single-product .cmsmasters-content > .cfca-site { max-width: 760px; margin-inline: auto; }
body.cfca.woocommerce:not(.woocommerce-account) .cmsmasters-content { max-width: 1180px; margin-inline: auto; padding: 56px 16px 72px; box-sizing: border-box; }
body.cfca.woocommerce ul.products li.product img.woocommerce-placeholder { display: none; }

/* My Account forms (login, register, lost password): space between each field and the next field or button */
body.cfca .woocommerce form .form-row { margin-bottom: 16px; }
/* Phones: the founder text runs to many lines, so the photo is a square at the top beside it, not a tall strip */
@media (max-width: 560px) {
	.cfca-site .founding-photo { align-self: flex-start; aspect-ratio: 1 / 1; }
}

/* Logged-in state: .cfca-when-out shows to visitors only, .cfca-when-in to people who are logged in */
.cfca-site .cfca-when-in { display: none; }
body.logged-in .cfca-site .cfca-when-out { display: none !important; }
body.logged-in .cfca-site .cfca-when-in { display: inline-flex !important; }
body.logged-in .cfca-site span.cfca-when-in { display: inline !important; }
/* Links that jump to a section land clear of the top of the window */
.cfca-site #members-library, .cfca-site #videos { scroll-margin-top: 24px; }

/* Top strip on phones: short names on one centred line (CFCA | PodOrtho® School | Feet & Life Clinic).
   The email and phone are hidden there; the fixed Call bar and the footer still show them. Above 700px nothing changes. */
.cfca-site .eco-short { display: none; }
@media (max-width: 700px) {
	.cfca-site .eco .wrap { justify-content: center; padding-block: 9px; }
	.cfca-site .eco nav { justify-content: center; flex-wrap: nowrap; gap: 0; white-space: nowrap; }
	.cfca-site .eco nav a { font-size: 13px; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
	.cfca-site .eco nav a:first-child { border-left: 0; }
	.cfca-site .eco-full { display: none; }
	.cfca-site .eco-short { display: inline; }
	.cfca-site .eco-contact { display: none; }
}

/* Contrast: the small text beside a price ("/ year", "1 year", "textbook") was faded to 80% */
.cfca-site .price small { opacity: 1; }
.cfca-site .plan.main .price small { color: #fff; }
