:root {
	--bg-dark: #0f0f0f;
	--panel: #151517;
	--text-light: #f5f5f5;
	--text-muted: #b3b3b3;
	--accent: #c8a76d;
	--accent-dark: #d0b27a;
	--radius: 8px;
	--max-width: 1200px;
	--shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
	--container-padding: 24px;
}

/* Reset & body */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: "Inter", sans-serif;
	background: var(--bg-dark);
	color: var(--text-light);
	line-height: 1.5;
}
a {
	text-decoration: none;
	color: inherit;
}

/* Layout */
.layout {
	display: flex;
	min-height: 100vh;
}
.sidebar {
	width: 260px;
	background: var(--panel);
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(255, 255, 255, 0.02);
}
.sidebar-inner {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
}
.brand {
	padding: 1rem;
	font-family: "Cinzel", serif;
	font-weight: bold;
	color: var(--accent);
	border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.main-nav {
	flex: 1;
	overflow-y: auto;
	margin-top: 1rem;
	padding-right: 6px;
}
.sidebar-footer {
	padding: 1rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.main-content {
	flex: 1;
	padding: 2rem;
}

/* Typography */
h1,
h2,
h3 {
	font-family: "Cinzel", serif;
	margin-bottom: 12px;
}
h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}
h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}
.lead {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 70ch;
}

/* Buttons */
.btn-primary,
.btn-ghost {
	display: inline-block;
	padding: 0.6rem 1rem;
	border-radius: 6px;
	font-weight: 600;
	transition: 0.2s ease;
}
.btn-primary {
	background: linear-gradient(180deg, var(--accent), var(--accent-dark));
	color: #0b0b0b;
	box-shadow: var(--shadow);
}
.btn-primary:hover {
	transform: translateY(-2px);
}
.btn-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--text-light);
}
.btn-large {
	padding: 0.9rem 1.4rem;
	font-size: 1.05rem;
}

/* Sidebar nav */
.nav-link,
.sub-toggle {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	text-align: left;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--text-light);
}

.sub-toggle .chevron {
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.3s ease;
	font-weight: bold;
}

/* Rotate when submenu is open */
.has-sub .sub-menu.open + .sub-toggle .chevron,
.has-sub .sub-toggle[aria-expanded="true"] .chevron {
	transform: rotate(180deg);
}

.nav-link:hover,
.sub-toggle:hover {
	background: rgba(255, 255, 255, 0.03);
	transform: translateY(-1px);
}

/* Submenus */
.has-sub .sub-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	margin: 0;
	padding-left: 6px;
	border-left: 1px dashed rgba(255, 255, 255, 0.02);
}
.has-sub .sub-menu.open {
	max-height: 500px;
	opacity: 1;
}
.sub-menu li a {
	display: block;
	padding: 8px 10px;
	font-size: 0.9rem;
	color: var(--text-muted);
	border-radius: 6px;
}
.sub-menu li a:hover {
	color: var(--text-light);
	background: rgba(255, 255, 255, 0.02);
}

/* Gallery hex images */
.hex {
	display: block;
	overflow: hidden;
	border-radius: 12px;
}
.hex img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	clip-path: polygon(
		25% 6.7%,
		75% 6.7%,
		100% 50%,
		75% 93.3%,
		25% 93.3%,
		0% 50%
	);
	transition: transform 0.25s ease;
}
.hex img:hover {
	transform: scale(1.05);
}

/* Hero hex overlay */
.hero-hex-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: url("/media/hex-pattern.svg");
	background-repeat: repeat;
	mix-blend-mode: overlay;
	opacity: 0.12;
	z-index: 0;
}

/* Footer */
.site-footer {
	padding: 24px 0;
	color: var(--text-muted);
	border-top: 1px solid rgba(255, 255, 255, 0.02);
	margin-top: 20px;
}

.site-footer .footer-inner small a {
	color: var(--accent-color, #c8a76d);
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer .footer-inner small a:hover {
	color: #fff;
}

/* Overlay for mobile nav */
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1400;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nav-overlay.active {
	display: block;
	opacity: 1;
}

/* Mobile nav toggle (hamburger button) */
.mobile-nav-toggle {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1100;
	color: var(--color-accent); /* visible on dark bg */
	display: none;
	align-items: center;
	justify-content: center;
}

.mobile-nav-toggle svg {
	width: 28px;
	height: 28px;
	transition: opacity 0.3s ease;
}

.mobile-nav-toggle .icon-close {
	display: none; /* Hidden by default */
}

/* When menu is open */
.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
	display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Hamburger icon lines */
.mobile-nav-toggle .hamburger,
.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	background: var(--color-accent); /* brighter so it shows */
	margin: 6px 0;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* X animation when active */
.sidebar.open ~ .mobile-nav-toggle .hamburger {
	transform: rotate(45deg);
}
.sidebar.open ~ .mobile-nav-toggle .hamburger::before {
	transform: rotate(-90deg) translate(-6px, 0);
}
.sidebar.open ~ .mobile-nav-toggle .hamburger::after {
	opacity: 0;
}

/* Mobile breakpoint */
@media (max-width: 900px) {
	.sidebar {
		position: fixed;
		top: 0;
		left: -260px;
		width: 240px;
		height: 100%;
		background: var(--color-dark);
		overflow-y: auto;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6);
		transition: left 0.3s ease;
		z-index: 1500;
	}

	.sidebar.open {
		left: 0;
	}

	.mobile-nav-toggle {
		display: flex;
	}
}
