/* ============================================
Header — промо-шапка Jay&Joy School
На системі теми: .container, .menu (wp_nav_menu), .side-menu-call,
language-wrapper (op_get_language_links). Палітра — var(--*).
Брейкпоінти: 1680 / 1279 / 768.
============================================ */

/* Header base - Start */
header.promo-header {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--header-height);
	background: var(--primary);
	z-index: 1000;
	border-bottom-right-radius: 16px;
	border-bottom-left-radius: 16px;
}
.promo-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	gap: 20px;
}
/* Header base - End */

/* Nav (anchors) - Start */
.promo-header__nav {
	grid-column: 1;
	justify-self: start;
}
.promo-header .promo-menu .menu-item {
	padding: 8px 18px;
}
.promo-header .promo-menu .menu-item:first-child {
	padding-left: 0;
}
.promo-header .promo-menu a {
	color: var(--white);
	font-family: var(--font-family-2);
	font-size: 24px;
	line-height: 1.2;
	transition: opacity 0.3s ease;
}
.promo-header .promo-menu a:hover {
	opacity: 0.7;
}
/* Nav (anchors) - End */

/* Logo (center) - Start */
.promo-header__logo {
	grid-column: 2;
	justify-self: center;
}
.promo-header__logo a {
	display: flex;
	align-items: center;
}
.promo-header__logo img {
	width: 156px;
	height: auto;
	object-fit: contain;
}
/* Logo (center) - End */

/* Actions (phone + lang + burger) - Start */
.promo-header__actions {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Phone pill */
.promo-phone {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 22px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-pill);
	color: var(--white);
	font-family: var(--font-family-2);
	font-size: 18px;
	white-space: nowrap;
	transition: background 0.3s ease;
}
.promo-phone:hover {
	background: rgba(255, 255, 255, 0.28);
}
.promo-phone img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Language switcher pill (штатний language-call + op_get_language_links) */
.promo-lang {
	position: relative;
	display: none;
}
.promo-lang .change-lang {
	display: flex;
	align-items: center;
	gap: 8px;
	width: auto;
	min-width: 0;
	width: 80px;
	height: 50px;
	padding: 0 18px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-pill);
	color: var(--white);
	font-family: var(--font-family-2);
	font-size: 18px;
	line-height: 18px;
	cursor: pointer;
	transition: background 0.3s ease;
}
.promo-lang .change-lang:hover {
	background: rgba(255, 255, 255, 0.28);
}
.promo-lang__arrow {
	width: 12px;
	height: 12px;
	object-fit: contain;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease;
}
.promo-lang.active .promo-lang__arrow {
	transform: rotate(180deg);
}
.promo-lang .change-lang span {
	font-family: var(--font-family-1);
	font-weight: 700;
	height: 18px;
	transition: all 0.3s ease;
}
/* Dropdown box — перекриваємо базові круглі стилі під pill-список */
.promo-lang .language-box {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	position: absolute;
	top: calc(100% + 8px);
	left: auto;
	right: 0;
	bottom: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	width: 80px;
	padding: 15px 10px;
	background: var(--white);
	border-radius: 20px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	align-items: center;
}
.promo-lang .language-box a {
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: var(--radius-small);
	background: transparent;
	color: var(--brown);
	font-family: var(--font-family-2);
	font-size: 18px;
}
.promo-lang.active .language-box {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

/* Burger (mobile) → штатний sidebar теми */
.side-menu-call {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 26px;
	cursor: pointer;
}
.side-menu-call .menu-line {
	width: 38px;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
}
/* Actions (phone + lang + burger) - End */

/* Responsive - Start */
@media (max-width: 1279px) {
	.promo-header__logo a {
		padding: 5px 12px;
	}
	.promo-header__logo img {
		height: 30px;
	}
	.side-menu-call {
		width: 30px;
		height: 22px;
		gap: 4px;
	}
	.side-menu-call .menu-line {
		width: 30px;
	}
}
/* Responsive - End */
