/* ==========================================================================
   Header Styles
   ========================================================================== */

.header {
	width: 100%;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Top Section - Contact Info */
.header-top {
	background: var(--color-white);
	padding: 1rem 0;
	border-bottom: 1px solid #e5e7eb;
}

.header-top-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.logo {
	width: 100%;
	max-width: 180px;
}

.logo img {
	width: 100%;
	height: auto;
	display: block;
}

/* Hamburger Button */
.hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	position: relative;
	z-index: 100;
}

.hamburger.active {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 101;
}

.hamburger span {
	width: 28px;
	height: 3px;
	background-color: var(--color-white);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

.contact-info {
	display: none; /* Hidden on mobile */
	flex-direction: column;
	gap: 0.75rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	color: var(--color-orange);
}

.contact-text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	font-size: 0.75rem;
}

.contact-label {
	font-weight: 600;
	color: var(--color-primary);
}

.contact-value {
	color: #6b7280;
	font-weight: 400;
}

/* Navigation Section */
.header-nav {
	background: linear-gradient(90deg, #001B70 0%, #0626A9 100%);
	padding: 0.75rem 0;
}

.nav-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

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

/* Mobile menu */
.nav-menu.mobile-active {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: var(--color-primary);
	padding: 70px 2rem 2rem;
	gap: 1.5rem;
	z-index: 100;
	align-items: flex-start;
	overflow-y: auto;
}

.nav-menu.mobile-active li {
	width: 100%;
}

.nav-menu.mobile-active a {
	font-size: 1.125rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown in mobile */
.nav-menu.mobile-active .menu-item-has-children .sub-menu {
	display: none;
	position: static;
	box-shadow: none;
	border: none;
	background: rgba(255, 255, 255, 0.05);
	margin-top: 0.5rem;
	border-radius: 8px;
	min-width: 100%;
	padding: 0.5rem 0;
}

.nav-menu.mobile-active .menu-item-has-children .sub-menu.show {
	display: block;
}

.nav-menu.mobile-active .menu-item-has-children .sub-menu a {
	color: var(--color-white);
	font-size: 1rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu.mobile-active .menu-item-has-children .sub-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	color: var(--color-white);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.nav-menu a:hover {
	opacity: 0.8;
}

/* Dropdown submenu */
.menu-item-has-children .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-white);
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	min-width: 320px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
	padding: 8px 0;
	z-index: 50;
	list-style: none;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
	display: block;
}

.menu-item-has-children .sub-menu li {
	list-style: none;
}

.menu-item-has-children .sub-menu a {
	display: block;
	padding: 10px 16px;
	color: var(--color-primary);
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.3;
	white-space: normal;
}

.menu-item-has-children .sub-menu a:hover {
	background: #f3f4f6;
}

.cta-button {
	background: transparent;
	color: var(--color-white);
	border: 2px solid var(--color-white);
	border-radius: 2rem;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-family: var(--font-body);
	white-space: nowrap;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
}

.cta-button:hover {
	background: var(--color-white);
	color: var(--color-primary);
}

/* Tablet and up */
@media (min-width: 768px) {
	.hamburger {
		display: none;
	}
	
	.header-top {
		padding: 1.25rem 0;
	}

	.header-top-content {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.logo {
		max-width: 200px;
	}

	.contact-info {
		display: flex; /* Show on tablet and up */
		flex-direction: row;
		gap: 1.5rem;
		width: auto;
	}

	.contact-text {
		font-size: 0.8125rem;
	}

	.icon {
		width: 1.375rem;
		height: 1.375rem;
	}

	.header-nav {
		padding: 1rem 0;
	}

	.nav-content {
		flex-direction: row;
		justify-content: space-between;
	}

	.nav-menu {
		display: flex;
	}

	.cta-button {
		font-size: 0.875rem;
		padding: 0.625rem 1.5rem;
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.cta-button {
		padding: 0.75rem 2rem;
		font-size: 0.9375rem;
	}
	
	.container {
		padding: 0 2rem;
	}

	.logo {
		max-width: 220px;
	}

	.contact-info {
		gap: 2rem;
	}

	.contact-text {
		font-size: 0.875rem;
	}

	.icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	.nav-menu {
		gap: 2.5rem;
	}

	.nav-menu a {
		font-size: 0.9375rem;
	}

	.cta-button {
		padding: 0.75rem 2rem;
		font-size: 0.9375rem;
	}
}

/* Large Desktop */
@media (min-width: 1280px) {
	.logo {
		max-width: 240px;
	}

	.contact-info {
		gap: 2.5rem;
	}

	.nav-menu {
		gap: 3rem;
	}

	.nav-menu a {
		font-size: 1rem;
	}
}
