/* =========================================================
   Journey — footer.css
   Uses only variables from global.css. No hardcoded colors.
   ========================================================= */

.site-footer {
	background: #FAF8F2;
	padding: 80px 0 0;
}

/* ---------- Top: brand (left) + right block ---------- */
.footer-top {
	display: flex;
	justify-content: space-between;
	gap: 56px;
	flex-wrap: wrap;
}

/* Space below the columns / Contact button before the copyright line.
   Higher specificity than .wrap so it can't be overridden, and padding
   (not margin) so it can't be collapsed away. */
.site-footer .footer-top {
	padding-bottom: 64px;
}

/* Brand: logo + social, sized to the logo so social centers under its middle */
.footer-brand {
	flex: 0 0 auto;
	width: -moz-fit-content;
	width: fit-content;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer-logo {
	display: inline-flex;
}
.footer-logo img {
	height: 144px;
	width: auto;
	display: block;
}

/* Social icons — plain glyphs (no circle), centered under the logo */
.footer-social {
	margin-top: 30px;
	display: flex;
	gap: 22px;
}
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	transition: color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
	color: var(--olive);
	transform: translateY(-2px);
}
.footer-social svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
}

/* ---------- Right: columns, then Contact button below ---------- */
.footer-right {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	gap: 44px;
}
.footer-cols {
	display: flex;
	gap: 64px;
	flex-wrap: wrap;
}
.footer-col h4 {
	font-family: var(--sans);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin-bottom: 20px;
}
.footer-col h4 a {
	font: inherit;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.footer-col h4 a:hover {
	color: var(--olive);
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.footer-col li {
	margin: 0;
}
.footer-col a {
	font-family: var(--sans);
	font-size: 18px;
	color: var(--taupe);
	transition: color 0.15s ease;
}
.footer-col a:hover {
	color: var(--ink);
}

/* Black Contact pill — lives inside the Features column and fills its width,
   sitting under that column's links with a small gap. */
.footer-contact {
	margin-top: 28px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ink);
	color: #fff;
	border-radius: 999px;
	padding: 18px 24px;
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.footer-contact:hover {
	background: var(--olive-deep);
	color: #fff;
	transform: translateY(-1px);
}
/* The button now sits inside .footer-col, so `.footer-col a` (and its :hover)
   would otherwise win on specificity and paint the label taupe/dark. Re-assert
   white with the matching ancestor so the text stays white at rest and on hover. */
.footer-col .footer-contact,
.footer-col .footer-contact:hover,
.footer-col .footer-contact:focus {
	color: #fff;
}

/* ---------- Bottom line ---------- */
.footer-bottom {
	margin-top: 0;
	padding-top: 30px;
	padding-bottom: 30px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-copy {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink-soft);
}
.footer-legal {
	display: flex;
	gap: 22px;
}
.footer-legal a {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink-soft);
	text-decoration: none;
	transition: color 0.15s ease;
}
.footer-legal a:hover {
	color: var(--olive);
}

/* Higher specificity than .wrap so this padding can't be overridden —
   keeps equal space above and below the copyright row. */
.site-footer .footer-bottom {
	padding-top: 15px;
	padding-bottom: 15px;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.site-footer {
		padding: 56px 0 0;
	}
	.footer-top {
		flex-direction: column;
		align-items: center;
		gap: 44px;
	}
	.footer-logo img {
		height: 96px;
	}
	.footer-right {
		align-items: center;
		width: 100%;
	}
	.footer-cols {
		gap: 36px 56px;
		justify-content: center;
	}
	.footer-contact {
		/* In the centered/stacked mobile layout the column heights vary by row,
		   so use a fixed gap instead of pinning to the bottom. */
		margin-top: 24px;
	}
	.footer-bottom {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
}
@media (max-width: 480px) {
	.footer-cols {
		flex-direction: column;
		gap: 30px;
		text-align: center;
	}
}
