/* ==========================================================================
   "You Belong Here" year-end campaign (Christmas 2026)
   Loaded by inc/ybh-campaign.php only while the bar is on or on the landing
   page, so none of this touches the rest of the site.
   COMPASS red: #BE1E2D  ·  COMPASS green: #84BC41
   ========================================================================== */

:root {
	--ybh-red: #be1e2d;
	--ybh-red-dark: #9c1724;
	--ybh-green: #5f8f27; /* COMPASS green, deepened so white text passes AA */
	--ybh-ink: #1f1f1f;
}

/* --------------------------------------------------------------------------
   Notification bar
   -------------------------------------------------------------------------- */

a.ybh-bar {
	display: block;
	position: relative;
	z-index: 1000;
	padding: 9px 16px;
	background: var(--ybh-red);
	color: #fff !important;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

a.ybh-bar:hover,
a.ybh-bar:focus-visible {
	background: var(--ybh-red-dark);
}

a.ybh-bar:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -5px;
}

.ybh-bar strong {
	font-weight: 700;
}

.ybh-bar__cta {
	font-weight: 700;
	white-space: nowrap;
}

.ybh-bar__cta-text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ybh-bar__arrow {
	display: inline-block;
	margin-left: 2px;
	animation: ybh-nudge 2.4s ease-in-out infinite;
}

@keyframes ybh-nudge {
	0%, 70%, 100% { transform: translateX(0); }
	80% { transform: translateX(4px); }
	90% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.ybh-bar__arrow { animation: none; }
}

/* Fixed theme header sits below the bar until the bar scrolls away
   (--ybh-offset is set by the inline script in inc/ybh-campaign.php). */
body.ybh-has-bar .sticky_header {
	top: var(--ybh-offset, 0px) !important;
}

@media (max-width: 767px) {
	a.ybh-bar {
		padding: 8px 12px;
		font-size: 14px;
	}
}

/* --------------------------------------------------------------------------
   Landing page (body.ybh-landing)
   -------------------------------------------------------------------------- */

/* The Living Wage employer block above the footer is hidden on this page (Matt, 2026-11-30). */
.ybh-landing .employer-row {
	display: none !important;
}

/* Overall: slightly larger, darker body text; headings a touch heavier. */
.ybh-landing .wpb_text_column,
.ybh-landing .wpb_text_column p {
	color: var(--ybh-ink);
	font-size: 19px;
	line-height: 1.65;
}

.ybh-landing .wpb_text_column h2,
.ybh-landing .wpb_text_column h3 {
	font-weight: 400;
	color: #111;
}

.ybh-landing .wpb_text_column h2 {
	font-size: 38px;
	line-height: 1.2;
	margin-bottom: 16px;
}

/* Donate buttons: solid COMPASS red, large, rounded.
   The theme prints per-button styles with an id selector, hence !important. */
.ybh-landing a.rd_normal_bt.ybh-btn {
	display: inline-block;
	padding: 18px 44px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--ybh-red) !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ybh-landing a.rd_normal_bt.ybh-btn:hover,
.ybh-landing a.rd_normal_bt.ybh-btn:focus-visible {
	background: var(--ybh-red-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Hero: bigger headline, subline, button. */
.ybh-landing .ybh-hero h1.vc_custom_heading {
	font-size: 64px !important;
	line-height: 1.05 !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	margin-bottom: 14px !important;
}

.ybh-landing .ybh-hero-sub,
.ybh-landing .ybh-hero-sub p {
	color: #fff !important;
	font-size: 26px !important;
	line-height: 1.3 !important;
	font-weight: 400;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	margin-bottom: 26px !important;
}

/* Intro: the heading under the hero is now the lead line. */
.ybh-landing .ybh-intro h3 {
	font-size: 34px;
	line-height: 1.25;
	font-weight: 400;
	color: #111;
	margin-bottom: 18px;
}

.ybh-landing .ybh-intro .tf_btn_pos {
	margin-top: 10px;
}

/* Video row: video on the left, text on the right (set in the page content);
   on desktop the text is vertically centred against the video. Phones keep
   the theme's stacking, video first. */
@media (min-width: 768px) {
	.ybh-landing .ybh-video-row {
		display: flex;
		align-items: center;
	}

	.ybh-landing .ybh-video-row:before,
	.ybh-landing .ybh-video-row:after {
		display: none;
	}
}

/* Quote: white on COMPASS green, larger, not italic. */
.ybh-landing .ybh-quote blockquote {
	margin: 40px 0 0;
	padding: 36px 48px;
	border: 0;
	border-radius: 6px;
	background: var(--ybh-green);
	box-shadow: none;
}

.ybh-landing .ybh-quote blockquote,
.ybh-landing .ybh-quote blockquote p {
	color: #fff !important;
	font-size: 25px !important;
	line-height: 1.5 !important;
	font-style: normal !important;
	font-weight: 400;
	opacity: 1 !important; /* theme fades blockquote text to 0.6 */
}

.ybh-landing .ybh-quote blockquote:before,
.ybh-landing .ybh-quote blockquote:after {
	display: none;
}

/* Final row: COMPASS red with a big white button. */
.ybh-landing .ybh-final {
	background: var(--ybh-red) !important;
	margin-bottom: 0 !important;
}

.ybh-landing .ybh-final .wpb_text_column,
.ybh-landing .ybh-final .wpb_text_column p,
.ybh-landing .ybh-final .wpb_text_column h2,
.ybh-landing .ybh-final .wpb_text_column strong {
	color: #fff !important;
}

.ybh-landing .ybh-final .fourk-icon,
.ybh-landing .ybh-final .fourk-icon i {
	color: #fff !important;
}

.ybh-landing .ybh-final a.rd_normal_bt.ybh-btn-white {
	background: #fff !important;
	color: var(--ybh-red) !important;
	font-size: 24px !important;
	padding: 20px 56px !important;
}

.ybh-landing .ybh-final a.rd_normal_bt.ybh-btn-white:hover,
.ybh-landing .ybh-final a.rd_normal_bt.ybh-btn-white:focus-visible {
	background: #f6e6e8 !important;
	color: var(--ybh-red-dark) !important;
}

/* Tablet and phone */
@media (max-width: 1024px) {
	.ybh-landing .ybh-hero h1.vc_custom_heading {
		font-size: 52px !important;
	}
}

@media (max-width: 767px) {
	.ybh-landing .wpb_text_column,
	.ybh-landing .wpb_text_column p {
		font-size: 18px;
	}

	.ybh-landing .wpb_text_column h2 {
		font-size: 30px;
	}

	.ybh-landing .ybh-hero h1.vc_custom_heading {
		font-size: 42px !important;
	}

	/* The family is on the right of the photo; keep them in the phone crop. */
	.ybh-landing .ybh-hero {
		background-position: 72% center !important;
	}

	/* On phones the text sits over the bright doorway, so darken more. */
	.ybh-landing .ybh-hero .rd_row_overlay {
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
	}

	.ybh-landing .ybh-hero-sub,
	.ybh-landing .ybh-hero-sub p {
		font-size: 21px !important;
	}

	.ybh-landing .ybh-intro h3 {
		font-size: 27px;
	}

	.ybh-landing .ybh-video-row .wpb_video_widget {
		margin-bottom: 24px;
	}

	.ybh-landing .ybh-quote blockquote {
		padding: 26px 24px;
	}

	.ybh-landing .ybh-quote blockquote,
	.ybh-landing .ybh-quote blockquote p {
		font-size: 21px !important;
	}

	.ybh-landing a.rd_normal_bt.ybh-btn,
	.ybh-landing .ybh-final a.rd_normal_bt.ybh-btn-white {
		font-size: 20px !important;
		padding: 16px 36px !important;
	}
}
