/* ==========================================================================
   Holiday 2026 — homepage masthead, slide 1 ("Plan Your Transformation")
   Loaded after formatted.css on the homepage only. Remove the <link> in
   /index.html (and swap the slide back) when the season ends.
   ========================================================================== */

/* Butler is only declared in the homepage's inline <style>; inner pages like
   /symmetry/ need it declared here or the headline falls back to Times */
@font-face {
	font-family: "butler";
	src: url("/assets/font/butler-light.woff2") format("woff2"), url("/assets/font/butler-light.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/* Layout ------------------------------------------------------------------ */
body.home .masthead .holiday-slide {
	max-width: 1200px;
}

/* Eyebrow ----------------------------------------------------------------- */
body.home .masthead .holiday-slide .holiday-eyebrow {
	font-family: "poppins";
	font-weight: 300;
	font-size: min(max(13px, 2vw), 40px);
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 min(max(16px, 2vw), 36px);
}

/* "Award-Winning" span: inline on desktop, its own line on mobile */
body.home .masthead .masthead__text .holiday-slide .holiday-eyebrow span {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

/* Headline ---------------------------------------------------------------- */
body.home .masthead .holiday-slide .holiday-title {
	color: #fff;
	line-height: 1.1;
	white-space: normal;
	margin: 0 0 min(max(20px, 2.6vw), 50px);
}

/* .masthead__text span (formatted.css) shrinks spans to 20–30px; undo it here */
body.home .masthead .masthead__text .holiday-slide .holiday-title span {
	display: block;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	white-space: nowrap;
}

body.home .masthead .masthead__text .holiday-slide .holiday-title .holiday-title__accent {
	color: #8fadb5;
}

/* Body copy --------------------------------------------------------------- */
body.home .masthead .holiday-slide .holiday-copy {
	font-family: "poppins";
	font-weight: 300;
	font-size: min(max(15px, 1.05vw), 20px);
	line-height: 1.55;
	color: #fff;
	max-width: 780px;
	margin: 0 0 min(max(24px, 2.8vw), 54px);
}

/* Buttons ----------------------------------------------------------------- */
body.home .masthead .holiday-slide .holiday-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

body.home .masthead .holiday-slide .holiday-btn {
	justify-content: center;
	min-width: min(390px, 100%);
	padding: 18px 30px;
	margin-bottom: 0;
	font-family: "poppins";
	font-weight: 300;
	font-size: min(max(14px, 1vw), 19px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.home .masthead .holiday-slide .holiday-btn--call {
	background: #a3bfca !important;
	color: #0f3340 !important;
}

body.home .masthead .holiday-slide .holiday-btn--call img {
	filter: brightness(0.35);
}

@media (min-width: 841px) {
	body.home .masthead .holiday-slide .holiday-eyebrow {
		white-space: nowrap;
	}
}

/* Dark call button (Symmetry page) */
body.home .masthead .holiday-slide .holiday-btn--dark {
	background: #275e6f !important;
	color: #fff !important;
}

/* Symmetry page: let the short subhead run on one line */
body.home .masthead .holiday-slide--symmetry .holiday-copy {
	max-width: none;
}

body.home .masthead .holiday-slide--symmetry .holiday-title {
	margin-bottom: 0;
}

/* Slide 1 image (<picture>, so phones get the mobile crop) ----------------- */
/* The <img> sits inside <picture>, so formatted.css's nth-child(1) rules no
   longer reach it — restate them here. */
body.home .masthead .masthead__image .holiday-picture img {
	transform-origin: top right;
	object-position: right;
}

/* formatted.css: "img.fx:first-child + img ~ img { z-index:-1 }" keeps slide 1
   on top when the slideshow loops back; same rule for the <picture> wrapper */
body.home .masthead .masthead__image .holiday-picture:first-child:has(> img.fx) + img ~ img {
	z-index: -1;
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 840px) {
	/* the mobile photo fades to this navy at the bottom */
	body.home .masthead .masthead__image {
		background-color: #04242f;
	}

	body.home .masthead .masthead__image .holiday-picture img {
		transform-origin: top center;
		object-position: center top;
	}

	/* formatted.css adds a 70% white wash on mobile for the teal-text slides;
	   hide it while the white-text holiday slide is showing */
	body.home .masthead::before {
		transition: opacity 0.5s ease;
	}

	body.home .masthead:has(.holiday-slide.active)::before {
		opacity: 0;
	}

	body.home .masthead .holiday-slide {
		padding: 0 12px;
	}

	body.home .masthead .holiday-slide .holiday-eyebrow {
		font-size: 14px;
		line-height: 1.3;
		letter-spacing: 0.12em;
		margin-bottom: 6px;
	}

	body.home .masthead .masthead__text .holiday-slide .holiday-eyebrow span {
		display: block;
	}

	body.home .masthead .holiday-slide .holiday-title {
		font-size: min(max(44px, 12.8vw), 90px);
		line-height: 0.95;
		margin-bottom: 18px;
	}

	body.home .masthead .masthead__text .holiday-slide .holiday-title .holiday-title__accent {
		color: #8fadb5;
	}

	body.home .masthead .holiday-slide .holiday-copy {
		font-size: 17px;
		line-height: 1.7;
		margin-bottom: 24px;
	}

	body.home .masthead .holiday-slide .holiday-buttons {
		flex-direction: column;
		gap: 10px;
	}

	body.home .masthead .holiday-slide .holiday-btn {
		width: 100%;
		min-width: 0;
		padding: 18px 20px;
		font-size: 17px;
	}

	body.home .masthead .holiday-slide .holiday-btn--call {
		color: #0b1c24 !important;
	}

	body.home .masthead .holiday-slide .holiday-btn--call img {
		filter: brightness(0);
	}

	/* Symmetry page mobile */
	body.home .masthead .holiday-slide--symmetry .holiday-eyebrow {
		font-size: 17px;
		letter-spacing: 0.06em;
		margin-bottom: 10px;
	}

	body.home .masthead .holiday-slide--symmetry .holiday-title {
		margin-bottom: 14px;
	}

	body.home .masthead .holiday-slide--symmetry .holiday-copy {
		margin-bottom: 36px;
	}

	body.home .masthead .holiday-slide .holiday-btn--dark {
		color: #fff !important;
	}
}
