/*
 * Site footer (includes/common/footer.php).
 * Blush closing band with a soft wave edge, a four-column directory and a slim base line.
 * Site rules: full width (no max-width), 28px / 14px gutter, no card chrome, no italics,
 * no CSS background images. Tokens come from nav.css (with fallbacks).
 */

/* Undo the old theme footer (background photos, padding, dark scheme). */
#footer.dst-foot {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dst-body, #52464e);
	font-family: var(--dst-font, 'Jost', system-ui, sans-serif);
}
#footer.dst-foot::before { content: none; }
.dst-foot *, .dst-foot *::before, .dst-foot *::after { box-sizing: border-box; }
/* Resets in :where() so they never outrank the component rules below (footer.css loads after the theme). */
:where(.dst-foot) ul { list-style: none; margin: 0; padding: 0; }
:where(.dst-foot) p { margin: 0; }
:where(.dst-foot) a { color: inherit; text-decoration: none; }
.dst-foot .dst-i { width: 18px; height: 18px; }

.dst-foot__wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; fill: var(--dst-blush, #fdf4f8); }
.dst-foot__body { background: var(--dst-blush, #fdf4f8); padding: 0 var(--dst-gutter, 28px); }

/* Closing statement + the two ways to reach the clinic */
.dst-foot__lead {
	display: flex; align-items: center; justify-content: space-between; gap: 32px 48px;
	padding: 28px 0 44px;
	border-bottom: 1px solid var(--dst-line, #f0e5eb);
}
.dst-foot__statement {
	max-width: 30ch;
	font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em;
	color: var(--dst-ink, #2a1f27);
	text-wrap: balance;
}
.dst-foot__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.dst-foot__btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border-radius: 999px;
	background: #fff; color: var(--dst-rose-ink, #c63a72);
	font-size: 16px; font-weight: 500; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, transform .16s ease-out;
}
.dst-foot__btn--solid { background: var(--dst-rose-ink, #c63a72); color: #fff; }
.dst-foot .dst-foot__btn:hover, .dst-foot .dst-foot__btn:focus-visible { color: var(--dst-rose-deep, #a92e60); }
.dst-foot .dst-foot__btn--solid:hover, .dst-foot .dst-foot__btn--solid:focus-visible { background: var(--dst-rose-deep, #a92e60); color: #fff; }
.dst-foot__btn:active { transform: scale(.97); }

/* Directory */
.dst-foot__grid {
	display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; gap: 40px 48px;
	padding: 48px 0 52px;
}
.dst-foot__logo { display: inline-block; }
.dst-foot__logo img { display: block; width: 186px; height: auto; }
.dst-foot__bio { margin-top: 18px; max-width: 32ch; font-size: 15px; line-height: 1.6; }
.dst-foot__social { display: flex; gap: 10px; margin-top: 22px; }
.dst-foot__social a {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: #fff; color: var(--dst-rose-ink, #c63a72);
	transition: background-color .2s ease, color .2s ease;
}
.dst-foot .dst-foot__social a:hover, .dst-foot .dst-foot__social a:focus-visible { background: var(--dst-rose-ink, #c63a72); color: #fff; }

.dst-foot__h {
	margin: 0 0 18px;
	font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.4;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--dst-rose-ink, #c63a72);
}
.dst-foot__links { display: grid; gap: 4px; }
.dst-foot__links a {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 0;
	font-size: 16px; line-height: 1.4; color: var(--dst-ink, #2a1f27);
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.dst-foot .dst-foot__links a:hover, .dst-foot .dst-foot__links a:focus-visible {
	color: var(--dst-rose-ink, #c63a72); text-decoration-color: currentColor;
}
.dst-foot .dst-foot__links a.dst-foot__more { margin-top: 6px; color: var(--dst-rose-ink, #c63a72); font-weight: 500; text-decoration: none; }
.dst-foot__more .dst-i { width: 16px; height: 16px; transition: transform .22s var(--dst-ease, ease); }
.dst-foot__more:hover .dst-i, .dst-foot__more:focus-visible .dst-i { transform: translateX(3px); }

.dst-foot__status { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 14px; font-weight: 500; color: var(--dst-muted, #86757f); }
.dst-foot__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dst-foot__status.is-open { color: #23805a; }
.dst-foot__status.is-open .dst-foot__dot { box-shadow: 0 0 0 4px rgba(35, 128, 90, .14); }
.dst-foot__lines { display: grid; gap: 14px; }
.dst-foot__lines a, .dst-foot__line { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--dst-body, #52464e); }
.dst-foot__lines .dst-i { margin-top: 2px; color: var(--dst-rose, #f05697); }
.dst-foot__lines a span { overflow-wrap: anywhere; transition: color .2s ease; }
.dst-foot .dst-foot__lines a:hover span, .dst-foot .dst-foot__lines a:focus-visible span { color: var(--dst-rose-ink, #c63a72); }

/* Base line */
.dst-foot__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
	padding: 20px 0 24px;
	border-top: 1px solid var(--dst-line, #f0e5eb);
	font-size: 13px; line-height: 1.5; color: var(--dst-muted, #86757f);
}

.dst-foot__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.dst-foot .dst-foot__legal a { color: var(--dst-body, #52464e); text-decoration: none; transition: color .2s ease; }
.dst-foot .dst-foot__legal a:hover { color: var(--dst-rose-ink, #c63a72); }

/* Theme back-to-top button: rose instead of navy/orange, and the base line keeps clear of it on desktop. */
#gotoTop { background-color: var(--dst-rose-ink, #c63a72); }
#gotoTop:hover { background-color: var(--dst-rose-deep, #a92e60) !important; }
@media (min-width: 1100px) { .dst-foot__base { padding-right: 72px; } }

.dst-foot a:focus-visible { outline: 2px solid var(--dst-rose-ink, #c63a72); outline-offset: 3px; border-radius: 6px; }
.dst-foot .dst-foot__btn:focus-visible, .dst-foot .dst-foot__social a:focus-visible { border-radius: 999px; }

/* Tablet: two by two */
@media (max-width: 1099.98px) {
	.dst-foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
	/* nav.css pads the body for the fixed dock; run the blush into that padding (page height unchanged). */
	#footer.dst-foot { margin-bottom: calc(-1 * (var(--dst-dock-h, 64px) + env(safe-area-inset-bottom))); }
	.dst-foot__body { padding-bottom: calc(var(--dst-dock-h, 64px) + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
	.dst-foot__lead { flex-direction: column; align-items: flex-start; }
}
/* Phone: brand, then Treatments and Explore side by side, then the clinic */
@media (max-width: 699.98px) {
	.dst-foot__wave { height: 28px; }
	.dst-foot__lead { gap: 22px; padding: 18px 0 32px; }
	.dst-foot__statement { font-size: 22px; }
	.dst-foot__actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }
	.dst-foot__btn { justify-content: center; min-height: 50px; }
	.dst-foot__grid { gap: 34px 20px; padding: 34px 0 36px; }
	.dst-foot__brand, .dst-foot__col--visit { grid-column: 1 / -1; }
	.dst-foot__logo img { width: 160px; }
	.dst-foot__links a { font-size: 15px; }
	.dst-foot__base { flex-direction: column; padding: 18px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.dst-foot__btn, .dst-foot__more .dst-i { transition: none; }
	.dst-foot__btn:active { transform: none; }
}
