/**
 * FocalX — Industries category template (delt på tværs af 6 kategorier).
 *
 * Bruges på:
 *   - car-rental
 *   - automotive-retail
 *   - automotive-marketplaces
 *   - auto-insurance
 *   - auto-insurance-brokerage
 *   - fleet-management
 *
 * Selectoren `.fx-main--industries-category` er den FÆLLES rod — alt
 * under den styles ens for alle 6 kategorier. Per-kategori afvigelser
 * kan tilføjes via slug-modifier (.fx-main--car-rental-category osv.).
 *
 * Templatet er bevidst slankt: hero, logo-carousel, big-numbers, reviews
 * m.m. bruger sektioner der allerede er stylet andre steder (hero.css,
 * logo-carousel.css, frontpage.css, how-it-works.css,
 * blogpost-carousel.css). Denne fil
 * håndterer industries-specifikke ting:
 *
 *   1. Wrapper-baggrund + breadcrumb-alignment
 *   2. Use cases (.fx-ind-use-cases)
 *   3. SEO text-area (.fx-industry-seo) — typografisk content-blok
 *   4. Further reading (.fx-rail-posts under industries-main) —
 *      matcher operations-template uden at loade category-operations.css
 */

/* ==========================================================================
   ROOT WRAPPER
   ========================================================================== */

.fx-main--industries-category {
	background: #ffffff;
}

/* Breadcrumb — alignet med 1140px-layoutet; 24px gutter tablet/mobil.
 * Samme mønster som operations / gate / ai / product / compare / about. */
/* ==========================================================================
   USE CASES — .fx-ind-use-cases (to kolonner: tekst + 2×2 | billede + stat)
   ========================================================================== */

.fx-ind-use-cases {
	padding: clamp(56px, 7vw, 96px) var(--fx-gutter, 24px);
	background: #fff;
}

.fx-ind-use-cases__container {
	max-width: var(--fx-max-content, 1140px);
	margin: 0 auto;
}

.fx-ind-use-cases__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.fx-ind-use-cases__grid:not(:has(.fx-ind-use-cases__visual)) {
	grid-template-columns: 1fr;
}

.fx-ind-use-cases__grid:not(:has(.fx-ind-use-cases__visual)) .fx-ind-use-cases__copy {
	max-width: 720px;
}

.fx-ind-use-cases__title {
	margin: 0 0 16px;
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--fx-text, #2d2f31);
}

.fx-ind-use-cases__intro {
	margin: 0 0 32px;
	max-width: 36rem;
	font-size: 17px;
	line-height: 1.65;
	color: var(--fx-text-body, rgba(45, 47, 49, 0.72));
}

.fx-ind-use-cases__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 600px) {
	.fx-ind-use-cases__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fx-ind-use-cases__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

/* Ikon over titel/tekst — samme mål som Elementor-referencen (34×34, 8px padding, ~18px glyf). */
.fx-ind-use-cases__icon-wrap {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2d2f31;
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: 18px;
	line-height: 1;
}

.fx-ind-use-cases__icon-wrap--blue {
	background: #93e7fe;
}

.fx-ind-use-cases__icon-wrap--yellow {
	background: #ffd978;
}

.fx-ind-use-cases__icon-wrap--coral {
	background: #fea25f;
}

.fx-ind-use-cases__icon-wrap--rose {
	background: #faa9e4;
}

.fx-ind-use-cases__icon-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.fx-ind-use-cases__icon-fallback {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.35;
}

.fx-ind-use-cases__card-body {
	min-width: 0;
}

.fx-ind-use-cases__card-title {
	margin: 0 0 6px;
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fx-text, #2d2f31);
}

.fx-ind-use-cases__card-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--fx-text-muted, #5f6770);
}

.fx-ind-use-cases__visual {
	min-width: 0;
}

.fx-ind-use-cases__figure {
	position: relative;
	margin: 0;
	border-radius: clamp(20px, 2.5vw, 30px);
	overflow: hidden;
	box-shadow:
		0 24px 60px -36px rgba(22, 59, 107, 0.2),
		0 10px 28px -14px rgba(22, 59, 107, 0.1);
}

.fx-ind-use-cases__photo {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.fx-ind-use-cases__stat {
	position: absolute;
	right: clamp(12px, 2.5vw, 24px);
	bottom: clamp(12px, 2.5vw, 24px);
	max-width: min(100% - 24px, 280px);
	padding: 16px 18px;
	background: var(--fx-bg, #fff);
	border-radius: 16px;
	box-shadow:
		0 16px 40px -20px rgba(22, 59, 107, 0.25),
		0 4px 12px -4px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(22, 59, 107, 0.06);
}

.fx-ind-use-cases__stat-label {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--fx-text-muted, #5f6770);
}

.fx-ind-use-cases__stat-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
}

.fx-ind-use-cases__stat-value {
	margin: 0;
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	color: var(--fx-text, #2d2f31);
	line-height: 1.1;
}

.fx-ind-use-cases__stat-trend {
	font-size: 14px;
	font-weight: 600;
	color: #1d8f4a;
	white-space: nowrap;
}

.fx-ind-use-cases__stat-note {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--fx-text-muted, #5f6770);
}

@media (max-width: 960px) {
	.fx-ind-use-cases__grid {
		grid-template-columns: 1fr;
	}

	.fx-ind-use-cases__visual {
		order: -1;
	}
}

/* ==========================================================================
   SEO TEXT-AREA — .fx-industry-seo
   ==========================================================================
   ACF wysiwyg-output renderet inde i .fx-industry-seo__content. Vi
   styler standard prose-elementer (h2-h4, p, ul/ol, links, blockquote)
   så TinyMCE-indhold automatisk får sitets typografi uden at forfatteren
   skal tænke på custom classes.
   ========================================================================== */

.fx-industry-seo {
	padding: var(--fx-section-py, clamp(56px, 7vw, 96px)) var(--fx-gutter, 24px);
	background: #ffffff;
}

/* Efter further reading — rail-sektionen har allerede bund-padding;
 * undgå for meget "luft-lomme" mellem carousel og denne SEO-blok. */
.fx-industry-seo--after-further {
	padding-top: clamp(40px, 5vw, 64px);
}

.fx-industry-seo__container {
	max-width: var(--fx-max-content, 1140px);
	margin: 0 auto;
}

/* Læsbarhedscap — prose-tekst skal ikke fylde hele 1140px. 820px giver
 * ~75ch ved 17px font-size, som er den klassiske læsbarheds-bredde. */
.fx-industry-seo__content {
	max-width: var(--fx-max-narrow, 820px);
	margin: 0 auto;
}

/* ---------- Headings ---------- */
.fx-industry-seo__content h2,
.fx-industry-seo__content h3,
.fx-industry-seo__content h4 {
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-weight: 700;
	color: var(--fx-text, #2d2f31);
	line-height: 1.2;
	margin: 0 0 16px;
}

.fx-industry-seo__content h2 {
	font-size: var(--fx-h2, 32px);
	margin-top: 48px;
}
.fx-industry-seo__content h3 {
	font-size: var(--fx-h3, 24px);
	margin-top: 36px;
}
.fx-industry-seo__content h4 {
	font-size: var(--fx-h4, 20px);
	margin-top: 28px;
}

/* Drop ekstra top-margin på første heading — sektionens egen padding-top
 * sørger for luften ovenfor. */
.fx-industry-seo__content > :first-child {
	margin-top: 0;
}

/* ---------- Paragrafer + lister ---------- */
.fx-industry-seo__content p {
	margin: 0 0 18px;
	font-family: var(--fx-font-body, "Ubuntu", sans-serif);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fx-text-body, #2d2f31cc);
}

.fx-industry-seo__content ul,
.fx-industry-seo__content ol {
	margin: 0 0 24px;
	padding-left: 24px;
	font-family: var(--fx-font-body, "Ubuntu", sans-serif);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fx-text-body, #2d2f31cc);
}

.fx-industry-seo__content li {
	margin-bottom: 8px;
}

.fx-industry-seo__content li:last-child {
	margin-bottom: 0;
}

/* ---------- Links ---------- */
.fx-industry-seo__content a {
	color: var(--fx-blue, #163b6b);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .18s ease;
}

.fx-industry-seo__content a:hover,
.fx-industry-seo__content a:focus-visible {
	color: var(--fx-blue-hover, #0e2a4d);
	text-decoration-thickness: 2px;
}

/* ---------- Strong + emphasis ---------- */
.fx-industry-seo__content strong,
.fx-industry-seo__content b {
	color: var(--fx-text, #2d2f31);
	font-weight: 700;
}

.fx-industry-seo__content em,
.fx-industry-seo__content i {
	font-style: italic;
}

/* ---------- Blockquote ---------- */
.fx-industry-seo__content blockquote {
	margin: 32px 0;
	padding: 16px 0 16px 24px;
	border-left: 3px solid var(--fx-blue, #163b6b);
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: 20px;
	line-height: 1.5;
	font-style: italic;
	color: var(--fx-text, #2d2f31);
}

.fx-industry-seo__content blockquote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
	.fx-industry-seo {
		padding: 56px var(--fx-gutter, 24px);
	}

	.fx-industry-seo__content h2 { font-size: var(--fx-h3, 28px); margin-top: 40px; }
	.fx-industry-seo__content h3 { font-size: var(--fx-h4, 22px); margin-top: 32px; }
	.fx-industry-seo__content h4 { font-size: var(--fx-h5, 19px); margin-top: 24px; }
}

@media (max-width: 600px) {
	.fx-industry-seo {
		padding: 40px var(--fx-gutter, 24px);
	}

	.fx-industry-seo__content p,
	.fx-industry-seo__content ul,
	.fx-industry-seo__content ol {
		font-size: 16px;
	}

	.fx-industry-seo__content blockquote {
		font-size: 18px;
		margin: 24px 0;
		padding-left: 18px;
	}
}

/* ==========================================================================
   FURTHER READING (.fx-rail-posts) — samme visuelle mønster som
   category-operations.css, scoped til industries-main fordi denne
   template ikke loader operations-stylesheet'et.
   ========================================================================== */

.fx-main--industries-category .fx-rail-posts {
	padding: 80px 0;
}

.fx-main--industries-category .fx-rail-posts__container {
	max-width: var(--fx-max-content, 1140px);
	margin: 0 auto;
	padding: 0 var(--fx-gutter, 24px);
}

.fx-main--industries-category .fx-rail-posts__header {
	text-align: center;
	margin: 0 auto 40px;
	max-width: 720px;
}

.fx-main--industries-category .fx-rail-posts__heading {
	margin: 0 0 12px;
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: var(--fx-h2, 40px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--fx-text, #2d2f31);
}

@media (max-width: 1024px) {
	.fx-main--industries-category .fx-rail-posts__container {
		padding: 0;
	}
}

@media (max-width: 900px) {
	.fx-main--industries-category .fx-rail-posts {
		padding: 56px 0;
	}

	.fx-main--industries-category .fx-rail-posts__heading {
		font-size: var(--fx-h3, 32px);
	}
}

@media (max-width: 600px) {
	.fx-main--industries-category .fx-rail-posts {
		padding: 40px 0;
	}
}
