/*
Header Template
Scoped styles for the "Header Template" page template.
Everything here is namespaced to `.header-template` / `.header-template-hero`.
--------------------------------------------------------------------------- */

.header-template-hero {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	width: 100%;
}

/* Matches `.site-inner` so the hero text aligns with the content below. */
.header-template-hero__inner {
	margin: 0 auto;
	max-width: 1140px;
	padding: 120px 17px 80px 17px;
	position: relative;
	text-align: left;
	z-index: 1;
}

/* Keeps a readable line length while the block stays pinned to the left. */
.header-template-hero__eyebrow,
.header-template-hero__content,
.header-template-hero__cta {
	max-width: 600px;
}

/* Image variant: vertical centring, dark scrim, light text. */
.header-template-hero--has-image {
	align-items: center;
	color: #fff;
	display: flex;
	min-height: 60vh;
}

.header-template-hero--has-image::before {
	background-color: rgba(0, 0, 0, 0.4);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
}

.header-template-hero--has-image .header-template-hero__inner {
	width: 100%;
}

.header-template-hero--has-image .header-template-hero__eyebrow,
.header-template-hero--has-image .header-template-hero__content,
.header-template-hero--has-image .header-template-hero__content h1,
.header-template-hero--has-image .header-template-hero__content h2,
.header-template-hero--has-image .header-template-hero__content h3,
.header-template-hero--has-image .header-template-hero__content h4,
.header-template-hero--has-image .header-template-hero__content h5,
.header-template-hero--has-image .header-template-hero__content h6,
.header-template-hero--has-image .header-template-hero__content p {
	color: #e1d7cc;
}

.header-template-hero__eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 15px;
	text-transform: uppercase;
	color: #b0977b!important;
}

.header-template-hero__content > *:last-child {
	margin-bottom: 0;
}

.header-template-hero__cta {
	margin-bottom: 0;
	margin-top: 30px;
	text-align: center;
}

/* CTA button. Double class beats the theme's `.button` rules in style.css. */
.header-template-hero .header-template-hero__button {
	background: linear-gradient(135deg, #d4a574 0%, #b8895a 50%, #9c7248 100%);
	border: none;
	border-radius: 5px;
	box-shadow: 0 4px 15px rgba(180, 140, 90, 0.3);
	color: #ffffff;
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 0.5em;
	justify-content: center;
	letter-spacing: 0.3px;
	padding: 14px 32px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
}

/*
 * Lotus icon, using the same mask technique as `.button-whatsapp` in style.css.
 * `currentColor` means the icon always tracks the button's text colour.
 * Path is relative to this file, hence `../icons/`.
 */
.header-template-hero .header-template-hero__button::before {
	background-color: currentColor;
	content: "";
	display: inline-block;
	flex-shrink: 0;
	height: 1.1em;
	-webkit-mask-image: url("../icons/lotus-icon.svg");
	mask-image: url("../icons/lotus-icon.svg");
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	width: 1.1em;
}

.header-template-hero .header-template-hero__button:focus,
.header-template-hero .header-template-hero__button:hover {
	background: linear-gradient(135deg, #ddb583 0%, #c2955f 50%, #a67c50 100%);
	box-shadow: 0 6px 20px rgba(180, 140, 90, 0.4);
	color: #fffad1;
	transform: translateY(-1px);
}

.header-template-hero .header-template-hero__button:active {
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

	.header-template-hero .header-template-hero__button {
		transition: none;
	}

	.header-template-hero .header-template-hero__button:focus,
	.header-template-hero .header-template-hero__button:hover {
		transform: none;
	}

}

@media only screen and (min-width: 960px) {

	.header-template-hero {
		margin-top: -15px;
	}
	.header-template-hero__inner {
		padding: 140px 17px;
	}

}
