/* ── ukdtc/hero ─────────────────────────────────────────── */

.ukdtc-hero {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	width: 100%;
}

.ukdtc-hero.ukdtc-hero--has-image {
	grid-template-columns: 1fr 1fr;
}

.ukdtc-hero--landing { min-height: 52vh; }
.ukdtc-hero--sub     { min-height: 52vh; }

/* ── Content column (gradient lives on .ukdtc-hero wrapper) ── */
.ukdtc-hero__content {
	padding: clamp(36px, 5vw, 68px) var(--ukdtc-pad);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: var(--ukdtc-max);
	margin-inline: auto;
}

.ukdtc-hero--has-image .ukdtc-hero__content {
	max-width: none;
	margin-inline: 0;
}

.ukdtc-hero--landing .ukdtc-hero__content {
	justify-content: flex-end;
	/*padding-block-end: clamp(48px, 7vw, 96px);*/
	/*padding-block-start: clamp(48px, 7vw, 100px);*/
}

/* Sub variant: breadcrumb + logo (.ukdtc-hero__top) pinned to the top,
   the rest (.ukdtc-hero__main) pinned to the bottom. */
.ukdtc-hero--sub .ukdtc-hero__content {
	justify-content: space-between;
}
.ukdtc-hero__top {
	margin-bottom: 28px;
}

/*
 * Landing variant: pull the "Funded by" panel into a right-hand column
 * inside the content area so it stops consuming vertical space. The
 * content column becomes a 2-col grid; main flow stays in column 1,
 * `.ukdtc-hero__logos` is assigned to column 2. Below 860px the existing
 * single-column layout (already handled by the bottom media query) takes
 * over and the panel flows beneath the CTAs again.
 */
@media (min-width: 861px) {
	.ukdtc-hero--landing .ukdtc-hero__content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 40px;
		align-content: end;
	}
	.ukdtc-hero--landing .ukdtc-hero__content > * {
		grid-column: 1;
	}
	.ukdtc-hero--landing .ukdtc-hero__content > .ukdtc-hero__logos {
		grid-column: 2;
		grid-row: 1 / -1;
		align-self: end;
		margin-top: 0;
		border-top: 0;
		padding-top: 0;
		padding-left: 24px;
		border-left: 1px solid rgba(255, 255, 255, 0.15);
		max-width: 240px;
	}
}

.ukdtc-hero__content::before {
	content: '';
	position: absolute;
	border-radius: 50%;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle at 40% 40%, rgba(84, 10, 149, 0.35) 0%, transparent 65%);
	top: -120px;
	right: -100px;
	pointer-events: none;
}
.ukdtc-hero--landing .ukdtc-hero__content::before {
	width: 520px;
	height: 520px;
	background: radial-gradient(circle at 40% 40%, rgba(84, 10, 149, 0.4) 0%, transparent 65%);
	top: -160px;
	right: -130px;
}

.ukdtc-hero__content > * {
	position: relative;
	z-index: 1;
}

/* ── Breadcrumb (sub variant) ───────────────────────────── */
.ukdtc-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
}
.ukdtc-hero__breadcrumb a {
	font-family: var(--ukdtc-poppins);
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.15s;
}
.ukdtc-hero__breadcrumb a:hover { color: var(--ukdtc-aqua); }

.ukdtc-hero__bc-sep {
	color: rgba(255, 255, 255, 0.22);
	font-size: 0.875rem;
}
.ukdtc-hero__bc-current {
	font-family: var(--ukdtc-poppins);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ukdtc-aqua);
}

/* ── Eyebrow (badges, landing only) ─────────────────────── */
.ukdtc-hero__eyebrow {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

/*
 * Hero eyebrow has a fixed brand pattern: first badge is stone-purple,
 * second is white-outline. Positional override beats whatever colour the
 * editor picked so the visual is deterministic.
 */
.ukdtc-hero__eyebrow .ukdtc-badge:nth-child(1) {
	background: #B2AAF1;
	border: 0;
	color: var(--ukdtc-dark-purple);
}
.ukdtc-hero__eyebrow .ukdtc-badge:nth-child(2) {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.7);
}

/* ── Hero logo (above title) ────────────────────────────── */
.ukdtc-hero__logo {
	margin: 0 0 18px;
	display: block;
}
.ukdtc-hero__logo img {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 64px;
	height: auto;
}

/* ── Typography ─────────────────────────────────────────── */
.ukdtc-hero__title {
	font-family: var(--ukdtc-poppins);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.8vw, 2.875rem);
	line-height: 1.07;
	color: #ffffff;
	margin: 0 0 10px;
}
.ukdtc-hero--landing .ukdtc-hero__title {
	font-size: clamp(2rem, 5vw, 3.75rem);
	line-height: 1.04;
}

.ukdtc-hero__subtitle {
	font-family: var(--ukdtc-poppins);
	font-weight: 500;
	font-size: clamp(1rem, 2.2vw, 1.375rem);
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.3;
	margin: 0 0 20px;
}

.ukdtc-hero__intro {
	font-family: var(--ukdtc-roboto);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
	max-width: 90ch;
	margin: 0 0 28px;
}

.ukdtc-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ── Funded-by logo row (landing only) ──────────────────── */
.ukdtc-hero__logos {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}
.ukdtc-hero__logos-label {
	font-family: var(--ukdtc-poppins);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38);
}
.ukdtc-hero__logo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.ukdtc-hero__logo-pill {
	border-radius: 4px;
	display: flex;
	align-items: center;
}
.ukdtc-hero__logo-pill img {
	height: 48px;
	width: auto;
	filter: brightness(0) invert(1);
}
.ukdtc-hero__logo-pill span {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.4);
	font-family: var(--ukdtc-poppins);
}

/* ── Image column ───────────────────────────────────────── */
.ukdtc-hero__image {
	position: relative;
	overflow: hidden;
}
.ukdtc-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ukdtc-hero__image::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to right, #00d2d2 0%, rgba(0, 210, 210, 0.08) 16%, transparent 36%);
}

.ukdtc-hero__placeholder {
	width: 100%;
	height: 100%;
	min-height: 360px;
	background: #1a1030;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ukdtc-hero__placeholder span {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.2);
	font-family: var(--ukdtc-poppins);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
	.ukdtc-hero,
	.ukdtc-hero.ukdtc-hero--has-image { grid-template-columns: 1fr; }
	.ukdtc-hero__image { display: none; }
	.ukdtc-hero--landing { min-height: 60vh; }
}
