/* =========================================================================
   TN Page Hero
   — Appears on every inner page between the site header and page content.
   — Default: dark brand-gradient background with subtle radial glow.
   — Optional: when the page has a Featured Image, it becomes the background
     with a dark overlay applied via .tn-page-hero--has-image.
   ========================================================================= */

/* ── Container ──────────────────────────────────────────────────────────── */
.tn-page-hero {
	position: relative;
	background: linear-gradient(90deg, var(--tn-green, #1aa84c) 0%, var(--tn-teal, #16b6c4) 100%);
	overflow: hidden;
	min-height: 240px;
	display: flex;
	align-items: center;
}

/* Subtle light sheen overlay — adds a gentle diagonal highlight without
   washing out the green-to-teal gradient */
.tn-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 140% at 100% 0%,   rgba(255,255,255,0.18) 0%, transparent 60%),
		radial-gradient(ellipse 50% 100% at   0% 100%, rgba(0,  0,  0,  0.12) 0%, transparent 55%);
	pointer-events: none;
	z-index: 1;
}

/* ── Featured-image variant ─────────────────────────────────────────────── */
.tn-page-hero--has-image {
	background-image: var(--tn-hero-img);
	background-size: cover;
	background-position: center;
}

/* Tinted overlay keeps the gradient palette on top of any photo */
.tn-page-hero--has-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(26, 168, 76,  0.82) 0%,
		rgba(22, 182, 196, 0.78) 100%
	);
	z-index: 1;
}

/* ── Inner layout ───────────────────────────────────────────────────────── */
.tn-page-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 32px;
}

/* ── Page title ─────────────────────────────────────────────────────────── */
.tn-page-hero__title {
	position: relative;
	padding-left: 20px;
	font-size: clamp(1.6rem, 3.5vw, 2.6rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

/* Vertical gradient accent bar left of the title */
.tn-page-hero__title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.1em;
	bottom: 0.1em;
	width: 4px;
	background: linear-gradient(180deg, var(--tn-green, #1aa84c) 0%, var(--tn-teal, #16b6c4) 100%);
	border-radius: 3px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.tn-page-hero__breadcrumb {
	padding-left: 20px; /* align with title text (after the accent bar) */
}

.tn-page-hero__crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 2px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.tn-crumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.tn-crumb a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tn-crumb a:hover {
	color: var(--tn-teal, #16b6c4);
}

/* Chevron separator svg */
.tn-crumb-sep {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.28);
	flex-shrink: 0;
}

/* Current (last) crumb — slightly brighter */
.tn-crumb--current span:not(.tn-crumb-sep) {
	color: rgba(255, 255, 255, 0.85);
}

/* ── Bottom accent line ─────────────────────────────────────────────────── */
.tn-page-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tn-green, #1aa84c) 0%, var(--tn-teal, #16b6c4) 100%);
	z-index: 3;
}

/* When there's a featured image the ::after is used for the overlay —
   move the bottom accent line to the hero's box-shadow instead. */
.tn-page-hero--has-image {
	box-shadow: inset 0 -3px 0 0 rgba(22, 182, 196, 0.8);
}

.tn-page-hero--has-image::after {
	/* Slot taken by the dark overlay — accent line done via box-shadow above */
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.tn-page-hero__inner {
		padding: 48px 24px;
	}
}

@media (max-width: 640px) {
	.tn-page-hero {
		min-height: 190px;
	}

	.tn-page-hero__inner {
		padding: 40px 20px;
	}

	.tn-page-hero__title {
		padding-left: 16px;
		margin-bottom: 14px;
	}

	.tn-page-hero__breadcrumb {
		padding-left: 16px;
	}

	.tn-crumb {
		font-size: 0.75rem;
	}
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
	.tn-crumb a {
		transition: none;
	}
}
