/**
 * Background Styles
 * Library theme with rich bookshelf imagery
 * Static background showing full image
 */

body {
	background-color: #1a1a2e;
	background-image: url('../images/kahunatheelder_library.png');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
	background-attachment: scroll;
	overflow-x: hidden;
}

/* Parallax container - disabled */
.parallax-container {
	display: none;
}

.parallax-layer {
	display: none;
}

/* Content positioned above parallax background */
#page {
	position: relative;
	z-index: 2;
	background-color: transparent;
}

/* Content container with transparent edges - 0% at edge, 100% at 110px */
.content-layer {
	position: relative;
	z-index: 2;
	margin: 0 auto;
	max-width: 92%;
	width: 92%;
	padding: 60px 2%;
	background: white;
	border-radius: 12px;
	margin-bottom: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	/* Gradient fade: 0% opacity at edge, 100% at 110px */
	-webkit-mask-image:
		linear-gradient(90deg, transparent 0px, black 110px, black calc(100% - 110px), transparent 100%),
		linear-gradient(180deg, transparent 0px, black 110px, black calc(100% - 110px), transparent 100%);
	mask-image:
		linear-gradient(90deg, transparent 0px, black 110px, black calc(100% - 110px), transparent 100%),
		linear-gradient(180deg, transparent 0px, black 110px, black calc(100% - 110px), transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.content-layer:first-of-type {
	margin-top: 0;
	padding-top: 120px;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	border-bottom: none;
	padding: 20px 4%;
	margin: 0 auto;
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
}

.site-header .container {
	max-width: 100%;
	padding: 0;
}

.site-header .header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header .site-branding {
	display: flex;
	align-items: center;
	gap: 20px;
}

.custom-logo {
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	max-height: none !important;
	display: block !important;
}

.custom-logo-link {
	display: flex !important;
	align-items: center !important;
	max-width: 100%;
}

.site-header img {
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
}

/* Responsive scaling for header on tablets */
@media (max-width: 768px) {
	.site-header {
		padding: 15px 2%;
		margin-top: 60px;
	}

	.site-header .header-content {
		flex-direction: column;
		gap: 15px;
	}

	.site-header .site-branding {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-navigation {
		width: 100%;
	}
}

/* Responsive scaling for header on mobile */
@media (max-width: 480px) {
	.site-header {
		padding: 10px 2%;
		margin-top: 50px;
		margin-bottom: 30px;
	}

	.site-header .site-branding {
		gap: 10px;
	}

	.site-header .site-title {
		font-size: 1.2rem;
	}

	.site-header .site-description {
		font-size: 0.85rem;
	}
}

.site-title-area {
	display: none;
}

.site-header .site-title,
.site-header .site-description {
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.site-header a {
	color: #ffd700;
	text-decoration: none;
	transition: color 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.site-header a:hover {
	color: #ffed4e;
}

.site-navigation {
	flex: 1;
	margin-left: auto;
	position: relative;
}

.site-navigation>div,
.site-navigation>ul {
	display: flex !important;
	gap: 30px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
	justify-content: flex-end;
}

.site-navigation li {
	list-style: none;
	position: relative;
}

.site-navigation a {
	color: #fff !important;
	text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.8) !important;
	font-weight: 600;
	text-decoration: none !important;
	padding: 12px 20px !important;
	transition: all 0.3s ease;
	font-size: 1.15rem;
	letter-spacing: 1px;
	display: block;
	text-transform: uppercase;
}

.site-navigation a:hover {
	color: #ffd700 !important;
	text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

/* Dropdown menu styling - override navigation.css */
.sub-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	background: rgba(26, 26, 46, 0.95) !important;
	list-style: none !important;
	margin: 8px 0 0 0 !important;
	padding: 10px 0 !important;
	border-radius: 4px;
	min-width: 220px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateY(-10px) !important;
	transition: all 0.3s ease !important;
	z-index: 999 !important;
	border: none !important;
	border-top: none !important;
}

/* Target the hover state with more specificity */
#primary-menu>.menu-item:hover .sub-menu {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	display: block !important;
}

.sub-menu .menu-item {
	padding: 0 !important;
	width: 100%;
	position: relative;
}

.sub-menu .menu-item a {
	padding: 14px 22px !important;
	display: block;
	border-left: 3px solid transparent;
	font-size: 1rem;
	white-space: nowrap;
	color: #fff !important;
	text-decoration: none !important;
	background: none !important;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
	font-weight: 500;
}

.sub-menu .menu-item a:hover {
	border-left-color: #ffd700 !important;
	background: rgba(255, 215, 0, 0.1) !important;
	color: #ffd700 !important;
}

/* Mobile hamburger menu */
.menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
	padding: 8px 12px;
	font-size: 20px;
	cursor: pointer;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.menu-toggle:hover {
	color: #ffd700;
	border-color: #ffd700;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		order: -1;
	}

	.site-navigation>div {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(26, 26, 46, 0.98);
		padding: 20px 0;
		border-radius: 0 0 8px 8px;
	}

	.site-navigation>div.toggled {
		display: flex;
	}

	.site-navigation a {
		padding: 12px 20px;
		border-left: 3px solid transparent;
		font-size: 1rem;
	}

	.site-navigation a:hover {
		border-left-color: #ffd700;
		background: rgba(255, 215, 0, 0.1);
	}

	.site-navigation ul ul {
		position: static;
		display: none;
		background: rgba(0, 0, 0, 0.3);
		box-shadow: none;
		margin: 0;
		min-width: auto;
	}

	.site-navigation li:hover>ul {
		display: none;
	}

	.site-navigation li.menu-item-has-children>a::after {
		content: ' ▼';
		font-size: 0.7rem;
	}
}

.site-main {
	position: relative;
	z-index: 2;
	background-color: transparent;
}

.site-footer {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 0);
	margin-top: 0;
	border-top: none;
	padding: 40px 0;
}

.site-footer .container {
	text-align: center;
}

.site-footer .footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.site-footer .footer-widgets {
	display: none;
}

.site-footer .footer-info {
	color: #fff;
	text-align: center;
}

.site-footer .footer-info p {
	margin: 5px 0;
	color: #e0e0e0;
}

.site-footer .footer-social {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
}

.site-footer .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.site-footer .social-link:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffd700;
}

.homepage-hero {
	animation: fadeInUp 1.2s ease-out;
}

.homepage-hero h1 {
	font-size: 4rem;
	font-weight: 700;
	color: #1a1a2e;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.homepage-hero p {
	font-size: 1.5rem;
	color: #5d4e37;
	font-weight: 300;
	text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.parallax-layer {
		background-attachment: scroll;
	}

	.homepage-hero h1 {
		font-size: 3rem;
	}

	.homepage-hero p {
		font-size: 1.2rem;
	}
}

@media (max-width: 768px) {
	.parallax-container {
		height: auto;
		position: relative;
	}

	.parallax-layer {
		position: relative;
		height: 300px;
		background-size: cover;
		background-position: center;
	}

	.homepage-hero h1 {
		font-size: 2rem;
	}

	.homepage-hero p {
		font-size: 1rem;
	}

	.content-layer:first-of-type {
		min-height: auto;
		padding-top: 60px;
	}
}