/**
 * Design system — spacing scale, typography, hero overlay, cards, sticky cluster.
 * Loads after main.css + site-shell-polish.css
 *
 * @package DBCTE_Tura
 */

/* -------------------------------------------------------------------------
   Tokens (8px base)
------------------------------------------------------------------------- */
:root {
	--ds-space-1: 0.25rem;
	--ds-space-2: 0.5rem;
	--ds-space-3: 0.75rem;
	--ds-space-4: 1rem;
	--ds-space-5: 1.25rem;
	--ds-space-6: 1.5rem;
	--ds-space-8: 2rem;
	--ds-space-10: 2.5rem;
	--ds-space-12: 3rem;
	--ds-space-16: 4rem;
	--ds-secondary: #2563eb;
	--ds-secondary-soft: #dbeafe;
	--ds-accent-soft: color-mix(in srgb, var(--dbcte-accent) 22%, #fff 78%);
	--ds-radius-card: 14px;
	--ds-radius-pill: 999px;
	--ds-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ds-shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.08);
	--ds-shadow-md: 0 8px 28px rgba(30, 58, 138, 0.12);
	--ds-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);
	--ds-content-max: min(100% - 2rem, 72rem);
	--ds-line-body: 1.7;
}

/* -------------------------------------------------------------------------
   Typography
------------------------------------------------------------------------- */
body {
	font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
	font-size: 1.0625rem;
	line-height: var(--ds-line-body);
	-webkit-font-smoothing: antialiased;
}

.site-branding__title,
.section__title,
.highlights-section__title,
.about-section .section__title,
.principal-section__title,
.hero__title,
.site-footer__col-title,
.entry-title {
	font-family: "Poppins", "Inter", system-ui, sans-serif;
	letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------------
   Readable width for long homepage copy
------------------------------------------------------------------------- */
.about-section__text {
	max-width: 62ch;
}

/* -------------------------------------------------------------------------
   Sticky header cluster (branding + primary nav)
------------------------------------------------------------------------- */
.site-header-cluster {
	position: sticky;
	top: 0;
	z-index: 9990;
	transition: box-shadow 0.28s var(--ds-ease);
}

.site-header-cluster--raised {
	box-shadow: var(--ds-shadow-lg);
}

.site-header-cluster .site-header {
	position: relative;
	top: auto;
	border-bottom-color: rgba(30, 58, 138, 0.1);
}

/* -------------------------------------------------------------------------
   Section rhythm
------------------------------------------------------------------------- */
.section {
	padding-block: var(--ds-space-16);
}

.section--alt {
	padding-block: calc(var(--ds-space-16) + var(--ds-space-2));
}

.highlights-section {
	padding-block: calc(var(--ds-space-12) + var(--ds-space-4));
	background: linear-gradient(180deg, #f1f5f9 0%, #e8edf5 48%, #eef2f7 100%);
}

.wrap {
	width: var(--ds-content-max);
}

/* -------------------------------------------------------------------------
   Hero — overlay + headline + CTAs
------------------------------------------------------------------------- */
.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(
			105deg,
			rgba(15, 23, 42, 0.82) 0%,
			rgba(30, 58, 138, 0.45) 42%,
			rgba(15, 23, 42, 0.25) 100%
		),
		linear-gradient(0deg, rgba(15, 23, 42, 0.55) 0%, transparent 45%);
}

.hero__overlay--empty {
	background: linear-gradient(145deg, #1e3a8a 0%, #172554 55%, #0f172a 100%);
	opacity: 1;
}

.hero__content {
	position: absolute;
	z-index: 4;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	padding-block: var(--ds-space-8);
	pointer-events: none;
	max-width: min(var(--ds-content-max), 52rem);
}

.hero__content .hero__btn {
	pointer-events: auto;
}

.hero__title {
	margin: 0 0 var(--ds-space-4);
	font-size: clamp(1.65rem, 3.2vw + 1rem, 2.65rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
	max-width: 22ch;
}

.hero__excerpt {
	margin: 0 0 var(--ds-space-6);
	font-size: clamp(0.95rem, 1vw + 0.8rem, 1.125rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 38rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ds-space-3) var(--ds-space-4);
}

.hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.35rem;
	font-family: "Poppins", "Inter", sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	border-radius: var(--ds-radius-pill);
	text-decoration: none;
	border: 2px solid transparent;
	transition:
		transform 0.22s var(--ds-ease),
		box-shadow 0.22s var(--ds-ease),
		background 0.22s var(--ds-ease),
		color 0.22s var(--ds-ease),
		border-color 0.22s var(--ds-ease);
}

.hero__btn--primary {
	background: linear-gradient(180deg, var(--dbcte-accent) 0%, color-mix(in srgb, var(--dbcte-accent) 85%, #b45309 15%) 100%);
	color: #fff;
	box-shadow: 0 4px 20px rgba(255, 102, 0, 0.45);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(255, 102, 0, 0.55);
	color: #fff;
}

.hero__btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero__btn--ghost:hover,
.hero__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	border-color: #fff;
	color: #fff;
	transform: translateY(-2px);
}

.hero__arrows,
.hero__pagination {
	z-index: 6;
}

.hero__slider--empty {
	background: var(--dbcte-hub-mid);
	min-height: min(52vh, 420px);
	max-height: none;
}

.hero__slider--empty .hero__placeholder {
	position: absolute;
	z-index: 5;
	bottom: var(--ds-space-4);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: var(--ds-space-3) var(--ds-space-5);
	background: rgba(15, 23, 42, 0.35);
	border-radius: var(--ds-radius-card);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	pointer-events: none;
}

.hero__slider--empty .hero__placeholder p {
	margin: 0;
}

@media (max-width: 640px) {
	.hero__content {
		justify-content: flex-end;
		padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
		padding-top: var(--ds-space-6);
		align-items: stretch;
		max-width: calc(100% - 1.5rem);
	}

	.hero__title {
		font-size: clamp(1.35rem, 5vw + 0.5rem, 1.85rem);
		max-width: none;
	}

	.hero__excerpt {
		font-size: 0.95rem;
		margin-bottom: var(--ds-space-4);
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__btn {
		width: 100%;
	}

	.hero__slider--empty {
		min-height: 320px;
	}
}

/* -------------------------------------------------------------------------
   Cards — news & events highlights
------------------------------------------------------------------------- */
.highlights-news__link,
.highlights-events__link {
	border-radius: var(--ds-radius-card);
	background: #fff;
	box-shadow: var(--ds-shadow-sm);
	border: 1px solid rgba(30, 58, 138, 0.08);
	transition:
		transform 0.25s var(--ds-ease),
		box-shadow 0.25s var(--ds-ease),
		border-color 0.25s var(--ds-ease);
}

.highlights-news__link:hover,
.highlights-news__link:focus-visible,
.highlights-events__link:hover,
.highlights-events__link:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--ds-shadow-md);
	border-color: color-mix(in srgb, var(--dbcte-hub-sky) 55%, transparent 45%);
}

.highlights-events-panel {
	background: rgba(255, 255, 255, 0.55);
	border-radius: calc(var(--ds-radius-card) + 4px);
	padding: var(--ds-space-4);
	border: 1px solid rgba(30, 58, 138, 0.08);
}

.highlights-section__title {
	font-size: clamp(1.2rem, 1.5vw + 0.85rem, 1.5rem);
}

.highlights-section__link {
	font-weight: 600;
	transition: color 0.2s var(--ds-ease), gap 0.2s var(--ds-ease);
}

/* -------------------------------------------------------------------------
   Navigation — dropdown polish
------------------------------------------------------------------------- */
@media (min-width: 901px) {
	.main-nav .sub-menu {
		transition:
			opacity 0.28s var(--ds-ease),
			transform 0.28s var(--ds-ease),
			visibility 0.28s;
	}

	.main-nav > .menu > .menu-item > .sub-menu {
		transform: translateY(10px);
	}

	.main-nav > .menu > .menu-item:hover > .sub-menu,
	.main-nav > .menu > .menu-item:focus-within > .sub-menu {
		transform: translateY(0);
	}
}

/* -------------------------------------------------------------------------
   Primary CTA in nav
------------------------------------------------------------------------- */
.nav-bar__cta {
	transition:
		transform 0.22s var(--ds-ease),
		box-shadow 0.22s var(--ds-ease);
}

.nav-bar__cta:hover,
.nav-bar__cta:focus-visible {
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Footer
------------------------------------------------------------------------- */
.site-footer__main {
	padding-block: calc(var(--ds-space-12) + var(--ds-space-2));
}

.site-footer .site-footer__qlink {
	transition: color 0.2s var(--ds-ease), padding-inline-start 0.2s var(--ds-ease);
}

.site-footer .site-footer__qlink:hover,
.site-footer .site-footer__qlink:focus-visible {
	color: #fff;
	padding-inline-start: var(--ds-space-1);
}

.site-footer__contact-row {
	border-radius: var(--ds-radius-card);
	transition: background 0.2s var(--ds-ease);
}
