/* ===== Header Styles ===== */
.site-header {
	background-color: white;
	border-bottom: 1px solid var(--gray-200);
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
}

.header-logo {
	flex: 1;
	min-width: 0; /* Prevents overflow in flex containers */
}

.logo-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--gray-900);
}

.logo-link:hover {
	color: var(--primary-color);
}

.company-name {
	font-weight: 700;
}

/* ===== Navigation ===== */
.main-nav {
	flex: 2;
	display: flex;
	justify-content: center;
	min-width: 0; /* Prevents overflow in flex containers */
}

.nav-list {
	display: flex;
	list-style: none;
	gap: 2rem;
	margin: 0;
}

.nav-link {
	font-weight: 500;
	color: var(--gray-700);
	padding: 0.5rem 0;
	position: relative;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary-color);
}

.nav-link.active::after {
	content: "";
	position: absolute;
	bottom: -1.5rem;
	left: 0;
	right: 0;
	height: 2px;
	background-color: var(--primary-color);
}

.header-account {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	min-width: 0; /* Prevents overflow in flex containers */
}

.auth-buttons {
	display: flex;
	gap: 0.75rem;
}

/* ===== User Menu ===== */
.user-menu {
	position: relative;
}

.user-button {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	background: none;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
}

.user-button:hover {
	background-color: var(--gray-100);
}

.user-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	overflow: hidden;
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: var(--gray-100);
}

.user-avatar img[src=""],
.user-avatar img:not([src]) {
	display: none;
}

.avatar-placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--primary-color);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.875rem;
}

.avatar-placeholder.large {
	width: 4rem;
	height: 4rem;
	font-size: 1.5rem;
}

.user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 200px;
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: var(--transition);
	z-index: 1000;
}

.user-menu.open .user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-header {
	padding: 1rem;
	border-bottom: 1px solid var(--gray-200);
}

.dropdown-menu {
	padding: 0.5rem 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	color: var(--gray-700);
	transition: var(--transition);
}

.dropdown-item:hover {
	background-color: var(--gray-50);
	color: var(--gray-900);
}

.dropdown-divider {
	height: 1px;
	background-color: var(--gray-200);
	margin: 0.5rem 0;
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 0.25rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.hamburger-line {
	width: 1.5rem;
	height: 2px;
	background-color: var(--gray-700);
	transition: var(--transition);
}

.mobile-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border-bottom: 1px solid var(--gray-200);
	box-shadow: var(--shadow-lg);
}

.mobile-nav {
	padding: 1rem;
}

.mobile-nav-link {
	display: block;
	padding: 0.75rem 0;
	color: var(--gray-700);
	font-weight: 500;
	border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
	color: var(--primary-color);
}

.mobile-user-section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-200);
}

.mobile-auth {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-200);
}

/* ===== Footer ===== */
.site-footer {
	background-color: var(--gray-700);
	color: white;
	padding: 3rem 0 1rem;
}

.footer-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h4 {
	margin-bottom: 1rem;
	color: white;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--gray-400);
	transition: var(--transition);
}

.footer-links a:hover {
	color: white;
}

.footer-bottom {
	border-top: 1px solid var(--gray-700);
	padding-top: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.copyright p {
	color: var(--gray-400);
	margin: 0;
}

.admin-link {
	margin-top: 0.5rem;
	text-align: right;
}

.admin-link a {
	font-size: 0.75rem;
	color: var(--gray-500);
	text-decoration: none;
	opacity: 0.7;
	transition: var(--transition);
}

.admin-link a:hover {
	color: var(--gray-300);
	opacity: 1;
}

/* ===== CTA Section ===== */
.cta-section,
.cta-content {
	text-align: center;
	padding: 4rem 0;
	/*background: var(--primary-light);*/
}

.cta-content h2 {
	margin-bottom: 1rem;
}

.cta-content p {
	margin-bottom: 2rem;
	font-size: 1.125rem;
}

/* ===== General Page Sections ===== */
.page-section {
	padding: 4rem 0;
	border-bottom: 1px solid var(--gray-200);
}

.page-section:last-child {
	border-bottom: none;
}

/* ===== Section Headers ===== */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.view-all {
	color: var(--primary-color);
	font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
	padding: 5rem 0;
}

.hero .container {
	display: flex;
	align-items: center;
	gap: 3rem;
	flex-wrap: wrap;
}

.hero-content {
	flex: 1;
	min-width: 300px;
}

.hero-visual {
	flex: 1;
	min-width: 300px;
}

.hero-visual img {
	width: 100%;
	border-radius: 0.75rem;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.hero-title {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--gray-600);
	margin-bottom: 2rem;
}

.hero-cta {
	display: flex;
	gap: 1rem;
}

/* ===== Responsive Layout ===== */
@media (max-width: 768px) {
	.header-content {
		justify-content: space-between; /* Ensure space between logo and menu toggle */
		align-items: center;
	}

	.main-nav,
	.header-account {
		display: none !important; /* Force hide the desktop nav and account sections */
	}

	.mobile-menu-toggle {
		display: flex !important; /* Force show the hamburger menu */
	}

	.logo-icon img {
		width: 48px !important;
		height: 48px !important;
	}

	.user-avatar {
		width: 40px; /* Ensure avatar is a square */
		height: 40px;
	}

	.mobile-menu.open {
		display: block;
	}

	.mobile-nav {
		padding: 2rem !important;
	}

	.mobile-nav-link {
		padding: 1rem 0;
	}

	.mobile-user-section,
	.mobile-auth {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.site-footer {
		padding: 2rem 0 1rem;
	}

	.footer-sections {
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 480px) {
	.mobile-nav {
		padding: 1.75rem !important;
	}

	.footer-sections {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1.5rem;
	}

	.cta-content {
		padding: 2rem 0;
	}

	.section-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
}

@media (max-width: 375px) {
	.mobile-nav {
		padding: 1.5rem !important;
	}
}
