/**
 * Leaf Hero
 *
 * Editorial hero: rule + pre-heading, large tight headline, short
 * description, one solid action and one quiet one. No stat strip,
 * no scroll cue - the content carries it.
 */

.leaf-hero {
	/* Site primary, taken from the theme's --tmp-primary-color. */
	--leaf-green: #26913d;
	--leaf-green-hover: #2ea849;
	--leaf-ink: #0d1410;
	--leaf-scrim: 0.62;

	position: relative;
	display: flex;
	align-items: center;
	min-height: 76vh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--leaf-ink);
	color: #fff;
}

/* ---------------------------------------------------------------- media */

.leaf-hero .leaf-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.leaf-hero .leaf-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 45%;
	display: block;
}

.leaf-hero--motion .leaf-hero__img {
	animation: leaf-hero-drift 32s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes leaf-hero-drift {
	from { transform: scale(1.02); }
	to   { transform: scale(1.09); }
}

/*
 * Two soft washes rather than one flat dark layer: a bottom-left pool
 * that anchors the text, plus a gentle top vignette so the header
 * separates from the sky. Keeps the photograph readable as a photograph.
 */
.leaf-hero .leaf-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 1.05)) 0%,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 0.62)) 26%,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 0.1)) 55%,
			rgba(13, 20, 16, 0) 72%),
		linear-gradient(to bottom,
			rgba(13, 20, 16, 0.2) 0%,
			rgba(13, 20, 16, 0) 22%,
			rgba(13, 20, 16, 0) 78%,
			rgba(13, 20, 16, 0.2) 100%);
}

/* ---------------------------------------------------------------- layout */

.leaf-hero .leaf-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 82rem;
	margin: 0 auto;
	padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
}

.leaf-hero .leaf-hero__copy {
	max-width: 620px;
}

/* ---------------------------------------------------------------- copy */

/*
 * The rule sits on the text baseline rather than above it, which reads
 * as considered rather than decorative.
 */
.leaf-hero .leaf-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 0.9rem;
	font-family: "Caveat", ui-rounded, cursive;
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.005em;
	color: #8fe3d3;
}

.leaf-hero .leaf-hero__eyebrow::before {
	content: "";
	flex: none;
	width: clamp(1.75rem, 4vw, 3rem);
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

/*
 * Three classes deep on purpose. The theme ships
 *   .elementor-page .site-content h1, h1 { font-size: 40px }
 * at (0,2,1) inside a min-width:1024px query, which outranks a
 * two-class selector and silently caps the headline at 40px.
 */
.leaf-hero .leaf-hero__copy .leaf-hero__title {
	margin: 0 0 1.5rem;
	font-size: clamp(2.35rem, 5.6vw, 4.15rem);
	font-weight: 600;
	line-height: 1.03;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: balance;
}

.leaf-hero .leaf-hero__desc {
	margin: 0 0 2.6rem;
	max-width: 34em;
	font-size: clamp(1rem, 1.25vw, 1.1rem);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.86);
	text-wrap: pretty;
}

/* ---------------------------------------------------------------- actions */

.leaf-hero .leaf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.85rem;
}

.leaf-hero .leaf-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.leaf-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 2px;
}

/* Primary: a quiet solid. No lift, no glow - it does not need them. */
.leaf-hero .leaf-hero__btn--primary {
	padding: 1.05rem 1.9rem;
	border-radius: 2px;
	background: var(--leaf-green);
	color: #fff;
}

.leaf-hero__btn--primary:hover,
.leaf-hero__btn--primary:focus-visible {
	background: var(--leaf-green-hover);
	color: #fff;
}

/*
 * Secondary as a text link: two pills side by side is the tell of a
 * generated layout. A rule that draws itself in reads as designed.
 */
.leaf-hero .leaf-hero__btn--secondary {
	position: relative;
	padding: 1.05rem 0;
	color: #fff;
}

.leaf-hero__btn--secondary::after {
	content: "";
	position: absolute;
	left: 0;
	right: 1.6rem;
	bottom: 0.7rem;
	height: 1px;
	background: currentColor;
	opacity: 0.45;
	transform: scaleX(0.999);
	transform-origin: left;
	transition: opacity 0.2s ease, right 0.2s ease;
}

.leaf-hero__btn--secondary:hover::after,
.leaf-hero__btn--secondary:focus-visible::after {
	opacity: 1;
	right: 0;
}

.leaf-hero__arrow {
	width: 1.05em;
	height: 1.05em;
	flex: none;
	transition: transform 0.2s ease;
}

.leaf-hero__btn--secondary:hover .leaf-hero__arrow {
	transform: translateX(4px);
}

/* Optional outlined variant, when a text link is too quiet. */
.leaf-hero--btn2-outline .leaf-hero__btn--secondary {
	padding: 0.95rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 2px;
}

.leaf-hero--btn2-outline .leaf-hero__btn--secondary::after {
	display: none;
}

.leaf-hero--btn2-outline .leaf-hero__btn--secondary:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------- small */

@media (max-width: 48rem) {
	.leaf-hero__scrim {
		background: linear-gradient(to top,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 1.45)) 0%,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 0.9)) 45%,
			rgba(13, 20, 16, calc(var(--leaf-scrim) * 0.45)) 100%);
	}

	.leaf-hero__actions {
		gap: 0.35rem 1.25rem;
	}

	.leaf-hero__btn--primary {
		width: 100%;
		justify-content: center;
	}

	.leaf-hero--btn2-outline .leaf-hero__btn--secondary {
		width: 100%;
		justify-content: center;
	}
}

/* ---------------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
	.leaf-hero--motion .leaf-hero__img {
		animation: none;
	}

	.leaf-hero__btn,
	.leaf-hero__arrow,
	.leaf-hero__btn--secondary::after {
		transition: none;
	}
}

@media (prefers-contrast: more) {
	.leaf-hero__scrim {
		background: rgba(13, 20, 16, 0.78);
	}
}

/* ==================================================================
 * Flight enquiry form
 * ================================================================== */

.leaf-enq {
	--enq-green: #26913d;
	--enq-ink: #1c2011;
	--enq-line: #d9e0da;

	/* The card below carries its own padding; this only needs to separate
	   the section from its neighbours. */
	padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.leaf-enq .leaf-enq__inner {
	max-width: 56rem;
	margin: 0 auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	border: 1px solid var(--enq-line);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(13, 20, 16, 0.04), 0 12px 32px rgba(13, 20, 16, 0.05);
}

.leaf-enq .leaf-enq__head {
	margin-bottom: 1.25rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--enq-line);
}

.leaf-enq .leaf-enq__inner .leaf-enq__head .leaf-enq__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--enq-ink);
}

.leaf-enq .leaf-enq__sub {
	margin: 0;
	max-width: 42em;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(28, 32, 17, 0.72);
}

.leaf-enq .leaf-enq__note {
	margin: 0 0 0.9rem;
	font-size: 0.85rem;
	color: rgba(28, 32, 17, 0.6);
}

.leaf-enq .leaf-enq__req {
	color: #c0392b;
	font-weight: 600;
}

/* ---------------------------------------------------------------- grid */

.leaf-enq .leaf-enq__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1.25rem;
}

.leaf-enq .leaf-enq__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.leaf-enq .leaf-enq__field label {
	line-height: 1.3;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--enq-ink);
}

.leaf-enq .leaf-enq__field input,
.leaf-enq .leaf-enq__field select {
	width: 100%;
	height: 2.9rem;
	padding: 0 0.85rem;
	border: 1px solid var(--enq-line);
	border-radius: 4px;
	background: #fbfcfb;
	font-size: 0.95rem;
	color: var(--enq-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.leaf-enq .leaf-enq__field input:hover,
.leaf-enq .leaf-enq__field select:hover {
	border-color: #b9c6bb;
}

.leaf-enq .leaf-enq__field input:focus,
.leaf-enq .leaf-enq__field select:focus {
	outline: none;
	background: #fff;
	border-color: var(--enq-green);
	box-shadow: 0 0 0 3px rgba(38, 145, 61, 0.16);
}

.leaf-enq .leaf-enq__field [aria-invalid="true"] {
	border-color: #c0392b;
	background: #fff7f6;
}

/* Custom caret, since appearance:none removes the native one. */
.leaf-enq .leaf-enq__select {
	position: relative;
	display: block;
}

.leaf-enq .leaf-enq__select::after {
	content: "";
	position: absolute;
	right: 0.95rem;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: -0.35rem;
	border-right: 2px solid #6b7a6e;
	border-bottom: 2px solid #6b7a6e;
	transform: rotate(45deg);
	pointer-events: none;
}

.leaf-enq .leaf-enq__select select {
	padding-right: 2.4rem;
}

.leaf-enq .leaf-enq__err {
	line-height: 1.3;
	min-height: 1em;
	font-size: 0.8rem;
	color: #c0392b;
}

/* Honeypot - off-screen rather than display:none, which some bots skip. */
.leaf-enq .leaf-enq__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------- actions */

.leaf-enq .leaf-enq__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--enq-line);
}

.leaf-enq .leaf-enq__submit {
	flex: none;
	min-width: 12rem;
	height: 3rem;
	padding: 0 1.9rem;
	border: 0;
	border-radius: 4px;
	background: var(--enq-green);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.leaf-enq .leaf-enq__submit:hover:not(:disabled) {
	background: #2ea849;
}

.leaf-enq .leaf-enq__submit:focus-visible {
	outline: 2px solid var(--enq-green);
	outline-offset: 3px;
}

.leaf-enq .leaf-enq__submit:disabled {
	opacity: 0.65;
	cursor: default;
}

.leaf-enq .leaf-enq__status {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.leaf-enq .leaf-enq__status.is-ok {
	color: #1d7a34;
	font-weight: 600;
}

.leaf-enq .leaf-enq__status.is-err {
	color: #c0392b;
}

/* ---------------------------------------------------------------- small */

@media (max-width: 40rem) {
	.leaf-enq .leaf-enq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.leaf-enq .leaf-enq__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.leaf-enq .leaf-enq__field input,
	.leaf-enq .leaf-enq__field select,
	.leaf-enq .leaf-enq__submit {
		transition: none;
	}
}
