/* ===== Reset & Base ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	min-height: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #3d2c1e;
	background: #fbf6ee;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

img {
	display: block;
	max-width: 100%;
	border: 0;
}

ul, ol {
	list-style: none;
}

/* ===== Layout helpers ===== */
.flex-row-between {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.flex-row-always {
	display: flex;
	flex-direction: row;
}

.align-center {
	align-items: center;
}

.main-box {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===== Header ===== */
.header {
	width: 100%;
	background: #fbf6ee;
	border-bottom: 1px solid #ecdfc8;
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(6px);
}

.header .main-box {
	height: 72px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand .logo {
	width: 40px;
	height: 40px;
}

.brand .logo-name {
	font-size: 20px;
	font-weight: 700;
	color: #5a3a1d;
	letter-spacing: .5px;
}

.brand .logo-name span {
	color: #c9892b;
}

.nav-menu {
	gap: 8px;
}

.nav-menu .item {
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	color: #6b5640;
	transition: all .2s ease;
}

.nav-menu .item a {
	display: inline-block;
}

.nav-menu .item:hover {
	color: #c9892b;
	background: #f6ecd8;
}

.nav-menu .item.active {
	color: #c9892b;
	background: #f6ecd8;
	font-weight: 600;
}

/* ===== Mobile nav toggle ===== */
.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	width: 36px;
	height: 36px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	background: #5a3a1d;
	border-radius: 2px;
	position: relative;
	transition: .25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px;  }

/* ===== Footer ===== */
.footer {
	margin-top: 80px;
	padding: 28px 0;
	border-top: 1px solid #ecdfc8;
	background: #f7eedc;
	color: #8a7458;
	font-size: 13px;
	text-align: center;
}

.footer a:hover {
	color: #c9892b;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav-menu {
		position: absolute;
		top: 72px;
		right: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		background: #fbf6ee;
		border-bottom: 1px solid #ecdfc8;
		padding: 8px 16px 16px;
		gap: 4px;
		display: none;
	}

	.nav-menu.is-open {
		display: flex;
	}

	.nav-menu .item {
		padding: 12px 14px;
	}
}
