/**
 * Express Entry Hub - Gold Series public-page skin (CT-Adopt twin)
 *
 * Applies ConfidenceTalk's Gold Series visual treatment to EEH's EXISTING
 * public page classes (page-home + page templates) without restructuring the
 * DOM: dark-bronze full-bleed hero, metallic steel feature cards, bronze CTA
 * with glow, and the Gold Series gold frame around the .eeh-gold-series shell.
 *
 * So it works regardless of the stored theme, all colors are resolved at
 * use-time from the theme :root tokens with hard CT-bronze fallbacks.
 *
 * @package ExpressEntryHub
 */

/* ---------- Gold Series shell frame (frontend) ---------- */
.eeh-gold-series {
	position: relative;
	background: var(--color-page-bg, #1a202c);
	border: 2px solid rgba(205, 133, 63, 0.35);
	border-radius: 16px;
	overflow: hidden;
}
.eeh-gold-series::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(ellipse at 15% 0%, rgba(194, 113, 74, 0.12), transparent 55%),
		radial-gradient(ellipse at 85% 100%, rgba(44, 95, 110, 0.14), transparent 55%);
	pointer-events: none;
}

/* ---------- Hero (full-bleed, CT style) ---------- */
.eeh-hero.eeh-hero-dynamic {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 28px;
	overflow: hidden;
	padding: 0;
	border-radius: 14px;
	min-height: 440px;
	background: var(--color-secondary-gradient, linear-gradient(135deg, #2C5F6E, #3A7A8C, #4A8FA0));
}
.eeh-hero-dynamic::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0) 0%,
		rgba(15, 23, 42, 0) 45%,
		rgba(15, 23, 42, 0.35) 72%,
		rgba(15, 23, 42, 0.65) 100%
	);
	pointer-events: none;
}
.eeh-hero-dynamic .eeh-hero-copy {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding: 56px 0 64px 48px;
	text-align: left;
}
.eeh-hero-dynamic .eeh-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(205, 133, 63, 0.55);
	background: rgba(20, 16, 10, 0.35);
	color: #E09A72;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.eeh-hero-dynamic .eeh-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #E09A72;
	box-shadow: 0 0 8px 2px rgba(224, 154, 114, 0.7);
	animation: eeh-hero-pulse 2s ease-in-out infinite;
}
@keyframes eeh-hero-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.5); opacity: 0.6; }
}
.eeh-hero-dynamic .eeh-page-title {
	font-size: clamp(30px, 4.2vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.5px;
	color: #fff;
	margin: 18px 0 14px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.eeh-hero-dynamic .eeh-page-lead {
	font-size: clamp(14px, 1.2vw, 17px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 520px;
	margin: 0 0 22px;
}
.eeh-hero-dynamic .eeh-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.eeh-hero-dynamic .eeh-hero-btn-primary,
.eeh-hero-dynamic .eeh-hero-btn-outline {
	font-size: 14px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.eeh-hero-dynamic .eeh-hero-btn-primary {
	color: #fff;
	position: relative;
	overflow: hidden;
	background: var(--color-primary-gradient, linear-gradient(135deg, #C2714A 0%, #D4845C 50%, #E09A72 100%));
	box-shadow: 0 10px 24px -6px rgba(194, 113, 74, 0.65);
}
.eeh-hero-dynamic .eeh-hero-btn-primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-20deg);
	animation: eeh-sheen 3.6s ease-in-out infinite;
}
@keyframes eeh-sheen {
	0%, 60% { left: -80%; }
	100% { left: 140%; }
}
.eeh-hero-dynamic .eeh-hero-btn-outline {
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.06);
}
.eeh-hero-dynamic .eeh-hero-btn-primary:hover,
.eeh-hero-dynamic .eeh-hero-btn-outline:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.5);
	filter: brightness(1.06);
}

/* ---------- Home variants (classic / form-lead / showcase / landing) ---------- */
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: var(--color-secondary-gradient, linear-gradient(135deg, #2C5F6E, #3A7A8C, #4A8FA0));
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0) 0%,
		rgba(15, 23, 42, 0) 45%,
		rgba(15, 23, 42, 0.28) 72%,
		rgba(15, 23, 42, 0.5) 100%
	);
	pointer-events: none;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-copy {
	position: relative;
	z-index: 2;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(205, 133, 63, 0.55);
	background: rgba(20, 16, 10, 0.35);
	color: #E09A72;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #E09A72;
	box-shadow: 0 0 8px 2px rgba(224, 154, 114, 0.7);
	animation: eeh-hero-pulse 2s ease-in-out infinite;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-page-title {
	font-size: clamp(30px, 4.2vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.5px;
	color: #fff;
	margin: 18px 0 14px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-page-lead {
	font-size: clamp(14px, 1.2vw, 17px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 520px;
	margin: 0 0 22px;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-primary,
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-outline {
	font-size: 14px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-primary {
	color: #fff;
	position: relative;
	overflow: hidden;
	background: var(--color-primary-gradient, linear-gradient(135deg, #C2714A 0%, #D4845C 50%, #E09A72 100%));
	box-shadow: 0 10px 24px -6px rgba(194, 113, 74, 0.65);
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-20deg);
	animation: eeh-sheen 3.6s ease-in-out infinite;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-outline {
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.06);
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-primary:hover,
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-btn-outline:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.5);
	filter: brightness(1.06);
}
/* Form-lead checklist card */
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-card {
	background: rgba(15, 23, 42, 0.42);
	border: 1px solid rgba(205, 133, 63, 0.3);
	border-radius: 16px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
}
.eeh-home-page .eeh-hero:not(.eeh-hero-dynamic) .eeh-hero-card-chips {
	color: rgba(255, 255, 255, 0.8);
}
/* Single-column feature grids used by classic / showcase / landing variants */
.eeh-home-page .eeh-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 26px 0;
}

/* ---------- Feature cards (metallic steel, CT style) ---------- */
.eeh-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 26px 0;
}
.eeh-feature-card {
	position: relative;
	overflow: hidden;
	padding: 26px 22px;
	border-radius: 16px;
	background: var(--card-bg, linear-gradient(135deg, #2C5F6E, #3A7A8C, #4A8FA0));
	border: 1px solid rgba(205, 133, 63, 0.22);
	box-shadow: var(--color-shadow, 0 15px 22px -8px rgba(194, 113, 74, 0.3));
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.eeh-feature-card::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -30%;
	width: 70%;
	height: 80%;
	background: radial-gradient(circle, rgba(224, 154, 114, 0.22), transparent 70%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.eeh-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--color-shadow-lg, 0 20px 30px -10px rgba(194, 113, 74, 0.45));
	border-color: rgba(205, 133, 63, 0.5);
}
.eeh-feature-card:hover::before { opacity: 1; }
.eeh-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	font-size: 22px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	margin-bottom: 14px;
	box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.08);
}
.eeh-feature-title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
}
.eeh-feature-desc {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

/* ---------- CTA banner (bronze metallic, CT style) ---------- */
.eeh-cta-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 30px 34px;
	margin-top: 10px;
	border-radius: 16px;
	background: var(--color-primary-gradient, linear-gradient(135deg, #C2714A 0%, #D4845C 50%, #E09A72 100%));
	box-shadow: 0 18px 40px -12px rgba(194, 113, 74, 0.6);
}
.eeh-cta-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 90% 0%, rgba(255, 255, 255, 0.25), transparent 55%);
	pointer-events: none;
}
.eeh-cta-banner-content { position: relative; z-index: 1; }
.eeh-cta-banner-content h2 {
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
	letter-spacing: -0.4px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.eeh-cta-banner-content p {
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	font-size: 14px;
}
.eeh-cta-banner .eeh-btn {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 13px 26px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: transform 0.16s ease, background 0.16s ease;
}
.eeh-cta-banner .eeh-btn:hover {
	transform: translateY(-2px);
	background: rgba(15, 23, 42, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
	.eeh-hero-dynamic { grid-template-columns: 1fr; }
	.eeh-hero-dynamic .eeh-hero-copy { padding: 40px 24px 16px; }
	.eeh-features-grid, .eeh-feature-grid { grid-template-columns: 1fr; }
	.eeh-cta-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hero banner mode (single full-bleed background image) ----------
   Scoped to `.eeh-hero-has-bg` so the classic / landing / showcase /
   form-lead variants keep their side-by-side visual untouched.

   The image is a decorative layer behind the copy: one image, no carousel.
   Text legibility is guaranteed by the CSS scrim below, which is deliberately
   independent of whatever the (ChatGPT-generated) image happens to look like. */
.eeh-hero-dynamic.eeh-hero-has-bg {
	grid-template-columns: 1fr;
	min-height: 560px;
}

.eeh-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	/* Retained so the shell never flashes bare while the image loads. */
	background: var(--color-secondary-gradient, linear-gradient(135deg, #2C5F6E, #3A7A8C, #4A8FA0));
}

.eeh-hero-bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Dual-direction scrim: horizontal keeps the headline area dark no matter how
   bright the artwork is; vertical lifts the bottom for the CTA row. */
.eeh-hero-dynamic.eeh-hero-has-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			90deg,
			rgba(10, 15, 26, 0.94) 0%,
			rgba(10, 15, 26, 0.86) 30%,
			rgba(10, 15, 26, 0.55) 52%,
			rgba(10, 15, 26, 0.18) 74%,
			rgba(10, 15, 26, 0.06) 100%
		),
		linear-gradient(
			180deg,
			rgba(15, 23, 42, 0) 45%,
			rgba(15, 23, 42, 0.42) 78%,
			rgba(15, 23, 42, 0.7) 100%
		);
	pointer-events: none;
}

.eeh-hero-dynamic.eeh-hero-has-bg .eeh-hero-copy {
	max-width: 680px;
	padding: 64px 0 68px 56px;
}

/* Destination sub-line under the H1 (Canada flagship, others named). */
.eeh-hero-dynamic.eeh-hero-has-bg .eeh-hero-countries {
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #E09A72;
	margin: 0 0 14px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 820px) {
	.eeh-hero-dynamic.eeh-hero-has-bg { min-height: 480px; }
	.eeh-hero-dynamic.eeh-hero-has-bg .eeh-hero-copy { padding: 40px 24px 44px; }
	/* Bias the crop to the right so the globe/pins survive and the left stays
	   as flat dark space for the copy. */
	.eeh-hero-dynamic.eeh-hero-has-bg .eeh-hero-bg-img { object-position: 72% center; }
	.eeh-hero-dynamic.eeh-hero-has-bg::after {
		background:
			linear-gradient(
				90deg,
				rgba(10, 15, 26, 0.96) 0%,
				rgba(10, 15, 26, 0.9) 55%,
				rgba(10, 15, 26, 0.62) 100%
			),
			linear-gradient(
				180deg,
				rgba(15, 23, 42, 0.2) 0%,
				rgba(15, 23, 42, 0.5) 70%,
				rgba(15, 23, 42, 0.78) 100%
			);
	}
}

/* Flag chip image inside a hero pill (self-hosted SVG; emoji is never relied
   on for colour because Windows renders flag emoji as bare letters). */
.eeh-flag {
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	display: inline-block;
	vertical-align: -1px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
	flex-shrink: 0;
}

/* Hero banner mode applies to every home style that opts in via has-bg. */
.eeh-hero.eeh-hero-has-bg {
	grid-template-columns: 1fr;
	position: relative;
	overflow: hidden;
}

@media (max-width: 820px) {
	.eeh-hero.eeh-hero-has-bg { min-height: 480px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.eeh-hero-dynamic .eeh-hero-dot,
	.eeh-hero-dynamic .eeh-hero-btn-primary::after,
	.eeh-feature-card,
	.eeh-cta-banner .eeh-btn { animation: none !important; }
	.eeh-feature-card, .eeh-cta-banner .eeh-btn, .eeh-hero-dynamic .eeh-hero-btn-primary,
	.eeh-hero-dynamic .eeh-hero-btn-outline { transition: none !important; }
}

