/*
 * Elementor widgets in the site's style. In Elementor, add a class under
 * Advanced → CSS Classes:
 *
 * Containers  mcc-hero (full-screen photo hero; set the photo as the
 *             container background), theme-bone (white panel),
 *             theme-sky (blue panel), mcc-dock-corner / mcc-dock-bottom
 *             (where the travelling 4x4 parks)
 * Headings    mcc-eyebrow (small blue heading), mcc-title (big headline),
 *             mcc-hero-title (giant hero headline)
 * Text        mcc-text
 * Buttons     mcc-button, mcc-button-ghost (outlined)
 * Counters    mcc-stat
 * Icon lists  mcc-contact-list (contact details with round icons)
 *             mcc-feature-list (a row of large icons with short labels)
 * Images      mcc-photo (cropped photo with a slow zoom)
 */

.mcc-eyebrow .elementor-heading-title {
	margin: 0;
	color: var(--sky);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mcc-title .elementor-heading-title,
.mcc-hero-title .elementor-heading-title {
	margin: 0;
	color: var(--bone);
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
}

.mcc-title .elementor-heading-title {
	font-size: clamp(3rem, 7vw, 6.5rem);
	line-height: 0.95;
}

.mcc-hero-title .elementor-heading-title {
	max-width: 11ch;
	font-size: clamp(5rem, 17vw, 17rem);
	line-height: 0.84;
	letter-spacing: -0.01em;
}

/* Phones: small enough that the longest word ("Adventure") fits on one line. */
@media (max-width: 600px) {
	.mcc-hero-title .elementor-heading-title {
		font-size: clamp(3rem, 14.5vw, 5rem);
	}
}

.mcc-text,
.mcc-text p {
	max-width: 36rem;
	margin: 0;
	color: var(--bone-muted);
	font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.mcc-button .elementor-button,
.mcc-button-ghost .elementor-button {
	display: inline-block;
	padding: 1rem 1.75rem;
	border: 1px solid var(--sky);
	border-radius: 0;
	background: var(--sky);
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.mcc-button-ghost .elementor-button {
	border-color: var(--bone);
	background: transparent;
	color: var(--bone);
}

.mcc-button .elementor-button:hover,
.mcc-button-ghost .elementor-button:hover {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--ink);
}

.mcc-stat .elementor-counter {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 0.5rem;
}

.mcc-stat .elementor-counter-number-wrapper {
	justify-content: flex-start;
	color: var(--sky);
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 5.5vw, 6rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 0.95;
}

.mcc-stat .elementor-counter-title {
	color: var(--bone-muted);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-align: left;
	text-transform: uppercase;
}

/* Icon List widget for contact details (class mcc-contact-list). */
.mcc-contact-list .elementor-icon-list-items {
	display: grid;
	gap: 0.875rem;
}

.mcc-contact-list .elementor-icon-list-item,
.mcc-contact-list .elementor-icon-list-item > a {
	align-items: center;
	color: var(--bone);
	font-size: 1.0625rem;
}

.mcc-contact-list .elementor-icon-list-item > a:hover {
	color: var(--sky);
}

/* Round icon badge. The selectors repeat the widget class to beat Elementor's own icon-list rules. */
.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: 1rem;
	padding: 0;
	border: 1px solid rgba(60, 191, 240, 0.35);
	border-radius: 50%;
	background: rgba(60, 191, 240, 0.12);
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-icon i,
.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-icon svg {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	color: var(--sky);
	fill: var(--sky);
	font-size: 1.125rem;
	line-height: 1;
	transition: fill 0.25s var(--ease), color 0.25s var(--ease);
}

.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-item > a:hover .elementor-icon-list-icon {
	border-color: var(--sky);
	background: var(--sky);
}

.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-item > a:hover .elementor-icon-list-icon svg,
.mcc-contact-list.elementor-widget-icon-list .elementor-icon-list-item > a:hover .elementor-icon-list-icon i {
	color: var(--ink);
	fill: var(--ink);
}

.mcc-contact-list .elementor-icon-list-text {
	align-self: center;
	color: inherit;
}

/* Inline Icon List of short features (class mcc-feature-list), e.g. the About icons. */
/* Narrow enough to wrap before the vehicle parked in the corner of the screen. */
.mcc-feature-list.elementor-widget-icon-list .elementor-icon-list-items {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	max-width: 30rem;
	margin-top: 1rem;
}

.mcc-feature-list.elementor-widget-icon-list .elementor-icon-list-item {
	align-items: center;
	margin: 0;
	padding: 0;
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mcc-feature-list.elementor-widget-icon-list .elementor-icon-list-item::after {
	display: none;
}

.mcc-feature-list.elementor-widget-icon-list .elementor-icon-list-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-right: 0.875rem;
	border: 1px solid currentColor;
	border-radius: 50%;
}

.mcc-feature-list.elementor-widget-icon-list .elementor-icon-list-icon i {
	width: 1.625rem;
	height: 1.625rem;
	font-size: 1.625rem;
}

.mcc-feature-list .elementor-icon-list-text {
	color: inherit;
}

.mcc-photo img {
	width: 100%;
	max-height: 80vh;
	object-fit: cover;
}

/* Full-screen hero: the photo is the container's background, darkened where the text sits. */
.mcc-hero {
	min-height: 100vh;
	min-height: 100svh;
}

.mcc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(16, 19, 24, 0.82) 0%, rgba(16, 19, 24, 0.45) 45%, transparent 75%),
		linear-gradient(180deg, rgba(16, 19, 24, 0.6) 0%, transparent 28%),
		linear-gradient(0deg, var(--ink) 2%, rgba(16, 19, 24, 0.55) 42%, transparent 72%);
	pointer-events: none;
}

.mcc-hero > .e-con-inner,
.mcc-hero > .elementor-element {
	position: relative;
	z-index: 1;
}

/*
 * Animated background (motion.js): the photo in its own layer under the dark gradient, a drifting
 * haze and a one-off beam of light. Without it (reduced motion, editor) the plain background shows.
 */
.mcc-hero.has-backdrop {
	isolation: isolate;
	overflow: hidden;
}

/*
 * The layer shows the photo, so the hero's own copy is switched off: from the first paint (.motion, set in
 * the page head; removed again after 3 seconds if the animation never starts) so it cannot flash before
 * the reveal. motion.js adds .is-reading-photo for a moment to read the photo set in Elementor.
 */
.motion .mcc-hero:not(.is-reading-photo),
.mcc-hero.has-backdrop:not(.is-reading-photo) {
	background-color: var(--ink);
	background-image: none !important;
}

.mcc-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

/* A little larger than the hero, so drifting and the mouse shift never show an edge. */
.mcc-hero__photo {
	position: absolute;
	inset: -4%;
	background-repeat: no-repeat;
	background-size: cover;
	will-change: transform;
}

.mcc-hero__haze {
	position: absolute;
	inset: -25%;
	background:
		radial-gradient(40% 35% at 30% 40%, rgba(60, 191, 240, 0.28), transparent 70%),
		radial-gradient(35% 30% at 70% 65%, rgba(240, 242, 243, 0.14), transparent 70%);
	mix-blend-mode: screen;
	opacity: 0.6;
	animation: mcc-hero-haze 28s ease-in-out infinite alternate;
}

@keyframes mcc-hero-haze {
	to {
		transform: translate3d(8%, -5%, 0) rotate(6deg);
	}
}

.mcc-hero__glint {
	position: absolute;
	inset: -20% auto -20% 0;
	width: 35%;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, rgba(140, 220, 250, 0.22) 50%, rgba(255, 255, 255, 0.16) 55%, transparent 100%);
	mix-blend-mode: overlay;
	opacity: 0;
	transform: skewX(-12deg);
}

/* Hidden until motion.js animates the hero in. See mcc_theme_head_hints(). */
.motion .mcc-hero > .e-con-inner,
.motion .mcc-hero > .elementor-element {
	opacity: 0;
}

@media (max-width: 767px) {
	.mcc-hero::before {
		background: linear-gradient(180deg, rgba(16, 19, 24, 0.6) 0%, rgba(16, 19, 24, 0.35) 30%, rgba(16, 19, 24, 0.75) 55%, var(--ink) 92%);
	}
}
