/* =====================================================================
   HFT Footer — Brand Kit V2.1 (Pinwheel)
   =====================================================================
   Site-wide footer. Hand-written, no Elementor. Rendered by footer.php when
   HFT owns the 'footer' location.

   PALETTE
     band            #1B437D  (--hft-navy)      the main footer color
     sub-bar         #12305A  (--hft-navy-900)  depth strip under it
     top rule        the four pinwheel sails: pink · yellow · green · blue
     link text       #C9D8EE  (navy tint) -> #fff on hover
     headings        cream, Fredoka, with a per-column sail underline

   RULES honored: three fonts three jobs · white/tint text on navy ·
   pill radius = tappable · hover never shifts layout jarringly.
   ===================================================================== */

.hft-foot {
	--foot-link:   #C9D8EE;   /* navy-tint link, AA on #1B437D */
	--foot-link-h: #FFFFFF;
	--foot-muted:  #9FB6D6;   /* captions / copyright */

	background-color: var(--hft-navy);
	color: #fff;
	font-family: var(--hft-font-body);
	position: relative;
	margin-top: 64px;
}

/* ---- The pinwheel rule: four sails, hard stops ---------------------- */
.hft-foot-sails {
	height: 5px;
	width: 100%;
	background: linear-gradient(
		90deg,
		var(--hft-sail-pink)   0%,   var(--hft-sail-pink)   25%,
		var(--hft-sail-yellow) 25%,  var(--hft-sail-yellow) 50%,
		var(--hft-sail-green)  50%,  var(--hft-sail-green)  75%,
		var(--hft-sail-blue)   75%,  var(--hft-sail-blue)   100%
	);
}

/* ---- Main band ------------------------------------------------------ */
.hft-foot-main {
	display: grid;
	grid-template-columns: 1.4fr 2.4fr;
	gap: 48px 40px;
	padding-top: 56px;
	padding-bottom: 48px;
	align-items: start;
}

/* ---- Brand column --------------------------------------------------- */
.hft-foot-brand { max-width: 340px; }

.hft-foot-logo { display: inline-block; }
.hft-foot-logo img {
	display: block;
	width: 200px;
	height: auto;
}

.hft-foot-tag {
	margin: 18px 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--foot-link);
}

/* ---- Social row ----------------------------------------------------- */
.hft-foot-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.hft-foot-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--hft-r-pill);
	background-color: rgba(255, 255, 255, .10);
	color: #fff;
	transition: background-color .18s ease, color .18s ease, transform .14s cubic-bezier(.2,.8,.3,1);
}
.hft-foot-social a svg { width: 18px; height: 18px; }
.hft-foot-social a:hover,
.hft-foot-social a:focus-visible {
	background-color: #fff;
	color: var(--hft-navy);
}
.hft-foot-social a:active { transform: scale(.94); }
.hft-foot-social a:focus-visible {
	outline: 3px solid var(--hft-sail-blue);
	outline-offset: 2px;
}

/* ---- Link columns --------------------------------------------------- */
.hft-foot-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}
.hft-foot-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hft-foot-col li { margin: 0 0 11px; }

.hft-foot-h {
	font-family: var(--hft-font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .10em;
	text-transform: uppercase;
	/* !important: Elementor's kit rule `.elementor-kit-38 h2 {color:#1C244B}`
	   (specificity 0,1,1) otherwise outranks this and paints the headings dark
	   navy — invisible on the footer. Dies with Elementor. */
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	margin: 0 0 18px;
	padding-bottom: 10px;
	position: relative;
}
.hft-foot-h::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 3px;
	border-radius: 3px;
	background: var(--col-accent, var(--hft-sail-pink));
}

.hft-foot-col a {
	color: var(--foot-link);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	display: inline-block;
	transition: color .16s ease, transform .16s ease;
}
.hft-foot-col a:hover,
.hft-foot-col a:focus-visible {
	color: var(--foot-link-h);
	transform: translateX(3px);
}
.hft-foot-col a:focus-visible {
	outline: 2px solid var(--hft-sail-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- Sub-bar (copyright + legal) ------------------------------------ */
.hft-foot-bar {
	background-color: var(--hft-navy-900);
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.hft-foot-bar-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	flex-wrap: wrap;
	padding-top: 18px;
	padding-bottom: 18px;
}
.hft-foot-copy {
	margin: 0;
	font-size: 13.5px;
	color: var(--foot-muted);
}
.hft-foot-legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}
.hft-foot-legal a {
	color: var(--foot-muted);
	text-decoration: none;
	font-size: 13.5px;
	transition: color .16s ease;
}
.hft-foot-legal a:hover,
.hft-foot-legal a:focus-visible { color: #fff; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
	.hft-foot-main {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-top: 44px;
	}
	.hft-foot-brand { max-width: none; }
}

@media (max-width: 640px) {
	.hft-foot { margin-top: 48px; }
	.hft-foot-nav {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}
	.hft-foot-bar-in {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	/* Clear the sticky mobile CTA bar (.hftn-mobar) so it never covers links. */
	.hft-foot-bar { padding-bottom: calc(18px + 68px); }
}

@media (max-width: 380px) {
	.hft-foot-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.hft-foot-col a:hover,
	.hft-foot-social a:active { transform: none; }
}
