/*
Theme Name: GoldBond
Description: Custom WordPress theme for GoldBond logistics company with Hebrew support
Author: Custom Theme
Version: 1.0
Text Domain: goldbond
Domain Path: /languages/
*/

/* Import Tailwind CSS from the HTML assets */
body {
	margin: 0;
	font-family: 'Open Sans Hebrew', sans-serif;
}

/* Custom styles for WordPress specific elements */
.wp-block-image {
	margin: 0;
}

.wp-block-group {
	margin: 0;
}
nav li, footer li {
	list-style: none;
	padding: 0;
	font-size: 14px;
}
h1, h2, h3, h4 {
	font-family: 'Open Sans Hebrew'
}
/* Mobile Menu Styles */
#mobile-menu {
	transition: opacity 0.3s ease;
	z-index: 111;
}

#mobile-menu .absolute.inset-0 {
	background-color: rgba(0, 0, 0, 0.5);
}

#mobile-menu .relative.bg-white {
	transform: translateX(0);
	transition: transform 0.3s ease-in-out;
}

/* Mobile menu list styles */
#mobile-menu nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#mobile-menu nav li {
	margin: 0;
	padding: 0;
}

#mobile-menu nav a {
	display: block;
	padding: 8px 0;
	font-size: 18px;
	font-weight: 500;
	color: #1f2937;
	text-decoration: none;
	transition: color 0.3s ease;
}

#mobile-menu nav a:hover {
	color: #2563eb;
}

/* Mobile menu button styles */
#mobile-menu-button,
#mobile-menu-close-button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

#mobile-menu-button:hover,
#mobile-menu-close-button:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

/* Ensure mobile menu button is always visible on mobile */
@media screen and (max-width: 1023px) {
	/* When header has transparent gradient (not scrolled yet), ensure button is visible */
	header nav:not(.backdrop-blur) #mobile-menu-button {
		/*background-color: rgba(15, 23, 42, 0.6);*/
		/*backdrop-filter: blur(8px);*/
		border-radius: 50%;
		padding: 8px;
	}
	
	/* Add text shadow for better visibility on transparent backgrounds */
	header nav:not(.backdrop-blur) #mobile-menu-button svg {
		/*filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));*/
	}
	
	/* When header is scrolled (has backdrop-blur), button should be visible without background */
	header nav.backdrop-blur #mobile-menu-button {
		background-color: transparent;
	}
}
li.menu-item {
	list-style: none;
	text-align: center;
}

header nav .goldbond_fallback_menu > .menu-item > a {
	padding-bottom: 17px;
	display: block;
	border-bottom: 3px solid transparent;
	transition: 0.3s;
	font-size: 16px;
	text-shadow: 0 1px 3px rgb(0, 0, 0), 0 2px 6px rgba(0, 0, 0, 0.5);
	font-weight: bold;
}
header nav .goldbond_fallback_menu .sub-menu .menu-item  {
	margin-bottom: 5px;
	display: block;
}
nav.backdrop-blur header nav .menu-item > a,
header nav.backdrop-blur .menu-item > a {
	text-shadow: none;
}

header nav .menu-item > a:hover {
	border-color: #154595;
	color: #2b7dff;
}

header nav .menu-item > a+.sub-menu {
	position: absolute;
	background: white;
	padding: 13px 20px;
	border-radius: 0 0 20px 20px;
	box-shadow: 0px 12px 10px 0px #00000012;
	margin-right: -3%;
	border-top: 1px solid #123777;
	transition: 0.2s;
	transform: translate3d(0px, -5px, 0px);
	opacity: 0;
	visibility: hidden;
}
header nav .menu-item > a+.sub-menu a{
	color: #0f1f65 !important;
}
header nav .menu-item:hover > a+.sub-menu {
	transform: translate3d(0px, 0px, 0px);
	opacity: 1;
	visibility: visible;
}

footer ul.sub-menu, #mobile-menu ul.sub-menu {
	display: none;
}

.max-h-\[32px\] {
	max-height: 32px;
}
.opacity-50 {
	opacity: 0.5;
}

.opacity-50:hover,
.hover\:opacity-100:hover {
	opacity: 1;
}
.text-shadow {text-shadow: 0 0 3px BLACK;}
.base-button {
	background: linear-gradient(to right, #164595, #2B7DFF);
	color: white;
}

@media screen and (max-width: 1024px){
	#mobile-menu .sub-menu {
		display: none;
		flex-direction: column;
		gap: 10px;
		margin-top: 8px;
		margin-bottom: 30px;
	}
	li.menu-item {
		text-align: right;
	}
	#mobile-menu .sub-menu.open {
		display: flex;
	}

	#mobile-menu .sub-menu > li {
		position: relative;
		display: flex;
		padding-right: 40px;
	}

	#mobile-menu .sub-menu > li:after {
		content: '';
		position: absolute;
		background: #2663eb;
		width: 23px;
		height: 1px;
		right: 0;
		top: 12px;
	}

	.submenu-open > a {
		color: #2663eb;
		/* border-bottom: 1px solid; */
	}
}

/* Вирівнювання підменю */
header nav .menu-item {
	position: relative;
}

header nav .menu-item > a+.sub-menu {
	left: 50%;
	transform: translate3d(-50%, -5px, 0px);
	min-width: 200px;
}

header nav .menu-item:hover > a+.sub-menu {
	transform: translate3d(-50%, 0px, 0px);
}

/* Scroll margin for anchor links to account for fixed header */
section[id] {
	scroll-margin-top: 120px;
}

@media screen and (max-width: 1024px) {
	section[id] {
		scroll-margin-top: 80px;
	}
}

/* Smooth scrolling for the entire page */
html {
	scroll-behavior: smooth;
}

/* Hide logo on mobile until nav has backdrop-blur class */
@media screen and (max-width: 1023px) {
	header nav:not(.backdrop-blur) img[alt="GoldBond Logo"] {
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	
	header nav.backdrop-blur img[alt="GoldBond Logo"] {
		opacity: 1;
		transition: opacity 0.3s ease;
	}
}