/* -------------------------------------------------------------------------
 * Shared classes for HTML pasted into Elementor HTML widgets.
 *
 * Rule of thumb: markup goes in the widget, styling lives here. If you find
 * yourself pasting a <style> block into Elementor, add the class here instead
 * so every client site gets the fix.
 *
 * All values come from tokens.css. Nothing is hard-coded.
 * ---------------------------------------------------------------------- */

/* Layout ---------------------------------------------------------------- */

.st-container {
	width: 100%;
	max-width: var(--st-container);
	margin-inline: auto;
	padding-inline: var(--st-space-sm);
}

.st-section {
	padding-block: var(--st-space-xl);
}

.st-section--tight {
	padding-block: var(--st-space-lg);
}

.st-section--alt {
	background: var(--st-bg-alt);
}

.st-stack > * + * {
	margin-top: var(--st-space-sm);
}

.st-grid {
	display: grid;
	gap: var(--st-space-md);
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.st-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.st-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--st-space-sm);
}

.st-split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-sm);
}

/* Type ------------------------------------------------------------------ */

.st-display {
	font-family: var(--st-font-display);
	font-size: var(--st-step-3);
	line-height: 1.1;
	margin: 0;
}

.st-heading {
	font-family: var(--st-font-display);
	font-size: var(--st-step-2);
	line-height: 1.2;
	margin: 0;
}

.st-lede {
	font-size: var(--st-step-1);
	color: var(--st-ink-soft);
	margin: 0;
}

.st-muted {
	color: var(--st-ink-soft);
}

.st-eyebrow {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-accent);
	margin: 0;
}

/* Components ------------------------------------------------------------ */

.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-xs);
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--st-accent);
	border-radius: var(--st-radius);
	background: var(--st-accent);
	color: var(--st-accent-ink);
	font: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.st-btn:hover {
	opacity: 0.85;
}

.st-btn--ghost {
	background: transparent;
	color: var(--st-accent);
}

.st-card {
	padding: var(--st-space-md);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: var(--st-bg);
}

.st-media {
	display: block;
	width: 100%;
	border-radius: var(--st-radius);
	object-fit: cover;
}

/* Accessibility floor --------------------------------------------------- */

.st-btn:focus-visible,
.st-card a:focus-visible {
	outline: 2px solid var(--st-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.st-btn {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * Fallback header and footer.
 *
 * Only used before an Elementor template is selected, or if Elementor is
 * deactivated. Kept minimal on purpose — the real design is built in Elementor.
 * ---------------------------------------------------------------------- */

.site-header {
	background: var(--st-bg);
	border-bottom: 1px solid var(--st-line);
}

.site-header.is-sticky {
	position: sticky;
	top: 0;
	z-index: 999;
}

.site-header__fallback,
.site-footer__fallback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-sm);
	padding-block: var(--st-space-sm);
}

.site-title {
	margin: 0;
	font-size: var(--st-step-1);
	font-weight: 700;
}

.site-title a {
	color: var(--st-brand);
	text-decoration: none;
}

.custom-logo {
	display: block;
	max-height: 56px;
	width: auto;
}

.nav-list,
.footer-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--st-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a,
.footer-list a {
	color: var(--st-ink);
	text-decoration: none;
	padding-block: 0.5rem;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
	color: var(--st-accent);
}

.nav-list .sub-menu {
	position: absolute;
	z-index: 10;
	display: grid;
	min-width: 200px;
	margin: 0;
	padding: var(--st-space-xs);
	list-style: none;
	background: var(--st-bg);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	opacity: 0;
	visibility: hidden;
}

.nav-list li {
	position: relative;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: transparent;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--st-ink);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: relative;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

.site-footer {
	margin-top: var(--st-space-xl);
	background: var(--st-bg-alt);
	font-size: 0.875rem;
}

.site-footer__credit {
	margin: 0;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list > li + li {
		border-top: 1px solid var(--st-line);
	}

	.nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		border: 0;
		padding-left: var(--st-space-sm);
	}
}
