/* MHF 2026 — sizes follow the Figma mockup at 1440px (container 1240px, 100px gutters) */

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter.var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--mhf-blue: #005EB0;
	--mhf-blue-dark: #024580;
	--mhf-blue-light: #C7EEFF;
	--mhf-card: #E0F6FF;
	--mhf-line: #9EE0FF;
	--mhf-head: #4DABF8;
	--mhf-arc: #97E0FF;
	--mhf-text: #252723;
	--mhf-btn: linear-gradient(90deg, #005EB0 0%, #0E79D7 50%, #005EB0 100%); /* from Figma: Linear Gradient */
	--mhf-gutter: 40px;
	--mhf-header-h: 100px;

	/* shared topbar (mu-plugins/mh-archive-nav.php) in the 2026 palette */
	--mh-tb-bg: #005EB0;
	--mh-tb-cur: #024580;
	--mh-tb-sub: #C7EEFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.mhf-menu-open { overflow: hidden; }

body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #FFFFFF 0%, #DEF5FF 100%);
	color: var(--mhf-blue);
	font: 400 16px/1.2 "Inter", system-ui, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: var(--mhf-header-h); }

.mhf-container {
	width: calc(100% - 2 * var(--mhf-gutter));
	max-width: 1240px;
	margin-inline: auto;
}
.mhf-container-wide { max-width: 1250px; }

.mhf-h2 {
	margin: 0 0 44px;
	font-size: 48px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--mhf-blue);
}

/* Buttons */
.mhf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--mhf-btn);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: filter .2s;
}
.mhf-btn:hover, .mhf-btn:focus-visible { filter: brightness(1.12); }
.mhf-btn.is-disabled { background: #B9C0C6; color: #FFFFFF; cursor: default; pointer-events: none; filter: none; }
.mhf-btn:focus-visible { outline: 3px solid var(--mhf-head); outline-offset: 3px; }
.mhf-btn-lg { height: 57px; padding: 0 40px; font-size: 32px; font-weight: 500; }
.mhf-btn-icon { height: 56px; padding: 0 30px 0 20px; }
.mhf-btn-icon svg { flex: none; }

/* Header: shared topbar + menu row, sticky */
.mhf-header { position: sticky; top: 0; z-index: 50; }
.mhf-nav { background: var(--mhf-blue-light); }
.mhf-nav-in { display: flex; align-items: center; justify-content: center; height: 50px; }
.mhf-menu { display: flex; align-items: center; gap: 110px; }
.mhf-menu-link { color: var(--mhf-blue); font-size: 16px; line-height: 1; text-decoration: none; transition: opacity .2s; }
.mhf-menu-link:hover { opacity: .7; }
.mhf-menu-link.is-accent { font-weight: 700; }
.mhf-burger { display: none; }

/* Hero */
.mhf-hero { margin-top: 52px; }
.mhf-hero-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 66px 40px 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--mhf-card);
	text-align: center;
}
.mhf-hero-kicker { margin: 0 0 18px; font-size: 32px; line-height: 1.2; } /* case as typed: the EN mockup has "4th MENTAL HEALTH FORUM" */
.mhf-hero-title { margin: 0; max-width: 1000px; font-size: 44px; line-height: 1.22; font-weight: 700; }
.mhf-hero-date { margin: 14px 0 0; font-size: 20px; line-height: 1.2; }
.mhf-hero-card .mhf-btn { margin-top: 30px; }
.mhf-hero-img { display: block; width: 1080px; max-width: none; margin-top: 18px; } /* 2800x703 source, about 2.6x for retina */

/* Programme */
.mhf-section { margin-top: 90px; }
.mhf-program-head, .mhf-program-row { display: grid; grid-template-columns: 207px minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; }
.mhf-program-head { padding-bottom: 18px; color: var(--mhf-head); font-size: 15px; font-weight: 600; }
.mhf-program-row { padding: 20px 0; border-bottom: 1px solid var(--mhf-line); font-size: 16px; line-height: 1.2; }
.mhf-speakers { font-size: 14px; line-height: 1.3; }
.mhf-speaker { margin: 0; }
.mhf-speaker + .mhf-speaker { margin-top: 10px; }
.mhf-speaker strong { font-weight: 600; }
.mhf-program-row .mhf-program-topic:last-child { grid-column: 2 / -1; } /* no speakers: the topic takes both columns */
.mhf-program-part { margin: 0; padding: 48px 0 20px; font-size: 24px; line-height: 1.2; font-weight: 500; }
.mhf-program-part:first-child { padding-top: 0; }
#program .mhf-btn-icon { margin-top: 55px; }

/* Survey */
#poll { margin-top: 136px; }
.mhf-poll {
	position: relative;
	z-index: 0;
	overflow: hidden;
	padding: 100px 20px;
	border-radius: 20px;
	background: var(--mhf-blue-light);
	text-align: center;
}
.mhf-poll::before, .mhf-poll::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 600px;
	height: 600px;
	border: 80px solid var(--mhf-arc);
	border-radius: 50%;
}
.mhf-poll::before { left: -347px; top: -265px; }
.mhf-poll::after { right: -346px; bottom: -240px; }
.mhf-poll .mhf-h2 { margin-bottom: 30px; }
.mhf-poll-text { max-width: 420px; margin: 0 auto 26px; font-size: 16px; line-height: 1.2; }

/* Gallery */
#gallery { margin-top: 120px; }
.mhf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mhf-gallery-item {
	display: block;
	aspect-ratio: 400 / 234;
	overflow: hidden;
	border-radius: 20px;
	background: var(--mhf-blue-light);
}
.mhf-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.mhf-gallery-item:hover img { transform: scale(1.04); }

/* Footer = contacts */
.mhf-footer {
	margin-top: 118px;
	padding-top: 62px;
	border-radius: 20px 20px 0 0;
	border-bottom: 14px solid var(--mhf-blue);
	background: var(--mhf-blue-light);
}
.mhf-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.mhf-footer .mhf-h2 { margin-bottom: 26px; }
.mhf-email { display: inline-flex; align-items: center; gap: 10px; color: var(--mhf-blue); font-size: 18px; font-weight: 600; text-decoration: none; }
.mhf-email:hover span { text-decoration: underline; }
.mhf-logos { display: block; width: 722px; max-width: 100%; margin-top: 32px; }
.mhf-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-bottom: 54px; color: var(--mhf-text); font-size: 16px; }

/* Other pages */
.mhf-content { line-height: 1.5; color: var(--mhf-text); }
.mhf-content .mhf-h2 { margin-top: 60px; }

/* Lightbox */
.mhf-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 26, 51, .92);
}
.mhf-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.mhf-lightbox::backdrop { background: transparent; }
.mhf-lb-img { max-width: calc(100vw - 160px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.mhf-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
}
.mhf-lightbox button:hover { background: rgba(255, 255, 255, .26); }
.mhf-lb-close { top: 20px; right: 20px; }
.mhf-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.mhf-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Tablet and mobile: topbar 66px + row with the year dropdown and burger 86px (as on the archives) */
@media (max-width: 1279px) {
	:root { --mhf-gutter: 32px; --mhf-header-h: 152px; }

	.mhf-nav { background: #fff; }
	.mhf-nav-in { justify-content: space-between; height: 86px; }
	.mhf-burger {
		position: relative;
		display: block;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: var(--mhf-blue);
		cursor: pointer;
	}
	.mhf-burger span {
		position: absolute;
		left: 8.5px;
		width: 27px;
		height: 2px;
		margin-top: -1px;
		background: #fff;
		transition: transform .3s, top .3s, opacity .2s;
	}
	.mhf-burger span:nth-child(1) { top: calc(50% - 9px); }
	.mhf-burger span:nth-child(2) { top: 50%; }
	.mhf-burger span:nth-child(3) { top: calc(50% + 9px); }
	.mhf-burger[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: rotate(45deg); }
	.mhf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.mhf-burger[aria-expanded="true"] span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

	.mhf-menu {
		position: fixed;
		top: var(--mhf-header-h);
		right: 0;
		bottom: 0;
		left: 0;
		flex-direction: column;
		justify-content: center;
		gap: 5vh;
		padding-bottom: var(--mhf-header-h);
		background: #fff;
		visibility: hidden;
		opacity: 0;
		transition: opacity .3s, visibility 0s .3s;
	}
	.mhf-header.is-open .mhf-menu { visibility: visible; opacity: 1; transition: opacity .3s; }
	.mhf-menu-link { font-size: 20px; }

	.mhf-hero { margin-top: 24px; }
	.mhf-hero-img { width: 100%; max-width: 1080px; }
	.mhf-program-head, .mhf-program-row { grid-template-columns: 160px minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 28px; }
	.mhf-gallery { grid-template-columns: repeat(2, 1fr); }
	.mhf-footer-top { flex-direction: column; gap: 0; }
}

@media (max-width: 767px) {
	.mhf-h2 { margin-bottom: 28px; font-size: 32px; }
	.mhf-section { margin-top: 64px; }

	.mhf-hero-card { padding: 40px 20px 0; border-radius: 16px; }
	.mhf-hero-kicker { margin-bottom: 12px; font-size: 16px; }
	.mhf-hero-title { font-size: 24px; line-height: 1.25; }
	.mhf-hero-date { font-size: 16px; }
	.mhf-hero-card .mhf-btn { margin-top: 22px; }
	.mhf-btn-lg { height: 48px; padding: 0 28px; font-size: 20px; }
	.mhf-hero-img { width: 160%; max-width: none; margin-top: 20px; }

	.mhf-program-head { display: none; }
	.mhf-program-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
	.mhf-speakers { margin-top: 6px; }
	.mhf-program-row .mhf-program-topic:last-child { grid-column: auto; }
	.mhf-program-time { font-size: 14px; font-weight: 600; color: var(--mhf-head); }
	.mhf-program-part { padding: 36px 0 4px; font-size: 20px; }
	.mhf-program-part:first-child { padding-top: 0; }
	#program .mhf-btn-icon { margin-top: 36px; height: 52px; font-size: 16px; white-space: normal; text-align: left; }

	#poll { margin-top: 72px; }
	.mhf-poll { padding: 64px 20px; border-radius: 16px; }
	.mhf-poll::before, .mhf-poll::after { width: 300px; height: 300px; border-width: 40px; }
	.mhf-poll::before { left: -230px; top: -150px; }
	.mhf-poll::after { right: -230px; bottom: -150px; }
	.mhf-poll .mhf-btn { white-space: normal; text-align: center; }
	.mhf-poll-text br { display: none; } /* desktop line breaks from the mockup wrap badly on narrow screens */

	#gallery { margin-top: 72px; }
	.mhf-gallery { grid-template-columns: 1fr; gap: 12px; }
	.mhf-gallery-item { border-radius: 16px; }

	.mhf-footer { margin-top: 72px; padding-top: 44px; border-radius: 16px 16px 0 0; }
	.mhf-email { font-size: 16px; }
	.mhf-logos { margin-top: 28px; }
	.mhf-footer-bottom { flex-direction: column; gap: 8px; padding-bottom: 36px; font-size: 14px; }

	.mhf-lb-img { max-width: 100vw; border-radius: 0; }
	.mhf-lb-prev, .mhf-lb-next { top: auto; bottom: 24px; transform: none; }
}
