/*
 * Wolke footer. Values are the design's (Homepage Build.html footer, and the WOLKE MOBILE LAYER
 * M5/M6 rules), converted from Tailwind. Scoped to .wk-root; the reset is in base.css.
 *
 * Below 1024 the footer is one column with the contact block first and always open, and the link
 * columns become accordions. The AI disclosure stays at the top, as in the build HTML; the mobile
 * brief would move it above the copyright (see docs/footer-build.md).
 */

.wk-root.wk-footer { display: block; background: #1C1A19; color: #fff; }
.wk-root .wk-footer__inner { padding-top: 48px; }

.wk-root .wk-footer__disclosure { font-size: 16px; line-height: 26px; color: var(--ok-cream); }
.wk-root .wk-footer__rule { border: 0; height: 1px; background: rgba(255, 255, 255, .25); }
.wk-root .wk-footer__rule--top { margin-top: 50px; }
.wk-root .wk-footer__main { display: grid; grid-template-columns: 1fr; row-gap: 48px; padding-top: 64px; padding-bottom: 50px; }

/* ---------------------------------------------------------------- brand and contact */
/* block level, so the link is exactly the 40px mark tall and the contact block lands 72px below it */
.wk-root .wk-footer__logo { display: flex; width: max-content; color: var(--ok-cream); }
.wk-root .wk-footer__logo svg { width: 102px; height: 32px; } /* the 8 October 2026 lockup, cropped to the ink */
.wk-root .wk-footer__logo img { height: 32px; width: auto; }
.wk-root .wk-footer__contact { margin-top: 72px; max-width: 374px; font-size: 16px; line-height: 26px; color: rgba(255, 254, 250, .85); }
.wk-root .wk-footer__contact a,
.wk-root .wk-footer__contact a:hover { color: rgba(255, 254, 250, .85); text-decoration: underline; text-underline-offset: 4px; }
.wk-root .wk-footer__contact a:hover { color: #fff; }
.wk-root .wk-footer__address { color: rgba(255, 254, 250, .6); }
.wk-root .wk-footer__contact a[href^="tel:"] { white-space: nowrap; }

.wk-root .wk-footer__button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 40px;
	border: 1px solid #fff; border-radius: 6px; padding: 15px 36px;
	font-size: 17px; line-height: 1.5; font-weight: 500; color: #fff;
	transition: background-color .2s ease, color .2s ease;
}
.wk-root .wk-footer__button:hover,
.wk-root .wk-footer__button:focus { background: #fff; color: var(--ok-ink); }

/* M6: social icons are 44px targets on mobile */
.wk-root .wk-footer__social { display: flex; align-items: center; gap: 16px; margin-top: 79px; color: #fff; }
.wk-root .wk-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; transition: opacity .15s ease; }
.wk-root .wk-footer__social a:hover { color: #fff; opacity: .7; }

/* ---------------------------------------------------------------- link columns */
/* heading: 20/28 400 #AFABA1; links 16/26 cream, 16px apart */
.wk-root .wk-fcol__head {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	font-size: 20px; line-height: 28px; font-weight: 400; color: var(--ok-footer-head); text-align: start;
}
.wk-root .wk-fcol__head:hover,
.wk-root .wk-fcol__head:focus { color: var(--ok-footer-head); }
.wk-root .wk-fcol__list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; font-size: 16px; line-height: 26px; color: var(--ok-cream); }
.wk-root .wk-fcol__list a,
.wk-root .wk-footer__legal a { color: inherit; }
.wk-root .wk-fcol__list a:hover,
.wk-root .wk-footer__legal a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- legal row */
.wk-root .wk-footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; row-gap: 20px; padding-block: 36px; font-size: 16px; line-height: 24px; color: #fff; }
.wk-root .wk-footer__legal a { display: inline-flex; align-items: center; gap: 8px; }
/* Cookie Preferences is a button that reads as a link */
.wk-root .wk-footer__legal button { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; font: inherit; line-height: inherit; color: inherit; cursor: pointer; }
.wk-root .wk-footer__legal button:hover,
.wk-root .wk-footer__legal button:focus { background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.wk-root .wk-footer__region { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 1024px) {
	.wk-root .wk-footer__inner { padding-top: 58px; }
	.wk-root .wk-footer__main { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 0; padding-top: 94px; }
	.wk-root .wk-footer__brand { grid-column: span 6; }
	.wk-root .wk-footer__cols { grid-column: span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
	.wk-root .wk-footer__social { gap: 32px; }
	.wk-root .wk-footer__social a { width: auto; height: auto; }
	/* the column heading is a label on desktop, not a control */
	.wk-root .wk-fcol__head { cursor: default; pointer-events: none; }
	.wk-root .wk-fcol__head::after { display: none; }
}

/* ---------------------------------------------------------------- mobile accordions (M5) */
@media (max-width: 1023px) {
	.wk-root .wk-fcol__head { min-height: 44px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
	.wk-root .wk-fcol__head::after {
		content: ""; flex: none; width: 10px; height: 10px; margin-inline-start: 16px;
		border-inline-end: 1.5px solid var(--ok-footer-head); border-bottom: 1.5px solid var(--ok-footer-head);
		transform: rotate(45deg) translateY(-2px); transition: transform .25s ease;
	}
	.wk-root .wk-fcol__head[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
	.wk-root .wk-fcol__list { overflow: hidden; margin-top: 0; gap: 0; transition: max-height .3s ease; }
	.wk-root .wk-fcol__head[aria-expanded="false"] + .wk-fcol__list { max-height: 0; visibility: hidden; }
	.wk-root .wk-fcol__head[aria-expanded="true"] + .wk-fcol__list { max-height: 420px; padding-bottom: 18px; }
	/* the design's 7px padding gives 40px rows; the brief's floor is 44 */
	.wk-root .wk-fcol__list a { display: block; padding: 9px 0; }
	.wk-root .wk-footer__legal { column-gap: 24px; row-gap: 12px; }
	.wk-root .wk-footer__legal a,
	.wk-root .wk-footer__legal button { min-height: 44px; }
	.wk-root .wk-footer__region { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wk-root .wk-fcol__list,
	.wk-root .wk-fcol__head::after { transition: none; }
}
