/* =========================================================================
   VITAL - design system
   Brand Guidelines v1.0: 60/30/10 (Porcelain / Vital Blue / Vital Pink),
   Inter + The Neue Black, circles & arcs, rounded corners, WCAG 2.1 AA.
   ========================================================================= */

/* ---------- Fonts ---------- */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/InterVariable.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'The Neue Black';
	src: url('../fonts/TheNeueBlack.woff2') format('woff2'),
	     url('../fonts/TheNeueBlack.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	/* Primary palette */
	--porcelain:   #FAFBFC;
	--blue:        #4571F6;
	--blue-dark:   #2f56cc;   /* AA-safe step of Vital Blue: small text + filled controls */
	--blue-darker: #26449c;   /* hover step below blue-dark */
	--blue-tint:   #edf1fe;   /* 8% blue wash for section alternates */
	--pink:        #C951A2;
	--pink-dark:   #a53f85;   /* AA-safe step of Vital Pink: small text + filled controls */
	--pink-darker: #8c3670;   /* hover step below pink-dark */
	--slate:       #364153;
	--mid-grey:    #D1D5DB;
	--white:       #ffffff;

	/* Secondary (charts / differentiation only) */
	--cyber-cyan: #00E5FF; --ocean-ink: #183C59;
	--sunrise-orange: #F0904F; --terracotta: #563113;
	--lavender: #AD8BF7; --purple-ink: #1C0B2C;
	--bubblegum: #EF8AC5; --plum: #551F3C;
	--lime: #DAF8A3; --forest: #294D31;

	/* Type */
	--font-display: 'The Neue Black', 'Avenir Black', 'Arial Black', sans-serif;
	--font-sans: 'Inter', 'Avenir', 'Segoe UI', sans-serif;

	/* Shape & rhythm */
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 28px;
	--radius-pill: 999px;
	--container: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section-pad: clamp(3.5rem, 8vw, 6.5rem);
	--shadow-sm: 0 2px 8px rgba(54, 65, 83, .07);
	--shadow: 0 10px 30px rgba(54, 65, 83, .10);
	--shadow-lg: 0 22px 60px rgba(54, 65, 83, .14);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--slate);
	background: var(--porcelain);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-darker); }

h1, h2, h3, h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	line-height: 1.2;
	color: var(--slate);
	margin: 0 0 .6em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--blue-dark);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 0 0 var(--radius-sm) 0;
	z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout utilities ---------- */

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
/* Tighten the gap right after the hero */
.hero + .section { padding-top: clamp(1.75rem, 3vw, 2.75rem); }
.section--alt { background: var(--blue-tint); overflow: hidden; }
.section--dark { background: var(--slate); color: #e6e9ef; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
	display: inline-block;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pink-dark);
	background: rgba(201, 81, 162, .09);
	border-radius: var(--radius-pill);
	padding: .35rem 1rem;
	margin-bottom: 1rem;
}

.section--dark .eyebrow { color: var(--bubblegum); background: rgba(239, 138, 197, .12); }

.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); line-height: 1.6; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	padding: .9rem 1.75rem;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--blue-dark); color: #fff; }
.btn--solid:hover { background: var(--blue-darker); color: #fff; }

.btn--outline { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn--outline:hover { background: var(--blue-dark); color: #fff; }

.btn--pink { background: var(--pink-dark); color: #fff; }
.btn--pink:hover { background: var(--pink-darker); color: #fff; }

.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: var(--porcelain); color: var(--blue-darker); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.0625rem; }

.btn .badge {
	font-size: .6875rem;
	font-weight: 700;
	background: rgba(255, 255, 255, .22);
	padding: .2rem .55rem;
	border-radius: var(--radius-pill);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--mid-grey); box-shadow: var(--shadow-sm); }

.site-header__inner {
	/* Symmetric bar: logo | centered menu | EU + Hub button */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	min-height: 72px;
	max-width: none;
	padding-inline: clamp(1rem, 2vw, 2rem);
}

.site-header__brand { display: inline-flex; flex-shrink: 0; justify-self: start; }
.site-header__logo { height: 40px; width: auto; }

.site-nav { justify-self: center; }

/* Hub lives as the right-hand button on desktop; hide the duplicate menu item */
.site-nav__list .menu-item-hub { display: none; }

.site-nav__list {
	display: flex;
	gap: clamp(.15rem, .8vw, .5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	font-weight: 600;
	font-size: .875rem;
	letter-spacing: .01em;
	white-space: nowrap;
	color: var(--slate);
	text-decoration: none;
	padding: .5rem .7rem;
	border-radius: var(--radius-pill);
	transition: color .15s ease, background .15s ease;
}
.site-nav__list a:hover { color: var(--blue-dark); background: var(--blue-tint); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--blue-dark); background: var(--blue-tint); }

.site-header__extras { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; justify-self: end; }
.site-header__eu { height: 42px; width: auto; }
.site-header__cta { padding: .6rem 1.25rem; font-size: .875rem; white-space: nowrap; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 3px;
	border-radius: 3px;
	background: var(--slate);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 3.5vw, 3rem);
	background: var(--porcelain);
}

.hero__inner { position: relative; z-index: 2; max-width: 1010px; }

.hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.4rem, 2.5vw, 2.2rem);
	line-height: 1.7;
	letter-spacing: 0;
	color: var(--slate);
	margin-bottom: 2rem;
}
.hero__title .accent { color: var(--blue); }
/* Each line is its own block kept on one line -> guaranteed increasing staircase */
.hero__title .hl { display: block; white-space: nowrap; }
/* On small screens let the lines wrap naturally (drop the forced staircase) */
@media (max-width: 700px) {
	.hero__title .hl { white-space: normal; }
	.hero__title { line-height: 1.4; }
}

.hero__tagline { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 2; max-width: 760px; font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: 2.25rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--slate);
	opacity: .85;
}

/* Nested arcs echoing the VITAL symbol */
.arc-decor {
	position: absolute;
	border-radius: 50%;
	border-style: solid;
	border-color: var(--blue);
	pointer-events: none;
	z-index: 1;
}
.hero .arc-decor--1 {
	width: 640px; height: 640px;
	border-width: 56px;
	right: -220px; top: -260px;
	opacity: .10;
}
.hero .arc-decor--2 {
	width: 400px; height: 400px;
	border-width: 40px;
	right: -60px; top: -140px;
	border-color: var(--pink);
	opacity: .10;
}
.hero .arc-decor--3 {
	width: 300px; height: 300px;
	border-width: 30px;
	left: -140px; bottom: -170px;
	opacity: .07;
}

/* ---------- Cards ---------- */

.card {
	background: #fff;
	border: 1px solid var(--mid-grey);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 2.5vw, 2rem);
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--blue-tint);
	color: var(--blue);
	margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }

.card--pink .card__icon { background: rgba(201, 81, 162, .1); color: var(--pink); }

/* Pillar numbering */
.pillar-card { position: relative; }
.pillar-card h3 { padding-right: 4.5rem; }
.pillar-card__num {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	font-family: var(--font-display);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--blue-tint);
	-webkit-text-stroke: 1.5px var(--blue);
	opacity: .55;
}

/* ---------- Process flow ---------- */

.flow { display: flex; flex-wrap: wrap; gap: 1rem; counter-reset: flow; }
.flow__step {
	flex: 1 1 180px;
	position: relative;
	background: #fff;
	border: 1px solid var(--mid-grey);
	border-radius: var(--radius);
	padding: 1.5rem 1.25rem 1.25rem;
	counter-increment: flow;
	box-shadow: var(--shadow-sm);
}
.flow__step::before {
	content: counter(flow, decimal-leading-zero);
	display: inline-block;
	font-weight: 800;
	font-size: .8125rem;
	color: #fff;
	background: var(--blue-dark);
	border-radius: var(--radius-pill);
	padding: .25rem .7rem;
	margin-bottom: .8rem;
}
.flow__step:nth-child(even)::before { background: var(--pink-dark); }
.flow__step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.flow__step p { font-size: .92rem; margin: 0; opacity: .9; }

/* ---------- News cards ---------- */

.news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mid-grey);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-tint); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Coloured brand banner (used on listings; the photo lives inside the article) */
.news-card__banner {
	display: flex;
	align-items: flex-end;
	padding: 1.35rem 1.5rem;
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
	position: relative;
	text-decoration: none;
}
.news-card__banner::after {
	content: '';
	position: absolute;
	width: 200px; height: 200px;
	border-radius: 50%;
	border: 30px solid rgba(255, 255, 255, .13);
	right: -68px; top: -78px;
	pointer-events: none;
}
.news-card__banner-cat {
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.05rem;
	letter-spacing: .01em;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
}
/* Colour cycle across a card grid: blue -> pink -> slate */
.grid .news-card:nth-child(3n+2) .news-card__banner { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%); }
.grid .news-card:nth-child(3n) .news-card__banner { background: linear-gradient(135deg, var(--slate) 0%, #232c3a 100%); }

.news-card__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.news-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card__date { font-size: .8125rem; font-weight: 700; color: var(--pink-dark); text-transform: uppercase; letter-spacing: .08em; }
.news-card__title { font-size: 1.15rem; margin: 0; }
.news-card__title a { color: var(--slate); text-decoration: none; }
.news-card__title a:hover { color: var(--blue-dark); }
.news-card__excerpt { font-size: .95rem; margin: 0; opacity: .9; }

/* ---------- Partner cards ---------- */

.partner-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #fff;
	border: 1px solid var(--mid-grey);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
}
.partner-card__logo {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.partner-card__logo img { max-height: 72px; max-width: 200px; width: auto; object-fit: contain; }
.partner-card__country {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--blue-dark);
}
.partner-card__country .coordinator {
	color: var(--pink-dark);
	margin-left: .5rem;
}

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat__value {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4.5vw, 3.2rem);
	line-height: 1;
	color: var(--blue);
	display: block;
	margin-bottom: .4rem;
}
.stat--pink .stat__value { color: var(--pink); }
.stat__label { font-weight: 600; font-size: .95rem; }

/* ---------- Accordion ---------- */

.accordion { display: grid; gap: .9rem; }
.accordion__item {
	background: #fff;
	border: 1px solid var(--mid-grey);
	border-radius: var(--radius);
	overflow: hidden;
}
.accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	background: none;
	border: 0;
	padding: 1.25rem 1.5rem;
	font-family: var(--font-sans);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--slate);
	text-align: left;
	cursor: pointer;
}
.accordion__trigger:hover { color: var(--blue-dark); }
.accordion__trigger::after {
	content: '';
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-right: 3px solid var(--blue);
	border-bottom: 3px solid var(--blue);
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(225deg); }
.accordion__panel { padding: 0 1.5rem 1.4rem; }
.accordion__panel[hidden] { display: none; }

/* ---------- Timeline ---------- */

.timeline { position: relative; display: grid; gap: 1.75rem; padding-left: 2rem; }
.timeline::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(var(--blue), var(--pink));
}
.timeline__item { position: relative; }
.timeline__item::before {
	content: '';
	position: absolute;
	left: -2rem;
	top: 6px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #fff;
	border: 5px solid var(--blue);
}
.timeline__item:nth-child(even)::before { border-color: var(--pink); }
.timeline__date { font-size: .85rem; font-weight: 700; color: var(--pink-dark); text-transform: uppercase; letter-spacing: .07em; }
.timeline__item h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.timeline__item p { margin: 0; font-size: .95rem; }

/* ---------- Tables (deliverables) ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--mid-grey); background: #fff; box-shadow: var(--shadow-sm); }
.vital-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
.vital-table th {
	background: var(--blue-dark);
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: .9rem 1.1rem;
	white-space: nowrap;
}
.vital-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--mid-grey); vertical-align: top; }
.vital-table tbody tr:hover { background: var(--blue-tint); }

.tag {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	padding: .2rem .65rem;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
	color: var(--blue-dark);
	white-space: nowrap;
}
.tag--pink { background: rgba(201, 81, 162, .1); color: var(--pink-dark); }
.tag--grey { background: #eef0f3; color: var(--slate); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
	width: 100%;
	font: inherit;
	color: var(--slate);
	background: #fff;
	border: 1.5px solid var(--mid-grey);
	border-radius: var(--radius-sm);
	padding: .8rem 1rem;
	transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(69, 113, 246, .15); }
.form .hp-field { position: absolute; left: -9999px; }

.notice { border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.notice--ok { background: rgba(41, 77, 49, .08); color: var(--forest); border: 1px solid rgba(41, 77, 49, .25); }
.notice--err { background: rgba(85, 31, 60, .07); color: var(--plum); border: 1px solid rgba(85, 31, 60, .25); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--slate);
	color: #fff;
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 900; letter-spacing: .01em; }
.page-hero p { max-width: 680px; color: #dfe4ec; font-size: 1.1rem; margin: 0; }
.page-hero .arc-decor--1 {
	width: 460px; height: 460px;
	border-width: 44px;
	right: -160px; top: -200px;
	border-color: var(--blue);
	opacity: .35;
}
.page-hero .arc-decor--2 {
	width: 280px; height: 280px;
	border-width: 28px;
	right: 40px; bottom: -160px;
	border-color: var(--pink);
	opacity: .25;
}

.breadcrumbs { font-size: .85rem; margin-bottom: 1rem; color: #b9c2d0; }
.breadcrumbs a { color: #dfe4ec; }

/* ---------- Prose (default page content) ---------- */

.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin: 1.5em 0;
	padding: 1.25rem 1.5rem;
	background: var(--blue-tint);
	border-left: 5px solid var(--blue);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer { background: #2a313d; color: #cdd4df; margin-top: 0; border-top: 3px solid var(--blue); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--bubblegum); }

.site-footer__top {
	display: grid;
	grid-template-columns: 1.85fr .7fr 1fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.site-footer__brand img { display: block; }
.site-footer__eu { margin-top: 0; height: 56px; width: auto; }
.site-footer__disclaimer { font-size: .95rem; line-height: 1.65; margin-top: 1.6rem; opacity: .82; max-width: 56ch; }

.site-footer__heading {
	font-size: .9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #fff;
	margin-bottom: 1rem;
}

.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__nav a { text-decoration: none; font-weight: 600; color: #cdd4df; }
.site-footer__nav a:hover { text-decoration: underline; color: #fff; }

.site-footer__contact p { font-size: .95rem; margin-bottom: .8em; }

.site-footer__partners { padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Auto-scrolling partner logo marquee */
.partner-marquee {
	overflow: hidden;
	background: var(--blue-tint);
	border-radius: var(--radius);
	padding: 1.1rem 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partner-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: vital-marquee 32s linear infinite;
}
.partner-marquee:hover .partner-marquee__track { animation-play-state: paused; }
.partner-marquee__logo {
	height: 46px;
	width: auto;
	flex: 0 0 auto;
	object-fit: contain;
	margin-right: clamp(2.5rem, 6vw, 5rem);
}
@keyframes vital-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-100% / 3)); }
}
@media (prefers-reduced-motion: reduce) {
	.partner-marquee { -webkit-mask-image: none; mask-image: none; }
	.partner-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 1.25rem; }
	.partner-marquee__logo:last-child { margin-right: 0; }
}

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Reveal animation (gated on .js so no-JS users see everything) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .card:hover, .news-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

/* Mid widths: drop the Hub button (keep the bigger EU emblem), restore Hub in the menu */
@media (max-width: 1180px) {
	.site-header__cta { display: none; }
	.site-nav__list .menu-item-hub { display: block; }
}

@media (max-width: 920px) {
	.nav-toggle { display: flex; }

	.site-header__inner { display: flex; }

	/* Hide the header EU emblem on mobile (space is tight; it stays in the footer) */
	.site-header__eu { display: none; }

	/* Mobile menu keeps the Hub item (the header button is hidden there) */
	.site-nav__list .menu-item-hub { display: block; }

	.site-nav {
		position: fixed;
		inset: 76px 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--mid-grey);
		box-shadow: var(--shadow-lg);
		padding: 1rem var(--gutter) 1.5rem;
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: .25rem; }
	.site-nav__list a { padding: .8rem 1rem; font-size: 1.05rem; }

	.site-header__cta { display: none; }

	.site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- WP alignment basics ---------- */

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}
