/*
 * Header + footer matching the main site (shemvener.org.il, Elementor).
 * Values are taken from the main site's header (post 492) and footer (post 2165).
 * Plain CSS, loaded directly (not part of the gulp/scss build).
 */

:root {
	--sv-dark: #202020;
	--sv-darker: #141414;
	--sv-yellow: #FAB900;
	--sv-light: #CFCFCF;
	--sv-font: "Assistant", sans-serif;
	--sv-header-h: 73px;
}

/* ---------- Header ---------- */

.sv-live-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	background: var(--sv-dark);
	font-family: var(--sv-font);
	direction: rtl;
}

body.admin-bar .sv-live-header {
	top: 32px;
}

.sv-live-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	max-width: 1240px;
	height: var(--sv-header-h);
	margin: 0 auto;
	padding: 5px 20px 2px;
	box-sizing: border-box;
}

.sv-live-header__logo {
	flex: 0 0 auto;
	display: block;
	width: 80px;
}

.sv-live-header__logo img {
	display: block;
	width: 40px;
	height: auto;
}

.sv-live-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.sv-live-menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-menu a,
.sv-live-menu a:visited {
	position: relative;
	display: block;
	padding: 13px 20px;
	color: #fff;
	font-family: var(--sv-font);
	font-size: 18px;
	font-weight: 300;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.sv-live-header__nav .sv-live-menu a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: #fff;
	opacity: 0;
	transition: opacity .3s;
}

.sv-live-header__nav .sv-live-menu a:hover::after,
.sv-live-header__nav .sv-live-menu a:focus-visible::after,
.sv-live-header__nav .sv-live-menu a.is-active::after {
	opacity: 1;
}

.sv-live-header__side {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.sv-live-header__langs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sv-live-header__langs a {
	display: block;
	line-height: 0;
}

.sv-live-header__langs img {
	width: 18px;
	height: 14px;
}

/* The theme's accessibility toolbar stays hidden, as it was in the old header. */
.sv-live-header .accessibility {
	display: none !important;
}

/* Print-list cart: theme styles assume the old light header; keep it compact here. */
.sv-live-header .header-mini-cart {
	position: relative;
	margin: 0;
}

.sv-live-header .header-mini-cart .print-cart-button {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: var(--sv-font);
	font-size: 15px;
	white-space: nowrap;
}

.sv-live-header .qs-tooltip .tooltip-msg {
	top: calc(100% + 10px);
	right: auto;
	bottom: auto;
	left: 0; /* the cart sits at the header's left edge (RTL), so open rightward */
	max-width: calc(100vw - 20px);
	box-sizing: border-box;
}

.sv-live-header .header-mini-cart .mini-cart-wrapper {
	direction: rtl;
	z-index: 1001;
}

.sv-live-header__toggle {
	display: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sv-live-header__toggle svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: #fff;
}

.sv-live-header__toggle .sv-icon-close,
.sv-live-header.is-open .sv-live-header__toggle .sv-icon-open {
	display: none;
}

.sv-live-header.is-open .sv-live-header__toggle .sv-icon-close {
	display: block;
}

.sv-live-header__dropdown {
	display: none;
	background: rgba(0, 0, 0, .82);
}

.sv-live-menu--dropdown {
	flex-direction: column;
}

.sv-live-menu--dropdown a,
.sv-live-menu--dropdown a:visited {
	padding: 11px 30px;
	font-size: 18px;
	font-weight: 500;
}

.sv-live-menu--dropdown a.is-active {
	color: var(--sv-yellow);
}

/* The old theme hid the page banner under a 55px-ish light header; push content
   below the taller fixed dark header instead. */
body.fixed-header .main-site-header .section-page-title {
	padding-top: var(--sv-header-h);
}

body.fixed-header:not(:has(.main-site-header)) #wrapper {
	padding-top: var(--sv-header-h);
}

@media (max-width: 1024px) {
	.sv-live-header__inner {
		padding: 5px 10px;
	}

	.sv-live-header__nav {
		display: none;
	}

	.sv-live-header__toggle {
		display: block;
	}

	.sv-live-header.is-open .sv-live-header__dropdown {
		display: block;
	}

	/* The page banner (.desktop-only) is hidden on mobile, so offset the content. */
	body.fixed-header #wrapper {
		padding-top: var(--sv-header-h);
	}
}

@media (max-width: 767px) {
	body.admin-bar .sv-live-header {
		top: 46px;
	}

	.sv-live-header .header-mini-cart .print-cart-button > span:not(.count) {
		display: none;
	}

	.sv-live-header .qs-tooltip .tooltip-msg {
		position: fixed;
		top: var(--sv-header-h);
		right: 10px;
		left: 10px;
		width: auto;
		height: auto;
		max-width: none;
		padding: 8px 12px;
	}
}

/* ---------- Footer ---------- */

.sv-live-footer {
	position: relative;
	background: var(--sv-dark);
	color: var(--sv-light);
	font-family: var(--sv-font);
	direction: rtl;
	text-align: right;
}

.sv-live-footer a,
.sv-live-footer a:visited {
	color: var(--sv-light);
	text-decoration: none;
	transition: color .2s;
}

.sv-live-footer a:hover,
.sv-live-footer a:focus-visible {
	color: var(--sv-yellow);
}

.sv-live-footer__logo-row {
	display: flex;
	justify-content: center;
	padding: 20px 10px;
	border-top: 1px solid rgba(250, 185, 0, .36);
	border-bottom: 1px solid rgba(250, 185, 0, .36);
}

.sv-live-footer__logo-row img {
	display: block;
	width: 34px;
	height: auto;
}

.sv-live-footer__main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 850px;
	margin: 0 auto;
	padding: 20px 10px 120px;
	box-sizing: border-box;
}

.sv-live-footer__col {
	display: flex;
	flex-direction: column;
	gap: 15px;
	box-sizing: border-box;
}

.sv-live-footer__col--links,
.sv-live-footer__col--contact {
	width: 30%;
}

.sv-live-footer__col--newsletter {
	width: 40%;
}

.sv-live-footer .sv-live-footer__title {
	margin: 0;
	padding: 0;
	color: var(--sv-yellow);
	font-family: var(--sv-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.sv-live-footer__list,
.sv-live-footer .sv-live-menu {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-footer__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-footer__list a,
.sv-live-footer .sv-live-menu a {
	display: inline;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
}

.sv-live-footer .sv-live-menu a {
	font-weight: 500;
}

.sv-live-footer .sv-live-menu a.is-active {
	color: var(--sv-yellow);
}

.sv-live-footer__contact a {
	text-decoration: underline !important;
}

.sv-live-footer__contact a[href^="mailto:"] {
	direction: ltr;
	unicode-bidi: embed;
}

/* Newsletter: links to the main site's form (see live-footer.php). */
.sv-live-footer .sv-live-footer__newsletter-btn {
	display: inline-block;
	padding: 8px 22px;
	border: 1px solid var(--sv-yellow);
	border-radius: 7px;
	background: var(--sv-yellow);
	color: var(--sv-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	transition: background-color .2s, color .2s;
}

.sv-live-footer .sv-live-footer__newsletter-btn:hover,
.sv-live-footer .sv-live-footer__newsletter-btn:focus-visible {
	background: transparent;
	color: var(--sv-yellow);
}

.sv-live-footer .sv-mobile-only {
	display: none;
}

.sv-live-footer__social-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px;
}

.sv-live-footer__social-row > div {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sv-live-footer__social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-footer__social li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 22px;
	height: 22px;
	padding: 6.6px;
	border: 1px solid #8B8989;
	border-radius: 50%;
	background: #646464;
	transition: opacity .2s;
}

.sv-live-footer__social a:hover {
	opacity: .85;
}

.sv-live-footer__social svg {
	width: 100%;
	height: 100%;
	fill: #fff;
}

.sv-live-footer__donate {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-left: 40px;
}

.sv-live-footer__donate img {
	display: block;
	width: 28px;
	height: auto;
	margin-bottom: 4px;
	animation: sv-flicker 2.5s ease-in-out infinite;
	transform-origin: 50% 100%;
}

.sv-live-footer__donate span {
	padding: 2px 5px 5px;
	border: 1px solid #fff;
	border-radius: 7px;
	background: var(--sv-dark);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .2s, color .2s;
}

.sv-live-footer__donate:hover span {
	background: #fff;
	color: var(--sv-dark);
}

@keyframes sv-flicker {
	0%, 100% { transform: scale(1, 1); }
	50% { transform: scale(.94, 1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.sv-live-footer__donate img {
		animation: none;
	}
}

.sv-live-footer__bottom {
	padding: 10px;
	border-top: 1px solid rgba(250, 185, 0, .08);
	background: var(--sv-darker);
}

.sv-live-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-live-footer__bottom li,
.sv-live-footer__bottom a {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	color: var(--sv-light);
	font-size: 12px;
	font-weight: 300;
}

.sv-live-footer__bottom a:hover {
	color: #4777D3;
}

.sv-live-footer__bottom svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
}

.sv-live-footer__whatsapp {
	position: fixed;
	bottom: 30px;
	left: 50px;
	z-index: 999;
	display: block;
	width: 32px;
	height: 32px;
}

.sv-live-footer__whatsapp svg {
	width: 100%;
	height: 100%;
	fill: #000;
}

@media (max-width: 767px) {
	.sv-live-footer__logo-row img {
		width: 60px;
	}

	.sv-live-footer__main {
		padding-bottom: 60px;
		row-gap: 30px;
	}

	.sv-live-footer__col--links,
	.sv-live-footer__col--contact {
		width: 50%;
	}

	.sv-live-footer__col--newsletter {
		width: 100%;
	}

	.sv-live-footer .sv-desktop-only {
		display: none;
	}

	.sv-live-footer .sv-mobile-only {
		display: inline-block;
	}

	.sv-live-footer__whatsapp {
		left: 20px;
		bottom: 20px;
	}
}
