/*
 * Homepage section zones. Each section gets its own background, edge and ornament so the page
 * reads as distinct chapters. Decorations live in ::before/::after behind the content
 * (isolation + z-index:-1), so no markup changes and no layout shift.
 */

@property --hbo {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

body.home section.e-con.elementor-element-banquet-banner,
body.home section.e-con.elementor-element-love-teaser,
body.home section.e-con.elementor-element-history-blurb,
body.home section.e-con.elementor-element-wtn-blurb,
body.home section.e-con.elementor-element-scripture,
body.home section.e-con.elementor-element-community-photos {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* ---------------------------------------------------------------- Events zone (banquet + Love Day) */
body.home section.e-con.elementor-element-banquet-banner {
	background: radial-gradient(70% 55% at 50% 0%, rgba(214, 168, 78, .16), transparent 70%), #10131C !important;
	padding-top: 120px !important;
}
body.home section.e-con.elementor-element-love-teaser {
	background: radial-gradient(60% 60% at 15% 100%, rgba(255, 138, 91, .07), transparent 70%), #10131C !important;
	padding-bottom: 128px !important;
}
/* gold hairline + diamond ornament at the top of the zone */
body.home section.e-con.elementor-element-banquet-banner::before,
body.home section.e-con.elementor-element-community-photos::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 48px;
	left: 50%;
	width: 280px;
	height: 14px;
	transform: translateX(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='14' viewBox='0 0 280 14'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23D6A84E' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23F4D688'/%3E%3Cstop offset='1' stop-color='%23D6A84E' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='6.5' width='280' height='1' fill='url(%23g)'/%3E%3Crect x='134' y='1' width='12' height='12' transform='rotate(45 140 7)' fill='%23D6A84E'/%3E%3Crect x='137' y='4' width='6' height='6' transform='rotate(45 140 7)' fill='%2310131C'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 0 8px rgba(214, 168, 78, .45));
}
/* faint dotted grid, fading out from the centre */
body.home section.e-con.elementor-element-banquet-banner::after,
body.home section.e-con.elementor-element-love-teaser::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: radial-gradient(rgba(244, 214, 136, .11) 1px, transparent 1.6px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
	mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
	pointer-events: none;
}

/* ---------------------------------------------------------------- Heritage zone (history) */
body.home section.e-con.elementor-element-history-blurb {
	background:
		radial-gradient(60% 70% at 50% 45%, rgba(214, 168, 78, .09), transparent 70%),
		linear-gradient(180deg, #19160F 0%, #15151A 55%, #13161E 100%) !important;
	padding-top: 176px !important;
	padding-bottom: 128px !important;
}
/* diagonal edge coming out of the events zone */
body.home section.e-con.elementor-element-history-blurb::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -1px;
	left: 0;
	right: 0;
	height: 96px;
	background: linear-gradient(to bottom right, #10131C 49.6%, rgba(214, 168, 78, .55) 49.8%, rgba(214, 168, 78, 0) 50.4%);
	pointer-events: none;
}
/* outlined "1945" watermark */
body.home section.e-con.elementor-element-history-blurb::after {
	content: "1945";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 54%;
	transform: translate(-50%, -50%);
	font: 800 clamp(170px, 30vw, 400px)/1 "Plus Jakarta Sans", sans-serif;
	letter-spacing: -.04em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(214, 168, 78, .09);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

/* ---------------------------------------------------------------- Reunion zone (Where Are They Now?) */
body.home section.e-con.elementor-element-wtn-blurb {
	background:
		radial-gradient(45% 60% at 12% 70%, rgba(63, 208, 201, .10), transparent 70%),
		radial-gradient(45% 60% at 88% 40%, rgba(214, 168, 78, .13), transparent 70%),
		#171C2A !important;
	padding-top: 168px !important;
	padding-bottom: 136px !important;
}
/* soft curved top edge */
body.home section.e-con.elementor-element-wtn-blurb::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -1px;
	left: 0;
	right: 0;
	height: 90px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v38C1180 92 940 96 720 70S260 20 0 60z' fill='%2313161E'/%3E%3Cpath d='M0 60C260 20 500 44 720 70s460 22 720-32' fill='none' stroke='%23D6A84E' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---------------------------------------------------------------- Scripture spotlight */
body.home section.e-con.elementor-element-scripture {
	background:
		radial-gradient(50% 75% at 50% 50%, rgba(214, 168, 78, .14), transparent 70%),
		#0B0D13 !important;
	border-bottom: 1px solid rgba(214, 168, 78, .35);
	box-shadow: 0 1px 40px rgba(214, 168, 78, .12);
}
/* glowing gold line along the top edge */
body.home section.e-con.elementor-element-scripture::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, #F4D688 50%, transparent);
	box-shadow: 0 0 24px 2px rgba(244, 214, 136, .35);
}
/* giant faint quotation mark */
body.home section.e-con.elementor-element-scripture::after {
	content: "\201C";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
	font: 700 clamp(220px, 32vw, 380px)/1 Georgia, "Times New Roman", serif;
	color: rgba(214, 168, 78, .07);
	pointer-events: none;
	user-select: none;
}

/* ---------------------------------------------------------------- Photo wall zone */
body.home section.e-con.elementor-element-community-photos {
	background:
		linear-gradient(180deg, rgba(11, 13, 19, .9), rgba(21, 25, 35, 0) 260px),
		repeating-linear-gradient(135deg, rgba(244, 214, 136, .025) 0 1px, transparent 1px 14px),
		#151923 !important;
	padding-top: 128px !important;
}

/* ---------------------------------------------------------------- Countdown: orbiting glow */
/* the blurred halo may extend past the screen edge on narrow layouts; clip it sideways only */
body.home section.e-con.elementor-element-info-bar { overflow-x: clip; }
body.home .elementor-widget-shortcode:has(.hbcd),
body.home .elementor-widget-shortcode:has(.hbcd) .elementor-shortcode { width: 100%; align-self: stretch; }
body.home .hbcd { width: 100%; max-width: 100%; }
body.home .hbcd-clock {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	align-self: stretch;
	justify-content: space-between;
	gap: 0;
	padding: 16px 12px 12px;
	border-radius: 24px;
	background:
		radial-gradient(120% 140% at 50% 0%, rgba(214, 168, 78, .12), transparent 60%),
		rgba(10, 12, 18, .6);
}
/* the four units share the box evenly and the digits scale with the screen, so it always fits its column */
body.home .hbcd-unit { flex: 1 1 0; min-width: 0; font-size: clamp(32px, 3.1vw, 44px); }
body.home .hbcd-label { letter-spacing: 1.5px; }

/* thin ring with a bright gold comet that circles it */
body.home .hbcd-clock::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--hbo), rgba(214, 168, 78, .14) 0deg, rgba(214, 168, 78, .14) 240deg, rgba(244, 214, 136, .6) 300deg, #FFF3D1 340deg, #F4D688 350deg, rgba(214, 168, 78, .14) 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hbo-orbit 6s linear infinite;
	pointer-events: none;
}
/* soft halo that trails the comet */
body.home .hbcd-clock::after {
	content: "";
	position: absolute;
	z-index: -2;
	inset: -10px;
	border-radius: 32px;
	background: conic-gradient(from var(--hbo), transparent 0deg, transparent 270deg, rgba(244, 214, 136, .5) 335deg, transparent 360deg);
	filter: blur(18px);
	opacity: .75;
	animation: hbo-orbit 6s linear infinite;
	pointer-events: none;
}
@keyframes hbo-orbit {
	to { --hbo: 360deg; }
}

/* ---------------------------------------------------------------- Small screens and reduced motion */
@media (max-width: 767px) {
	body.home section.e-con.elementor-element-banquet-banner { padding-top: 96px !important; }
	body.home section.e-con.elementor-element-banquet-banner::before,
	body.home section.e-con.elementor-element-community-photos::before { top: 36px; width: 200px; }
	body.home section.e-con.elementor-element-love-teaser { padding-bottom: 88px !important; }
	body.home section.e-con.elementor-element-history-blurb { padding-top: 120px !important; padding-bottom: 96px !important; }
	body.home section.e-con.elementor-element-history-blurb::before { height: 48px; }
	body.home section.e-con.elementor-element-wtn-blurb { padding-top: 112px !important; padding-bottom: 96px !important; }
	body.home section.e-con.elementor-element-wtn-blurb::before { height: 48px; }
	body.home section.e-con.elementor-element-community-photos { padding-top: 96px !important; }
	body.home .hbcd-clock { padding: 14px 8px 10px; }
	body.home .hbcd-unit { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	body.home .hbcd-clock::before,
	body.home .hbcd-clock::after { animation: none; }
}
