/* Fonts */
:root {
	--asr-font-serif: 'Sora', sans-serif;
	--asr-font-sans:  'Manrope', system-ui, sans-serif;
}

/* ==========================================================================
   ASR Mizar — Header & Topbar Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.asr-topbar {
	width: 100%;
	position: relative;
	z-index: 1001;
}

.asr-topbar__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.asr-topbar__text {
	font-size: 12px;
	font-weight: 500;
	opacity: .75;
	letter-spacing: .03em;
}

.asr-topbar__contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

.asr-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	opacity: .85;
	transition: opacity 180ms ease;
	white-space: nowrap;
}

.asr-topbar__link:hover {
	opacity: 1;
	text-decoration: none;
}

@media (max-width: 640px) {
	.asr-topbar__text { display: none; }
	.asr-topbar__contact { gap: 12px; margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Header wrapper
   -------------------------------------------------------------------------- */
#asr-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	width: 100%;
	transition:
		background 280ms ease,
		box-shadow 280ms ease,
		backdrop-filter 280ms ease;

	/* Stare inițială */
	background: #ffffff;
	border-bottom: 1px solid #E5E5E5;
	box-shadow: none;
}

/* Pe homepage — fundal alb identic cu restul paginilor */
#asr-header.asr-header--transparent {
	background: #ffffff;
	box-shadow: none;
}

/* Scrolled pe homepage — blur alb */
#asr-header.asr-header--transparent.is-scrolled {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow: 0 1px 0 #E5E5E5, 0 4px 24px rgba(0, 0, 0, .06);
}

/* Pe celelalte pagini — sticky scrolled */
#asr-header.is-scrolled:not(.asr-header--transparent) {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow: 0 1px 0 #E5E5E5, 0 4px 24px rgba(0, 0, 0, .06);
}



/* Pe pagini non-homepage, headerul sticky ocupă spațiu — compensăm */
body:not(.asr-homepage) #wrapper {
	padding-top: 0;
}

/* Pe homepage, headerul e absolute — hero-ul ocupă tot ecranul */
.asr-homepage #asr-hero {
	margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Inner layout: logo | nav centrat | actions
   -------------------------------------------------------------------------- */
.asr-header__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
	height: 80px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.asr-header__logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.asr-header__logo-img {
	height: 68px;
	width: auto;
	max-width: 260px;
	display: block;
	transition: opacity 220ms ease;
	padding-block: 6px;
	box-sizing: content-box;
}

@media (max-width: 900px) {
	.asr-header__logo-img {
		height: 52px;
	}
}

/* Logo colorat — vizibil pe fundal alb */
.asr-header__logo-img--white {
	display: none;
}

/* Pe homepage — logo normal (fundal alb) */
#asr-header.asr-header--transparent:not(.is-scrolled) .asr-header__logo-img {
	display: block;
}

#asr-header.asr-header--transparent:not(.is-scrolled) .asr-header__logo-img--white {
	display: none;
}

.asr-header__logo-text {
	font-size: 18px;
	font-weight: 800;
	color: #111111;
	letter-spacing: -.02em;
}

#asr-header.asr-header--transparent:not(.is-scrolled) .asr-header__logo-text {
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Nav desktop
   -------------------------------------------------------------------------- */
.asr-header__nav {
	display: flex;
	justify-content: center;
}

.asr-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.asr-nav > li {
	position: relative;
	margin-bottom: 0;
}

.asr-nav > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #111111;
	text-decoration: none;
	border-radius: 0;
	background: transparent;
	transition: color 180ms ease;
	letter-spacing: .01em;
	white-space: nowrap;
}

.asr-nav > li > a:hover,
.asr-nav > li.current-menu-item > a,
.asr-nav > li.current-page-ancestor > a {
	color: #EF4135 !important;
	background: transparent !important;
}

/* Pe homepage — nav normal (fundal alb) */
#asr-header.asr-header--transparent:not(.is-scrolled) .asr-nav > li > a {
	color: #111111;
}

/* Dropdown */
.asr-nav > li > ul.sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid #E5E5E5;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	z-index: 100;
}

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

.asr-nav > li > ul.sub-menu li a {
	display: block;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #111111;
	text-decoration: none;
	border-radius: 6px;
	transition: background 150ms ease, color 150ms ease;
	white-space: nowrap;
}

.asr-nav > li > ul.sub-menu li a:hover {
	background: rgba(239, 65, 53, .07);
	color: #EF4135;
}

/* Chevron pentru submenu */
.asr-nav > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	opacity: .5;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Actions (CTA + toggle)
   -------------------------------------------------------------------------- */
.asr-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Language switcher */
.asr-header__lang {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.asr-header__lang a,
.asr-header__lang span {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color var(--asr-transition);
}

/* CTA Button */
.asr-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	background: #111111;
	color: #ffffff;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: .01em;
	transition: background 180ms ease;
	white-space: nowrap;
	line-height: 1;
}

.asr-header__cta:hover {
	background: #2d2d2d;
	text-decoration: none;
	color: #ffffff;
}

/* Pe homepage — identic */
#asr-header.asr-header--transparent:not(.is-scrolled) .asr-header__cta {
	background: #111111;
	color: #ffffff;
	border: none;
}

/* Mobile toggle */
.asr-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: background 180ms ease;
}

.asr-header__toggle:hover {
	background: rgba(0, 0, 0, .05);
}

.asr-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #111111;
	border-radius: 2px;
	transition: transform 280ms ease, opacity 280ms ease, background 180ms ease;
	transform-origin: center;
}

#asr-header.asr-header--transparent:not(.is-scrolled) .asr-header__toggle-bar {
	background: #111111;
}

/* Toggle animat — X */
.asr-header__toggle[aria-expanded="true"] .asr-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.asr-header__toggle[aria-expanded="true"] .asr-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

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

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
.asr-mobile-menu {
	display: none;
	overflow: hidden;
	max-height: 0;
	transition: max-height 320ms ease;
	background: #ffffff;
	border-top: 1px solid #E5E5E5;
}

.asr-mobile-menu.is-open {
	max-height: 600px;
}

.asr-mobile-menu__inner {
	padding: 16px clamp(16px, 4vw, 32px) 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.asr-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.asr-mobile-nav li a {
	display: block;
	padding: 11px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #111111;
	text-decoration: none;
	border-radius: 0;
	background: transparent;
	transition: color 150ms ease;
}

.asr-mobile-nav li a:hover,
.asr-mobile-nav li.current-menu-item > a {
	background: transparent;
	color: #EF4135;
}

.asr-mobile-nav ul.sub-menu {
	list-style: none;
	padding: 0 0 0 16px;
	margin: 0;
}

.asr-mobile-nav ul.sub-menu li a {
	font-size: 14px;
	font-weight: 500;
	padding: 8px 14px;
}

.asr-mobile-menu__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 8px;
	background: #111111 !important;
	color: #ffffff !important;
	transition: background 180ms ease;
}

.asr-mobile-menu__cta:hover {
	background: #2d2d2d !important;
	text-decoration: none;
	color: #ffffff !important;
}

.asr-mobile-menu__phone {
	display: flex;
	justify-content: center;
	padding: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #6B7280;
	text-decoration: none;
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Responsive — arată toggle, ascunde nav
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.asr-header__nav { display: none; }
	.asr-header__cta { display: none; }
	.asr-header__toggle { display: flex; }
	.asr-mobile-menu { display: block; }

	.asr-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 0;
	}

	.asr-header__actions {
		justify-content: flex-end;
		margin-left: auto;
	}

	.asr-header__toggle {
		margin: 0;
		padding: 8px;
	}
}

@media (max-width: 480px) {

	.asr-header__inner {
		padding-inline: 16px;
	}
}