/* Site footer. Ported from project/home.dc.html lines 647-714 (confirmed
   byte-identical on about/contact/404). The <880px column accordion is
   built up by assets/js/core/mega-menu.js (mirrors the source's
   _setupFooterAccordion()); this file only supplies the base flex layout
   plus the accordion's collapsed/expanded visual states. */

#site-footer {
	position: relative;
	background: linear-gradient(180deg, #1E1810 0%, var(--color-near-black-2) 100%);
	color: var(--color-cream);
	padding: clamp(80px, 11vh, 150px) 0 40px;
}

[data-footer-inner] {
	width: 100%;
	padding: 0 40px;
}

[data-footer-cols] {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(36px, 4vw, 80px);
	padding-bottom: clamp(70px, 11vh, 150px);
	justify-content: space-between;
}

[data-fcol] {
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 130px;
}
[data-fcol="company"] {
	min-width: 0;
}

[data-fcol] a,
[data-fcol] > span {
	line-height: 1.5;
	font-size: 14px;
}
[data-fcol] a {
	text-decoration: none;
	color: rgba(247, 244, 239, .8);
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	[data-fcol] a:hover { color: var(--color-cream); }
}
[data-fcol] > span:first-child {
	position: relative;
	padding-bottom: 16px;
	margin-bottom: 8px;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--color-cream);
}
[data-fcol] > span:first-child::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 1px;
	background: rgba(247, 244, 239, .45);
}
[data-fcol] > span:not(:first-child) {
	color: rgba(247, 244, 239, .55);
}

[data-footer-newsletter] {
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1 1 340px;
	min-width: 300px;
	max-width: 580px;
}
.footer-newsletter-title {
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--color-cream);
}
.footer-newsletter-form {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid rgba(247, 244, 239, .4);
}
.footer-newsletter-form input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	padding: 14px 2px;
	font-family: var(--font-ui);
	font-size: .92rem;
	color: var(--color-cream);
}
.footer-newsletter-form input::placeholder {
	color: rgba(247, 244, 239, .5);
}
.footer-newsletter-form button {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 14px 4px 14px 22px;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--color-cream);
	transition: opacity .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.footer-newsletter-form button:hover { opacity: .6; }
}
[data-footer-newsletter] p {
	font-family: var(--font-ui);
	font-size: .78rem;
	line-height: 1.6;
	color: rgba(247, 244, 239, .45);
	margin: 0;
	max-width: 36ch;
}

[data-footer-logo] {
	padding-bottom: clamp(28px, 4vh, 56px);
	text-align: center;
}
.footer-wordmark {
	display: inline-block;
	width: clamp(180px, 16vw, 240px);
	height: auto;
	color: var(--color-cream);
}

[data-footer-bottom] {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
	flex-wrap: wrap;
	padding-top: 30px;
	border-top: 1px solid rgba(247, 244, 239, .16);
}
[data-footer-bottom] a,
[data-footer-copy],
[data-footer-credit] {
	text-decoration: none;
	font-size: .78rem;
	letter-spacing: .06em;
	color: rgba(247, 244, 239, .55);
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	[data-footer-bottom] a:hover { color: var(--color-cream); }
}
[data-footer-credit] {
	margin-left: auto;
	letter-spacing: .02em;
	color: rgba(247, 244, 239, .5);
}

/* Mobile: columns collapse into an accordion (JS adds .fcol-open + a
   toggle button; see assets/js/core/mega-menu.js). */
@media (max-width: 879px) {
	[data-footer-inner] { padding: 0 12px; }
	#site-footer { padding-top: 40px; }
	[data-footer-cols] {
		justify-content: flex-start;
		gap: 0;
		padding-bottom: 48px;
	}
	[data-fcol] {
		position: relative;
		width: 100%;
		gap: 0;
		min-width: 0;
		border-top: 1px solid rgba(247, 244, 239, .16);
		padding: 15px 36px 15px 0;
	}
	[data-fcol] > span:first-child {
		padding-bottom: 0;
		margin-bottom: 0;
	}
	[data-fcol] > span:first-child::after {
		display: none;
	}
	[data-footer-newsletter] {
		margin-top: 32px;
	}
	.fcol-subs {
		display: flex;
		flex-direction: column;
		gap: 11px;
		overflow: hidden;
		max-height: 0;
		opacity: 0;
		transition: max-height .5s cubic-bezier(.2, .7, .3, 1), opacity .4s ease, margin-top .5s ease;
	}
	[data-fcol].fcol-open .fcol-subs {
		opacity: 1;
		margin-top: 16px;
	}
	.fcol-toggle {
		position: absolute;
		right: 0;
		top: 15px;
		width: 24px;
		height: 24px;
		background: none;
		border: none;
		color: var(--color-cream);
		cursor: pointer;
		transition: transform .4s ease;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	[data-fcol].fcol-open .fcol-toggle {
		transform: rotate(45deg);
	}
	[data-footer-logo] svg { width: 64%; }
	[data-footer-logo] { text-align: center; }
	[data-footer-bottom] { justify-content: center; text-align: center; }
	[data-footer-credit] { margin-left: 0; width: 100%; text-align: center; }
	[data-footer-bottom] a, [data-footer-copy], [data-footer-credit] { font-size: .68rem; }
}
