/* ===== This whole block is DESKTOP ONLY ===== */
@media (max-width: 920px) {
	#ssv2-header-left {
		display: none !important;
	}
}

/* ===== Sticky + Transparent header (desktop only) =====
   Works the same whether Astra's own "Transparent Header" toggle is on
   or off — recommended to keep that toggle OFF to avoid its own scroll
   logic competing with this. */
@media (min-width: 921px) {
	#masthead,
	.site-header {
		position: fixed !important;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 9999;
		background: transparent !important;
		border-bottom: none !important;
		box-shadow: none !important;
	}

	.ast-primary-header-bar,
	.ast-builder-grid-row-container,
	.ast-desktop-header-content {
		background: transparent !important;
		box-shadow: none !important;
		border-bottom: none !important;
	}

	/* Push the header down when the WP admin bar is showing (logged-in view) */
	body.admin-bar #masthead {
		top: 32px;
	}
}

/* ========================= LOGO ========================= */

/* ===== Logo — shift right on scroll ===== */
.site-header-primary-section-center {
	transition: transform 0.35s ease;
}

body.ssv2-scrolled .site-header-primary-section-center {
	transform: translateX(700px); /* adjust this number to taste */
}

/* Λογότυπο — μικραίνει μόνο όταν κάνεις scroll. Το αρχικό του μέγεθος (350px)
   ορίζεται ΜΟΝΟ από τα settings του Astra και δεν υπάρχει πουθενά εδώ. */
.site-header-primary-section-center img {
	transition: max-width 0.35s ease;
}

body.ssv2-scrolled .site-header-primary-section-center img {
	max-width: 200px !important; /* μέγεθος στο scroll — άλλαξε αυτόν τον αριθμό */
}

/* ========================= PRIMARY MENU ========================= */

/* ===== Primary menu — rounded corners ===== */
#ast-hf-menu-1 {
	border-radius: 14px;
	/* no overflow: hidden here — it would clip submenus from showing */
}

/* ===== The existing Astra menu — fade/shrink toward the hamburger on scroll ===== */
.site-header-primary-section-left .main-navigation {
	transition: opacity 0.35s ease, transform 0.35s ease;
}

body.ssv2-scrolled .site-header-primary-section-left .main-navigation {
	opacity: 0;
	transform: translateX(-30px) scale(0.85);
	pointer-events: none;
}

/* ...but once it's been relocated into the dropdown, show it normally again */
body.ssv2-scrolled #ssv2-menu-holder .main-navigation {
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
}

/* ========================= HAMBURGER+THL ========================= */

#ssv2-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
	background-color: #eef0f5; /* adjust to match the primary menu's exact color if needed */
	padding: 12px 20px;
	border-radius: 14px; /* matches the primary menu's rounding above */
}

/* Hamburger icon (text-based — resistant to the Astra editor's Visual/Code round-trip) */
#ssv2-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: inherit;
}

.ssv2-phone-link {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

/* Open the phone dropdown on hover, not just on click */
#ssv2-header-left:hover #ssv2-dropdown,
#ssv2-dropdown:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ========================= DROPDOWN OF HAMBURGER+THL ON TOP ========================= */

/* Dropdown panel */
#ssv2-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 14px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	padding: 16px 20px;
	min-width: 240px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 999;
}

#ssv2-dropdown.ssv2-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#ssv2-phone-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#ssv2-phone-list li a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	white-space: nowrap;
}

#ssv2-phone-list li a .ssv2-label {
	opacity: 0.6;
}

#ssv2-divider {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 16px 0;
}

/* ========================= DROPDOWN OF HAMBURGER+THL ON SCROLL ========================= */

/* Holds the real nav menu once it's relocated in here (scrolled state) */
#ssv2-menu-holder {
	display: none;
}
#ssv2-menu-holder.ssv2-active {
	display: block;
}
#ssv2-menu-holder .main-header-menu {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px;
}
#ssv2-menu-holder .main-header-menu > li {
	width: 100%;
}
#ssv2-menu-holder .main-header-menu .menu-link {
	padding: 6px 0 !important;
}