/**
 * VagFix - header si navigatie.
 * Incarcat pe tot site-ul.
 */

.vf-header {
	--vfh-brand: #e64a30;
	--vfh-brand-deep: #c03a23;
	--vfh-ink: #16181d;
	--vfh-ink-soft: #3c424b;
	--vfh-body: #5d646d;
	--vfh-muted: #8b929b;
	--vfh-line: #e5e8ec;
	--vfh-line-soft: #eff1f4;
	--vfh-surface: #fff;
	--vfh-dark: #14151a;

	--vfh-ease: cubic-bezier(.22, 1, .36, 1);
	--vfh-shell: 1320px;
	--vfh-gutter: clamp(1rem, 3.5vw, 2.5rem);

	position: sticky;
	top: 0;
	z-index: 900;
	font-family: "Helvetica", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: transform .35s var(--vfh-ease);
	will-change: transform;
}

/* Se retrage la derulare in jos si revine la derulare in sus. */
.vf-header.is-hidden {
	transform: translateY(-100%);
}

.vf-header *,
.vf-header *::before,
.vf-header *::after,
.vf-drawer *,
.vf-drawer *::before,
.vf-drawer *::after {
	box-sizing: border-box;
}

.vf-header__shell {
	width: 100%;
	max-width: var(--vfh-shell);
	margin-inline: auto;
	padding-inline: var(--vfh-gutter);
}

.vf-skip {
	position: absolute;
	left: -9999px;
	z-index: 1000;
	padding: .8rem 1.2rem;
	background: var(--vfh-ink, #16181d);
	color: #fff;
	font-weight: 700;
	border-radius: 0 0 8px 0;
}

.vf-skip:focus {
	left: 0;
	top: 0;
}

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

.vf-header :focus-visible,
.vf-drawer :focus-visible {
	outline: 2px solid var(--vfh-brand, #e64a30);
	outline-offset: 2px;
	border-radius: 4px;
}

.vf-icon {
	flex: none;
}

/* ------------------------------------------------------------- Bara sus -- */

.vf-header__top {
	background: var(--vfh-dark);
	color: rgba(255, 255, 255, .72);
	font-size: .82rem;
	overflow: hidden;
	max-height: 46px;
	transition: max-height .4s var(--vfh-ease), opacity .3s var(--vfh-ease);
}

.vf-header.is-scrolled .vf-header__top {
	max-height: 0;
	opacity: 0;
}

.vf-header__topInner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 46px;
}

.vf-header__contact {
	display: flex;
	align-items: center;
	gap: .35rem 1.35rem;
	flex-wrap: wrap;
	min-width: 0;
}

.vf-header__contactLink {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: color .25s;
}

.vf-header__contactLink:hover,
.vf-header__contactLink:focus-visible {
	color: #fff;
}

.vf-social {
	display: flex;
	align-items: center;
	gap: .2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-social a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: rgba(255, 255, 255, .62);
	text-decoration: none;
	transition: color .25s, background-color .25s, transform .25s var(--vfh-ease);
}

.vf-social a:hover {
	color: #fff;
	background: rgba(255, 255, 255, .12);
	transform: translateY(-1px);
}

/* -------------------------------------------------------- Bara principala -- */

.vf-header__main {
	background: color-mix(in srgb, var(--vfh-surface) 88%, transparent);
	backdrop-filter: blur(14px) saturate(1.6);
	-webkit-backdrop-filter: blur(14px) saturate(1.6);
	border-bottom: 1px solid var(--vfh-line-soft);
	transition: box-shadow .35s var(--vfh-ease);
}

.vf-header.is-scrolled .vf-header__main {
	box-shadow: 0 8px 26px -20px rgba(16, 18, 23, .55);
}

.vf-header__mainInner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	min-height: 76px;
	transition: min-height .35s var(--vfh-ease);
}

.vf-header.is-scrolled .vf-header__mainInner {
	min-height: 64px;
}

.vf-header__logo {
	display: flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.vf-header__logoImg {
	display: block;
	width: auto;
	height: 46px;
	max-width: 220px;
	object-fit: contain;
	transition: height .35s var(--vfh-ease);
}

.vf-header.is-scrolled .vf-header__logoImg {
	height: 38px;
}

.vf-header__logoText {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--vfh-ink);
	letter-spacing: -.02em;
}

.vf-header__actions {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-inline-start: auto;
	flex: none;
}

/* --------------------------------------------------------------- Buton apel -- */

.vf-callBtn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: var(--vfh-btn-h, 52px);
	padding: .3rem 1.15rem .3rem .95rem;
	border-radius: 999px;
	background: var(--vfh-brand);
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--vfh-brand) 90%, transparent);
	transition: background-color .3s var(--vfh-ease), transform .3s var(--vfh-ease), box-shadow .3s var(--vfh-ease);
}

.vf-callBtn:hover {
	background: var(--vfh-brand-deep);
	color: #fff;
	transform: translateY(-1px);
}

.vf-callBtn:active {
	transform: translateY(0) scale(.98);
}

.vf-callBtn .vf-icon {
	width: 19px;
	height: 19px;
}

.vf-callBtn__label {
	display: flex;
	flex-direction: column;
}

.vf-callBtn__label small {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .85;
}

.vf-callBtn__label strong {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- WhatsApp -- */

.vf-waBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: var(--vfh-btn-h, 52px);
	padding: .3rem 1.15rem;
	border-radius: 999px;
	background: var(--vfh-wa, #25d366);
	color: #fff;
	font-size: .92rem;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 12px 26px -16px rgba(37, 211, 102, .95);
	transition: background-color .3s var(--vfh-ease), transform .3s var(--vfh-ease);
}

.vf-waBtn:hover {
	background: #1da851;
	color: #fff;
	transform: translateY(-1px);
}

.vf-waBtn:active {
	transform: translateY(0) scale(.98);
}

.vf-waBtn .vf-icon {
	width: 19px;
	height: 19px;
}

/* -------------------------------------------------------------- Navigatie -- */

.vf-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.vf-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(.15rem, 1vw, .9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-nav__item {
	position: static;
}

.vf-header .vf-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .55rem .1rem;
	border: 0;
	background: none;
	font: inherit;
	font-size: .95rem;
	font-weight: 650;
	letter-spacing: -.012em;
	line-height: 1.3;
	color: var(--vfh-ink-soft);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .25s var(--vfh-ease);
}

/* Linia de sub element, care creste dinspre stanga. */
.vf-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--vfh-brand);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .35s var(--vfh-ease);
}

.vf-header .vf-nav__link:hover,
.vf-header .vf-nav__link:focus,
.vf-header .vf-nav__link[aria-expanded="true"] {
	background: none;
	border: 0;
	color: var(--vfh-ink);
	text-decoration: none;
}

.vf-nav__link:hover::after,
.vf-nav__link[aria-expanded="true"]::after,
.vf-nav__link.is-current::after {
	transform: scaleX(1);
}

.vf-nav__link.is-current {
	color: var(--vfh-ink);
}

.vf-nav__item + .vf-nav__item .vf-nav__link {
	margin-inline-start: clamp(.5rem, 1.1vw, 1rem);
}

.vf-nav__chev {
	transition: transform .35s var(--vfh-ease);
	opacity: .65;
}

.vf-nav__link[aria-expanded="true"] .vf-nav__chev {
	transform: rotate(180deg);
	opacity: 1;
}

/* ------------------------------------------------------------- Panouri -- */

.vf-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--vfh-surface);
	border-top: 1px solid var(--vfh-line-soft);
	border-bottom: 1px solid var(--vfh-line);
	box-shadow: 0 30px 60px -30px rgba(16, 18, 23, .35);
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity .28s var(--vfh-ease), transform .28s var(--vfh-ease);
}

.vf-panel.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.vf-panel__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(1.25rem, 3vw, 3rem);
	width: 100%;
	max-width: var(--vfh-shell);
	margin-inline: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem) var(--vfh-gutter);
}

/* Dropdown simplu: nu se intinde pe toata latimea. */
.vf-panel:not(.vf-panel--mega) .vf-panel__inner {
	grid-template-columns: minmax(240px, 320px);
	justify-content: start;
}

.vf-panel__col ul {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-panel__colTitle {
	margin: 0 0 .85rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--vfh-line-soft);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--vfh-brand-deep);
}

.vf-nav__panelLink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .55rem .7rem;
	border-radius: 10px;
	color: var(--vfh-body);
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color .25s var(--vfh-ease), color .25s var(--vfh-ease), padding-inline-start .25s var(--vfh-ease);
}

.vf-nav__panelLink svg {
	opacity: 0;
	transform: translateX(-5px);
	color: var(--vfh-brand);
	transition: opacity .25s var(--vfh-ease), transform .25s var(--vfh-ease);
}

.vf-nav__panelLink:hover,
.vf-nav__panelLink:focus-visible {
	background: color-mix(in srgb, var(--vfh-brand) 7%, transparent);
	color: var(--vfh-ink);
	padding-inline-start: 1rem;
}

.vf-nav__panelLink:hover svg,
.vf-nav__panelLink:focus-visible svg {
	opacity: 1;
	transform: translateX(0);
}

.vf-nav__panelLink.is-current {
	color: var(--vfh-brand-deep);
	background: color-mix(in srgb, var(--vfh-brand) 9%, transparent);
}

/* ---------------------------------------------------------------- Burger -- */

.vf-header .vf-burger {
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--vfh-line);
	border-radius: 14px;
	background: var(--vfh-surface);
	color: var(--vfh-ink);
	cursor: pointer;
	transition: border-color .25s, background-color .25s;
}

.vf-header .vf-burger:hover,
.vf-header .vf-burger:focus {
	background: var(--vfh-surface);
	border-color: var(--vfh-ink);
	color: var(--vfh-ink);
}

.vf-burger__box {
	display: grid;
	gap: 4px;
	width: 20px;
}

.vf-burger__bar {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .35s var(--vfh-ease), opacity .2s var(--vfh-ease);
}

.vf-burger[aria-expanded="true"] .vf-burger__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.vf-burger[aria-expanded="true"] .vf-burger__bar:nth-child(2) {
	opacity: 0;
}

.vf-burger[aria-expanded="true"] .vf-burger__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------------------------------------------------------- Breakpoint -- */

@media (max-width: 1200px) {
	.vf-nav {
		display: none;
	}

	.vf-header .vf-burger {
		display: grid;
	}

	.vf-header__mainInner {
		min-height: 66px;
	}

	.vf-header.is-scrolled .vf-header__mainInner {
		min-height: 60px;
	}

	.vf-header__logoImg,
	.vf-header.is-scrolled .vf-header__logoImg {
		height: 36px;
		max-width: 160px;
	}

	/*
	 * Sub prag butonul de apel devine rotund, doar cu iconita, la fel ca
	 * WhatsApp: altfel numarul il face lat de ~200px si impinge burger-ul
	 * in marginea ecranului, unde e greu de apasat.
	 */
	.vf-callBtn {
		width: 46px;
		padding: 0;
		justify-content: center;
	}

	.vf-callBtn__label {
		display: none;
	}

	.vf-callBtn .vf-icon {
		width: 21px;
		height: 21px;
	}

	/*
	 * Apel si WhatsApp sunt actiuni de contact, burger-ul e navigatie: le
	 * separam ca sa nu se atinga zonele de tap pe ecran mic.
	 */
	.vf-header .vf-burger {
		margin-inline-start: .75rem;
	}

	/* Pe mobil ambele butoane au aceeasi inaltime. */
	.vf-header__actions {
		--vfh-btn-h: 46px;
	}

	.vf-waBtn {
		width: 46px;
		min-height: 46px;
		padding: 0;
	}

	.vf-waBtn__label {
		display: none;
	}

	.vf-waBtn .vf-icon {
		width: 21px;
		height: 21px;
	}
}

@media (max-width: 720px) {
	.vf-header__contact {
		gap: .3rem .9rem;
		font-size: .78rem;
	}

	.vf-header__contactLink--mail {
		display: none;
	}

	.vf-social {
		display: none;
	}

	.vf-header__topInner {
		justify-content: center;
		min-height: 40px;
	}

	.vf-header__top {
		max-height: 40px;
	}
}

@media (max-width: 400px) {
	/* Pe ecrane inguste stramtam distantele, nu butoanele. */
	.vf-header__actions {
		gap: .4rem;
	}

	.vf-header .vf-burger {
		margin-inline-start: .6rem;
	}

	.vf-header__logoImg,
	.vf-header.is-scrolled .vf-header__logoImg {
		max-width: 132px;
	}
}

/* ---------------------------------------------------------------- Drawer -- */

.vf-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.vf-drawer[hidden] {
	display: none;
}

.vf-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 13, 16, .55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .35s var(--vfh-ease, cubic-bezier(.22, 1, .36, 1));
}

.vf-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 90vw);
	background: #fff;
	box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .6);
	transform: translateX(100%);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1);
	overscroll-behavior: contain;
}

.vf-drawer.is-open .vf-drawer__backdrop {
	opacity: 1;
}

.vf-drawer.is-open .vf-drawer__panel {
	transform: translateX(0);
}

.vf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid #eff1f4;
}

.vf-drawer__title {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8b929b;
}

.vf-drawer .vf-drawer__close {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #e5e8ec;
	border-radius: 12px;
	background: #fff;
	color: #16181d;
	cursor: pointer;
	transition: background-color .25s, border-color .25s;
}

.vf-drawer .vf-drawer__close:hover,
.vf-drawer .vf-drawer__close:focus {
	background: #f6f7f9;
	border-color: #16181d;
	color: #16181d;
}

.vf-drawer__nav {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: .5rem 0 1rem;
}

.vf-drawer__list,
.vf-drawer__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-drawer .vf-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 54px;
	padding: .85rem 1.25rem;
	border: 0;
	background: none;
	font: inherit;
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: -.01em;
	text-align: start;
	color: #16181d;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}

.vf-drawer .vf-drawer__row:hover,
.vf-drawer .vf-drawer__row:focus,
.vf-drawer .vf-drawer__row:active {
	background: #f6f7f9;
	color: #16181d;
}

.vf-drawer .vf-drawer__acc[aria-expanded="true"]:hover,
.vf-drawer .vf-drawer__acc[aria-expanded="true"]:focus {
	color: #c03a23;
}

.vf-drawer__row.is-current {
	color: #c03a23;
}

.vf-drawer .vf-drawer__row--sub {
	min-height: 48px;
	padding-block: .7rem;
	padding-inline-start: 1.9rem;
	font-size: .95rem;
	font-weight: 600;
	color: #5d646d;
}

.vf-drawer__row--sub.is-current {
	color: #c03a23;
	background: color-mix(in srgb, #e64a30 8%, transparent);
}

.vf-drawer__chev {
	flex: none;
	color: #8b929b;
	transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.vf-drawer__acc[aria-expanded="true"] {
	color: #c03a23;
}

.vf-drawer__acc[aria-expanded="true"] .vf-drawer__chev {
	transform: rotate(180deg);
	color: #c03a23;
}

.vf-drawer__sub {
	background: #fbfbfc;
	border-block: 1px solid #eff1f4;
	padding-block: .4rem;
}

.vf-drawer__sub[hidden] {
	display: none;
}

.vf-drawer__groupTitle {
	margin: .7rem 0 .3rem;
	padding-inline: 1.25rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8b929b;
}

.vf-drawer__foot {
	flex: none;
	display: grid;
	gap: .5rem;
	padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
	border-top: 1px solid #eff1f4;
	background: #fff;
}

.vf-drawer__call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 50px;
	border-radius: 14px;
	background: #e64a30;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: background-color .25s;
}

.vf-drawer__call:hover {
	background: #c03a23;
	color: #fff;
}

.vf-drawer__call--wa {
	background: #25d366;
}

.vf-drawer__call--wa:hover {
	background: #1da851;
}

.vf-drawer__call--ghost {
	background: #fff;
	color: #16181d;
	border: 1px solid #e5e8ec;
}

.vf-drawer__call--ghost:hover {
	background: #f6f7f9;
	color: #16181d;
}

.vf-drawer__mail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .4rem;
	color: #5d646d;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}

.vf-drawer__mail:hover {
	color: #16181d;
}

.vf-social--drawer {
	justify-content: center;
	gap: .35rem;
	padding-top: .2rem;
}

.vf-social--drawer a {
	width: 40px;
	height: 40px;
	color: #5d646d;
	background: #f6f7f9;
}

.vf-social--drawer a:hover {
	color: #fff;
	background: #16181d;
}

/* Blocheaza scroll-ul paginii cat timp drawer-ul e deschis. */
body.vf-drawer-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.vf-header,
	.vf-drawer,
	.vf-header *,
	.vf-drawer * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
