/* =========================================================================
   White-Label landing — page chrome (header, drawer, footer, sticky bar).

   Handle: sws-wl-chrome, depends on sws-wl-shared (wl-shared/landing.css) for the
   palette and the button/link utilities. Enqueued from sws_theme_scripts() only when
   the White-Label page template is in use — the blocks bring their own CSS, but the
   header and footer are template partials and need this loaded unconditionally.

   Breakpoints are the design's own (1000 / 980 / 620), not Bootstrap's.
   ========================================================================= */

/* Sticky header + anchored sections: keep the target clear of the 76px bar. */
html:has(.wl-page) {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

.wl-page {
	overflow-x: hidden;
	/* The header/footer live outside .wl-scope, so they need the tokens too. */
	--wl-green: #028d40;
	--wl-green-bright: #28a745;
	--wl-violet: #605cb8;
	--wl-ink: #212529;
	--wl-graphite: #343a40;
	--wl-muted: #777777;
	--wl-border: #e6e6e6;
	--wl-border-soft: #f2f2f2;
	--wl-footer: #1f2327;
	--wl-font-heading: 'Rubik', sans-serif;
}

/* Header ------------------------------------------------------------------ */

.wl-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--wl-border);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

.wl-header__bar {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
	height: 76px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.wl-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex: 0 0 auto;
}

.wl-header__logo {
	display: block;
	width: 152px;
	height: auto;
	max-height: 38px;
	object-fit: contain;
}

.wl-header__kicker {
	display: none;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .16em;
	white-space: nowrap;
	color: var(--wl-muted);
	padding-left: 14px;
	border-left: 1px solid var(--wl-border);
}

.wl-header__nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.wl-header__nav a {
	font-size: 15px;
	color: var(--wl-ink);
	text-decoration: none;
	transition: color .2s ease-out;
}

.wl-header__nav a:hover,
.wl-header__nav a:focus {
	color: var(--wl-violet);
}

/* Compact language switcher — not in the design, but the landing is trilingual. */
.wl-header__langs {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.wl-header__lang {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--wl-muted);
	text-decoration: none;
	padding: 6px 7px;
	border-radius: .25rem;
	transition: color .2s ease-out;
	min-width: 34px;
	text-align: center;
}

.wl-header__lang:hover,
.wl-header__lang:focus {
	color: var(--wl-violet);
}

.wl-header__lang.is-active {
	color: var(--wl-green);
	background: rgba(2, 141, 64, .08);
}

.wl-header__cta {
	flex: 0 0 auto;
}

.wl-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: #fff;
	border: 1px solid var(--wl-border);
	border-radius: .25rem;
	color: var(--wl-graphite);
	cursor: pointer;
	flex: 0 0 auto;
	padding: 0;
}

.wl-header__burger .sws-ico {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Mobile drawer ------------------------------------------------------------ */

.wl-header__drawer {
	border-top: 1px solid var(--wl-border);
	background: #fff;
	padding: 10px 24px 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wl-header__drawer[hidden] {
	display: none;
}

.wl-header__drawer-link {
	font-size: 16px;
	color: var(--wl-ink);
	text-decoration: none;
	padding: 13px 4px;
	border-bottom: 1px solid var(--wl-border-soft);
	transition: color .2s ease-out;
}

.wl-header__drawer-link:hover,
.wl-header__drawer-link:focus {
	color: var(--wl-violet);
}

.wl-header__drawer-cta {
	margin-top: 12px;
	width: 100%;
	font-size: 16px;
	padding: 14px 22px;
}

/* Footer ------------------------------------------------------------------- */

.wl-footer {
	background: var(--wl-footer);
	color: rgba(255, 255, 255, .7);
}

.wl-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 24px 34px;
}

.wl-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 34px;
}

.wl-footer__logo-link {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border-radius: .25rem;
	padding: 9px 14px;
	text-decoration: none;
	margin-bottom: 18px;
}

.wl-footer__logo {
	display: block;
	width: 140px;
	height: auto;
	max-height: 35px;
	object-fit: contain;
}

.wl-footer__about {
	font-size: 14.5px;
	line-height: 1.7;
	margin: 0 0 14px;
}

.wl-footer__about--small {
	font-size: 14px;
	margin-bottom: 0;
}

.wl-footer__title {
	font-family: var(--wl-font-heading);
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	margin: 0 0 16px;
}

.wl-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.wl-footer__list li {
	margin: 0;
}

.wl-footer__list a {
	font-size: 14.5px;
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
	transition: color .2s ease-out;
}

.wl-footer__list a:hover,
.wl-footer__list a:focus {
	color: var(--wl-violet);
}

.wl-footer__contact {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.wl-footer__contact .fas,
.wl-footer__contact .fab {
	color: var(--wl-green-bright);
	font-size: 13px;
	flex: 0 0 auto;
}

.wl-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.wl-footer__bottom p {
	font-size: 13.5px;
	margin: 0;
}

/* Mobile sticky CTA bar ----------------------------------------------------- */

.wl-sticky {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	gap: 10px;
	padding: 10px 14px;
	background: rgba(20, 24, 27, .96);
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.wl-sticky__mail {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 50px;
	border-radius: .25rem;
	border: 1px solid rgba(255, 255, 255, .25);
	color: #fff;
	text-decoration: none;
}

.wl-sticky__cta {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 50px;
	border-radius: .25rem;
	background: var(--wl-green);
	color: #fff;
	font-size: 15.5px;
	font-weight: 500;
	text-decoration: none;
}

.wl-sticky .sws-ico {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex: 0 0 auto;
}

/* Breakpoints --------------------------------------------------------------- */

@media (min-width: 620px) {
	.wl-header__kicker {
		display: inline-block;
	}
}

@media (max-width: 1000px) {
	.wl-header__nav,
	.wl-header__cta {
		display: none;
	}

	/* The nav carried margin-left:auto; hand it to the language row. */
	.wl-header__langs {
		margin-left: auto;
	}

	.wl-header__burger {
		display: inline-flex;
	}

	.wl-header__bar {
		gap: 14px;
	}
}

@media (max-width: 980px) {
	.wl-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.wl-sticky {
		display: flex;
	}

	/* Keep the last section clear of the fixed bar. */
	body.page-template-page-white-label {
		padding-bottom: 74px;
	}
}

@media (max-width: 620px) {
	.wl-header__bar {
		height: 68px;
		padding: 0 14px;
		gap: 8px;
	}

	.wl-header__logo {
		width: 118px;
	}

	/* Logo + three language pills + burger have to fit a 360px phone. */
	.wl-header__lang {
		min-width: 0;
		padding: 6px 4px;
		font-size: 12px;
	}

	.wl-header__langs {
		gap: 0;
	}

	.wl-footer__grid {
		grid-template-columns: 1fr;
	}

	.wl-footer__inner {
		padding: 44px 20px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:has(.wl-page) {
		scroll-behavior: auto;
	}
}
