/**
 * Gates-video section (.fx-gates)
 *
 * Reusable 2-kolonne sektion brugt på flere landingssider.
 * Venstre: heading + beskrivelse + CTA. Højre: video-player (.fx-video).
 * Stables vertikalt på tablet/mobil (video først — matcher live-designet).
 *
 * Bruger globale tokens fra tokens.css (--fx-*) og .fx-btn utility.
 * Video-player markup leveres af [focalx-gates-video]-shortcoden og har
 * sine egne styles i focalx-gates-video.css.
 */

.fx-gates {
	padding: var(--fx-section-py, clamp(56px, 7vw, 96px)) var(--fx-gutter);
	background: var(--fx-bg-soft, #f5f7fa);
	display: grid;
	justify-items: center;
}

.fx-gates__container {
	box-sizing: border-box;
	width: min(100%, var(--fx-max-content, 1140px));
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--fx-col-gap);
	align-items: center;
}

.fx-gates--reverse .fx-gates__container {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.fx-gates--reverse .fx-gates__text  { order: 2; }
.fx-gates--reverse .fx-gates__media { order: 1; }

/* Stacked variant — titel centreret ovenfor, videoen centreret nedenfor.
 * Bruges fx på /gate-operations/ hvor vi kun viser video + heading, fordi
 * kontekst og beskrivelse allerede er givet af de omkringliggende sektioner.
 */
.fx-gates--stacked .fx-gates__container {
	grid-template-columns: minmax(0, 1fr);
	gap:                   clamp(24px, 3vw, 40px);
	text-align:            center;
}
.fx-gates--stacked .fx-gates__text {
	max-width: 720px;
	margin:    0 auto;
}
.fx-gates--stacked .fx-gates__media {
	max-width: 860px;
	margin:    0 auto;
	width:     100%;
}
.fx-gates--stacked .fx-gates__actions {
	justify-content: center;
}

/* Tekstkolonne */
.fx-gates__text {
	max-width: 440px;
}

.fx-gates .fx-gates__title {
	color: var(--fx-text, #2d2f31);
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}

.fx-gates__description {
	color: var(--fx-text-body, rgba(45, 47, 49, 0.8));
	font-size: var(--fx-text-base);
	line-height: 1.6;
	margin: 0 0 28px;
}

.fx-gates__actions {
	display: flex;
	gap: 12px;
}

.fx-gates .fx-gates__button {
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
}

/* Media-kolonne */
.fx-gates__media {
	width: 100%;
	min-width: 0;
}

/* Video arver styles fra focalx-gates-video.css — vi sikrer bare at wrapperen
 * ikke tilføjer ekstra margin i denne kontekst. */
.fx-gates__media .fx-video-wrap {
	margin: 0;
}

.fx-gates__media .fx-video,
.fx-gates__media .fx-video-thumb {
	border-radius: 20px;
}

/* Tablet: stack (tekst øverst). Gap kommer fra --fx-col-gap. */
@media (max-width: 1023px) {
	.fx-gates__container {
		grid-template-columns: 1fr;
	}
	.fx-gates__text {
		max-width: 640px;
	}
	.fx-gates--reverse .fx-gates__text,
	.fx-gates--reverse .fx-gates__media {
		order: initial;
	}
}

@media (max-width: 767px) {
	.fx-gates .fx-gates__title {
		font-size: 24px;
	}
	/* .fx-gates__description arver nu fra --fx-text-base på mobil
	   (16px via tokens.css' media-query) — ingen override nødvendig. */
	.fx-gates__actions,
	.fx-gates .fx-gates__button {
		width: 100%;
	}
	.fx-gates .fx-gates__button {
		justify-content: center;
		padding: 14px 22px;
	}
}
