/**
 * Fő stíluslap. Minden érték a tokens.css változóiból jön.
 * Nincs build-lépés: ez a fájl közvetlenül töltődik be.
 */

/* ---------- Alap ---------- */

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: 1.55;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--color-teal); }

h1, h2, h3 {
	margin: 0 0 .5em;
	line-height: 1.1;
	font-weight: var(--weight-bold);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 999;
	width: auto; height: auto;
	margin: 0; padding: 12px 20px;
	clip: auto; clip-path: none;
	background: var(--color-teal);
	color: #fff;
}

/* ---------- Fejléc (Figma: Header/Variant2, node 183:2239) ---------- */

html { scroll-padding-top: var(--header-height); }

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	background: var(--color-bg);
	transition: transform .25s ease, box-shadow .25s ease;
}

/* Smart sticky: theme.js hides the header while scrolling down and brings it
   back on the first scroll up. */
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px))); }

@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	max-width: var(--container-wide);
	min-height: var(--header-height);
	margin-inline: auto;
	padding: 12px var(--gutter);
}

.site-header__end {
	display: flex;
	align-items: center;
	gap: 88px;   /* Figma: a menü és a jobb oldali blokk távolsága */
}

/* -- Logó: a "30" jel mellett kétsoros szóvédjegy -- */

.site-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	text-decoration: none;
}

.site-logo__mark { display: block; width: 87px; height: auto; }

.site-logo__wordmark {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-logo__wordmark img { display: block; }

/* -- Navigáció -- */

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;      /* Figma: 24px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__link {
	font-size: var(--text-nav);
	font-weight: var(--weight-medium);
	color: var(--color-teal);
	text-decoration: none;
	/* A tervben a menüpontok nagy kezdőbetűsek, de `capitalize`-t szándékosan
	   NEM használunk: az "rmdsz.ro"-ból "Rmdsz.Ro"-t csinálna. A pontos írásmód
	   az adminból, a menüpont címéből jön. */
	white-space: nowrap;
	transition: color .15s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--color-orange); }

.site-nav__link.is-current {
	color: var(--color-orange);
	font-weight: var(--weight-bold);
}

/* -- Jobb oldali blokk: nyelvváltó + Facebook -- */

.site-header__utils {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.lang-switch { position: relative; }

.lang-switch__button {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	font-family: inherit;
	font-size: var(--text-nav);
	font-weight: var(--weight-medium);
	color: var(--color-teal);
	text-transform: uppercase;
	background: none;
	border: 0;
	cursor: pointer;
}

.lang-switch__list {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	display: none;
	min-width: 80px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.lang-switch__list a {
	display: block;
	padding: 6px 16px;
	font-size: var(--text-nav);
	text-decoration: none;
}

.lang-switch__button[aria-expanded="true"] + .lang-switch__list { display: block; }

.site-header__social { display: flex; }
.site-header__social img { display: block; }

/* -- Mobil menügomb: a desktop tervben nincs, a mobil képernyőn igen -- */

.site-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.site-nav-toggle__bars,
.site-nav-toggle__bars::before,
.site-nav-toggle__bars::after {
	display: block;
	width: 26px; height: 2px;
	background: var(--color-teal);
	transition: transform .2s ease;
}

.site-nav-toggle__bars {
	position: relative;
	margin-inline: auto;
}

.site-nav-toggle__bars::before,
.site-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav-toggle__bars::before { top: -8px; }
.site-nav-toggle__bars::after  { top: 8px; }

@media (max-width: 1100px) {
	.site-header__end { gap: 28px; }
	.site-nav__list { gap: 18px; }
	.site-nav__link { font-size: 16px; }
}

@media (max-width: 900px) {
	.site-nav-toggle { display: block; }

	.site-header__end {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 24px var(--gutter) 32px;
		background: #fff;
		box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
	}

	.site-header__end[hidden] { display: none; }

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

/* ---------- Lábléc (Figma "Footer", node 121:1739) ---------- */

.site-footer { background: var(--color-bg); }

/* A tervben a tartalomsáv 1128.999px, bal margó 381px, felül 60px. */
.site-footer__inner {
	display: grid;
	grid-template-columns: 496px auto 1fr;
	align-items: start;
	gap: 0;
	width: 100%;
	max-width: 1129px;
	margin-inline: auto;
	padding: 60px var(--gutter) 70px;
}

.site-footer .site-logo { align-self: start; }

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 18px;                        /* Figma: gap-x/y 18px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	font-size: var(--text-nav);
	font-weight: var(--weight-medium);
	color: var(--color-teal);
	text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible { color: var(--color-orange); }

.site-footer__social { justify-self: start; padding-left: 100px; }

.site-footer__social-title {
	margin: 0;
	font-size: 22px;
	font-weight: var(--weight-bold);
	line-height: 2.16;                /* Figma */
	text-transform: uppercase;
	color: var(--color-teal-dark);
}

.site-footer__social-list {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.site-footer__social-list a { display: flex; }
.site-footer__social-list img { display: block; }

/* A kormányzati támogatás szalagja teljes szélességben zárja a láblécet. */
.site-footer__support {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 1000px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px 24px;
		padding-top: 48px;
	}
	.site-footer .site-logo { grid-column: 1 / -1; }
	.site-footer__social { padding-left: 0; }
}

@media (max-width: 600px) {
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
