/* ==========================================================================
   FlowX content styles: ordinary pages and posts (privacy policy, articles),
   and the older theme blocks (route map, quote form, calculator slot, contact
   details) for pages that still use them. Colours map onto the approved
   Orange tokens defined in flowx.css.
   ========================================================================== */

:root {
	--fx-night: var(--black);
	--fx-raised: var(--charcoal);
	--fx-line: var(--line);
	--fx-muted: var(--muted);
	--fx-paper: var(--paper);
	--fx-sodium: var(--sodium);
	--fx-sodium-hover: var(--sodium-light);
	--fx-error: var(--error);
	--fx-text-soft: var(--paper-soft);
	--fx-gutter: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 3rem));
	--fx-wide: var(--wp--style--global--wide-size, 84rem);
	--fx-header-h: 5.5rem;
	--fx-radius: 3px;
	--fx-stretch-display: 106%;
	--fx-stretch-heading: 104%;
	--fx-stretch-figure: 80%;
	--fx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fx-section-space: clamp(4.5rem, 3rem + 6vw, 9rem);
}

/* Ordinary pages: space under the fixed header, readable text. */
.fx-entry { padding-top: 6.5rem; }
.fx-entry h1, .fx-entry h2, .fx-entry h3, .fx-entry h4 { text-wrap: balance; }
.fx-content > * + * { margin-top: 1.25rem; }
.fx-content p, .fx-content li { color: var(--paper-soft); line-height: 1.65; }
.fx-content ul, .fx-content ol { padding-left: 1.25rem; list-style: revert; }
.fx-content h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 520; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2.5rem; }
.fx-content h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 520; letter-spacing: -0.02em; margin-top: 2rem; }
.fx-content img { height: auto; border-radius: 1rem; }
.fx-content table { width: 100%; border-collapse: collapse; }
.fx-content th, .fx-content td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }

/* 3. Buttons and links ----------------------------------------------------- */

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.fx-content a:where(:not(.wp-element-button)),
.fx-more a {
	text-decoration-color: var(--fx-sodium);
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

.fx-content a:where(:not(.wp-element-button)):hover {
	color: var(--fx-sodium);
}

.fx-button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3.125rem;
	padding: 0.85rem 1.5rem;
	border: 1px solid var(--fx-sodium);
	border-radius: var(--fx-radius);
	background: var(--fx-sodium);
	color: var(--fx-night);
	font: inherit;
	font-size: 1rem;
	font-weight: 560;
	font-stretch: 108%;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.fx-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--fx-sodium-hover);
	border-color: var(--fx-sodium-hover);
	color: var(--fx-night);
}

.fx-button--quiet,
.is-style-quiet .wp-block-button__link {
	background: transparent;
	border-color: rgb(236 234 228 / 0.32);
	color: var(--fx-paper);
}

.fx-button--quiet:hover,
.is-style-quiet .wp-block-button__link:hover {
	background: transparent;
	border-color: var(--fx-paper);
	color: var(--fx-paper);
}

.fx-button--small {
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.9375rem;
}

.fx-button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fx-more {
	font-weight: 520;
}

.fx-more a {
	text-decoration-line: underline;
}

/* 6. Content blocks -------------------------------------------------------- */

.fx-content > .alignfull {
	margin-block: 0;
}

.fx-content > :first-child:not(.alignfull) {
	margin-top: var(--fx-section-space);
}

.fx-content > :last-child:not(.alignfull) {
	margin-bottom: var(--fx-section-space);
}

.fx-content :where(p, li) {
	color: var(--fx-text-soft);
}

.fx-content :where(h2, h3) + p {
	margin-top: 1rem;
}

.fx-lead,
.fx-content .fx-lead {
	color: var(--fx-paper);
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.55;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	display: block;
	border-radius: var(--fx-radius);
}

.is-style-graded img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.72) contrast(1.06) brightness(0.92);
}

.wp-block-list {
	padding-left: 1.2em;
}

.is-style-ruled {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fx-line);
}

.is-style-ruled > li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--fx-line);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.is-style-ruled > li + li {
	margin-top: 0;
}

.wp-block-quote {
	margin: 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--fx-sodium);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--fx-line);
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table :where(th, td) {
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: 1px solid var(--fx-line);
	text-align: left;
	font-variant-numeric: tabular-nums;
}

.wp-block-table th {
	color: var(--fx-muted);
	font-weight: 500;
}

/* 7. Sections -------------------------------------------------------------- */

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

.fx-section + .fx-section:not(.fx-section--raised) {
	border-top: 1px solid var(--fx-line);
}

.fx-section--raised {
	background: var(--fx-raised);
}

.fx-section > * + * {
	margin-block-start: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

/* Section heading: title left, short intro right on wide screens. */
.fx-section__head > * {
	margin: 0;
}

.fx-section__head > p {
	max-width: 36rem;
	margin-top: 1.25rem;
	font-size: 1.125rem;
}

@media (min-width: 56em) {
	.fx-section__head {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 2rem;
		align-items: end;
	}

	.fx-section__head > h2 {
		grid-column: 1 / span 7;
	}

	.fx-section__head > p {
		grid-column: 8 / -1;
		margin-top: 0;
	}

	.fx-section__head > :only-child {
		grid-column: 1 / span 9;
	}
}

/* Services as ruled rows. */
.fx-services {
	border-top: 1px solid var(--fx-line);
}

.fx-service {
	display: grid;
	gap: 1.5rem;
	padding-block: clamp(2rem, 1.5rem + 1.5vw, 3rem);
	border-bottom: 1px solid var(--fx-line);
}

.fx-service,
.fx-service > * {
	margin: 0;
}

.fx-service__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--fx-radius);
	background: var(--fx-raised);
}

.fx-service__title a {
	text-decoration: none;
}

.fx-service__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--fx-sodium);
	text-decoration-thickness: 2px;
}

.fx-service__body > p {
	max-width: 34rem;
}

.fx-service__body > .fx-more {
	margin-top: 1.25rem;
}

@media (min-width: 40em) and (max-width: 63.99em) {
	.fx-service {
		grid-template-columns: 5fr 7fr;
		column-gap: 2rem;
	}

	.fx-service__media {
		grid-row: span 2;
	}
}

@media (min-width: 64em) {
	.fx-service {
		grid-template-columns: 4fr 5fr 3fr;
		column-gap: clamp(2rem, 1rem + 2vw, 3.5rem);
		align-items: start;
	}
}

/* Price shortcuts. */
.fx-prices {
	display: grid;
	gap: 1px;
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius);
	background: var(--fx-line);
	overflow: hidden;
}

.fx-price {
	margin: 0 !important;
	padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
	background: var(--fx-night);
}

.fx-price > p {
	max-width: 30rem;
}

.fx-price > .fx-more {
	margin-top: 1.5rem;
}

@media (min-width: 48em) {
	.fx-prices {
		grid-template-columns: 1fr 1fr;
	}
}

/* Steps of an order (a real sequence, so numbered). */
.fx-steps {
	display: grid;
	gap: 2rem;
	counter-reset: fx-step;
}

.fx-step {
	margin: 0 !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fx-line);
	counter-increment: fx-step;
}

.fx-step::before {
	content: counter(fx-step);
	display: block;
	margin-bottom: 1.75rem;
	color: var(--fx-sodium);
	font-size: 2.75rem;
	font-stretch: var(--fx-stretch-figure);
	font-weight: 300;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.fx-step > h3 {
	font-size: 1.3125rem;
}

.fx-step > p {
	margin-top: 0.75rem;
	font-size: 0.9875rem;
}

@media (min-width: 40em) {
	.fx-steps {
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}
}

@media (min-width: 64em) {
	.fx-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Image and text side by side. */
.fx-split {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.fx-split > * {
	margin: 0 !important;
}

.fx-split__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--fx-radius);
	background: var(--fx-raised);
}

.fx-split__body > * + * {
	margin-top: 1.25rem;
}

.fx-split__body > .wp-block-buttons {
	margin-top: 2rem;
}

.fx-split__body > p {
	max-width: 34rem;
}

@media (min-width: 56em) {
	.fx-split {
		grid-template-columns: 6fr 5fr;
		gap: clamp(3rem, 1rem + 4vw, 6rem);
	}

	.fx-split--flip > :first-child {
		order: 2;
	}
}

/* Facts: short label / value pairs (company details, service scope). */
.fx-facts {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--fx-line);
}

.fx-fact {
	display: grid;
	gap: 0.25rem 2rem;
	margin: 0 !important;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--fx-line);
}

.fx-fact > * {
	margin: 0 !important;
}

.fx-fact > h3 {
	font-size: 1.125rem;
	font-stretch: 105%;
	font-weight: 520;
}

@media (min-width: 48em) {
	.fx-fact {
		grid-template-columns: 4fr 8fr;
	}
}

/* Two-column text block: heading + lead left, content right. */
.fx-columns {
	display: grid;
	gap: 2rem 4rem;
}

.fx-columns > * {
	margin: 0 !important;
}

.fx-columns > :last-child > * + * {
	margin-top: 1.25rem;
}

@media (min-width: 56em) {
	.fx-columns {
		grid-template-columns: 5fr 7fr;
	}
}

/* Columns inside a section. */
.fx-columns__aside > *,
.fx-columns__body > * {
	margin: 0;
}

.fx-columns__aside > * + *,
.fx-columns__body > * + * {
	margin-top: 1.5rem;
}

.fx-columns__aside > .fx-contact {
	margin-top: 2.5rem;
}

.fx-columns__body > p {
	max-width: 40rem;
}

.fx-columns__body > .is-style-ruled {
	margin-top: 2.5rem;
}

@media (min-width: 56em) {
	.fx-section--form .fx-columns {
		grid-template-columns: 4fr 7fr;
	}

	.fx-section--form .fx-columns__aside {
		position: sticky;
		top: calc(var(--fx-header-h) + 2rem);
		align-self: start;
	}
}

.fx-section--tight {
	padding-top: 0;
}

.fx-section + .fx-section.fx-section--tight {
	border-top: 0;
}

.fx-wide-slot > * {
	margin: 0;
}

/* 8. Route map ------------------------------------------------------------- */

.fx-routemap {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--fx-night);
}

.fx-routemap__map {
	position: relative;
	overflow: hidden;
	pointer-events: none;
}

.fx-routemap__canvas {
	position: absolute;
	aspect-ratio: 1000 / 760;
}

.fx-routemap__land,
.fx-routemap__overlay {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.fx-routemap__overlay {
	overflow: visible;
	pointer-events: none;
}

.fx-route {
	fill: none;
	stroke: var(--fx-sodium);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-opacity: 0.5;
	transition: stroke-opacity 260ms ease, stroke-width 260ms ease;
}

.js .fx-route {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition:
		stroke-dashoffset 1.7s cubic-bezier(0.55, 0.05, 0.25, 1) calc(0.35s + var(--i, 0) * 0.16s),
		stroke-opacity 260ms ease,
		stroke-width 260ms ease;
}

.js .is-drawn .fx-route {
	stroke-dashoffset: 0;
}

.fx-stop circle {
	fill: var(--fx-night);
	stroke: var(--fx-sodium);
	stroke-width: 1.5;
	transition: fill 200ms ease;
}

.fx-stop text,
.fx-origin text {
	fill: rgb(236 234 228 / 0.72);
	font-size: 13px;
	font-weight: 460;
	letter-spacing: 0.01em;
	paint-order: stroke;
	stroke: var(--fx-night);
	stroke-width: 3.5px;
	stroke-linejoin: round;
	transition: fill 200ms ease, opacity 200ms ease;
}

.fx-stop {
	pointer-events: auto;
	transition: opacity 260ms ease;
}

.js .fx-stop,
.js .fx-origin {
	opacity: 0;
}

.js .is-drawn .fx-stop {
	opacity: 1;
	transition: opacity 400ms ease calc(1.6s + var(--i, 0) * 0.16s);
}

.js .is-drawn .fx-origin {
	opacity: 1;
	transition: opacity 400ms ease 0.1s;
}

.fx-origin__ring {
	fill: none;
	stroke: var(--fx-sodium);
	stroke-opacity: 0.45;
	stroke-width: 1;
}

.fx-origin__dot {
	fill: var(--fx-sodium);
}

.fx-origin text {
	fill: var(--fx-paper);
	font-size: 15px;
	font-weight: 600;
}

.fx-runner {
	fill: #fff6e2;
	opacity: 0;
	filter: drop-shadow(0 0 4px rgb(240 167 46 / 0.9));
}

.fx-runner.is-running {
	transition: opacity 300ms ease;
}

/* Highlighted route. */
.fx-routemap[data-active] .fx-route {
	stroke-opacity: 0.12;
}

.fx-routemap[data-active] .fx-route.is-active {
	stroke-opacity: 1;
	stroke-width: 2.6;
}

.fx-routemap[data-active] .fx-stop {
	opacity: 0.3;
	transition-delay: 0s;
}

.fx-routemap[data-active] .fx-stop.is-active {
	opacity: 1;
}

.fx-stop.is-active circle {
	fill: var(--fx-sodium);
}

.fx-stop.is-active text {
	fill: var(--fx-paper);
}

/* Destination board. */
.fx-routemap__inner {
	position: relative;
	z-index: 1;
}

.fx-routemap__label {
	margin: 0 0 0.75rem;
	color: var(--fx-muted);
	font-size: 0.875rem;
	font-stretch: 100%;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4;
}

.fx-routemap__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fx-line);
}

.fx-dest {
	display: grid;
	align-content: start;
	gap: 0.1rem;
	width: 100%;
	height: 100%;
	padding: 0.9rem 1rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--fx-line);
	border-radius: 0;
	background: transparent;
	color: var(--fx-paper);
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: inset 1px 0 0 var(--fx-line);
	transition: box-shadow 200ms ease, background-color 200ms ease;
}

.fx-dest:hover,
.fx-dest.is-active,
.fx-dest[aria-pressed="true"] {
	background: rgb(240 167 46 / 0.06);
	box-shadow: inset 2px 0 0 var(--fx-sodium);
}

.fx-dest:focus-visible {
	outline-offset: -2px;
}

.fx-dest__name {
	font-size: 1.0625rem;
	font-stretch: 110%;
	font-weight: 520;
	line-height: 1.25;
}

.fx-dest__country {
	color: var(--fx-muted);
	font-size: 0.8125rem;
}

.fx-dest__figure {
	margin-top: 0.6rem;
	font-size: 1.5rem;
	font-stretch: var(--fx-stretch-figure);
	font-weight: 380;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fx-dest.is-active .fx-dest__figure,
.fx-dest[aria-pressed="true"] .fx-dest__figure {
	color: var(--fx-sodium);
}

.fx-dest__transit {
	color: var(--fx-text-soft);
	font-size: 0.8125rem;
}

.fx-routemap__note {
	margin-top: 0.75rem;
	color: var(--fx-muted);
	font-size: 0.8125rem;
}

@media (min-width: 40em) {
	.fx-routemap__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Hero variant. */
.fx-routemap--hero .fx-routemap__content {
	max-width: 46rem;
}

@media (min-width: 64em) {
	/* Keep the headline clear of Tallinn on narrower desktops. */
	.fx-routemap--hero .fx-routemap__content {
		max-width: min(46rem, 52vw);
	}
}

.fx-routemap--hero .fx-routemap__content > * {
	margin: 0;
}

.fx-routemap--hero .fx-routemap__content > * + * {
	margin-top: 1.5rem;
}

.fx-routemap--hero .fx-routemap__content > .wp-block-buttons {
	margin-top: 2.25rem;
}

.fx-routemap--hero .fx-lead {
	max-width: 36rem;
	color: var(--fx-text-soft);
}

@media (max-width: 63.99em) {
	/* Map on top, cropped to central and eastern Europe, text below. */
	.fx-routemap--hero {
		padding-top: var(--fx-header-h);
	}

	.fx-routemap--hero .fx-routemap__map {
		height: 72vw;
		max-height: 36rem;
		margin-bottom: -6vw;
	}

	.fx-routemap--hero .fx-routemap__canvas {
		width: 150%;
		left: -38%;
		top: -26vw;
	}

	.fx-routemap--hero .fx-routemap__map::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 40%;
		background: linear-gradient(to top, var(--fx-night), transparent);
	}

	.fx-routemap--hero .fx-routemap__inner {
		padding: 0 var(--fx-gutter) 3rem;
	}

	.fx-routemap--hero .fx-routemap__board {
		margin-top: 3.5rem;
	}

	.fx-stop text {
		font-size: 19px;
	}

	.fx-origin text {
		font-size: 21px;
	}
}

@media (min-width: 64em) {
	.fx-routemap--hero {
		min-height: max(42rem, min(100svh, 64rem));
		display: flex;
	}

	.fx-routemap--hero .fx-routemap__map {
		position: absolute;
		inset: 0;
	}

	.fx-routemap--hero .fx-routemap__canvas {
		top: 0;
		right: calc(-1 * clamp(0rem, 6vw - 2rem, 8rem));
		height: 100%;
	}

	.fx-routemap--hero .fx-routemap__map::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(to right, var(--fx-night) 0%, rgb(13 16 19 / 0.92) 26%, rgb(13 16 19 / 0) 58%),
			linear-gradient(to top, var(--fx-night) 0%, rgb(13 16 19 / 0.85) 16%, rgb(13 16 19 / 0) 38%);
	}

	.fx-routemap--hero .fx-routemap__inner {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 4rem;
		width: 100%;
		max-width: calc(var(--fx-wide) + 2 * var(--fx-gutter));
		margin: 0 auto;
		padding: calc(var(--fx-header-h) + clamp(3rem, 12vh, 9rem)) var(--fx-gutter) 2.5rem;
	}

	.fx-routemap--hero .fx-routemap__list {
		grid-template-columns: repeat(var(--fx-routes, 6), minmax(0, 1fr));
	}
}

/* Section variant: list beside the map, aligned to the wide content width. */
.fx-routemap--section {
	padding-block: var(--fx-section-space);
	padding-inline: max(var(--fx-gutter), calc((100% - var(--fx-wide)) / 2));
	border-top: 1px solid var(--fx-line);
}

.fx-routemap--section .fx-routemap__board {
	margin-top: 1rem;
}

.fx-routemap--section .fx-routemap__map {
	aspect-ratio: 1000 / 760;
	-webkit-mask-image: radial-gradient(ellipse 72% 68% at 55% 50%, #000 62%, transparent 100%);
	mask-image: radial-gradient(ellipse 72% 68% at 55% 50%, #000 62%, transparent 100%);
}

.fx-routemap--section .fx-routemap__canvas {
	inset: 0;
}

.fx-routemap--section .fx-routemap__inner {
	display: grid;
	gap: 2rem;
}

.fx-routemap--section .fx-routemap__content > * {
	margin: 0;
}

.fx-routemap--section .fx-routemap__content > * + * {
	margin-top: 1rem;
}

@media (min-width: 64em) {
	.fx-routemap--section {
		display: grid;
		grid-template-columns: 4fr 8fr;
		gap: 3rem;
		align-items: start;
	}

	.fx-routemap--section .fx-routemap__map {
		grid-column: 2;
		grid-row: 1;
	}

	.fx-routemap--section .fx-routemap__inner {
		grid-column: 1;
		grid-row: 1;
	}

	.fx-routemap--section .fx-routemap__list {
		grid-template-columns: 1fr;
	}

	.fx-routemap--section .fx-dest {
		grid-template-columns: 1fr auto;
		align-items: baseline;
		column-gap: 1rem;
		padding-block: 0.85rem;
	}

	.fx-routemap--section .fx-dest__figure {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		margin-top: 0;
	}
}

/* Hero entrance: the one orchestrated moment on the site. */
@keyframes fx-rise {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.js .fx-routemap--hero .fx-routemap__content > * {
	animation: fx-rise 0.9s var(--fx-ease) both;
}

.js .fx-routemap--hero .fx-routemap__content > :nth-child(2) {
	animation-delay: 0.1s;
}

.js .fx-routemap--hero .fx-routemap__content > :nth-child(3) {
	animation-delay: 0.2s;
}

.js .fx-routemap--hero .fx-routemap__board {
	animation: fx-rise 0.9s var(--fx-ease) 0.35s both;
}

/* 9. Page head ------------------------------------------------------------- */

.fx-page-head {
	border-bottom: 1px solid var(--fx-line);
}

.fx-page-head.has-image {
	border-bottom: 0;
}

.fx-page-head__inner {
	max-width: calc(var(--fx-wide) + 2 * var(--fx-gutter));
	margin: 0 auto;
	padding: clamp(4rem, 2rem + 8vw, 9rem) var(--fx-gutter) clamp(3rem, 2rem + 4vw, 5.5rem);
}

.fx-page-head__parent {
	margin-bottom: 1.5rem;
	color: var(--fx-muted);
	font-size: 0.9375rem;
}

.fx-page-head__parent a {
	text-decoration: none;
}

.fx-page-head__parent a:hover {
	color: var(--fx-paper);
}

.fx-page-head__title {
	max-width: 18ch;
}

.fx-page-head__lead {
	max-width: 40rem;
	margin-top: 1.75rem;
	color: var(--fx-text-soft);
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
	line-height: 1.5;
}

.fx-page-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

.fx-page-head__media {
	margin: 0;
	aspect-ratio: 21 / 9;
	max-height: 72vh;
	overflow: hidden;
	background: var(--fx-raised);
}

.fx-page-head__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.72) contrast(1.06) brightness(0.92);
}

@media (max-width: 39.99em) {
	.fx-page-head__media {
		aspect-ratio: 4 / 3;
	}
}

/* 10. Quote form ----------------------------------------------------------- */

.fx-quote {
	position: relative;
}

.fx-form {
	display: grid;
	gap: 2.75rem;
}

.fx-form[hidden] {
	display: none;
}

.fx-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fx-form__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fx-form__legend {
	display: block;
	width: 100%;
	margin-bottom: 1.25rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--fx-line);
	font-size: 1.25rem;
	font-stretch: 112%;
	font-weight: 450;
	letter-spacing: -0.01em;
}

.fx-form__grid {
	display: grid;
	gap: 1.25rem 1.5rem;
}

.fx-form__grid + .fx-field {
	margin-top: 1.25rem;
}

@media (min-width: 40em) {
	.fx-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.fx-field {
	display: grid;
	gap: 0.45rem;
	align-content: start;
}

.fx-field label {
	color: var(--fx-paper);
	font-size: 0.9375rem;
	font-weight: 480;
}

.fx-field__optional {
	color: var(--fx-muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

.fx-field input,
.fx-field textarea {
	width: 100%;
	min-height: 3.125rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius);
	background: var(--fx-raised);
	color: var(--fx-paper);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color-scheme: dark;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.fx-field textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.fx-field input:hover,
.fx-field textarea:hover {
	border-color: #38414b;
}

.fx-field input:focus,
.fx-field textarea:focus {
	border-color: var(--fx-sodium);
	outline: none;
	box-shadow: 0 0 0 1px var(--fx-sodium);
}

.fx-field.has-error input,
.fx-field.has-error textarea {
	border-color: var(--fx-error);
}

.fx-field__error,
.fx-form__error {
	margin: 0;
	color: var(--fx-error);
	font-size: 0.875rem;
}

.fx-field__error:empty,
.fx-form__error:empty {
	display: none;
}

.fx-form__error {
	padding: 0.9rem 1rem;
	border: 1px solid var(--fx-error);
	border-radius: var(--fx-radius);
}

.fx-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.fx-choice {
	position: relative;
	cursor: pointer;
}

.fx-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.fx-choice span {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--fx-line);
	border-radius: 999px;
	color: var(--fx-text-soft);
	font-size: 0.9375rem;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.fx-choice:hover span {
	border-color: #3a434d;
	color: var(--fx-paper);
}

.fx-choice input:checked + span {
	border-color: var(--fx-sodium);
	background: rgb(240 167 46 / 0.1);
	color: var(--fx-paper);
}

.fx-choice input:focus-visible + span {
	outline: 2px solid var(--fx-sodium);
	outline-offset: 3px;
}

.fx-form__group--service .fx-field__error {
	margin-top: 0.75rem;
}

.fx-check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--fx-text-soft);
	font-size: 0.9375rem;
	cursor: pointer;
}

.fx-check input {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--fx-sodium);
}

.fx-check a {
	color: var(--fx-paper);
	text-decoration-color: var(--fx-sodium);
}

.fx-form__consent .fx-field__error {
	margin-top: 0.5rem;
	padding-left: 2rem;
}

.fx-form__submit .fx-button {
	min-width: 12rem;
}

.fx-quote__done {
	padding: 2rem 0 2rem 1.75rem;
	border-left: 2px solid var(--fx-sodium);
}

.fx-quote__done:focus {
	outline: none;
}

.fx-quote__done-title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
}

.fx-quote__done p {
	max-width: 34rem;
	color: var(--fx-text-soft);
}

/* 11. Price calculator ----------------------------------------------------- */

.fx-calc {
	display: grid;
	gap: 2rem;
	padding: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius);
	background: var(--fx-raised);
}

.fx-calc__head > * {
	margin: 0;
}

.fx-calc__title {
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
}

.fx-calc__text {
	max-width: 30rem;
	margin-top: 1rem !important;
	color: var(--fx-text-soft);
}

.fx-calc__body {
	min-width: 0;
}

.fx-calc.is-pending .fx-calc__body {
	display: grid;
	gap: 1.5rem;
	align-content: center;
	justify-items: start;
	padding: 1.75rem;
	border: 1px dashed #343c46;
	border-radius: var(--fx-radius);
}

.fx-calc__pending {
	max-width: 28rem;
	color: var(--fx-muted);
}

@media (min-width: 56em) {
	.fx-calc {
		grid-template-columns: 5fr 7fr;
		gap: 3rem;
	}
}

/* 12. Contact details ------------------------------------------------------ */

.fx-contact__list {
	margin: 0;
	border-top: 1px solid var(--fx-line);
}

.fx-contact__row {
	display: grid;
	gap: 0.25rem 2rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--fx-line);
}

.fx-contact__row dt {
	color: var(--fx-muted);
	font-size: 0.875rem;
}

.fx-contact__row dd {
	margin: 0;
	color: var(--fx-paper);
	font-size: 1.125rem;
}

.fx-contact__row.is-primary dd {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-stretch: 118%;
	font-weight: 340;
	letter-spacing: -0.02em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.fx-contact__row a {
	text-decoration: none;
}

.fx-contact__row a:hover {
	text-decoration: underline;
	text-decoration-color: var(--fx-sodium);
	text-decoration-thickness: 2px;
}

.fx-contact__legal {
	margin-top: 1.25rem !important;
	color: var(--fx-muted);
	font-size: 0.875rem;
}

@media (min-width: 48em) {
	.fx-contact__row {
		grid-template-columns: 9rem 1fr;
		align-items: baseline;
	}
}

/* 13. Listing and 404 ------------------------------------------------------ */

.fx-listing {
	max-width: calc(var(--fx-wide) + 2 * var(--fx-gutter));
	margin: 0 auto;
	padding: 3rem var(--fx-gutter) var(--fx-section-space);
}

.fx-listing__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fx-listing__item {
	padding-block: 1.75rem;
	border-bottom: 1px solid var(--fx-line);
}

.fx-listing__link {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	text-decoration: none;
}

.fx-listing__title {
	font-size: 1.5rem;
	font-stretch: 112%;
	font-weight: 420;
}

.fx-listing__link:hover .fx-listing__title {
	text-decoration: underline;
	text-decoration-color: var(--fx-sodium);
}

.fx-listing__date {
	color: var(--fx-muted);
	font-variant-numeric: tabular-nums;
}

.fx-listing__excerpt,
.fx-listing__empty {
	max-width: 40rem;
	margin-top: 0.5rem;
	color: var(--fx-text-soft);
}

.fx-listing .search-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.fx-listing .search-field {
	min-height: 3rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius);
	background: var(--fx-raised);
	color: var(--fx-paper);
	font: inherit;
}

.fx-page-head--404 {
	border-bottom: 0;
	min-height: 60vh;
}

.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

/* 14. Motion preferences --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.js .fx-route {
		stroke-dashoffset: 0;
	}

	.js .fx-stop,
	.js .fx-origin {
		opacity: 1;
	}
}
