/* ==========================================================================
   Heroes - the Fresh Ground vh-root video hero and sb-root page banner.

   Extracted verbatim from main.min.css:

   Video hero (vh-root):
     .vh-root                    position relative
     .vh-root__background        background #000, inset 0, z-index -1
     .vh-root__background:before rgba(0,0,0,.4) scrim
     .vh-root__wrapper           flex column, centred both axes
     .vh-root__wrapper--pad-25   3.4375rem   --pad-50   6.875rem
     .vh-root__wrapper--pad-75   10.3125rem  --pad-100  13.75rem
     .vh-root__textarea          max-width 43.75rem, centred, text-align center
     .vh-root__btn-group         flex, wrap, gap .625rem, justify center

   Page banner (sb-root):
     .sb-root                    background #252424, relative, width 100%
     .sb-root__bg-image img      object-fit cover, 100% x 100%
     .sb-root__bg-image:before   rgba(0,0,0,.2) scrim
     .sb-root__inner-block       padding 1.875rem 0
     .sb-root__inner-block h1    #fff, 2.625rem, max-width 50%
                                 -> 1.75rem / max-width 100% on mobile
     .sb-root__inner-block__body max-width 50% -> 80% -> 100%
                                 p/a 1.125rem -> 1.3125rem
     .padding-large              4.375rem -> 6.875rem
     .text-center                flex column centred; h1 max-width 80%
   ========================================================================== */

/* --------------------------------------------------------------------------
   Video hero - homepage and Om mig
   -------------------------------------------------------------------------- */

.mx-hero {
	position: relative;
}

.mx-hero__background {
	background-color: #000;
	bottom: 0;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
}

.mx-hero__background::before {
	background-color: var(--mx-scrim);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.mx-hero__background video,
.mx-hero__background img {
	display: block;
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

.mx-hero__wrapper {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: var(--mx-hero-pad-25);
	padding-top: var(--mx-hero-pad-25);
	position: relative;
	z-index: 3;
}

/* Padding steps. Mobile floors at pad-25 so a hero never eats the viewport;
   the larger steps only engage once there is room for them. */
@media (min-width: 48rem) {
	.mx-hero__wrapper--pad-50  { padding-bottom: var(--mx-hero-pad-50);  padding-top: var(--mx-hero-pad-50); }
	.mx-hero__wrapper--pad-75  { padding-bottom: var(--mx-hero-pad-50);  padding-top: var(--mx-hero-pad-50); }
	.mx-hero__wrapper--pad-100 { padding-bottom: var(--mx-hero-pad-75);  padding-top: var(--mx-hero-pad-75); }
}

@media (min-width: 68.75rem) {
	.mx-hero__wrapper--pad-75  { padding-bottom: var(--mx-hero-pad-75);  padding-top: var(--mx-hero-pad-75); }
	.mx-hero__wrapper--pad-100 { padding-bottom: var(--mx-hero-pad-100); padding-top: var(--mx-hero-pad-100); }
}

.mx-hero__title {
	color: #fff;
	margin-bottom: 1.25rem;
	text-align: center;
}

.mx-hero__textarea {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--mx-hero-textarea);
	text-align: center;
	width: 100%;
}

.mx-hero__textarea p {
	color: #fff;
	font-size: var(--mx-text-medium);
	line-height: 1.5;
}

.mx-hero__btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	justify-content: center;
	margin-top: 1.875rem;
}

/* --------------------------------------------------------------------------
   Rotating word loop

   One word is visible at a time; the rest are removed from the flow so the
   headline does not reflow as it cycles. An inline-grid stack keeps the box
   sized to the widest word, which prevents the line from jumping.
   -------------------------------------------------------------------------- */

.mx-word-loop {
	display: inline-grid;
	text-align: left;
	vertical-align: bottom;
}

.mx-word-loop > span {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(.18em);
	transition: opacity .45s var(--mx-easing), transform .45s var(--mx-easing);
	white-space: nowrap;
}

.mx-word-loop > span.is-active {
	opacity: 1;
	transform: translateY(0);
}

/* Before the script runs, show the first word so the headline is never blank. */
.mx-word-loop > span:first-child {
	opacity: 1;
	transform: none;
}

.mx-word-loop.is-ready > span:first-child:not(.is-active) {
	opacity: 0;
	transform: translateY(.18em);
}

/* Below the nav breakpoint the loop takes its own line. A long Danish compound
   cannot hyphenate and cannot wrap, so on a narrow viewport it needs the full
   width rather than whatever the lead-in leaves over. */
@media (max-width: 47.9375rem) {
	.mx-word-loop {
		display: grid;
		justify-items: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mx-word-loop > span {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Page banner - every page that is not the homepage or Om mig
   -------------------------------------------------------------------------- */

.mx-banner {
	background-color: #252424;
	position: relative;
	width: 100%;
}

.mx-banner__bg {
	bottom: 0;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
}

.mx-banner__bg img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mx-banner__bg::before {
	background-color: rgba(0, 0, 0, .2);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}

/* Service pages sit their animal illustration behind the banner; those artworks
   are light and busy, so they take the heavier scrim. */
.mx-banner__bg--scrim-strong::before {
	background-color: var(--mx-scrim);
}

/* Every page banner on freshground.co.uk carries BOTH `padding-medium` and
   `text-center` - verified on /about/, /pricing/ and /why-rental/. So centred
   content at the medium padding step is the DEFAULT here, not an option.
   The large step exists but their page banners do not use it. */
.mx-banner__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	padding: 1.875rem 0;
	position: relative;
	text-align: center;
	z-index: 2;
}

@media (min-width: 48rem) {
	.mx-banner__inner {
		padding: 4.375rem 0;
	}
}

.mx-banner__inner--large {
	padding: 4.375rem 0;
}

@media (min-width: 48rem) {
	.mx-banner__inner--large {
		padding: 6.875rem 0;
	}
}

.mx-banner__inner--compact {
	padding: 1.875rem 0;
}

/* Left-aligned variant. Fresh Ground uses this shape on a minority of banners,
   where the h1 is held to half the wrapper. */
.mx-banner__inner--left {
	align-items: flex-start;
	text-align: left;
}

.mx-banner__title {
	color: #fff;
	font-size: 1.75rem;
	margin-bottom: 1.25rem;
	max-width: 100%;
}

@media (min-width: 48rem) {
	.mx-banner__title {
		font-size: 2.625rem;
		max-width: 80%;
	}
}

@media (min-width: 68.75rem) {
	.mx-banner__inner--left .mx-banner__title {
		max-width: 50%;
	}
}

.mx-banner__title:last-child {
	margin-bottom: 0;
}

.mx-banner__body {
	max-width: 100%;
}

.mx-banner__body p,
.mx-banner__body a {
	color: #fff;
	font-size: var(--mx-text-medium);
	line-height: 1.5;
	transition: color var(--mx-motion);
}

@media (hover: hover) {
	.mx-banner__body a:hover {
		color: var(--mx-btn-accent);
	}
}

@media (min-width: 48rem) {
	.mx-banner__body {
		max-width: 80%;
	}

	.mx-banner__body p,
	.mx-banner__body a {
		font-size: 1.3125rem;
	}
}

@media (min-width: 68.75rem) {
	.mx-banner__inner--left .mx-banner__body {
		max-width: 50%;
	}
}

/* Retained as a no-op alias: centred is now the default, but templates that
   still pass center => true keep working. */
.mx-banner__inner--center {
	align-items: center;
	text-align: center;
}

.mx-banner__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.mx-banner__tags li {
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	font-size: var(--mx-text-xsmall);
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	padding: .5rem .75rem;
	text-transform: uppercase;
}

.mx-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	justify-content: center;
	margin-top: 1.875rem;
}

.mx-banner__inner--left .mx-banner__actions,
.mx-banner__inner--left .mx-banner__tags {
	justify-content: flex-start;
}

/* Tags centre with everything else by default. */
.mx-banner__tags {
	justify-content: center;
}
