/*
Theme Name: Bennett Family Chiropractic: Ledger
Theme URI: https://drgeorgebennettdc.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Clean, photo-led block theme for Bennett Family Chiropractic (Dr. George Bennett, Cinnaminson NJ). Built 2026-11 to the Sierra direction: light pages, the practice's own photos, one rotating home banner, a sticky header with phone and Book a visit, a phone call bar. Details from the trade: photos hung like the diplomas on the office wall (a matte and a thin ink frame), vertebra-level markers (C1, T4, L5) that number the sections like a patient's chart, ink and brass from the logo and the doctor's tie. No page builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: bfc-ledger
*/

@font-face { font-family: Newsreader; src: url(assets/fonts/newsreader-latin.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(assets/fonts/schibsted-grotesk-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--ink: #17140f;
	--text: #3a352d;
	--mute: #5f584c;
	--line: #d9d1bf;
	--rule: #8a8170;
	--accent: #7a5200;      /* dark brass: text, links, marks (7.3:1 on white) */
	--brass: #c8962e;       /* bright brass: fills and rules only (ink on it 7.9:1) */
	--bone: #f3eee2;
	--matte: #fbf8f1;
	--paper: #fffdf9;
	--gut: 16px;
	--wide: 1240px;
	--pad: max(var(--gut), calc((100% - var(--wide)) / 2));
	--sec: clamp(52px, 6.5vw, 96px);
	--display: Newsreader, "Iowan Old Style", Georgia, serif;
	--body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--head-h: 64px;
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1000px) { :root { --gut: 40px; --head-h: 78px; } }

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); }
h4 { font-family: var(--body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--brass); }
strong { font-weight: 600; color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfc-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 22px; height: 22px; flex: none; }
.bfc-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.bfc-skip:focus { top: 12px; color: #fff; }

/* Level marker: the small chart label that leads a section (a vertebra, then the topic). */
.bfc-kicker, .bfc-level { display: flex; align-items: center; gap: 12px; margin: 0 0 1.1rem; font: 600 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bfc-level__v { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 7px; border: 1.5px solid var(--ink); border-radius: 8px 8px 11px 11px / 7px 7px 11px 11px; color: var(--ink); background: var(--matte); letter-spacing: .04em; font-size: .75rem; }
.bfc-level__t { color: var(--accent); }
.bfc-kicker { color: var(--accent); }
.bfc-lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55; color: var(--text); max-width: 60ch; }
.bfc-mute { color: var(--mute); font-size: .95rem; }

/* ---------- buttons: a split button, label then a brass arrow cell ---------- */
.bfc-btn, .wp-block-button__link { display: inline-flex; align-items: stretch; min-height: 52px; padding: 0; font: 600 1.0625rem/1.2 var(--body); text-decoration: none; color: #fff; background: var(--ink); border: 0; border-radius: 0; cursor: pointer; transition: background-color .15s; }
.bfc-btn__t { display: inline-flex; align-items: center; padding: .7rem 1.35rem; }
.bfc-btn__a { display: inline-flex; align-items: center; justify-content: center; width: 52px; background: var(--brass); color: var(--ink); transition: width .18s ease; }
.bfc-btn:hover, .wp-block-button__link:hover { background: var(--accent); color: #fff; }
.bfc-btn:hover .bfc-btn__a { width: 60px; }
.bfc-btn--sm { min-height: 46px; font-size: 1rem; }
.bfc-btn--sm .bfc-btn__t { padding: .55rem 1.05rem; }
.bfc-btn--sm .bfc-btn__a { width: 44px; }
.wp-block-button__link { padding: .8rem 1.5rem; border-bottom: 4px solid var(--brass); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0 0; }
.bfc-link-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 48px; }
.bfc-link-tel:hover { color: var(--accent); text-decoration: underline; }

/* ---------- header (sticky) ---------- */
.bfc-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.bfc-header.is-scrolled { box-shadow: 0 6px 20px rgba(23, 20, 15, .07); }
.bfc-bar__in { display: flex; align-items: center; gap: 20px; max-width: calc(1440px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); height: var(--head-h); }
.bfc-brand { display: block; flex: none; line-height: 0; }
.bfc-nav { display: none; margin-left: auto; }
.bfc-bar__cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.bfc-bar__tel { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 1.0625rem; }
.bfc-bar__tel .bfc-ico { color: var(--accent); width: 20px; height: 20px; }
.bfc-bar__tel:hover { color: var(--accent); }
.bfc-bar__book { display: none; min-height: 46px; padding: .6rem 1.15rem; white-space: nowrap; }
.bfc-bar__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.bfc-bar__menu .bfc-ico--close, .bfc-bar__menu[aria-expanded="true"] .bfc-ico--menu { display: none; }
.bfc-bar__menu[aria-expanded="true"] .bfc-ico--close { display: block; }
@media (min-width: 768px) {
	.bfc-bar__tel, .bfc-bar__book { display: inline-flex; }
}
@media (min-width: 1280px) {
	.bfc-nav { display: block; }
	.bfc-bar__cta { margin-left: 8px; }
	.bfc-bar__menu, .bfc-panel { display: none !important; }
}

.bfc-menu { list-style: none; margin: 0; padding: 0; }
.bfc-menu--bar { display: flex; align-items: center; }
.bfc-menu--bar > .bfc-menu__item { position: relative; display: flex; align-items: center; }
.bfc-menu--bar .bfc-menu__link { display: block; padding: 10px 8px; color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.bfc-menu--bar .has-sub > .bfc-menu__link { padding-right: 0; }
.bfc-menu--bar .bfc-menu__link:hover, .bfc-menu--bar .is-in > .bfc-menu__link { color: var(--accent); }
.bfc-menu--bar .bfc-menu__link[aria-current="page"], .bfc-menu--bar .is-in > .bfc-menu__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.bfc-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bfc-menu__toggle .bfc-ico { width: 18px; height: 18px; transition: transform .15s; }
.bfc-menu__toggle[aria-expanded="true"] .bfc-ico { transform: rotate(180deg); }
.bfc-menu--bar .bfc-sub { position: absolute; top: calc(100% + 6px); left: -7px; min-width: 250px; padding: 10px 0; margin: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brass); box-shadow: 0 14px 30px rgba(23, 20, 15, .1); display: none; }
.bfc-menu--bar .bfc-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; } /* hover bridge */
.bfc-menu--bar .has-sub:hover > .bfc-sub, .bfc-menu--bar .has-sub.is-open > .bfc-sub { display: block; }
.bfc-menu--bar .bfc-sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: .975rem; white-space: nowrap; }
.bfc-menu--bar .bfc-sub a:hover, .bfc-menu--bar .bfc-sub a[aria-current="page"] { color: var(--accent); background: var(--bone); }
.bfc-sub .is-group a { font-weight: 600; margin-top: 4px; }
.bfc-sub .is-sub a { padding-left: 30px; font-size: .94rem; }

.bfc-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(23, 20, 15, .12); max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 8px var(--gut) 24px; }
.bfc-menu--panel > .bfc-menu__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.bfc-menu--panel .bfc-menu__link { flex: 1; display: block; padding: 14px 0; color: var(--ink); font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.bfc-menu--panel .bfc-menu__link[aria-current="page"] { color: var(--accent); }
.bfc-menu--panel .bfc-menu__toggle { width: 48px; height: 48px; }
.bfc-menu--panel .bfc-sub { flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 12px; display: none; }
.bfc-menu--panel .is-open > .bfc-sub { display: block; }
.bfc-menu--panel .bfc-sub a { display: block; padding: 10px 0 10px 14px; color: var(--ink); text-decoration: none; }
.bfc-menu--panel .bfc-sub .is-sub a { padding-left: 32px; }
.bfc-panel__contact { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 0; }
.bfc-panel__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.bfc-panel__contact .bfc-ico { color: var(--accent); }

/* Phones: exactly two buttons fixed at the bottom. Nothing else floats. */
.bfc-callbar { display: none; }
@media (max-width: 767px) {
	.bfc-callbar { display: grid; grid-template-columns: 1fr 1.7fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23, 20, 15, .08); }
	.bfc-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font: 600 1.0625rem var(--body); text-decoration: none; }
	.bfc-foot .bfc-callbar__call { color: var(--ink); background: var(--paper); }
	.bfc-foot .bfc-callbar__call .bfc-ico { color: var(--accent); }
	.bfc-foot .bfc-callbar__book { color: #fff; background: var(--accent); }
	.bfc-foot .bfc-callbar a:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
	.bfc-foot .bfc-callbar__book:focus-visible { outline-color: #fff; }
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}


/* ---------- sections ---------- */
.bfc-main { display: block; }
.bfc-sec { padding: var(--sec) var(--pad); }
.bfc-sec--tight { padding-top: calc(var(--sec) * .55); padding-bottom: calc(var(--sec) * .55); }
.bfc-sec--primed { background: var(--bone); }
.bfc-sec--rule { border-top: 1px solid var(--line); }
.bfc-sec > h2 { max-width: 24ch; }
.bfc-sec__intro { display: grid; gap: 8px 64px; margin-bottom: clamp(28px, 4vw, 48px); }
.bfc-sec__intro > * { margin: 0; }
@media (min-width: 1000px) {
	.bfc-sec__intro { grid-template-columns: 1fr 1fr; align-items: end; }
	.bfc-sec__intro .bfc-kicker { grid-column: 1 / -1; }
}
.bfc-prose > * { max-width: 70ch; }
.bfc-prose > h2, .bfc-prose > h3 { margin-top: 1.6em; }
.bfc-prose > h2:first-child, .bfc-prose > h3:first-child, .bfc-prose > .bfc-kicker + h2 { margin-top: 0; }
.bfc-prose li { margin-bottom: .35em; }

.bfc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 72px; align-items: center; }

/* ---------- the matte: photos hung like the diplomas on the office wall ---------- */
.bfc-mat, .bfc-fig { margin: 0; padding: 14px; background: var(--matte); border: 1px solid var(--ink); }
.bfc-mat > img, .bfc-mat .bfc-img, .bfc-fig img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--brass); }
.bfc-mat figcaption, .bfc-fig figcaption { margin: 12px 2px 0; font: 600 .78rem/1.35 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bfc-mat--sm { padding: 9px; }
.bfc-fig.wp-block-image { max-width: 460px; }
.bfc-doc { margin: 0; line-height: 0; }
.bfc-doc img { width: min(300px, 70vw); height: auto; display: block; }

/* ---------- home: hero ---------- */
.bfc-hero { display: grid; gap: 36px 56px; padding: clamp(28px, 4vw, 56px) var(--pad) var(--sec); align-items: center; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .bfc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); } .bfc-hero__media { order: 2; } }
.bfc-hero__title h1 { max-width: 15ch; margin-bottom: .35em; }
.bfc-hero__title .bfc-lead { margin-bottom: 1.4em; }
.bfc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.bfc-hero__actions p { margin: 0; }
.bfc-hero__facts { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: .98rem; }
.bfc-hero__facts p { margin: 0; }

.bfc-banner__mat { padding: 14px; }
.bfc-banner__stage { position: relative; aspect-ratio: 4 / 3; background: #e7e0cf; }
.bfc-banner__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.bfc-banner__slide img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: none; }
.bfc-banner__slide.is-on { opacity: 1; z-index: 1; }
html:not(.bfc-js) .bfc-banner__slide:not(:first-child) { display: none; }
.bfc-banner__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.bfc-banner__cap { margin: 0; font: 600 .78rem/1.35 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bfc-banner__ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.bfc-banner__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.bfc-banner__dot::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 6px; background: transparent; border: 1.5px solid var(--ink); border-radius: 3px; }
.bfc-banner__dot[aria-current="true"]::after { background: var(--brass); }
.bfc-banner__pause { width: 44px; height: 44px; margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.bfc-banner__pause:hover { background: var(--ink); color: #fff; }
.bfc-banner__pause .bfc-ico--play { display: none; }
.bfc-banner__pause.is-paused .bfc-ico--play { display: block; }
.bfc-banner__pause.is-paused .bfc-ico--pause { display: none; }
.bfc-banner__pause .bfc-ico { fill: currentColor; stroke: currentColor; width: 20px; height: 20px; }
.bfc-banner__pause .bfc-ico--pause { fill: none; }

/* ---------- sections ---------- */
.bfc-main { display: block; }
.bfc-sec { padding: var(--sec) var(--pad); }
.bfc-sec--tight { padding-top: calc(var(--sec) * .55); padding-bottom: calc(var(--sec) * .55); }
.bfc-sec--bone { background: var(--bone); }
.bfc-sec--rule { border-top: 1px solid var(--line); }
.bfc-sec > h2 { max-width: 22ch; }
.bfc-prose > * { max-width: 68ch; }
.bfc-prose > h2, .bfc-prose > h3 { margin-top: 1.7em; }
.bfc-prose > h2:first-child, .bfc-prose > h3:first-child, .bfc-prose > .bfc-level + h2 { margin-top: 0; }
.bfc-prose li { margin-bottom: .4em; }
.bfc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 72px; align-items: center; }
@media (min-width: 900px) { .bfc-split { grid-template-columns: 1fr 1fr; } .bfc-split--flip > :first-child { order: 2; } .bfc-split--top { align-items: start; } .bfc-split--doc { grid-template-columns: 320px 1fr; } }
.bfc-split > .wp-block-group > :last-child { margin-bottom: 0; }
.bfc-split--doc .bfc-doc { justify-self: center; }

/* page head: a heavy ink rule on top, like a chart header */
.bfc-head { padding-top: clamp(26px, 3.5vw, 48px); padding-bottom: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.bfc-head h1 { max-width: 18ch; margin-bottom: .3em; }
.bfc-head .bfc-lead { margin-bottom: 0; }
.bfc-head + .bfc-sec { padding-top: clamp(32px, 4.5vw, 64px); }
.bfc-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--mute); }
.bfc-crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--rule); }
.bfc-crumbs a { color: var(--mute); }
.bfc-crumbs a:hover { color: var(--ink); }

/* what we help with */
.bfc-cond { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
@media (min-width: 800px) { .bfc-cond { grid-template-columns: repeat(3, 1fr); } .bfc-cond__item + .bfc-cond__item { border-left: 1px solid var(--line); } }
.bfc-cond__item { padding: 28px 28px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .bfc-cond__item { padding: 28px 32px 28px 32px; border-bottom: 0; } .bfc-cond__item:first-child { padding-left: 0; } }
.bfc-cond__h { margin-bottom: .45em; }
.bfc-cond__h a { color: var(--ink); text-decoration: none; }
.bfc-cond__h a:hover { color: var(--accent); text-decoration: underline; }
.bfc-cond__more { margin: 0; font-weight: 600; }
.bfc-cond__more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.bfc-cond__more .bfc-ico { width: 18px; height: 18px; }

/* treatments: numbered like entries in a chart */
.bfc-tx { list-style: none; margin: 0; padding: 0; counter-reset: tx; display: grid; gap: 0 56px; }
@media (min-width: 800px) { .bfc-tx { grid-template-columns: 1fr 1fr; } }
.bfc-tx__item { counter-increment: tx; position: relative; padding: 24px 0 22px 64px; border-top: 1px solid var(--line); }
.bfc-tx__item::before { content: counter(tx, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 500 2.1rem/1 var(--display); color: var(--accent); }
.bfc-tx__h { margin-bottom: .3em; }
.bfc-tx__item p { margin: 0; max-width: 56ch; }

/* first visit: four steps threaded on a line, like the spine */
.bfc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: st; position: relative; }
@media (min-width: 900px) { .bfc-steps { grid-template-columns: repeat(4, 1fr); gap: 36px; } .bfc-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 2px; background: var(--ink); } }
.bfc-steps__item { position: relative; }
.bfc-steps__n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; position: relative; background: var(--brass); color: var(--ink); font: 600 1.35rem/1 var(--display); border: 2px solid var(--ink); border-radius: 12px 12px 16px 16px / 10px 10px 16px 16px; }
.bfc-bone .bfc-steps__n, .bfc-sec--bone .bfc-steps__n { background: var(--brass); }
.bfc-steps__h { font-size: 1.3rem; margin-bottom: .3em; }
.bfc-steps__item p { margin: 0; font-size: 1rem; }

/* credentials */
.bfc-creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 3px solid var(--ink); }
@media (min-width: 900px) { .bfc-creds { grid-template-columns: repeat(4, 1fr); } }
.bfc-creds li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .bfc-creds li { border-bottom: 0; } .bfc-creds li + li { border-left: 1px solid var(--line); padding-left: 24px; } }
.bfc-creds strong { font: 500 clamp(2.1rem, 1.6rem + 1.6vw, 3rem)/1 var(--display); color: var(--ink); }
.bfc-creds span { font-size: .98rem; max-width: 24ch; }

.bfc-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 700px) { .bfc-wall { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; } }
.bfc-wall .bfc-mat figcaption { min-height: 2.7em; }

.bfc-reviews { display: grid; gap: 36px; margin: 0 0 20px; }
@media (min-width: 900px) { .bfc-reviews { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.bfc-review { margin: 0; position: relative; padding-top: 44px; border-top: 1px solid var(--ink); }
.bfc-review::before { content: "\201C"; position: absolute; top: 4px; left: -2px; font: 500 4rem/1 var(--display); color: var(--brass); }
.bfc-review blockquote { margin: 0; }
.bfc-review blockquote p { font: 400 1.18rem/1.55 var(--display); color: var(--ink); margin: 0 0 .9em; }
.bfc-review figcaption { font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bfc-reviews__more { margin: 0; font-weight: 600; }

/* towns */
.bfc-towns { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bfc-towns { grid-template-columns: repeat(5, 1fr); } }
.bfc-town .bfc-mat img { aspect-ratio: 4 / 3; object-fit: cover; }
.bfc-town__t { padding-top: 14px; }
.bfc-town__h { font-size: 1.3rem; margin: 0 0 .25em; }
.bfc-town__h a { color: var(--ink); text-decoration: none; }
.bfc-town__h a:hover { color: var(--accent); text-decoration: underline; }
.bfc-town__h span { font: 600 .78rem var(--body); letter-spacing: .1em; color: var(--mute); margin-left: 4px; }
.bfc-town__t p { margin: 0; font-size: .97rem; }
.bfc-towns--full { grid-template-columns: minmax(0, 1fr); gap: 0; }
.bfc-towns--full .bfc-town { display: grid; gap: 18px 36px; padding: 30px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .bfc-towns--full .bfc-town { grid-template-columns: 300px 1fr; } }
.bfc-towns--full .bfc-town__t { padding-top: 0; }
.bfc-towns--full .bfc-town__t p { font-size: 1.0625rem; max-width: 62ch; }
.bfc-towns--full .bfc-town__d { margin-top: .7em !important; color: var(--mute); }
.bfc-map { margin: 0 0 40px; }
.bfc-map svg { width: 100%; height: auto; max-width: 880px; display: block; border: 1px solid var(--ink); background: var(--matte); }
.bfc-map figcaption { margin-top: 10px; font-size: .9rem; color: var(--mute); }

/* hours table */
.bfc-hours { border-collapse: collapse; width: 100%; max-width: 440px; font-size: 1rem; }
.bfc-hours th, .bfc-hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.bfc-hours th { font-weight: 600; color: var(--ink); width: 7.5em; padding-right: 14px; }
.bfc-ccard__note { margin: 14px 0 0; font-size: .95rem; color: var(--mute); }
.bfc-ccard__h { font: 600 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 22px 0 6px; }

/* closing band */
.bfc-cta { display: grid; gap: 22px 40px; align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--bone); border-top: 3px solid var(--ink); }
@media (min-width: 900px) { .bfc-cta { grid-template-columns: 1.4fr auto; } }
.bfc-cta h2 { margin: 0 0 .25em; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); max-width: none; }
.bfc-cta p { margin: 0; max-width: 56ch; }
.bfc-cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.bfc-cta__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--ink); text-decoration: none; }
.bfc-cta__tel:hover { color: var(--accent); text-decoration: underline; }
.bfc-cta__tel .bfc-ico { color: var(--accent); width: 20px; height: 20px; }

.bfc-links { list-style: none; padding: 0; margin: 0 0 1em; }
.bfc-links--big { display: grid; gap: 4px; }
.bfc-links li a { display: inline-block; padding: 6px 0; font-size: 1.15rem; }

/* do / don't table, exercise cards */
.bfc-dd { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1rem; }
.bfc-dd th, .bfc-dd td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.bfc-dd thead th { border-bottom: 2px solid var(--ink); font: 600 .78rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bfc-dd tbody th { font-weight: 600; color: var(--ink); width: 7.5em; }
@media (max-width: 700px) { .bfc-dd, .bfc-dd tbody, .bfc-dd tr, .bfc-dd th, .bfc-dd td { display: block; width: auto !important; } .bfc-dd thead { display: none; } .bfc-dd tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .bfc-dd th, .bfc-dd td { border: 0; padding: 2px 0; } .bfc-dd td:nth-of-type(1)::before { content: "Do: "; font-weight: 600; color: var(--ink); } .bfc-dd td:nth-of-type(2)::before { content: "Don’t: "; font-weight: 600; color: var(--ink); } }
.bfc-ex { counter-reset: ex; list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .bfc-ex { grid-template-columns: 1fr 1fr; } }
.bfc-ex > li { counter-increment: ex; position: relative; padding: 20px 0 18px 52px; border-top: 1px solid var(--line); margin: 0; }
.bfc-ex > li::before { content: counter(ex); position: absolute; left: 0; top: 18px; font: 500 1.9rem/1 var(--display); color: var(--accent); }
.bfc-ex h3 { font-size: 1.25rem; margin-bottom: .25em; }
.bfc-ex p { margin: 0 0 .5em; font-size: 1rem; }
.bfc-warn { padding: 18px 22px; background: var(--bone); border-left: 4px solid var(--brass); max-width: 68ch; margin: 1.5em 0; }
.bfc-warn p { margin: 0; }
.bfc-phases { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
@media (min-width: 900px) { .bfc-phases { grid-template-columns: repeat(4, 1fr); } .bfc-phases li + li { border-left: 1px solid var(--line); padding-left: 22px; } }
.bfc-phases li { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); margin: 0; }
.bfc-phases strong { display: block; font: 500 1.35rem var(--display); margin-bottom: .3em; }
.bfc-phases span { font-size: .98rem; display: block; }
.bfc-photo-row { display: grid; gap: 26px; }
@media (min-width: 700px) { .bfc-photo-row { grid-template-columns: repeat(3, 1fr); } }
.bfc-photo-row .bfc-mat { max-width: 440px; }
.bfc-work { }
.wp-block-gallery.has-nested-images.bfc-work figure.wp-block-image figcaption { display: none; }
.wp-block-gallery.has-nested-images.bfc-work figure.wp-block-image a:focus-visible { outline-offset: 2px; }
.bfc-lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 18, 20, .96); color: #fff; }
.bfc-lb::backdrop { background: rgba(18, 18, 20, .6); }
.bfc-lb[open] { display: flex; align-items: center; justify-content: center; }
.bfc-lb__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1400px, 92vw); }
.bfc-lb__fig img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.bfc-lb__cap { margin: 0; text-align: center; color: #eceae6; font-size: .98rem; }
.bfc-lb__n { color: #b8b6b1; margin-left: .6em; }
.bfc-lb__btn { position: absolute; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 2px; background: rgba(18, 18, 20, .5); color: #fff; cursor: pointer; }
.bfc-lb__btn:hover { background: #fff; color: var(--ink); }
.bfc-lb__btn:focus-visible { outline-color: #fff; }
.bfc-lb__close { top: 16px; right: 16px; }
.bfc-lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.bfc-lb__next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 767px) {
	.bfc-lb__prev, .bfc-lb__next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; }
	.bfc-lb__prev { left: calc(50% - 64px); }
	.bfc-lb__next { right: calc(50% - 64px); }
	.bfc-lb__fig img { max-height: calc(100dvh - 220px); }
}


/* ---------- contact + forms (Ninja Forms, opinionated styles off) ---------- */
.bfc-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.bfc-form, .bfc-form .nf-form-cont, .bfc-form nf-field, .bfc-form .nf-field-element { min-width: 0; max-width: 100%; }
@media (min-width: 1000px) { .bfc-contact { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); } }
.bfc-ccard { background: var(--bone); padding: 24px 20px 20px; border-top: 3px solid var(--accent); }
@media (min-width: 600px) { .bfc-ccard { padding: 30px 30px 26px; } }
.bfc-ccard a, .bfc-foot__facts a, .bfc-panel__contact a { overflow-wrap: anywhere; }
.bfc-ccard__big { display: flex; align-items: center; gap: 12px; font: 400 1.9rem/1.1 var(--display); margin: 0 0 18px; }
.bfc-ccard__big a { color: var(--ink); text-decoration: none; }
.bfc-ccard__big a:hover { color: var(--accent); }
.bfc-ccard__big .bfc-ico { color: var(--accent); }
.bfc-ccard__list { list-style: none; margin: 0; padding: 0; }
.bfc-ccard__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bfc-ccard__list .bfc-ico { color: var(--accent); margin-top: 2px; }
.bfc-form .nf-form-content { padding: 0; max-width: none; }
.bfc-form .nf-form-fields-required { font-size: .95rem; color: var(--mute); margin-bottom: 18px; }
.bfc-form nf-fields-wrap { display: flex; flex-wrap: wrap; gap: 0 20px; }
.bfc-form nf-field { flex: 1 1 100%; }
@media (min-width: 700px) { .bfc-form nf-field:has(.bfc-half) { flex: 1 1 calc(50% - 10px); } }
.bfc-form .nf-field-container { margin-bottom: 22px; }
.bfc-form .nf-field-label { margin-bottom: 6px; }
.bfc-form .nf-field-label label, .bfc-form .nf-field-label .nf-label-span { font-weight: 600; color: var(--ink); font-size: 1rem; }
.bfc-form .ninja-forms-req-symbol { color: var(--accent); }
.bfc-form input.ninja-forms-field:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]), .bfc-form textarea.ninja-forms-field, .bfc-form select.ninja-forms-field {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.4 var(--body); }
.bfc-form textarea.ninja-forms-field { min-height: 150px; height: 150px; }
.bfc-form .ninja-forms-field:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.bfc-form .nf-field-description { font-size: .92rem; color: var(--mute); margin-top: 6px; }
.bfc-form .list-radio-wrap ul, .bfc-form .list-checkbox-wrap ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bfc-form .list-radio-wrap li, .bfc-form .list-checkbox-wrap li { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.bfc-form .list-radio-wrap .nf-field-element li input, .bfc-form .list-checkbox-wrap .nf-field-element li input { width: 20px !important; height: 20px; margin: 0 !important; flex: none; accent-color: var(--accent); }
.bfc-form .list-radio-wrap .nf-field-element li label, .bfc-form .list-checkbox-wrap .nf-field-element li label { font-weight: 400 !important; margin: 0 !important; padding: 0; width: auto; }
.bfc-form .list-radio-wrap .nf-field-element li, .bfc-form .list-checkbox-wrap .nf-field-element li { margin: 0 !important; padding: 0; }
.bfc-form .nf-error-msg, .bfc-form .nf-error .nf-error-msg { color: #a3142a; font-size: .95rem; font-weight: 500; margin-top: 6px; }
.bfc-form .nf-error .ninja-forms-field { border-color: #a3142a !important; border-width: 2px !important; }
.bfc-form .nf-form-errors .nf-error-msg { margin: 0 0 12px; }
.bfc-form .nf-pass .ninja-forms-field { border-color: var(--rule); }
.bfc-form input[type=submit], .bfc-form input[type=button].ninja-forms-field { min-height: 52px; padding: 0 30px; border: 0; border-radius: 2px; background: var(--accent); color: #fff; font: 600 1.05rem var(--body); cursor: pointer; }
.bfc-form input[type=submit]:hover, .bfc-form input[type=button].ninja-forms-field:hover { background: var(--ink); }
.bfc-form .nf-after-field .nf-input-limit { display: none; }
.bfc-thanks { padding: 32px 0 8px; outline: none; }
.bfc-thanks__check { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; margin-bottom: 18px; }
.bfc-thanks__check .bfc-ico { width: 32px; height: 32px; stroke-width: 2.2; }
.bfc-thanks h2 { margin-bottom: .35em; }
.bfc-thanks ol { margin: 14px 0 22px; padding-left: 1.3em; }
.bfc-thanks ol li { margin-bottom: 6px; }
.bfc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
/* ---------- contact ---------- */
.bfc-form input[type=submit], .bfc-form input[type=button].ninja-forms-field { background: var(--ink); border-bottom: 4px solid var(--brass); border-radius: 0; }
.bfc-form input[type=submit]:hover, .bfc-form input[type=button].ninja-forms-field:hover { background: var(--accent); }
.bfc-thanks__check { background: var(--brass); color: var(--ink); }
.bfc-ccard { background: var(--bone); border-top: 3px solid var(--ink); }
.bfc-ccard__big a { font-size: 1.9rem; }

/* ---------- footer (light: the logo is black type on transparent) ---------- */
.bfc-foot { background: var(--bone); color: var(--text); font-size: 1rem; border-top: 3px solid var(--ink); }
.bfc-foot a { color: var(--ink); }
.bfc-foot a:hover { color: var(--accent); }
.bfc-foot__in { display: grid; gap: 40px 48px; padding: clamp(48px, 6vw, 80px) var(--pad) 40px; }
@media (min-width: 700px) { .bfc-foot__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bfc-foot__in { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.bfc-foot__logo { display: block; width: min(265px, 70vw); height: auto; margin: 0 0 22px; }
.bfc-foot__facts { list-style: none; margin: 0; padding: 0; }
.bfc-foot__facts li { display: flex; gap: 12px; padding: 6px 0; }
.bfc-foot__facts .bfc-ico { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.bfc-foot__facts a { text-decoration: none; }
.bfc-foot__facts a:hover { text-decoration: underline; }
.bfc-foot__h { font: 600 .8rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 6px 0 16px; }
.bfc-foot__col ul { list-style: none; margin: 0; padding: 0; }
.bfc-foot__col li { padding: 4px 0; }
.bfc-foot__col a { text-decoration: none; }
.bfc-foot__col a:hover { text-decoration: underline; }
.bfc-hours--foot { font-size: .95rem; }
.bfc-hours--foot th, .bfc-hours--foot td { padding: 5px 0; }
.bfc-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px var(--pad) 22px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--mute); }
.bfc-foot__base p { margin: 0; }
.bfc-credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
	.bfc-callbar { background: var(--bone); border-top: 2px solid var(--ink); }
	.bfc-foot .bfc-callbar__call { color: var(--ink); background: var(--bone); }
	.bfc-foot .bfc-callbar__book { color: #fff; background: var(--ink); box-shadow: inset 0 -4px 0 var(--brass); }
	.bfc-foot .bfc-callbar__book:hover { color: #fff; }
}

/* ---------- the one quiet fade-in (site.js adds .bfc-rise only when motion is allowed) ---------- */
.bfc-rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.bfc-rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.bfc-rise { opacity: 1; transform: none; transition: none; }
	.bfc-banner__slide, .bfc-btn__a { transition: none; }
	html { scroll-behavior: auto; }
}
@media print { .bfc-header, .bfc-callbar, .bfc-banner__bar { display: none !important; } .bfc-header { position: static; } }

/* spacing after the list components */
.bfc-steps, .bfc-tx, .bfc-creds, .bfc-cond, .bfc-reviews, .bfc-towns, .bfc-phases { margin-bottom: 32px; }
.bfc-wall { margin-top: 36px; margin-bottom: 28px; }
.bfc-sec > .bfc-steps + p, .bfc-sec > .bfc-towns + p { margin-top: 0; }
