/**
 * Hook Header Styles
 * 
 * @package Hook
 * @since 1.0.0
 */

/*-----------------------------------------------------------------------------------*/
/* Announcement Bar
/*-----------------------------------------------------------------------------------*/

.announcement-bar {
	background-color: var(--announcement-bg, #003366);
	color: var(--announcement-color, #ffffff);
	width: 100%;
	padding: 12px 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
}

.announcement-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.announcement-bar .announcement-text {
	color: inherit;
	text-decoration: none;
	display: inline-block;
}

.announcement-bar a.announcement-text:hover {
	text-decoration: underline;
}

/* Dynamic colors from customizer */
body {
	--announcement-bg: <?php echo esc_attr( get_theme_mod( 'hook_announcement_bg_color', '#003366' ) ); ?>;
	--announcement-color: <?php echo esc_attr( get_theme_mod( 'hook_announcement_text_color', '#ffffff' ) ); ?>;
}

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

.hook-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e5e5e5;
	padding: 0;
	width: 100%;
}

.hook-header .header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	align-items: center;
	gap: 20px;
}

/*-----------------------------------------------------------------------------------*/
/* Header Left - Logo
/*-----------------------------------------------------------------------------------*/

.hook-header .header-left {
	display: flex;
	align-items: center;
}

.hook-header .site-branding {
	display: flex;
	align-items: center;
}

.hook-header .site-branding .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.hook-header .site-branding .custom-logo {
	max-height: 100px;
	width: auto;
	height: auto;
}

.hook-header .site-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.hook-header .site-title a {
	color: #003366;
	text-decoration: none;
	transition: color 0.3s ease;
}

.hook-header .site-title a:hover {
	color: #0056b3;
}

/*-----------------------------------------------------------------------------------*/
/* Header Center - Navigation
/*-----------------------------------------------------------------------------------*/

.hook-header .header-center {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.hook-header .site-navigation {
	width: 100%;
}

.hook-header .site-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
}

.hook-header .site-navigation li {
	position: relative;
	margin: 0;
}

.hook-header .site-navigation a {
	color: #333333;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	padding: 8px 0;
	display: block;
	transition: color 0.3s ease;
}

.hook-header .site-navigation a:hover,
.hook-header .site-navigation .current-menu-item > a {
	color: #003366;
}

/* Dropdown menus */
.hook-header .site-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	min-width: 220px;
	padding: 10px 0;
	z-index: 1000;
	flex-direction: column;
	gap: 0;
}

.hook-header .site-navigation li:hover > ul,
.hook-header .site-navigation li:focus-within > ul {
	display: flex;
}

.hook-header .site-navigation ul ul a {
	padding: 12px 20px;
	font-size: 15px;
}

.hook-header .site-navigation ul ul a:hover {
	background-color: #f8f9fa;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	position: relative;
	z-index: 1001;
}

.mobile-menu-toggle .menu-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 28px;
}

.mobile-menu-toggle .menu-bar {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #333333;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
	transform: rotate(45deg) translateY(8px);
}

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

.mobile-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
	transform: rotate(-45deg) translateY(-8px);
}

/*-----------------------------------------------------------------------------------*/
/* Header Right - Icons
/*-----------------------------------------------------------------------------------*/

.hook-header .header-right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.hook-header .header-icons,
.hook-header .header-icons-default {
	display: flex;
	align-items: center;
	gap: 20px;
}

.hook-header .header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #333333;
	text-decoration: none;
	transition: color 0.3s ease, transform 0.2s ease;
	padding: 4px;
}

.hook-header .header-icon:hover {
	color: #003366;
	transform: scale(1.1);
}

.hook-header .header-icon svg {
	width: 24px;
	height: 24px;
}

/*-----------------------------------------------------------------------------------*/
/* Responsive Design
/*-----------------------------------------------------------------------------------*/

/* Tablet - max 992px */
@media (max-width: 992px) {
	.hook-header .header-inner {
		grid-template-columns: 1fr auto 1fr;
		gap: 15px;
	}
	
	.hook-header .site-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: #ffffff;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		padding: 20px;
		z-index: 999;
	}
	
	.hook-header .site-navigation.is-active {
		display: block;
	}
	
	.hook-header .site-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
	
	.hook-header .site-navigation li {
		width: 100%;
		border-bottom: 1px solid #e5e5e5;
	}
	
	.hook-header .site-navigation li:last-child {
		border-bottom: none;
	}
	
	.hook-header .site-navigation a {
		padding: 15px 0;
		width: 100%;
	}
	
	.hook-header .site-navigation ul ul {
		position: static;
		box-shadow: none;
		padding: 0 0 0 20px;
		min-width: 0;
		width: 100%;
	}
	
	.mobile-menu-toggle {
		display: block;
	}
}

/* Mobile - max 768px */
@media (max-width: 768px) {
	.hook-header .header-inner {
		grid-template-columns: auto 1fr auto;
		padding: 15px;
	}
	
	.announcement-bar {
		font-size: 13px;
		padding: 10px 0;
	}
	
	.hook-header .header-icons,
	.hook-header .header-icons-default {
		gap: 15px;
	}
	
	.hook-header .site-branding .custom-logo {
		max-height: 45px;
	}
	
	.hook-header .site-title {
		font-size: 20px;
	}
}

/* Small Mobile - max 480px */
@media (max-width: 480px) {
	.hook-header .header-icons,
	.hook-header .header-icons-default {
		gap: 12px;
	}
	
	.hook-header .header-icon svg {
		width: 20px;
		height: 20px;
	}
	
	.announcement-bar {
		font-size: 12px;
		padding: 8px 0;
	}
	
	.announcement-bar-inner {
		padding: 0 15px;
	}
}

/*-----------------------------------------------------------------------------------*/
/* Screen Reader Text
/*-----------------------------------------------------------------------------------*/

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
