/**
 * Main Theme Styles
 */

/* Reset and Base Styles */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Poppins", Sans-serif;
	line-height: 1.6;
	color: #333;
	background: #fff;
}

/* Header Styles */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #D6DFE57A;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	z-index: 1000;
	padding: 1.1rem 0;
	transition: background 0.3s ease;
}

/* Ensure header stays above content but below mobile menu */
@media (max-width: 768px) {
	.site-header {
		z-index: 1001;
	}
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.site-branding {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-height: 80px;
}

.site-logo-link {
	text-decoration: none;
	color: #2c3e50;
	font-weight: 700;
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.custom-logo {
	max-height: 80px;
	width: auto;
	height: auto;
	display: block;
}

/* SVG logo support */
.custom-logo,
.custom-logo img,
.custom-logo svg,
.custom-logo-link,
.custom-logo-link img,
.custom-logo-link svg,
.custom-logo-svg {
	max-height: 80px;
	width: auto;
	height: auto;
	display: block;
}

/* Ensure SVG logos are visible and properly sized */
.custom-logo-link svg,
.custom-logo-svg {
	fill: currentColor;
	max-width: 250px;
	height: auto;
}

/* Fallback for SVG as img tag */
.custom-logo-link img[src$=".svg"] {
	width: auto;
	height: 80px;
	max-width: 250px;
}

/* Site title fallback styling */
.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2c3e50;
}

.main-navigation {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	pointer-events: none;
}

.main-navigation .nav-menu {
	pointer-events: auto;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
	align-items: center;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	text-decoration: none;
	color: #2c3e50;
	font-family: "Poppins", Sans-serif;
	font-weight: 400;
	font-size: 18px;
	transition: color 0.3s ease;
	padding: 0.5rem 0;
	display: block;
}

.nav-menu a:hover {
	color: #326281;
}

/* Dropdown indicator */
.nav-menu .menu-item-has-children > a::after {
	content: '▼';
	font-size: 0.625rem;
	margin-left: 0.25rem;
	display: inline-block;
	vertical-align: middle;
}

/* Menu items with button classes */
.nav-menu li a.btn,
.nav-menu li a.btn-primary {
	padding: 0.75rem 2rem;
	background: transparent;
	border: 2px solid #2c3e50;
	color: #2c3e50;
	border-radius: 25px;
	margin-left: 1rem;
	margin-right: 2rem;
	font-family: "Poppins", Sans-serif;
	font-weight: 600;
	font-size: 1rem;
}

/* Position button menu items to the right side of header - break out of centered nav */
.header-container .nav-menu li:has(a.btn-primary),
.header-container .nav-menu li:has(a.btn) {
	position: absolute;
	right: 2rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	margin-left: 0 !important;
}

.nav-menu li a.btn:hover,
.nav-menu li a.btn-primary:hover {
	background: #2c3e50;
	color: #fff;
	border-color: #2c3e50;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	margin-left: auto;
	z-index: 1001;
}

.menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 24px;
	height: 18px;
	position: relative;
}

.menu-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: #2c3e50;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.header-cta {
	position: absolute;
	right: 0;
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: nowrap;
	z-index: 20;
}

.header-cta .btn-primary,
.header-cta .header-cta-button {
	margin-right: 0 !important;
	flex-shrink: 0;
	order: 1;
	display: inline-block;
	position: relative;
	white-space: nowrap;
	margin-right: 2rem;
}

.header-hebrew-text {
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	color: #2c3e50;
	display: inline-block;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
	margin-left: 0;
	order: 2;
	position: relative;
}

.header-hebrew-text strong {
	font-weight: 700;
}

.btn-primary {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: transparent;
	border: 2px solid #2c3e50;
	color: #2c3e50;
	text-decoration: none;
	border-radius: 25px;
	font-family: "Poppins", Sans-serif;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.btn-primary:hover {
	background: #2c3e50;
	color: #fff;
	border-color: #2c3e50;
}

/* Main Content */
.site-main {
	margin-top: 100px; /* Account for fixed header */
}

/* Ensure hero section starts at top (header will overlay) */
.hero-block {
	margin-top: -100px;
	padding-top: 100px;
}

/* Footer */
.site-footer {
	background: #326281;
	color: #fff;
	padding: 3rem 0 1rem;
	margin-top: 4rem;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-content {
	margin-bottom: 2rem;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 3rem 4rem;
	align-items: start;
}

.footer-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.footer-right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-logo-wrapper {
	margin-bottom: 1.5rem;
}

.footer-logo {
	max-height: 80px;
	max-width: 200px;
	height: auto;
	width: auto;
	display: block;
	object-fit: contain;
}

.footer-logo[src$=".svg"],
.footer-logo-svg {
	width: auto !important;
	height: 80px !important;
	max-width: 200px !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.footer-confidentiality-wrapper {
	margin-top: 0.5rem;
}

@media (min-width: 769px) {
	.footer-confidentiality-wrapper {
		margin-top: 6rem;
	}
}

.footer-links-title {
	font-family: "Poppins", Sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 1rem;
	text-align: left;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.footer-links .footer-link {
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s ease;
	text-align: left;
}

.footer-links .footer-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.footer-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-section {
	margin-bottom: 1rem;
	text-align: left;
}

.footer-section:last-child {
	margin-bottom: 0;
}

.footer-label {
	font-family: "Poppins", Sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 0.5rem;
}

.footer-item {
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: #fff;
	margin: 0.5rem 0;
}

.footer-item-label {
	font-weight: 600;
	margin-right: 0.5rem;
}

.footer-link {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.footer-confidentiality {
	font-family: "Poppins", Sans-serif;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	text-align: center;
}

/* Footer Responsive */
@media (max-width: 767px) {
	.footer-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
		display: flex;
		flex-direction: column;
	}

	.footer-left {
		order: 2;
		align-items: center;
		margin: 0 auto;
	}

	.footer-center {
		order: 1;
		align-items: center;
		display: flex;
		flex-direction: column;
		margin: 0 auto;
	}

	.footer-logo-wrapper {
		order: 1;
		margin: 0 auto;
	}

	.footer-logo {
		margin: 0 auto;
	}

	/* Hide confidentiality inside footer-center on mobile */
	.footer-center .footer-confidentiality-wrapper {
		display: none;
	}

	/* Show mobile version at the end */
	.footer-confidentiality-mobile {
		order: 999;
		display: block !important;
		margin-top: 2rem !important;
		margin-left: auto;
		margin-right: auto;
	}

	.footer-confidentiality-wrapper {
		margin: 0 auto;
	}

	.footer-right {
		order: 3;
		align-items: center;
		text-align: center;
		margin: 0 auto;
	}

	.footer-links-title {
		text-align: center;
		margin: 0 auto;
		margin-bottom: 5px;
	}

	.footer-links {
		align-items: center;
		text-align: center;
		margin: 0 auto;
	}
}

/* Hide mobile confidentiality wrapper on desktop */
@media (min-width: 769px) {
	.footer-confidentiality-mobile {
		display: none !important;
	}

	.footer-logo {
		max-height: 120px;
		max-width: 300px;
	}

	.footer-logo[src$=".svg"],
	.footer-logo-svg {
		height: 120px !important;
		max-width: 300px !important;
	}
}

	.footer-info {
		align-items: center;
	}

	.footer-section {
		text-align: center;
	}

	.footer-links {
		align-items: center;
	}

	.footer-links .footer-link {
		text-align: center;
	}
}

/* Footer Copyright Section */
footer .site-info {
	text-align: center !important;
	padding-top: 2rem !important;
	border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
	font-size: 0.875rem !important;
}

/* Utility Classes */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
	z-index: 100000;
}

.skip-link:focus {
	top: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.header-container {
		justify-content: space-between;
	}

	.site-branding {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 10002;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		pointer-events: none;
		transform: none;
		margin: 0;
		padding: 0;
	}

	.main-navigation.active {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.nav-menu {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		min-height: 100vh;
		min-height: 100dvh;
		background: #fff;
		padding: 4rem 1.5rem 2rem;
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
		transition: right 0.3s ease;
		overflow-y: auto;
		gap: 0;
		z-index: 10000;
		margin: 0;
		box-sizing: border-box;
	}

	.main-navigation.active .nav-menu {
		right: 0;
	}

	/* Hide separate close button - use hamburger that transforms to X */
	.menu-close {
		display: none;
	}

	.nav-menu li {
		width: 100%;
		border-bottom: 1px solid #e0e0e0;
	}

	.nav-menu li:last-child {
		border-bottom: none;
	}

	.nav-menu a {
		padding: 1rem 0;
		width: 100%;
		display: block;
	}

	.nav-menu li a.btn,
	.nav-menu li a.btn-primary {
		margin-left: 0;
		margin-right: 0;
		margin-top: 1rem;
		text-align: center;
		position: static !important;
		transform: none !important;
		right: auto !important;
		top: auto !important;
		width: 100%;
		display: block;
		box-sizing: border-box;
	}

	/* Reset absolute positioning for button menu items on mobile */
	.nav-menu li:has(a.btn-primary),
	.nav-menu li:has(a.btn),
	.nav-menu li.menu-item-has-btn {
		position: static !important;
		right: auto !important;
		top: auto !important;
		transform: none !important;
		margin-left: 0 !important;
		width: 100%;
	}

	.header-cta {
		top: 0;
		position: absolute;
		right: 36px;
		/* margin: 0; */
		justify-content: flex-end;
		display: flex;
		width: auto;
		margin-top: 0;
	}
}

/* Back to Top Button */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	background: #326281;
	border: 2px solid #326281;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 0;
}

.back-to-top:hover {
	background: #2c3e50;
	border-color: #2c3e50;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
	transform: translateY(-1px);
}

.back-to-top.show {
	display: flex;
}

.back-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 768px) {
	.back-to-top {
		bottom: 1.5rem;
		right: 1.5rem;
		width: 45px;
		height: 45px;
	}

	.back-to-top svg {
		width: 18px;
		height: 18px;
	}
}

