/**
 * SE Steps (mod_sesteps)
 * Copyright (C) 2026 SE24 Media. All rights reserved.
 * GNU General Public License version 2 or later.
 *
 * Colours, fonts and sizes come from CSS custom properties written per
 * instance (#sest-{id}).
 */

.sest {
	box-sizing: border-box;
	background: var(--sest-bg, #FFFFFF);
	color: var(--sest-text, #4A5565);
	font-family: var(--sest-font-body, inherit);
	line-height: 1.6;
}

.sest *,
.sest *::before,
.sest *::after {
	box-sizing: border-box;
}

.sest--bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

body:has(.sest--bleed) {
	overflow-x: clip;
}

.sest__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sest__inner {
	max-width: var(--sest-maxw, 1200px);
	margin: 0 auto;
	padding: var(--sest-pad-y, 96px) 24px;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

/* ---------- Heading ---------- */
.sest__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 42rem;
}

/* Heading on the left, intro on the right */
.sest--split .sest__head {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
}

.sest--split .sest__head-main {
	flex: 1 1 520px;
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sest--split .sest__intro {
	flex: 0 1 25rem;
}

.sest__head-main {
	display: contents;
}

.sest--split .sest__head-main {
	display: flex;
}

.sest--center .sest__head {
	align-self: center;
	align-items: center;
	text-align: center;
}

.sest .sest__eyebrow {
	margin: 0;
	font-size: var(--sest-eyebrow-size, 13px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: var(--sest-eyebrow-ls, 0.1em);
	text-transform: var(--sest-eyebrow-tt, uppercase);
	color: var(--sest-eyebrow, #C8102E);
}

.sest .sest__heading {
	margin: 0;
	font-family: var(--sest-font-head, inherit);
	font-weight: var(--sest-h-weight, 700);
	font-size: var(--sest-h-size, 48px);
	line-height: var(--sest-h-lh, 1.08);
	letter-spacing: var(--sest-h-ls, -0.02em);
	color: var(--sest-heading, #0E1B2C);
	text-wrap: balance;
}

.sest .sest__intro {
	margin: 0;
	font-size: var(--sest-intro-size, 17px);
	color: var(--sest-text, #4A5565);
}

/* ---------- Steps ---------- */
.sest__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--sest-cols, 4), minmax(0, 1fr));
	gap: var(--sest-gap, 20px);
}

.sest .sest__step {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--sest-card-pad, 28px);
	border-radius: var(--sest-radius, 22px);
}

.sest--filled .sest__step {
	background: var(--sest-card-bg, #F3F4F6);
}

.sest--outline .sest__step {
	border: 1px solid var(--sest-card-border, #E3E6EA);
}

.sest--rule .sest__step {
	padding: var(--sest-card-pad, 24px) 0 0;
	border-top: 3px solid var(--sest-rule, #0E1B2C);
	border-radius: 0;
}

.sest--plain .sest__step {
	padding-left: 0;
	padding-right: 0;
}

/* Number: circle */
.sest--num-circle .sest__num {
	width: 44px;
	height: 44px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--sest-num-bg, #C8102E);
	color: var(--sest-num-text, #FFFFFF);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}

/* Number: large figure */
.sest--num-large .sest__num {
	font-family: var(--sest-font-head, inherit);
	font-weight: var(--sest-h-weight, 700);
	font-size: var(--sest-num-size, 44px);
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 6px;
	color: var(--sest-num-bg, #C8102E);
}

.sest .sest__title {
	margin: 0;
	font-family: var(--sest-font-head, inherit);
	font-weight: var(--sest-h-weight, 700);
	font-size: var(--sest-title-size, 22px);
	line-height: 1.2;
	color: var(--sest-step-title, #0E1B2C);
}

.sest .sest__text {
	margin: 0;
	font-size: var(--sest-step-text-size, 15px);
	line-height: 1.55;
	color: var(--sest-step-text, #4A5565);
}

/* ---------- Button ---------- */
.sest__cta {
	display: flex;
}

.sest--center .sest__cta {
	justify-content: center;
}

.sest .sest__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--sest-btn-bg, #C8102E);
	color: var(--sest-btn-text, #FFFFFF);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.sest .sest__btn:hover,
.sest .sest__btn:focus-visible {
	filter: brightness(0.9);
	color: var(--sest-btn-text, #FFFFFF);
}

.sest a:focus-visible {
	outline: 3px solid var(--sest-btn-bg, #C8102E);
	outline-offset: 3px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023.98px) {
	.sest__grid {
		grid-template-columns: repeat(var(--sest-cols-t, 2), minmax(0, 1fr));
	}
}

/* ---------- Phone ---------- */
@media (max-width: 639.98px) {
	.sest__inner {
		padding: var(--sest-pad-y-m, 56px) 16px;
		gap: 28px;
	}

	.sest .sest__heading {
		font-size: var(--sest-h-size-m, 32px);
	}

	.sest__grid {
		grid-template-columns: repeat(var(--sest-cols-m, 1), minmax(0, 1fr));
	}

	.sest .sest__title {
		font-size: var(--sest-title-size-m, 20px);
	}

	.sest .sest__btn {
		width: 100%;
	}
}

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