/* ========================================
   APEX VISION AI - HEADER & FOOTER STYLES
   Clean, manually styled header and footer
   ======================================== */

/* ===== HEADER STYLES ===== */
.apex-header {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.apex-header-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.apex-logo-link {
	display: block;
	line-height: 0;
}

.apex-logo {
	width: 60px;
	height: 60px;
	display: block;
}

.apex-branding {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.apex-site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.5px;
}

.apex-site-title a {
	text-decoration: none;
	color: #111827;
	transition: color 0.2s;
}

.apex-site-title a:hover {
	color: #667eea;
}

.apex-tagline {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
	line-height: 1.2;
}

/* Navigation */
.apex-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.apex-nav a {
	text-decoration: none;
	color: #374151;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.5px;
	transition: color 0.2s;
	white-space: nowrap;
}

.apex-nav a:hover {
	color: #667eea;
}

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

.apex-mobile-menu-toggle span {
	display: block;
	width: 24px;
	height: 3px;
	background: #374151;
	border-radius: 2px;
	transition: all 0.3s;
}

/* ===== FOOTER STYLES ===== */
.apex-footer {
	background: #1f2937;
	color: #ffffff;
	margin-top: 4rem;
	padding: 4rem 0;
}

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

.apex-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 3rem;
}

.apex-footer-col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.apex-footer-col-wide {
	grid-column: span 1;
}

.apex-footer-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apex-footer-desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #d1d5db;
}

.apex-footer-heading {
	margin: 0 0 0.75rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
}

.apex-footer-links {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.8;
}

.apex-footer-links a {
	color: #d1d5db;
	text-decoration: none;
	transition: color 0.2s;
}

.apex-footer-links a:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
	.apex-nav {
		gap: 1.25rem;
	}
	
	.apex-nav a {
		font-size: 0.75rem;
	}
	
	.apex-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	
	.apex-footer-col-wide {
		grid-column: span 2;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.apex-header-container {
		padding: 1rem;
	}
	
	.apex-logo {
		width: 50px;
		height: 50px;
	}
	
	.apex-site-title {
		font-size: 1.125rem;
	}
	
	.apex-tagline {
		font-size: 0.8125rem;
	}
	
	/* Hide desktop nav, show mobile toggle */
	.apex-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}
	
	.apex-nav.active {
		display: flex;
	}
	
	.apex-nav a {
		padding: 0.75rem 1rem;
		border-bottom: 1px solid #e5e7eb;
		font-size: 0.9375rem;
	}
	
	.apex-nav a:last-child {
		border-bottom: none;
	}
	
	.apex-mobile-menu-toggle {
		display: flex;
	}
	
	/* Footer mobile */
	.apex-footer {
		padding: 3rem 0;
	}
	
	.apex-footer-container {
		padding: 0 1rem;
	}
	
	.apex-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.apex-footer-col-wide {
		grid-column: span 1;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.apex-header-left {
		gap: 0.75rem;
	}
	
	.apex-logo {
		width: 40px;
		height: 40px;
	}
	
	.apex-site-title {
		font-size: 1rem;
	}
	
	.apex-tagline {
		font-size: 0.75rem;
	}
	
	.apex-footer-title {
		font-size: 1rem;
	}
	
	.apex-footer-heading {
		font-size: 0.9375rem;
	}
	
	.apex-footer-links,
	.apex-footer-desc {
		font-size: 0.875rem;
	}
}
