/* Homepage video block (home-promo). Additive: sits above the hero banner.
   Every value is matched to the site's existing CSS; sources are noted inline.
   Spec: UX-SPEC-homepage-video.md (P2.2). Built 2026-10-03 (P2.3). */

/* ---------- Block ---------- */
.home-promo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 81px;               /* clears the fixed header; mirrors main.css .hero-unit-slider */
	padding: 12px 16px;
	background: #FBF5EC;            /* menu.css .search-box */
}
/* General sibling, not adjacent: the block's inline script sits between it and the banner. */
.home-promo ~ .hero-unit-slider {
	margin-top: 0;                  /* the block now carries the header offset */
}
@media screen and (max-width: 300px) {
	.home-promo { margin-top: 71px; }   /* mirrors main.css .hero-unit-slider at <=300px */
}

/* ---------- Frame: the site's video card (index.html .video-container) ---------- */
.home-promo-frame {
	position: relative;
	width: calc(75vh * 480 / 810);
	width: min(calc(100vw - 32px), calc(75vh * 480 / 810));
	width: min(calc(100vw - 32px), calc(75svh * 480 / 810));   /* phone: height capped at 75% of the visible screen */
	min-width: 180px;
	max-width: 100%;
	border: 4px solid #c73333;
	border-radius: 8px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	overflow: hidden;
	background: #000000;
}

.home-promo-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 480 / 810;
	max-height: 75vh;
	max-height: 75svh;              /* safety rail; the frame width keeps it under this */
	object-fit: cover;
	background: #000000;
	cursor: pointer;
}
.home-promo-video::cue {
	font: 1.5rem/1.3 "roboto_condensedregular", Arial, sans-serif;
	color: #FFFFFF;
	background-color: rgba(0, 0, 0, 0.75);
}

/* ---------- Sound pill (bottom left) ---------- */
.home-promo-sound {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	max-width: calc(100% - 78px);   /* always leaves room for the play/pause button */
	padding: 0 12px;
	border: 1px solid #660000;
	border-radius: 24px;
	background-color: #BB0000;
	background-image: linear-gradient(to bottom, #CC1111, #BB0000);   /* menu.css .search-button */
	color: #FFFFFF;
	font: bold 1.4rem/1 "roboto_condensedregular", Arial, sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-shadow: 1px 1px 1px #660000;
	white-space: nowrap;
	box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: background-color 200ms ease;
}
.home-promo-sound .fa {
	margin-right: 6px;
	font-size: 1.8rem;
}
.home-promo-sound:hover {
	background-image: linear-gradient(to bottom, #BB0000, #CC1111);   /* menu.css .search-button:hover */
}
.home-promo.is-sound-on .home-promo-sound {
	border-color: rgba(255, 255, 255, 0.85);
	background-color: rgba(0, 0, 0, 0.65);
	background-image: none;
	text-shadow: none;
}

/* ---------- Play / pause (bottom right) ---------- */
.home-promo-playpause {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #FFFFFF;
	font-size: 1.6rem;
	cursor: pointer;
}
.home-promo-playpause:hover {
	background: rgba(0, 0, 0, 0.75);
}
.home-promo.is-paused .home-promo-playpause .fa {
	margin-left: 2px;               /* optical centering of the play triangle */
}

/* ---------- Center play mark (paused only; taps fall through to the video) ---------- */
.home-promo-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	background: #BB0000;
	color: #FFFFFF;
	font-size: 2.6rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}
.home-promo-badge .fa {
	margin-left: 4px;
}
.home-promo.is-paused .home-promo-badge {
	display: flex;
}

/* ---------- Video failed to load: poster stays, dead controls go ---------- */
.home-promo.is-error .home-promo-sound,
.home-promo.is-error .home-promo-playpause,
.home-promo.is-error .home-promo-badge {
	display: none;
}

/* ---------- Focus: two-tone ring, visible on any frame ---------- */
.home-promo button:focus-visible,
.home-promo a:focus-visible {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #660000;
}

/* ---------- Side panel (tablet and up only) ---------- */
.home-promo-panel {
	display: none;
}
.home-promo-title {
	margin: 0 0 8px;
	font-family: "roboto_condensedregular", sans-serif;
	font-size: 2.8rem;
	font-weight: bold;
	line-height: 1.15;
	color: #BB0000;                 /* main.css h1..h6 */
}
.home-promo-tagline {
	margin: 0 0 20px;
	font-size: 1.7rem;
	line-height: 1.4;
	color: #555555;                 /* main.css body */
}
.home-promo-cta,
.home-promo-cta:link,
.home-promo-cta:visited {          /* main.css .topbar .hero-button, set bold for contrast */
	display: inline-block;
	min-height: 48px;
	padding: 13px 32px;
	border: 1px solid #660000;
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(255, 104, 177, 0.1) 0, rgba(255, 16, 50, 0.3) 50%, rgba(254, 0, 7, 0.5) 51%, rgb(255, 67, 67) 100%), #BB0000;
	color: #FFFFFF;
	font: italic bold 2rem/1.1 Arial, Helvetica, sans-serif;
	text-decoration: none;
	text-shadow: 1px 1px 1px #660000;
	box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.2);
	transition: background-color 200ms ease;
}
.home-promo-cta:hover,
.home-promo-cta:focus {
	background: #C73232 linear-gradient(to bottom, #BB0000, #FF3030);   /* main.css .topbar .hero-button:hover */
	color: #FFFFFF;
	text-decoration: none;
}
.home-promo-call {
	margin: 14px 0 0;
	font-size: 1.6rem;
	color: #555555;
}
.home-promo-call a:link,
.home-promo-call a:visited {      /* beats main.css "p a:link" (blue underline) */
	color: #BB0000;
	font-weight: bold;
	text-decoration: none;
}
.home-promo-call a:hover {
	color: #BB0000;
	text-decoration: underline;
}

/* ---------- Tablet: 768px and up (Bootstrap sm) ---------- */
@media (min-width: 768px) {
	.home-promo {
		flex-direction: row;
		padding: 24px 20px;
	}
	.home-promo-frame {
		width: calc(70vh * 480 / 810);
		width: min(calc(70vh * 480 / 810), 340px);
	}
	.home-promo-panel {
		display: block;
		max-width: 340px;
		margin-left: 40px;
		text-align: left;
	}
	.home-promo-sound {
		padding: 0 16px;
		font-size: 1.5rem;
	}
}

/* ---------- Desktop: 992px and up (Bootstrap md) ---------- */
@media (min-width: 992px) {
	.home-promo {
		padding: 32px 20px;
	}
	.home-promo-frame {
		width: calc(72vh * 480 / 810);
		width: min(calc(72vh * 480 / 810), 380px);
	}
	.home-promo-panel {
		max-width: 400px;
		margin-left: 56px;
	}
	.home-promo-title {
		font-size: 3.5rem;              /* main.css h1 / .section-heading */
	}
	.home-promo-tagline {
		font-size: 1.9rem;
	}
	.home-promo-video::cue {
		font-size: 1.8rem;
	}
}

/* ---------- Large: 1200px and up (Bootstrap lg; wrapper is capped at 1200) ---------- */
@media (min-width: 1200px) {
	.home-promo-frame {
		width: min(calc(72vh * 480 / 810), 400px);
	}
	.home-promo-panel {
		margin-left: 72px;
	}
}

/* ---------- Reduced motion: no transitions (playback is handled by the script) ---------- */
@media (prefers-reduced-motion: reduce) {
	.home-promo-sound,
	.home-promo-cta {
		transition: none;
	}
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
	.home-promo button:focus-visible,
	.home-promo a:focus-visible {
		outline: 3px solid CanvasText !important;
	}
	.home-promo-sound,
	.home-promo-playpause {
		border: 2px solid ButtonText;
	}
}
