/*
 * Woodvill by anyweb – fejléc, lábléc és a nem Elementoros oldalak alapstílusa.
 * Az általános szabályok szándékosan minimálisak, hogy ne írják felül az Elementor beállításait.
 * A színeket a --wv-* változók adják, ezeket a beállítási oldal írja ki.
 */

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

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

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

:root {
	--wv-font: "Nunito", Arial, sans-serif;
	--wv-content-width: 1170px;
}

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

body {
	margin: 0;
	color: var(--wv-ink);
	background: #fff;
	font-family: var(--wv-font);
	font-size: 16px;
	line-height: 1.7;
}

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

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

.wv-skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip-path: none;
	color: var(--wv-ink);
	background: #fff;
}

.wv-container {
	width: min(var(--wv-content-width), 100% - 48px);
	margin-inline: auto;
}

.wv-main:focus {
	outline: 0;
}

/* Fejléc */
.wv-header {
	color: var(--wv-on-dark);
	background: var(--wv-dark);
}

.wv-header.is-sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.wv-header a {
	color: inherit;
	text-decoration: none;
}

.wv-header :focus-visible {
	outline: 3px solid var(--wv-on-dark);
	outline-offset: 3px;
}

.wv-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 10px;
}

.wv-logo {
	display: block;
}

.wv-logo__img {
	display: block;
	width: var(--wv-logo-width);
	height: auto;
}

.wv-nav {
	flex: 1 1 auto;
}

.wv-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.2px;
	line-height: 1.5;
	text-transform: uppercase;
	list-style: none;
}

.wv-nav__list li {
	position: relative;
}

.wv-nav__list a {
	display: block;
	padding: 14px 20px;
}

.wv-header .wv-nav__list a:hover,
.wv-header .wv-nav__list .current-menu-item > a,
.wv-header .wv-nav__list .current-menu-ancestor > a {
	color: var(--wv-nav-active);
}

.wv-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	background: var(--wv-dark);
	list-style: none;
}

.wv-nav__list li:hover > .sub-menu,
.wv-nav__list li:focus-within > .sub-menu {
	display: block;
}

.wv-phone {
	display: inline-block;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.5;
	white-space: nowrap;
	background: var(--wv-brand);
}

.wv-header a.wv-phone {
	color: var(--wv-on-brand);
}

.wv-header a.wv-phone:hover {
	color: var(--wv-on-brand);
	background: var(--wv-brand-hover);
}

.wv-phone__icon {
	display: none;
}

.wv-burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.wv-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--wv-on-dark);
}

/* Az Elementor Webhely-beállításai minden gombra hatnak, ez itt felülírja őket. */
.wv-header .wv-burger,
.wv-header .wv-burger:hover,
.wv-header .wv-burger:focus,
.wv-offcanvas .wv-offcanvas__close,
.wv-offcanvas .wv-offcanvas__close:hover,
.wv-offcanvas .wv-offcanvas__close:focus {
	color: var(--wv-on-dark);
	background: transparent;
	border: 1px solid var(--wv-on-dark);
	border-radius: 0;
}

/* Off-canvas mobilmenü */
html:has(.wv-offcanvas[open]) {
	overflow: hidden;
}

.wv-offcanvas {
	position: fixed;
	inset: 0 0 0 auto;
	box-sizing: border-box;
	width: min(320px, 86vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 8px 24px 24px;
	overflow-x: hidden;
	overflow-y: auto;
	color: var(--wv-on-dark);
	background: var(--wv-dark);
	border: 0;
}

.wv-offcanvas[open] {
	display: flex;
	flex-direction: column;
	animation: wv-offcanvas-in 0.28s ease;
}

.wv-offcanvas.is-closing {
	animation: wv-offcanvas-out 0.28s ease forwards;
}

.wv-offcanvas::backdrop {
	background: #161913d9;
	animation: wv-fade-in 0.28s ease;
}

.wv-offcanvas.is-closing::backdrop {
	animation: wv-fade-out 0.28s ease forwards;
}

.wv-offcanvas::before {
	position: absolute;
	right: -60px;
	bottom: -40px;
	width: 300px;
	height: 260px;
	content: "";
	background: var(--wv-ink);
	clip-path: polygon(0 0, 22% 0, 50% 62%, 78% 0, 100% 0, 50% 100%);
	pointer-events: none;
}

.wv-offcanvas > * {
	position: relative;
}

.wv-offcanvas a {
	color: inherit;
	text-decoration: none;
}

.wv-offcanvas :focus-visible {
	outline: 3px solid var(--wv-on-dark);
	outline-offset: 3px;
}

.wv-offcanvas__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.wv-offcanvas__logo-img {
	display: block;
	width: 73px;
	height: auto;
}

.wv-offcanvas .wv-offcanvas__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.wv-offcanvas__list,
.wv-offcanvas__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wv-offcanvas__list {
	margin-bottom: 24px;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.3;
	text-transform: uppercase;
}

.wv-offcanvas__list > li {
	border-top: 1px solid #ffffff15;
}

.wv-offcanvas__list > li:last-child {
	border-bottom: 1px solid #ffffff15;
}

.wv-offcanvas__list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
}

.wv-offcanvas__list > li > a::after {
	color: var(--wv-nav-active);
	content: "→";
}

.wv-offcanvas__list .sub-menu {
	padding: 0 0 10px 14px;
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
}

.wv-offcanvas__list .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.wv-offcanvas .wv-offcanvas__list a:hover,
.wv-offcanvas .wv-offcanvas__list .current-menu-item > a,
.wv-offcanvas .wv-offcanvas__list .current-menu-ancestor > a {
	color: var(--wv-nav-active);
}

.wv-offcanvas a.wv-offcanvas__phone {
	display: block;
	padding: 16px;
	color: var(--wv-on-brand);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.3;
	text-align: center;
	background: var(--wv-brand);
}

.wv-offcanvas a.wv-offcanvas__phone:hover {
	background: var(--wv-brand-hover);
}

.wv-offcanvas__email {
	display: block;
	padding-block: 14px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.wv-offcanvas__note {
	margin: auto 0 0;
	padding-top: 24px;
	color: var(--wv-footer-bottom-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

@keyframes wv-offcanvas-in {
	from {
		transform: translateX(100%);
	}
}

@keyframes wv-offcanvas-out {
	to {
		transform: translateX(100%);
	}
}

@keyframes wv-fade-in {
	from {
		opacity: 0;
	}
}

@keyframes wv-fade-out {
	to {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wv-offcanvas[open],
	.wv-offcanvas.is-closing,
	.wv-offcanvas::backdrop,
	.wv-offcanvas.is-closing::backdrop {
		animation: none;
	}
}

/* Lábléc */
.wv-footer {
	color: var(--wv-footer-ink);
	font-size: 14px;
	background: var(--wv-brand);
}

.wv-footer a {
	color: inherit;
	text-decoration: none;
}

.wv-footer a:hover {
	text-decoration: underline;
}

.wv-footer :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.wv-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px 85px;
	padding-block: 65px;
}

.wv-footer__logo {
	display: inline-block;
}

.wv-footer__logo-img {
	display: block;
	width: var(--wv-footer-logo-width);
	height: auto;
	margin-bottom: 26px;
}

.wv-footer__text {
	max-width: 220px;
	margin: 0;
}

.wv-footer__title {
	margin: 0 0 20px;
	font-size: 27px;
	font-weight: 400;
	line-height: 1.25;
}

.wv-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wv-footer__menu li {
	margin-bottom: 10px;
}

.wv-footer__address {
	display: flex;
	flex-direction: column;
	font-style: normal;
}

.wv-footer__bottom {
	color: var(--wv-footer-bottom-ink);
	font-size: 13px;
	background: var(--wv-dark);
}

.wv-footer__bottom a:hover {
	color: var(--wv-on-dark);
}

.wv-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 22px;
}

.wv-footer__bottom p {
	margin: 0;
}

/* Nem Elementorral készült oldalak */
.wv-entry {
	padding-block: 64px 88px;
}

.wv-entry__title {
	margin: 0 0 32px;
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 900;
	line-height: 1.1;
}

.wv-entry__content > * {
	max-width: 760px;
}

.wv-entry__content a,
.wv-list-item a,
.wv-entry p a {
	color: var(--wv-brand-dark);
}

.wv-list-item {
	padding-block: 24px;
	border-top: 1px solid var(--wv-line);
}

.wv-list-item__title {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.3;
}

.wv-button {
	display: inline-block;
	padding: 17px 25px;
	color: var(--wv-on-brand);
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--wv-brand);
}

.wv-button:hover {
	color: var(--wv-on-brand);
	background: var(--wv-brand-hover);
}

@media (max-width: 900px) {
	.wv-header .wv-container {
		width: calc(100% - 40px);
	}

	.wv-header__inner {
		gap: 8px;
		padding-block: 8px;
	}

	.wv-logo {
		margin-right: auto;
	}

	.wv-logo__img {
		width: min(var(--wv-logo-width), 73px);
	}

	.wv-burger:not([hidden]) {
		display: flex;
	}

	.wv-phone {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

	.wv-phone__icon {
		display: block;
	}

	.wv-phone__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.wv-nav {
		order: 3;
		flex-basis: 100%;
	}

	.wv-nav__list {
		flex-direction: column;
	}

	.wv-nav__list a {
		padding: 12px 0;
	}

	.wv-nav__list .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 16px;
	}

	.wv-nav.menu-ready {
		display: none;
	}

	/* Nem Elementoros oldalak címe mobilon. */
	.wv-entry {
		padding-block: 40px 56px;
	}

	.wv-entry__title {
		margin-bottom: 24px;
		font-size: clamp(28px, 7.5vw, 40px);
		hyphens: auto;
	}

	.wv-list-item__title {
		font-size: 20px;
	}
}

@media (min-width: 901px) {
	/* Asztali nézetben az off-canvas panel nem nyílhat meg. */
	.wv-offcanvas {
		display: none;
	}
}

@media (max-width: 600px) {
	/* Ezen a szélességen a WordPress admin sávja együtt görög az oldallal. */
	.wv-header.is-sticky {
		top: 0;
	}
}
