/*
Theme Name: Argyll Foot Clinic
Theme URI: https://argyllfootclinic.com
Author: Argyll Foot Clinic
Description: A warm, editorial block theme for Argyll Foot Clinic (podiatry, Helensburgh), built for the WordPress Site Editor. Design tokens live in theme.json; bespoke section styling lives here.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: argyll-foot-clinic
*/

/* ============================================================
   Tokens (aliases of theme.json presets + design-only values)
   ============================================================ */
:root {
	--paper: var(--wp--preset--color--paper);
	--paper-band: var(--wp--preset--color--paper-band);
	--ink: var(--wp--preset--color--ink);
	--ink-deep: var(--wp--preset--color--ink-deep);
	--accent: var(--wp--preset--color--accent);
	--accent-light: var(--wp--preset--color--accent-light);
	--clay: var(--wp--preset--color--clay);
	--body: var(--wp--preset--color--body);
	--muted: var(--wp--preset--color--muted);
	--gold: var(--wp--preset--color--gold);
	--cream: var(--wp--preset--color--cream);

	--serif: var(--wp--preset--font-family--newsreader);
	--sans: var(--wp--preset--font-family--archivo);
	--mono: ui-monospace, "SF Mono", Menlo, monospace;

	--rule: rgba(27, 42, 49, 0.12);
	--rule-strong: rgba(27, 42, 49, 0.18);
	--rule-header: rgba(27, 42, 49, 0.10);
	--rule-btn: rgba(27, 42, 49, 0.25);

	--ph-a: #E3DED3;
	--ph-b: #EDE9E0;

	--gutter: 40px;
	--maxw: 1200px;
}

/* ============================================================
   Base
   ============================================================ */
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
::selection { background: #CFE0E4; }

p { text-wrap: pretty; }

/* Constrained container used by every section's inner wrapper. */
.afc-container {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: border-box;
}

/* Full-bleed section wrapper (backgrounds / borders span the viewport). */
.afc-bleed { width: 100%; }

/* Neutralize WordPress's flow block-gap margins on our custom grid/flex sections —
   we control spacing with CSS `gap` and explicit margins, and the stray top margin
   WP adds to non-first children was pushing columns out of alignment. */
.afc-hero > *,
.afc-split > *,
.afc-treatments > *,
.afc-review-grid > *,
.afc-dark-head > *,
.afc-reviews-head > *,
.afc-cred-logos > *,
.afc-nav-wrap > *,
.afc-prose > *,
.afc-contact-lines > *,
.afc-contact-strip .afc-container > *,
.afc-credentials .afc-container > * {
	margin-block: 0;
}

/* Eyebrow + sub-label helpers (applied to paragraphs in patterns). */
/* Page-title eyebrow — clay (v2). Only the page-title eyebrow uses clay. */
.afc-eyebrow {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay);
	margin: 0 0 28px;
}
.afc-sublabel {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}
.afc-lead { font-size: 19px; line-height: 1.6; color: var(--body); }
.afc-attrib {
	font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.afc-pullquote {
	font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--clay);
	line-height: 1.35; margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.wp-block-button__link {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Outline variant */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ink-deep);
	border: 1px solid var(--rule-btn);
	padding: 17px 32px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: transparent;
	color: var(--ink-deep);
	border-color: var(--ink-deep);
}
/* Inverse variant (on dark panels) */
.wp-block-button.is-style-inverse > .wp-block-button__link {
	background: var(--cream);
	color: var(--ink-deep);
	border: none;
}
.wp-block-button.is-style-inverse > .wp-block-button__link:hover { background: #ffffff; }

/* ============================================================
   Header
   ============================================================ */
.afc-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(246, 243, 237, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule-header);
}
.afc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: 18px;
}
.afc-logo { display: flex; align-items: flex-end; gap: 13px; text-decoration: none; }
.afc-logo .wp-block-site-logo { margin: 0 0 4px; line-height: 0; }
.afc-logo .wp-block-site-logo,
.afc-logo .wp-block-site-logo a,
.afc-logo .wp-block-site-logo img { width: auto; max-width: none; }
.afc-logo .wp-block-site-logo img { height: 38px; }
.afc-logo-text { display: flex; flex-direction: column; gap: 2px; }
.afc-logo .wp-block-site-title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 22px;
	letter-spacing: -0.01em;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}
.afc-logo .wp-block-site-title a { color: var(--ink); text-decoration: none; }
.afc-logo .afc-tagline {
	font-size: 9.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 2px 0 0;
	white-space: nowrap;
}
.afc-nav-wrap { display: flex; align-items: center; gap: 34px; }
.afc-header .wp-block-navigation {
	gap: 34px;
	font-size: 13px;
}
.afc-header .wp-block-navigation-item__content {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	padding-bottom: 3px;
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-position: left 100%;
	background-size: 0% 1px;
	transition: background-size 0.25s ease, color 0.2s ease;
}
.afc-header .wp-block-navigation-item__content:hover {
	color: var(--ink);
	background-size: 100% 1px;
}
.afc-header .current-menu-item .wp-block-navigation-item__content {
	color: var(--ink);
	background-size: 100% 1px;
}
/* Phone pill */
.afc-phone .wp-block-button__link {
	background: var(--accent);
	color: var(--paper);
	padding: 11px 20px;
	font-size: 13px;
	letter-spacing: 0.02em;
	border-radius: 999px;
}
.afc-phone .wp-block-button__link:hover { background: var(--ink-deep); }

/* ============================================================
   Footer
   ============================================================ */
.afc-footer { background: var(--paper-band); border-top: 1px solid var(--rule-header); }
.afc-footer-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	padding-block: 32px;
	font-size: 12.5px;
	color: var(--muted);
}
.afc-footer-inner p { margin: 0; }
.afc-footer .wp-block-navigation { gap: 20px; font-size: 12.5px; }
.afc-footer .wp-block-navigation-item__content { color: var(--muted); text-decoration: none; }
.afc-footer .wp-block-navigation-item__content:hover { color: var(--ink); }

/* ============================================================
   Image placeholders (removed when real photos land)
   ============================================================ */
.afc-ph {
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 9px, var(--ph-b) 9px 18px);
	border-radius: 4px;
	display: flex;
	align-items: flex-end;
	padding: 22px;
}
.afc-ph.afc-ph-45 { background: repeating-linear-gradient(45deg, var(--ph-a) 0 9px, var(--ph-b) 9px 18px); }
.afc-ph .afc-ph-cap,
.afc-ph-cap {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: #8A8375;
	background: var(--paper);
	padding: 6px 10px;
	border-radius: 3px;
	margin: 0;
	align-self: flex-end;
	display: inline-block;
}
.afc-ph-hero { aspect-ratio: 4/5; border-radius: 6px 6px 140px 6px; }
.afc-ph-map-home { aspect-ratio: 16/11; }

/* ============================================================
   Home — Hero
   ============================================================ */
.afc-hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: start;
	padding-block: 88px 72px;
}
.afc-hero h1 {
	font-size: 88px;
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.025em;
	color: var(--ink-deep);
	text-wrap: balance;
	margin: 0;
}
.afc-hero h1 em { font-style: italic; color: var(--clay); }
.afc-hero-text { min-width: 0; }
.afc-hero .afc-lead { max-width: 46ch; margin-top: 36px; }
.afc-hero .wp-block-buttons { margin-top: 40px; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Home — Credentials band
   ============================================================ */
.afc-credentials {
	background: var(--paper-band);
	border-top: 1px solid var(--rule-header);
	border-bottom: 1px solid var(--rule-header);
}
.afc-credentials .afc-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding-block: 34px;
}
.afc-credentials p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); max-width: 52ch; }
.afc-credentials strong { font-weight: 600; }
.afc-cred-logos { display: flex; gap: 12px; }
.afc-cred-logos .afc-cred-box {
	width: 92px; height: 52px;
	border: 1px solid var(--rule-strong);
	border-radius: 4px;
	background: repeating-linear-gradient(135deg, rgba(27,42,49,0.05) 0 7px, transparent 7px 14px);
	display: grid; place-items: center;
	font-family: var(--mono); font-size: 9px; color: #8A8375; margin: 0;
}
/* Real registration logos — transparent PNGs sit directly on the band, no box */
.afc-cred-logos .afc-cred-logo {
	margin: 0; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
}
.afc-cred-logos .afc-cred-logo img {
	height: 100%; width: auto; max-width: 160px; object-fit: contain; display: block;
}

/* ============================================================
   Home — Passionate about podiatry
   ============================================================ */
.afc-split {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 64px;
	padding-block: 96px;
}
.afc-split > h2 { font-size: 42px; margin: 0; }
.afc-prose { display: flex; flex-direction: column; gap: 24px; max-width: 62ch; }
.afc-prose p:not(.afc-pullquote):not(.afc-attrib) { margin: 0; font-size: 18px; line-height: 1.65; color: var(--body); }

/* ============================================================
   Home — Popular treatments (dark)
   ============================================================ */
.afc-dark { background: var(--ink-deep); color: var(--cream); }
.afc-dark .afc-container { padding-block: 88px; }
.afc-dark h2 { color: var(--cream); font-size: 42px; margin: 0; }
.afc-dark-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 32px; flex-wrap: wrap; margin-bottom: 48px;
}
.afc-alllink a {
	font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--accent-light); text-decoration: none;
	border-bottom: 1px solid rgba(159,189,199,0.4); padding-bottom: 3px;
}
.afc-treatments {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 0;
}
.afc-treatments .afc-cell { padding: 34px 30px 38px; }
.afc-treatments .afc-cell:first-child { padding-left: 0; }
.afc-treatments .afc-cell + .afc-cell { border-left: 1px solid rgba(237, 233, 224, 0.14); }
.afc-treatments .afc-cell p.afc-price {
	font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--cream); margin: 0 0 18px;
}
.afc-treatments h3 {
	font-family: var(--sans); font-weight: 400; color: var(--cream);
	font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 12px;
}
.afc-treatments .afc-cell p { font-size: 15px; line-height: 1.6; color: var(--accent-light); margin: 0; }

/* ============================================================
   Home — Reviews
   ============================================================ */
.afc-reviews { padding-block: 96px; }
.afc-reviews-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.afc-reviews-head h2 { font-size: 42px; margin: 0; }
.afc-reviews-head .afc-gtag { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.afc-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.afc-review {
	margin: 0; background: var(--paper-band); border-radius: 4px; padding: 32px 30px;
	display: flex; flex-direction: column; gap: 18px;
}
.afc-review .afc-stars { letter-spacing: 0.22em; color: var(--gold); font-size: 14px; margin: 0; }
.afc-review .afc-review-quote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-deep); }
.afc-review .afc-review-by { margin: 0; margin-top: auto; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
/* lighter (borderless) review variant */
.afc-review.is-plain {
	background: transparent; border-radius: 0; padding: 24px 0 0;
	border-top: 1px solid rgba(27,42,49,0.15); gap: 14px;
}
.afc-review.is-plain .afc-stars { font-size: 13px; }
.afc-review.is-plain .afc-review-quote { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--body); }

/* ============================================================
   Home — Contact strip
   ============================================================ */
.afc-contact-strip { border-top: 1px solid var(--rule); }
.afc-contact-strip .afc-container {
	display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 80px;
}
.afc-contact-strip h2 { font-size: 46px; line-height: 1.05; margin: 0 0 20px; }
.afc-contact-lines { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.afc-contact-lines p { margin: 0; font-size: 17px; color: var(--body); }

/* ============================================================
   Subpages — shared page head
   ============================================================ */
.afc-page-head { padding-block: 80px 56px; }
.afc-page-head .afc-eyebrow { margin-bottom: 22px; }
.afc-page-head h1 { font-size: 76px; line-height: 1; }
.afc-subline { font-size: 14px; letter-spacing: 0.03em; color: var(--muted); margin: 18px 0 0; }
.afc-page-head--split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: end; }
.afc-page-head--prices { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: end; padding-bottom: 48px; }
.afc-head-intro { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.65; color: var(--body); }
.afc-head-intro p { margin: 0; }

/* ============================================================
   Profile
   ============================================================ */
.afc-profile-body {
	display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; padding-bottom: 96px;
}
.afc-profile-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.afc-ph-portrait { aspect-ratio: 4/5; border-radius: 6px 6px 120px 6px; }
.afc-portrait-img { margin: 0; }
.afc-portrait-img img {
	width: 100%; aspect-ratio: 4/5; object-fit: cover;
	border-radius: 6px 6px 120px 6px; display: block;
}
.afc-qual-card { background: var(--paper-band); border-radius: 4px; padding: 24px 24px 26px; }
.afc-qual-card .afc-qual-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.afc-qual-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--body); }
.afc-profile-prose { display: flex; flex-direction: column; gap: 26px; font-size: 18px; line-height: 1.7; color: var(--body); max-width: 66ch; }
.afc-profile-prose p { margin: 0; }
.afc-profile-lead { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.35; color: var(--ink-deep); }
.afc-profile-prose .wp-block-buttons { margin-top: 12px; gap: 14px; }

/* ============================================================
   Team page — Frazer featured (reuses .afc-profile-*), then a
   "Working alongside Frazer" card band
   ============================================================ */
.afc-team-intro { max-width: 60ch; margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.afc-profile-namebar { display: flex; flex-direction: column; gap: 6px; }
.afc-profile-namebar > * { margin-block: 0; }
.afc-profile-name { font-size: 40px; margin: 0; }
.afc-profile-namebar .afc-subline { margin: 0; }

.afc-team-others { background: var(--paper-band); border-top: 1px solid var(--rule-header); }
.afc-team-others .afc-container { padding-block: 88px; }
.afc-team-others-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.afc-team-others-head h2 { font-size: 42px; margin: 0; }
.afc-team-others-intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.afc-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; align-items: start; }
.afc-team-card {
	display: flex; flex-direction: column;
	background: var(--paper); border-radius: 8px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(23, 50, 63, 0.05), 0 10px 30px rgba(23, 50, 63, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.afc-team-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(23, 50, 63, 0.07), 0 18px 44px rgba(23, 50, 63, 0.12);
}
.afc-team-card .afc-ph { aspect-ratio: 4/5; border-radius: 0; margin: 0; }
.afc-team-card-img { margin: 0; }
.afc-team-card-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 0; display: block; }
.afc-team-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.afc-team-card-name { font-size: 24px; margin: 0 0 8px; }
.afc-team-card-role { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.afc-team-card-bio {
	margin: 0; font-size: 15px; line-height: 1.6; color: var(--body);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	min-height: calc(1.6em * 3);
}
.afc-card-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.afc-card-details summary {
	list-style: none; cursor: pointer;
	font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
	display: inline-flex; align-items: center; gap: 7px;
}
.afc-card-details summary::-webkit-details-marker { display: none; }
.afc-card-details summary::before { content: "\25B8"; font-size: 10px; transition: transform 0.2s ease; }
.afc-card-details[open] summary::before { transform: rotate(90deg); }
.afc-card-details summary:hover { color: var(--ink-deep); }
.afc-card-details-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.afc-card-details-body > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.afc-card-box { background: var(--paper-band); border-radius: 4px; padding: 24px 24px 26px; }
.afc-card-box-label { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.afc-card-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--body); }
/* neutralize WP flow block-gap */
.afc-team-others-head > *, .afc-team-grid > *, .afc-card-details-body > * { margin-block: 0; }

@media (max-width: 999px) {
	.afc-team-others-head { grid-template-columns: 1fr; gap: 24px; }
	.afc-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
	.afc-team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Prices
   ============================================================ */
.afc-price-list { border-top: 1px solid var(--rule-strong); padding-bottom: 40px; }
.afc-price-row {
	display: grid; grid-template-columns: auto 1fr; gap: 48px; padding: 34px 0;
	border-bottom: 1px solid var(--rule); align-items: start;
}
.afc-price-fig { min-width: 150px; }
.afc-price-fig p { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--accent); }
.afc-price-row h2 { font-size: 22px; font-weight: 500; color: var(--ink-deep); margin: 0 0 12px; }
.afc-price-row .afc-price-desc { margin: 0; max-width: 70ch; font-size: 17px; line-height: 1.65; color: var(--body); }

.afc-cta-wrap { padding-block: 24px 96px; }
.afc-cta-card {
	background: var(--paper-band); border-radius: 4px; padding: 40px 40px 44px;
	display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.afc-cta-card h2 { font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; color: var(--ink-deep); margin: 0 0 10px; }
.afc-cta-card .afc-cta-text p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--body); }
.afc-cta-card .wp-block-button__link { white-space: nowrap; }

/* ============================================================
   Conditions — accordion, also-treated grid, reassurance CTA
   ============================================================ */
.afc-accordion-note { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }

/* Conditions filter: search box + category chips */
.afc-cond-controls {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.afc-cond-search {
	display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 340px;
	background: var(--paper-band); border-radius: 999px; padding: 11px 18px;
}
.afc-cond-search svg { flex: none; color: var(--muted); }
.afc-cond-search input {
	border: none; background: transparent; outline: none; width: 100%;
	font-family: var(--sans); font-size: 15px; color: var(--ink-deep);
}
.afc-cond-search input::placeholder { color: var(--muted); }
.afc-cond-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.afc-chip {
	cursor: pointer; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule-btn); background: transparent; color: var(--body);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.afc-chip:hover { border-color: var(--ink-deep); color: var(--ink-deep); }
.afc-chip.is-active { background: var(--ink-deep); color: var(--paper); border-color: var(--ink-deep); }
.afc-cond-cat { font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -0.01em; color: var(--ink-deep); margin: 44px 0 0; }
.afc-cat-block[hidden] { display: none; }
.afc-cond[hidden] { display: none; }
.afc-cond-noresults { font-size: 16px; line-height: 1.6; color: var(--muted); padding: 40px 0; }

.afc-accordion { border-top: 1px solid var(--rule-strong); margin-top: 20px; }
.afc-cond { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.afc-cond summary {
	list-style: none;
	display: flex; align-items: center; gap: 14px;
	font-family: var(--serif); font-size: 28px; color: var(--ink-deep); cursor: pointer;
}
.afc-cond summary::-webkit-details-marker { display: none; }
.afc-cond summary::before {
	content: ""; flex: none; box-sizing: border-box;
	width: 9px; height: 9px; margin-left: 3px;
	border-right: 2px solid #9AA8AD; border-bottom: 2px solid #9AA8AD;
	transform: translateX(-2px) rotate(-45deg);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.afc-cond[open] > summary { color: var(--accent); }
.afc-cond[open] > summary::before { transform: translateY(-2px) rotate(45deg); border-color: var(--accent); }
.afc-cond-body {
	max-width: 76ch; padding: 20px 0 8px 26px; display: flex; flex-direction: column; gap: 18px;
	font-size: 16.5px; line-height: 1.7; color: var(--body);
}
.afc-cond-body p { margin: 0; }
.afc-cond-group { display: flex; flex-direction: column; gap: 8px; }
.afc-cond-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.afc-cond-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.afc-cond-group ul { margin-top: 0; }
.afc-note-box { background: var(--paper-band); border-radius: 4px; padding: 16px 18px; }
.afc-cond-body .afc-pullquote { font-size: 22px; }

.afc-also { padding-block: 32px 0; }
.afc-also h2 { font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; color: var(--ink-deep); margin: 0 0 8px; }
.afc-also-lead { margin: 0 0 28px; max-width: 66ch; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.afc-also-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
	background: var(--rule); border: 1px solid var(--rule);
}
.afc-also-grid li { background: var(--paper); padding: 16px 18px; font-size: 15.5px; color: var(--body); margin: 0; }
.afc-also-grid li.afc-also-cta { background: var(--paper-band); }
.afc-also-grid li.afc-also-cta a { text-decoration: none; }

.afc-reassure-wrap { padding-block: 56px 96px; }
.afc-reassure {
	background: var(--ink-deep); color: var(--cream); border-radius: 4px; padding: 48px 44px;
	display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.afc-reassure h2 { font-family: var(--serif); font-weight: 300; font-size: 36px; letter-spacing: -0.02em; color: var(--cream); margin: 0 0 10px; }
.afc-reassure .afc-reassure-text p { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--accent-light); }
.afc-reassure .wp-block-button__link { white-space: nowrap; }

/* ============================================================
   Contact
   ============================================================ */
.afc-contact-body {
	display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; padding-bottom: 56px;
}
.afc-contact-details { border-top: 1px solid var(--rule-strong); }
.afc-contact-row { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.afc-contact-row:last-child { border-bottom: none; }
.afc-contact-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.afc-contact-value { font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--ink-deep); margin: 0; }
.afc-contact-value a { color: var(--ink-deep); text-decoration: none; }
.afc-contact-value a:hover { color: var(--accent); }
.afc-contact-map-col { display: flex; flex-direction: column; gap: 20px; }
.afc-contact-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Click-to-load map (GDPR-friendly: no Google request until the visitor asks) */
.afc-map {
	aspect-ratio: 4/3; border-radius: 4px; position: relative; overflow: hidden;
	background: repeating-linear-gradient(45deg, var(--ph-a) 0 9px, var(--ph-b) 9px 18px);
	display: grid; place-items: center;
}
.afc-map.is-loaded { background: none; }
.afc-map-load {
	cursor: pointer; background: var(--ink-deep); color: var(--paper); border: none; border-radius: 999px;
	padding: 14px 26px; font-family: var(--sans); font-size: 14px; font-weight: 600;
	display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
	transition: background-color 0.15s ease;
}
.afc-map-load:hover { background: var(--accent); }
.afc-map-load small { font-weight: 400; font-size: 11px; opacity: 0.8; }
.afc-map .afc-ph-cap { position: absolute; left: 20px; bottom: 20px; margin: 0; }
.afc-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Neutralize WP flow block-gap on the subpage grid/flex containers too. */
.afc-page-head--split > *,
.afc-page-head--prices > *,
.afc-head-intro > *,
.afc-profile-body > *,
.afc-profile-aside > *,
.afc-profile-prose > *,
.afc-qual-card > *,
.afc-price-row > *,
.afc-cta-card > *,
.afc-cta-text > *,
.afc-cond-body > *,
.afc-cond-group > *,
.afc-reassure > *,
.afc-reassure-text > *,
.afc-contact-body > *,
.afc-contact-details > *,
.afc-contact-row > *,
.afc-contact-map-col > * {
	margin-block: 0;
}

/* Subpage responsive */
@media (max-width: 1199px) {
	.afc-page-head { padding-block: 56px 40px; }
	.afc-page-head h1 { font-size: 56px; }
	.afc-profile-body { padding-bottom: 72px; }
}
@media (max-width: 999px) {
	.afc-page-head--split,
	.afc-page-head--prices,
	.afc-profile-body,
	.afc-contact-body { grid-template-columns: 1fr; gap: 40px; }
	.afc-profile-aside { position: static; }
	.afc-also-grid { grid-template-columns: repeat(2, 1fr); }
	.afc-reassure,
	.afc-cta-card { grid-template-columns: 1fr; gap: 24px; }
	.afc-page-head h1 { font-size: 48px; }
}
@media (max-width: 719px) {
	.afc-page-head h1 { font-size: 40px; }
	.afc-price-row { grid-template-columns: 1fr; gap: 8px; }
	.afc-cond summary { font-size: 24px; }
	.afc-also-grid { grid-template-columns: 1fr; }
	.afc-reassure h2, .afc-cta-card h2 { font-size: 28px; }
}

/* ============================================================
   Accessibility
   ============================================================ */
.afc-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ink-deep); color: var(--paper); padding: 12px 20px; border-radius: 0 0 4px 0;
}
.afc-skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
summary:focus-visible,
input:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
	:root { --gutter: 32px; }
	.afc-hero { padding-block: 64px; }
	.afc-hero h1 { font-size: 64px; }
	.afc-split, .afc-dark .afc-container, .afc-reviews, .afc-contact-strip .afc-container { padding-block: 72px; }
}
@media (max-width: 999px) {
	.afc-hero,
	.afc-split,
	.afc-contact-strip .afc-container { grid-template-columns: 1fr; gap: 40px; }
	.afc-hero { align-items: start; }
	.afc-hero .afc-ph-hero { order: 2; }
	.afc-treatments,
	.afc-review-grid { grid-template-columns: 1fr; }
	.afc-treatments .afc-cell { padding-left: 0; }
	.afc-treatments .afc-cell + .afc-cell {
		border-left: none;
		border-top: 1px solid rgba(237, 233, 224, 0.14);
		padding-top: 34px;
	}
	.afc-hero h1 { font-size: 56px; }
}
@media (max-width: 719px) {
	:root { --gutter: 22px; }
	.afc-hero h1 { font-size: 42px; }
	.afc-split > h2, .afc-dark h2, .afc-reviews-head h2 { font-size: 28px; }
	.afc-contact-strip h2 { font-size: 32px; }
	.afc-header-inner { gap: 12px; }
	.afc-nav-wrap { gap: 10px; }
	.afc-phone .wp-block-button__link { padding: 9px 15px; font-size: 12px; }
	.afc-hero, .afc-split, .afc-dark .afc-container, .afc-reviews, .afc-contact-strip .afc-container { padding-block: 48px; }
	body { font-size: 16px; }
}

/* ============================================================
   Mobile navigation (v3) — burger + right-sliding paper drawer
   ============================================================ */
.afc-mobile-controls { display: none; }

/* Burger (shown below the desktop breakpoint) */
.afc-burger {
	width: 44px; height: 44px; padding: 0; flex: none; cursor: pointer;
	background: transparent; border: 1px solid rgba(27, 42, 49, 0.2); border-radius: 8px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.afc-burger span { display: block; width: 19px; height: 1.5px; background: #17323F; }

/* Scrim + drawer live at <body> level (outside the blurred header). */
.afc-scrim {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(23, 50, 63, 0.38);
	opacity: 0; pointer-events: none;
	transition: opacity 260ms ease;
}
body.afc-nav-open .afc-scrim { opacity: 1; pointer-events: auto; }
body.afc-nav-open { overflow: hidden; }

.afc-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
	width: 82%; max-width: 380px;
	background: #F6F3ED;
	box-shadow: -18px 0 40px rgba(23, 50, 63, 0.14);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}
body.afc-nav-open .afc-drawer { transform: translateX(0); }

.afc-drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px 14px; border-bottom: 1px solid rgba(27, 42, 49, 0.1);
}
.afc-drawer-eyebrow {
	font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.20em;
	text-transform: uppercase; color: var(--clay);
}
.afc-drawer-close {
	width: 44px; height: 44px; border: none; background: transparent; padding: 0; cursor: pointer;
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink-deep);
}
.afc-drawer-nav { display: flex; flex-direction: column; padding: 0; }
.afc-drawer-nav a {
	display: flex; align-items: center;
	font-family: var(--serif); font-size: 27px; color: var(--ink-deep);
	text-decoration: none; padding: 15px 20px 15px 17px;
	border-bottom: 1px solid rgba(27, 42, 49, 0.1);
	border-left: 3px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.afc-drawer-nav a span { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
.afc-drawer-nav a:last-child { border-bottom: none; }
.afc-drawer-nav a.is-current { border-left-color: var(--clay); background: var(--paper-band); }
.afc-drawer-nav a:not(.is-current):hover { background: rgba(27, 42, 49, 0.04); }
.afc-drawer-nav a:not(.is-current):hover span { transform: translateX(5px); color: var(--accent); }
.afc-drawer-foot {
	margin-top: auto; padding: 20px;
	padding-bottom: max(20px, env(safe-area-inset-bottom));
	border-top: 1px solid rgba(27, 42, 49, 0.1);
	display: flex; flex-direction: column; gap: 12px;
}
.afc-drawer-call {
	display: block; text-align: center; text-decoration: none;
	font-family: var(--sans); font-size: 15px; color: #F6F3ED; background: #17323F;
	padding: 16px 20px; border-radius: 999px;
}
.afc-drawer-call:hover { background: var(--accent); }
.afc-drawer-addr { margin: 0; text-align: center; font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Below the desktop breakpoint: swap the desktop nav for the burger, scale the lockup down. */
@media (max-width: 1024px) {
	.afc-header .afc-nav-wrap { display: none !important; }
	.afc-mobile-controls { display: flex; align-items: center; gap: 10px; }
	.afc-header .afc-container.afc-header-inner { padding-inline: 18px; }
	.afc-header-inner { padding-block: 14px; }
	.afc-logo { gap: 9px; }
	.afc-logo .wp-block-site-logo img { height: 28px; }
	.afc-logo .wp-block-site-title { font-size: 16px; }
	.afc-logo .afc-tagline { font-size: 7.5px; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
