/* ==========================================================================
   Header — ports Elementor template 40
   ========================================================================== */

.bevi-header {
	position: relative;
	z-index: 50;
	background: var(--bevi-header-bg);
}

/* ---------- Top bar ---------- */

.bevi-topbar {
	background: var(--bevi-topbar-bg);
	color: var(--bevi-topbar-text);
	font-size: 14px;
}

.bevi-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
	padding-block: 5px;
}

.bevi-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bevi-topbar-text);
	font-weight: var(--bevi-fw-heading);
	letter-spacing: 0.02em;
}

.bevi-topbar__phone:hover,
.bevi-topbar__phone:focus {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Socials ---------- */

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

.bevi-socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: var(--bevi-primary);
	background: var(--bevi-card-bg);
	border-radius: 3px;
	transition: opacity 0.2s ease;
}

.bevi-socials__link:hover,
.bevi-socials__link:focus {
	opacity: 0.82;
	text-decoration: none;
}

/* Footer variant: white circles on black */
.bevi-socials--footer .bevi-socials__link {
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

/* ---------- Main bar ---------- */

.bevi-header__main {
	background: var(--bevi-header-bg);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.bevi-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--bevi-header-height);
	padding-block: 10px;
}

.bevi-header__brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.bevi-header__brand img {
	width: auto;
	height: 68px;
	object-fit: contain;
}

.bevi-header__sitename {
	font-family: var(--bevi-font);
	font-weight: var(--bevi-fw-heading);
	font-size: 20px;
	color: var(--bevi-text-strongest);
}

/* ---------- Nav ---------- */

.bevi-nav {
	margin-left: auto;
}

.bevi-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bevi-nav__list li {
	position: relative;
}

.bevi-nav__list a {
	display: inline-block;
	font-family: var(--bevi-font);
	font-weight: var(--bevi-fw-heading);
	font-size: 16px;
	color: var(--bevi-text-strong);
	padding-block: 6px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.bevi-nav__list a:hover,
.bevi-nav__list a:focus {
	color: var(--bevi-primary);
	border-bottom-color: var(--bevi-primary);
	text-decoration: none;
}

.bevi-nav__list .current-menu-item > a,
.bevi-nav__list .current_page_item > a,
.bevi-nav__list .current-menu-ancestor > a {
	color: var(--bevi-primary);
	border-bottom-color: var(--bevi-primary);
}

/* Parent items with children get a caret */
.bevi-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 7px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	transform: translateY(2px);
}

/* Sub-menus */
.bevi-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	background: var(--bevi-card-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: var(--bevi-radius);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 60;
}

.bevi-nav__list li:hover > .sub-menu,
.bevi-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bevi-nav__list .sub-menu a {
	display: block;
	padding: 8px 18px;
	border-bottom: 0;
	font-size: 15px;
	white-space: nowrap;
}

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

.bevi-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.bevi-burger__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--bevi-text-strongest);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

/* ---------- Mobile ---------- */

@media (max-width: 992px) {
	.bevi-burger {
		display: flex;
	}

	/* The nav carries `margin-left:auto`; hiding it would collapse the burger
	   back next to the logo, so re-assert the push on the actions wrapper. */
	.bevi-header__actions {
		margin-left: auto;
	}

	.bevi-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-left: 0;
		background: var(--bevi-card-bg);
		box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
		display: none;
	}

	.bevi-nav.is-open {
		display: block;
	}

	.bevi-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
	}

	/*
	 * `display: block` is load-bearing. The desktop rule makes these links
	 * inline-block so the current-item underline hugs the text; left inline at
	 * mobile, each row's separator is only as wide as its own label, which reads
	 * as a set of ragged half-underlines rather than list dividers.
	 */
	.bevi-nav__list a {
		display: block;
		padding: 13px var(--bevi-gutter);
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		font-size: 18px;
	}

	.bevi-nav__list a:hover,
	.bevi-nav__list a:focus {
		border-bottom-color: rgba(0, 0, 0, 0.06);
		background: var(--bevi-bg-lighter);
	}

	/*
	 * In the drawer the separator is a divider, not a state indicator — a
	 * brand-orange full-width rule under the active row looks like a mistake.
	 * Keep every divider neutral and show the current item through its text
	 * colour alone (still inherited from the desktop rule).
	 */
	.bevi-nav__list .current-menu-item > a,
	.bevi-nav__list .current_page_item > a,
	.bevi-nav__list .current-menu-ancestor > a {
		border-bottom-color: rgba(0, 0, 0, 0.06);
	}

	/* Sub-menus become static, indented lists */
	.bevi-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		background: var(--bevi-bg-lighter);
	}

	.bevi-nav__list .sub-menu a {
		padding-left: calc(var(--bevi-gutter) + 18px);
		font-size: 16px;
	}

	.bevi-header__brand img {
		height: 56px;
	}

	.bevi-header__inner {
		min-height: 78px;
	}
}

@media (max-width: 560px) {
	.bevi-topbar__inner {
		font-size: 13px;
	}

	.bevi-header__brand img {
		height: 48px;
	}
}
