/* ==========================================================================
   BKA 2026 v5 · 5/8 CHROME – low header, UPPERCASE main menu without arrows,
   image mega menu (4 · 4+3 · 3+3), mobile drawer, newsletter band, footer in
   Bethesda red.
   ========================================================================== */

/* Header ------------------------------------------------------------------ */
.v5-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--v5-line);
	transition: box-shadow var(--v5-dur) var(--v5-ease);
}
.admin-bar .v5-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .v5-header { top: 0; } }
@supports (backdrop-filter: blur(8px)) {
	.v5-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); }
}
.v5-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17, 17, 26, .3); }
.v5-header.is-mega-open { background: #fff; }

.v5-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 3rem);
	height: var(--v5-header-h);
}

.v5-brand { display: block; flex: none; line-height: 0; border-radius: 6px; }
.v5-brand img { width: auto; height: 3.6rem; }
.v5-header .v5-brand img { height: 3.75rem; margin-block: -.1rem; }

.v5-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.v5-header__search {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	color: var(--v5-ink);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-header__search:hover { background: var(--v5-red-100); color: var(--v5-red); }
.v5-header__search .v5-icon { width: 1.35rem; height: 1.35rem; }
.v5-header__cta { min-height: 2.75rem; padding: .6rem 1.4rem; font-size: .875rem; box-shadow: none; }

.v5-header__context { margin: 0 auto 0 0; color: var(--v5-muted); font-size: .875rem; font-weight: var(--v5-w-ui); letter-spacing: .04em; }
.v5-header__help { font-weight: var(--v5-w-bold); text-decoration: none; }

/* Main menu (desktop) ----------------------------------------------------- */
.v5-nav { display: flex; align-items: stretch; align-self: stretch; }
.v5-nav__menu { display: flex; align-items: stretch; gap: clamp(.25rem, 1.2vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.v5-nav__item { display: flex; align-items: center; margin: 0; }
.v5-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 .55rem;
	color: var(--v5-ink);
	font-family: var(--v5-font-text);
	font-size: var(--v5-fs-nav);
	font-weight: var(--v5-w-bold);
	letter-spacing: .07em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.v5-nav__link::after {
	content: "";
	position: absolute;
	right: .55rem;
	bottom: 0;
	left: .55rem;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--v5-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--v5-dur) var(--v5-ease);
}
.v5-nav__link:hover,
.v5-nav__item.is-open > .v5-nav__link,
.v5-nav__item.is-current > .v5-nav__link { color: var(--v5-red); text-decoration: none; }
.v5-nav__link:hover::after,
.v5-nav__item.is-open > .v5-nav__link::after,
.v5-nav__item.is-current > .v5-nav__link::after { transform: scaleX(1); }
.v5-nav__link:focus-visible { box-shadow: inset 0 0 0 2px var(--v5-red); border-radius: 6px; }
.v5-header.is-mega-open .v5-nav__item.is-current:not(.is-open) > .v5-nav__link { color: var(--v5-ink); }
.v5-header.is-mega-open .v5-nav__item.is-current:not(.is-open) > .v5-nav__link::after { transform: scaleX(0); }

/* No visible arrow: the disclosure button is a keyboard/touch control only. */
.v5-nav__toggle {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: -.35rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--v5-red);
	opacity: 0;
	pointer-events: none;
}
.v5-nav__toggle .v5-icon { width: 1rem; height: 1rem; transition: transform var(--v5-dur) var(--v5-ease); }
.v5-nav__toggle:focus-visible { opacity: 1; pointer-events: auto; }
.v5-nav__toggle[aria-expanded="true"] .v5-icon { transform: rotate(180deg); }

/* Mega panel -------------------------------------------------------------- */
.v5-mega {
	position: absolute;
	z-index: 90;
	top: 100%;
	right: 0;
	left: 0;
	padding-block: clamp(1.5rem, 3.4vh, 2.5rem) clamp(1.75rem, 4vh, 2.75rem);
	border-top: 1px solid var(--v5-line);
	background: #fff;
	box-shadow: 0 40px 60px -40px rgba(17, 17, 26, .35);
}
.v5-mega.is-entering { animation: v5-mega-in .26s var(--v5-ease) both; }
@keyframes v5-mega-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
/* An invisible bridge keeps slow diagonal pointer paths inside the hover zone. */
.v5-mega::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; }
.v5-mega__inner { display: grid; gap: 1.25rem; }
.v5-mega__label {
	margin: 0;
	color: var(--v5-red);
	font-family: var(--v5-font-display);
	font-size: 1.375rem;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.v5-mega__grid {
	display: grid;
	grid-template-columns: repeat(var(--v5-mega-cols, 4), minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.v5-mega__grid--3 { --v5-mega-cols: 3; }
.v5-mega__grid--2 { --v5-mega-cols: 2; }
.v5-mega__grid--1 { --v5-mega-cols: 1; }
.v5-mega__item { margin: 0; min-width: 0; }
.v5-mega__card {
	display: grid;
	gap: .7rem;
	color: var(--v5-ink);
	text-decoration: none;
}
.v5-mega__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--v5-radius-sm);
	background: var(--v5-mist);
}
.v5-mega__grid--3 .v5-mega__media { aspect-ratio: 2 / 1; }
.v5-mega__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--v5-ease); }
.v5-mega__monogram {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .2), transparent 50%),
		linear-gradient(135deg, var(--v5-red), var(--v5-red-600));
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: 3.25rem;
	line-height: 1;
}
.v5-mega__title {
	display: block;
	font-size: .875rem;
	font-weight: var(--v5-w-bold);
	line-height: 1.35;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: color var(--v5-dur) var(--v5-ease);
}
.v5-mega__card:hover { color: var(--v5-red); text-decoration: none; }
.v5-mega__card:hover .v5-mega__media img { transform: scale(1.05); }
.v5-mega__card:focus-visible { box-shadow: none; }
.v5-mega__card:focus-visible .v5-mega__media { box-shadow: var(--v5-focus); }
.v5-mega__item.is-current .v5-mega__title { color: var(--v5-red); }

@media (max-height: 47.5rem) and (min-width: 70.01rem) {
	.v5-mega__media,
	.v5-mega__grid--3 .v5-mega__media { aspect-ratio: 21 / 9; }
}

/* Menu toggle (mobile) ---------------------------------------------------- */
.v5-menu-toggle {
	display: none;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--v5-red);
	color: #fff;
}
.v5-menu-toggle__bars { position: relative; display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: currentColor; transition: background-color var(--v5-dur) var(--v5-ease); }
.v5-menu-toggle__bars::before,
.v5-menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--v5-dur) var(--v5-ease); }
.v5-menu-toggle__bars::before { top: -6px; }
.v5-menu-toggle__bars::after { top: 6px; }
.v5-menu-toggle[aria-expanded="true"] .v5-menu-toggle__bars { background: transparent; }
.v5-menu-toggle[aria-expanded="true"] .v5-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.v5-menu-toggle[aria-expanded="true"] .v5-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.v5-nav__drawer-footer { display: none; }

@media (max-width: 70rem) {
	:root { --v5-header-h: 4rem; }
	/* backdrop-filter would make the header the containing block of the fixed drawer */
	.v5-header { background: #fff; backdrop-filter: none; }
	.v5-header .v5-brand img { height: 3.25rem; }
	.v5-menu-toggle { display: grid; }
	.v5-header__search { display: none; }
	.v5-nav {
		position: fixed;
		z-index: 95;
		top: calc(var(--v5-header-h) + var(--v5-adminbar, 0px));
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 1rem var(--v5-gutter) 2.5rem;
		background: #fff;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity var(--v5-dur) var(--v5-ease), transform var(--v5-dur) var(--v5-ease), visibility 0s linear var(--v5-dur);
	}
	.v5-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.v5-nav__menu { flex-direction: column; gap: 0; }
	.v5-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--v5-line); }
	.v5-nav__link { flex: 1; min-height: 3.75rem; padding: 0; font-size: 1.0625rem; }
	.v5-nav__link::after { display: none; }
	.v5-nav__toggle {
		width: 3rem;
		height: 3rem;
		margin: 0;
		opacity: 1;
		pointer-events: auto;
		background: var(--v5-red-100);
	}
	.v5-nav__toggle .v5-icon { width: 1.25rem; height: 1.25rem; }
	.v5-mega {
		position: static;
		flex-basis: 100%;
		padding: 0 0 1.25rem;
		border: 0;
		box-shadow: none;
	}
	.v5-mega::before,
	.v5-mega__label { display: none; }
	.v5-mega__inner { padding: 0; }
	.v5-mega__grid,
	.v5-mega__grid--3,
	.v5-mega__grid--2 { grid-template-columns: 1fr; gap: .5rem; }
	.v5-mega__card { grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: 1rem; }
	.v5-mega__media,
	.v5-mega__grid--3 .v5-mega__media { aspect-ratio: 4 / 3; border-radius: 10px; }
	.v5-mega__monogram { font-size: 1.75rem; }
	.v5-mega__title { font-size: .8125rem; }
	.v5-nav__drawer-footer { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
	.v5-nav__drawer-footer .v5-button { flex: 1 1 12rem; }
	html.v5-nav-open { overflow: hidden; }
}
@media (max-width: 40rem) { .v5-header__cta { display: none; } }
@media (max-width: 70rem) { .admin-bar { --v5-adminbar: 46px; } }
@media (max-width: 70rem) and (min-width: 48.9rem) { .admin-bar { --v5-adminbar: 32px; } }

/* Minimal (checkout / Csend Háza) header: static, opaque (no sticky offset, no backdrop bleed) */
.v5-header.v5-header--minimal { position: relative; top: auto; background: #fff; backdrop-filter: none; }
.v5-header--minimal .v5-header__inner { gap: 1.5rem; }

/* Newsletter box (HONLAPTERV sample picture) ------------------------------- */
.v5-newsletter {
	padding-block: clamp(3rem, 2.25rem + 3vw, 5.5rem);
	background: var(--v5-white);
}
.v5-newsletter__box {
	max-width: 68rem;
	margin-inline: auto;
	padding: clamp(2rem, 1.25rem + 3vw, 3.75rem) clamp(1.25rem, .5rem + 3.2vw, 3.5rem);
	border-radius: var(--v5-radius-lg);
	background: var(--v5-red);
	color: #fff;
	text-align: center;
	box-shadow: var(--v5-shadow-red);
}
.v5-newsletter__title {
	margin: 0;
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.25rem);
	font-weight: var(--v5-w-display);
	line-height: 1.08;
	text-wrap: balance;
}
.v5-newsletter__lead {
	max-width: 46rem;
	margin: 1rem auto 0;
	color: #fff;
	font-size: var(--v5-fs-lead);
	line-height: 1.45;
	text-wrap: pretty;
}
.v5-newsletter__form {
	--v5-newsletter-gap: clamp(.85rem, .5rem + 1.6vw, 2rem);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem var(--v5-newsletter-gap);
	margin-top: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
}
.v5-newsletter__field { display: block; margin: 0; }
.v5-newsletter__field input {
	width: 100%;
	min-height: 3.5rem;
	padding: .85rem 1.15rem;
	border: 0;
	border-radius: var(--v5-radius-sm);
	background: #fff;
	color: var(--v5-ink);
	font-size: 1rem;
}
.v5-newsletter__field input::placeholder { color: var(--v5-muted); opacity: 1; }
.v5-newsletter__field input:focus-visible { outline: none; box-shadow: var(--v5-focus-on-red); }
.v5-newsletter__field--email {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc(50% - var(--v5-newsletter-gap) / 2);
}
.v5-newsletter__consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: .65rem;
	margin: .35rem 0 0;
	color: #fff;
	font-size: .9375rem;
	line-height: 1.45;
	text-align: left;
}
.v5-newsletter__consent input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--v5-ink); }
.v5-newsletter__consent a { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
.v5-newsletter__consent a:hover { color: #fff; text-decoration-thickness: 2px; }
.v5-newsletter__submit { grid-column: 1 / -1; justify-self: center; margin-top: .5rem; }
.v5-newsletter__action { margin: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem) 0 0; }
.v5-newsletter__thanks { display: grid; justify-items: center; gap: 1.25rem; outline: none; }
.v5-newsletter__photo { width: min(100%, 34rem); margin: 0; overflow: hidden; border-radius: var(--v5-radius); aspect-ratio: 16 / 10; }
.v5-newsletter__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.v5-newsletter__demo { margin: 0; color: #fff; font-size: .875rem; }

@media (max-width: 40rem) {
	.v5-newsletter__form { grid-template-columns: minmax(0, 1fr); }
	.v5-newsletter__field--email { width: 100%; }
	.v5-newsletter__submit { width: 100%; }
}

/* Footer (Bethesda red) ---------------------------------------------------- */
.v5-footer { background: var(--v5-red); color: var(--v5-on-red); font-size: .9375rem; line-height: 1.7; }
.v5-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.v5-footer a:hover { color: #fff; text-decoration-color: #fff; }
.v5-footer .v5-button--white,
.v5-footer .v5-button--white:hover { color: var(--v5-red); text-decoration: none; }
.v5-footer :focus-visible { box-shadow: var(--v5-focus-on-red); }
.v5-footer__main { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.v5-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
	gap: 2.5rem clamp(2rem, 5vw, 6rem);
	align-items: start;
}
.v5-footer__col h2 {
	margin: 0 0 1.1rem;
	color: #fff;
	font-family: var(--v5-font-text);
	font-size: .875rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.v5-footer__col p { margin: 0 0 .45rem; color: var(--v5-on-red); } /* 5.6.3: fehér, WCAG AA (4,62:1 a piroson) */
.v5-footer__col strong { color: #fff; }
.v5-footer__org { margin-bottom: .75rem; color: #fff; font-family: var(--v5-font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.v5-footer__donate { display: inline-flex; margin: 0 0 1rem; }
.v5-footer__social { align-self: end; justify-self: end; }
.v5-footer__social-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.v5-footer__social-list a {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: #fff;
	color: var(--v5-red);
	transition: transform var(--v5-dur) var(--v5-ease), background-color var(--v5-dur) var(--v5-ease);
}
.v5-footer__social-list a:hover { background: var(--v5-red-100); transform: translateY(-2px); }
.v5-footer__social-list .v5-icon { width: 1.35rem; height: 1.35rem; }
.v5-footer__legal { background: var(--v5-red-600); font-size: .8125rem; }
.v5-footer__legal .v5-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 3.5rem; padding-block: .85rem; }
.v5-footer__legal p { margin: 0; }
.v5-footer__legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.v5-footer__legal li { margin: 0; }
.v5-footer__cookie { padding: 0; border: 0; background: none; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: .2em; }
.v5-footer__cookie:hover { text-decoration-color: #fff; }

@media (max-width: 56rem) {
	.v5-footer__grid { grid-template-columns: 1fr; }
	.v5-footer__social { justify-self: start; }
	.v5-footer__social-list { grid-auto-flow: column; }
}
