/* CRC Maesta — hero section.
   Load AFTER the theme stylesheet. Everything is namespaced under .maesta-hero
   so it can't leak into the Bootstrap modals or the rest of the page. */

.maesta-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 640px;
	background: #0e1c30;
	color: #fff;
}

.maesta-hero { --maesta-chrome: 150px; }

/* ---- Video side ------------------------------------------------------- */

.maesta-hero__media {
	position: relative;
	flex: 1 1 58%;
	min-width: 0;
	overflow: hidden;
}

.maesta-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.maesta-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(14, 28, 48, 0.86) 0%,
		rgba(14, 28, 48, 0.55) 42%,
		rgba(14, 28, 48, 0.15) 100%
	);
}

.maesta-hero__copy {
	position: relative;
	z-index: 2;
	max-width: 520px;
	padding: 72px 40px 56px 6vw;
}

.maesta-hero__eyebrow {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d8bd83;
}

.maesta-hero__title {
	margin: 0;
	font-size: clamp(48px, 5.4vw, 82px);
	font-weight: 400;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.maesta-hero__tagline {
	margin: 10px 0 0;
	font-size: 14px;
	font-style: italic;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.82);
}

/* Gold hairline separating identity from the commercial pitch. */
.maesta-hero__spec {
	position: relative;
	margin: 30px 0 0;
	padding-top: 26px;
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.maesta-hero__spec::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 68px;
	height: 2px;
	background: #b99145;
}

.maesta-hero__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 14px 0 0;
}

.maesta-hero__price-label {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.maesta-hero__price-value {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #d8bd83;
}

.maesta-hero__play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding: 13px 26px 13px 18px;
	border: 1px solid rgba(216, 189, 131, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.22s ease, border-color 0.22s ease;
}

.maesta-hero__play:hover {
	background: rgba(216, 189, 131, 0.18);
	border-color: #d8bd83;
}

.maesta-hero__play-icon {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #d8bd83;
	margin-left: 4px;
}

/* ---- Form side -------------------------------------------------------- */

.maesta-hero__panel {
	flex: 0 0 clamp(370px, 34%, 460px);
	padding: 56px 44px;
	background: #fff;
	color: #10233f;
	overflow-y: auto;
}

.maesta-hero__form-head h2 {
	margin: 0 0 6px;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.25;
	color: #10233f;
}

.maesta-hero__form-head p {
	margin: 0 0 26px;
	font-size: 13px;
	color: rgba(16, 35, 63, 0.62);
}

.maesta-hero__field { margin-bottom: 16px; }

.maesta-hero__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(16, 35, 63, 0.66);
}

.maesta-hero__form .form-control,
.maesta-hero__form select.form-control {
	width: 100%;
	height: auto;
	padding: 12px 14px;
	border: 1px solid rgba(16, 35, 63, 0.2);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: #10233f;
	font-size: 14.5px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.maesta-hero__form .form-control:focus {
	border-color: #b99145;
	box-shadow: 0 0 0 3px rgba(185, 145, 69, 0.22);
	outline: none;
}

.maesta-hero__form select.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310233f' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.maesta-hero__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.maesta-hero__submit {
	width: 100%;
	margin-top: 20px;
	padding: 15px 20px;
	border: 0;
	border-radius: 4px;
	background: #b99145;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.maesta-hero__submit:hover { background: #a37e37; }

.maesta-hero__consent {
	margin: 14px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: rgba(16, 35, 63, 0.5);
}

.maesta-hero__form .g-recaptcha {
	margin-top: 16px;
	transform: scale(0.86);
	transform-origin: 0 0;
	height: 66px;
}

.maesta-hero__submit:focus-visible,
.maesta-hero__play:focus-visible {
	outline: 2px solid #d8bd83;
	outline-offset: 3px;
}

/* ---- Tablet ----------------------------------------------------------- */

@media (max-width: 1100px) {
	.maesta-hero { min-height: 0; flex-direction: column; }

	.maesta-hero__media {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 340px;
	}

	.maesta-hero__copy {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		height: 100%;
		max-width: none;
		padding: 32px 28px;
	}

	.maesta-hero__scrim {
		background: linear-gradient(
			to top,
			rgba(14, 28, 48, 0.9) 0%,
			rgba(14, 28, 48, 0.35) 62%,
			rgba(14, 28, 48, 0.15) 100%
		);
	}

	.maesta-hero__panel {
		flex: none;
		padding: 34px 28px 40px;
	}
}

/* ---- Mobile ----------------------------------------------------------- */

@media (max-width: 600px) {
	.maesta-hero__media { min-height: 260px; }
	.maesta-hero__copy { padding: 24px 20px; }
	.maesta-hero__spec { margin-top: 20px; padding-top: 18px; letter-spacing: 0.14em; }
	.maesta-hero__play { margin-top: 22px; padding: 11px 20px 11px 14px; font-size: 12.5px; }

	.maesta-hero__panel { padding: 28px 20px 34px; }
	.maesta-hero__form-head h2 { font-size: 21px; }
	.maesta-hero__row { grid-template-columns: 1fr; gap: 0; }

	/* 16px minimum stops iOS Safari zooming the viewport on focus. */
	.maesta-hero__form .form-control { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.maesta-hero__video { display: none; }

	.maesta-hero__media {
		background-image: var(--maesta-hero-still);
		background-size: cover;
		background-position: center;
	}

	.maesta-hero__play,
	.maesta-hero__submit,
	.maesta-hero__form .form-control { transition: none; }
}
