/* Klashify footer: one rounded dark panel. Tokens come from site.css (--k-*).
   Text colour: a component sets --kf-fg and the single ".kf, .kf *" rule applies it. That rule is !important on purpose: the booking
   plugin's dark page (/staff-bookings/) and the parent theme set their own colour on every a, p, li and span, which flattened the
   footer's levels (heading / link / small print) into one. The panel is dark in both looks, so nothing else changes there. */
.kf {
	--kf-fg: #fff;
	--kf-fg-quiet: rgba(255, 255, 255, .55);
	--kf-fg-soft: rgba(255, 255, 255, .66);
	--kf-fg-link: rgba(255, 255, 255, .72);
	margin: clamp(40px, 5vw, 72px) 12px 12px;
	font-family: var(--k-font-body);
}
.kf, .kf * { color: var(--kf-fg) !important; }
.kf *, .kf *::before, .kf *::after { box-sizing: border-box; }
.kf ul { list-style: none; margin: 0; padding: 0; }
.kf p { margin: 0; }

.kf__panel {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(24px, 3.2vw, 40px);
	border-radius: var(--k-r-lg);
	background: var(--k-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.kf__top {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 64px);
	padding-bottom: clamp(24px, 3vw, 32px);
}

.kf__brand p { --kf-fg: var(--kf-fg-soft); margin-top: var(--k-3); max-width: 34ch; font-size: 14px; line-height: 1.6; }
.kf .kf__logo {
	--kf-fg: #fff;
	font: 700 clamp(26px, 2.4vw, 30px)/1 var(--k-font-head);
	letter-spacing: -.04em;
	text-decoration: none;
}

.kf__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k-6); }
.kf__h { --kf-fg: var(--kf-fg-quiet); margin-bottom: var(--k-2); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.kf__col li + li { margin-top: 0; }

.kf a.kf__link {
	--kf-fg: var(--kf-fg-link);
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: 14px;
	text-decoration: none;
	transition: color var(--k-fast) var(--k-ease);
}
.kf a.kf__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--k-slow) var(--k-ease);
}
.kf a.kf__link:hover, .kf a.kf__link:focus { --kf-fg: #fff; }
.kf a.kf__link:hover::after, .kf a.kf__link:focus::after { transform: scaleX(1); }

.kf__bottom {
	--kf-fg: var(--kf-fg-quiet);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--k-4);
	padding-top: var(--k-4);
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
}

.kf a.kf__social {
	--kf-fg: #fff;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	transition: background-color var(--k-fast) var(--k-ease), color var(--k-fast) var(--k-ease), transform var(--k-slow) var(--k-ease);
}
.kf a.kf__social:hover, .kf a.kf__social:focus { background: #fff; --kf-fg: var(--k-ink); }
@media (hover: hover) { .kf a.kf__social:hover { transform: translateY(-2px); } }
.kf a.kf__social:active { transform: scale(.96); }

.kf a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The booking plugin's dark page (/staff-bookings/) is #0e1013, almost the panel's own ink: lift the panel one step and give it a hairline so it stays a visible object. */
html[data-kb-page="dark"] .kf__panel { background: #1a1e23; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

@media (max-width: 900px) {
	.kf { margin-inline: 8px; }
	.kf a.kf__social { width: 44px; height: 44px; }
	.kf a.kf__link { min-height: 44px; align-items: flex-start; padding-block: 10px; line-height: 1.35; }   /* finger target; text starts at the top so a wrapped link ("Book an appointment") keeps the same rhythm */
	.kf a.kf__link::after { bottom: 9px; }
	.kf__top { grid-template-columns: 1fr; }
	.kf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--k-5); }
}
@media (max-width: 480px) {
	.kf__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.kf a, .kf a::after { transition-duration: .01ms !important; }
}
