/* ---------------------------------------------------------------------------
* HK site footer
*
* The theme's own footer (CozyStay_HK_Footer): a photograph of the camp under
* a deep wash, the brand, the pages a guest looks for, every service page and
* the contact details, then a quiet bottom row.
*
* Every colour is written with the .site-footer .hkf prefix: the theme paints
* links inside the footer gold, and the lists here are meant to read as text,
* with gold kept for what should be noticed.
* --------------------------------------------------------------------------- */

.site-footer .hkf {
	--hkf-gold: #e5b84f;
	--hkf-white: #ffffff;
	--hkf-text: rgba(255, 255, 255, 0.72);
	--hkf-muted: rgba(255, 255, 255, 0.46);
	--hkf-line: rgba(255, 255, 255, 0.12);
	position: relative;
	box-sizing: border-box;
	padding: 0;
	background-color: #0b0f0c;
	background-image: url("../../images/landing/camp-aerial.webp");
	background-position: center 35%;
	background-size: cover;
	color: var(--hkf-text);
	font-family: var(--body-font, "Jost", sans-serif);
	font-size: 15px;
	line-height: 1.75;
	isolation: isolate;
}

/* The wash over the photograph: dark enough to read on, light enough to see
* the camp through. */
.site-footer .hkf::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(8, 11, 9, 0.9) 0%, rgba(8, 11, 9, 0.93) 55%, rgba(8, 11, 9, 0.97) 100%);
	content: "";
}

.site-footer .hkf::after {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: -1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(229, 184, 79, 0.55), transparent);
	content: "";
}

.site-footer .hkf *,
.site-footer .hkf *::before,
.site-footer .hkf *::after {
	box-sizing: border-box;
}

.site-footer .hkf-inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.15fr 1.25fr;
	gap: 56px 48px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 86px 24px 64px;
}

/* ------------------------------------------------------------------ brand */
.site-footer .hkf-logo {
	display: inline-block;
	margin: 0 0 22px;
	text-decoration: none;
}

.site-footer .hkf-logo-img {
	display: block;
	width: auto;
	max-width: 186px;
	height: auto;
}

.site-footer .hkf-logo-text {
	color: var(--hkf-white);
	font-family: var(--heading-font, "Marcellus", serif);
	font-size: 26px;
}

.site-footer .hkf-about {
	margin: 0;
	max-width: 40ch;
	color: var(--hkf-text);
	font-size: 14.5px;
	line-height: 1.8;
}

.site-footer .hkf-badge {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 20px 0 0;
	color: var(--hkf-muted);
	font-size: 13px;
	line-height: 1.55;
}

.site-footer .hkf-badge svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	fill: var(--hkf-gold);
}

.site-footer .hkf-social-title {
	margin: 30px 0 12px;
	color: var(--hkf-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.site-footer .hkf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .hkf-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--hkf-line);
	border-radius: 50%;
	background: transparent;
	color: var(--hkf-text);
	transition: border-color 0.3s ease, color 0.3s ease;
}

.site-footer .hkf-social a:hover {
	border-color: rgba(229, 184, 79, 0.6);
	color: var(--hkf-gold);
}

.site-footer .hkf-social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ------------------------------------------------------------- link lists */
.site-footer .hkf-title {
	margin: 0 0 20px;
	color: var(--hkf-white);
	font-family: var(--heading-font, "Marcellus", serif);
	font-size: 19px;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.site-footer .hkf-links,
.site-footer .hkf-contact-list {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .hkf-links a {
	color: var(--hkf-text);
	font-size: 14.5px;
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer .hkf-links a:hover,
.site-footer .hkf-links a:focus-visible {
	color: var(--hkf-white);
}

/* ---------------------------------------------------------------- contact */
.site-footer .hkf-contact-list li {
	display: grid;
	gap: 3px;
}

.site-footer .hkf-label {
	color: var(--hkf-muted);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.site-footer .hkf-contact-list a,
.site-footer .hkf-contact-list span:not(.hkf-label) {
	color: var(--hkf-text);
	font-size: 14.5px;
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer .hkf-contact-list a:hover {
	color: var(--hkf-white);
}

.site-footer .hkf a.hkf-map {
	margin-top: 4px;
	color: var(--hkf-gold);
	font-size: 12.5px;
	letter-spacing: 0.04em;
}

.site-footer .hkf a.hkf-map:hover {
	color: var(--hkf-gold);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* A quiet outline button, not a coloured pill. */
.site-footer .hkf a.hkf-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 12px 22px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: transparent;
	color: var(--hkf-white);
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-footer .hkf a.hkf-whatsapp span {
	color: inherit;
}

.site-footer .hkf a.hkf-whatsapp:hover,
.site-footer .hkf a.hkf-whatsapp:hover span {
	border-color: var(--hkf-white);
	background: var(--hkf-white);
	color: #0b0f0c;
}

.site-footer .hkf a.hkf-whatsapp:hover span {
	background: transparent;
}

.site-footer .hkf a.hkf-whatsapp svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ------------------------------------------------------------ bottom row */
.site-footer .hkf-bottom {
	border-top: 1px solid var(--hkf-line);
}

.site-footer .hkf-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px;
}

.site-footer .hkf-copy {
	margin: 0;
	color: var(--hkf-muted);
	font-size: 13px;
	letter-spacing: 0.02em;
}

.site-footer .hkf-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .hkf-legal a {
	color: var(--hkf-muted);
	font-size: 13px;
	text-decoration: none;
}

.site-footer .hkf-legal a:hover {
	color: var(--hkf-white);
}

/* ------------------------------------------------------------- responsive */
@media only screen and (max-width: 1199px) {
	/* The brand takes the top row and the three lists share the next one. */
	.site-footer .hkf-inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 32px;
		padding: 68px 24px 52px;
	}

	.site-footer .hkf-brand {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: start;
		gap: 8px 48px;
	}

	.site-footer .hkf-logo {
		grid-row: 1;
		margin-bottom: 6px;
	}

	.site-footer .hkf-about {
		grid-row: 2;
		max-width: none;
	}

	.site-footer .hkf-badge {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		justify-self: start;
		margin-top: 0;
	}

	.site-footer .hkf-social-title,
	.site-footer .hkf-social {
		grid-column: 1 / -1;
	}

	.site-footer .hkf-social-title {
		margin-top: 20px;
	}
}

/* The floating contact rail sits over the left edge on a tablet. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
	.site-footer .hkf-inner,
	.site-footer .hkf-bottom-inner {
		padding-inline-start: 92px;
	}
}

@media only screen and (max-width: 767px) {
	.site-footer .hkf {
		background-position: center 30%;
	}

	.site-footer .hkf-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 20px;
		padding: 52px 20px 40px;
	}

	.site-footer .hkf-brand,
	.site-footer .hkf-contact {
		grid-column: 1 / -1;
	}

	.site-footer .hkf-brand {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.site-footer .hkf-badge {
		grid-column: 1;
		grid-row: auto;
		margin-top: 16px;
	}

	.site-footer .hkf-title {
		font-size: 18px;
		margin-bottom: 16px;
	}

	.site-footer .hkf-bottom-inner {
		justify-content: flex-start;
		padding: 20px;
	}
}

/* The sticky contact bar covers the last line of the page on a phone. */
@media only screen and (max-width: 767px) {
	body:has(.hkl-dock) .site-footer .hkf-bottom-inner {
		padding-bottom: calc(80px + env(safe-area-inset-bottom));
	}
}

@media only screen and (max-width: 379px) {
	.site-footer .hkf-inner {
		grid-template-columns: minmax(0, 1fr);
	}
}
