/*
Theme Name: Queen Wisdom
Author: Codex
Version: 1.0.0
Text Domain: queen-wisdom
*/

:root {
	--paper: #fffaf4;
	--surface: #ffffff;
	--ink: #231b18;
	--muted: #6f625d;
	--line: rgba(48, 34, 26, 0.12);
	--red: #b51724;
	--red-dark: #82111d;
	--gold: #c99532;
	--gold-soft: #f5e2b4;
	--jade: #286c64;
	--clay: #8b4a33;
	--shadow: 0 18px 48px rgba(58, 29, 20, 0.14);
	--max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
	line-height: 1.65;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 250, 244, 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px);
}

.nav-shell {
	width: min(var(--max), calc(100% - 32px));
	height: 76px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	letter-spacing: 0;
	white-space: nowrap;
}

.brand img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 8px 24px rgba(201, 149, 50, 0.26);
}

.brand strong {
	display: block;
	font-size: 20px;
	line-height: 1.1;
}

.brand span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.nav-toggle {
	display: none;
}

.nav-button {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	background: var(--surface);
}

.nav-button i,
.nav-button i::before,
.nav-button i::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--ink);
	content: "";
}

.nav-button i {
	position: relative;
}

.nav-button i::before,
.nav-button i::after {
	position: absolute;
	left: 0;
}

.nav-button i::before {
	top: -7px;
}

.nav-button i::after {
	top: 7px;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 14px;
	font-weight: 700;
}

.main-nav a {
	color: #453731;
}

.main-nav a:hover {
	color: var(--red);
}

.nav-cta,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: var(--red);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 12px 26px rgba(181, 23, 36, 0.2);
}

.button.secondary {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: none;
}

.hero {
	position: relative;
	min-height: calc(86vh - 76px);
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(41, 20, 14, 0.88) 0%, rgba(78, 28, 22, 0.62) 43%, rgba(17, 16, 15, 0.16) 100%),
		var(--hero-image) center / cover no-repeat;
}

.hero-inner {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	padding: 90px 0 72px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold-soft);
	font-size: 14px;
	font-weight: 800;
}

.eyebrow::before {
	width: 40px;
	height: 2px;
	background: currentColor;
	content: "";
}

.hero h1 {
	max-width: 720px;
	margin: 18px 0 18px;
	font-size: clamp(46px, 7vw, 92px);
	line-height: 1.02;
	letter-spacing: 0;
}

.hero-lead {
	max-width: 680px;
	margin: 0;
	font-size: clamp(18px, 2.2vw, 25px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(110px, 1fr));
	gap: 1px;
	max-width: 760px;
	margin-top: 56px;
	background: rgba(255, 255, 255, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.metric {
	padding: 18px 20px;
	background: rgba(39, 20, 16, 0.42);
}

.metric strong {
	display: block;
	font-size: 28px;
	line-height: 1.1;
	color: var(--gold-soft);
}

.metric span {
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 13px;
}

.section {
	padding: 92px 0;
}

.section.alt {
	background: #fff;
}

.section.red-band {
	background: linear-gradient(135deg, var(--red-dark), var(--red));
	color: #fff;
}

.wrap {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
}

.section-head {
	max-width: 760px;
	margin-bottom: 42px;
}

.section-head.center {
	margin-inline: auto;
	text-align: center;
}

.section-label {
	margin: 0 0 10px;
	color: var(--red);
	font-size: 14px;
	font-weight: 900;
}

.red-band .section-label {
	color: var(--gold-soft);
}

h2,
h3,
p {
	letter-spacing: 0;
}

h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.15;
}

h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.35;
}

.section-head p,
.intro-copy p,
.feature-copy p {
	color: var(--muted);
	font-size: 17px;
}

.red-band .section-head p,
.red-band .feature-copy p {
	color: rgba(255, 255, 255, 0.82);
}

.grid {
	display: grid;
	gap: 22px;
}

.grid.two {
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 46px;
}

.grid.three {
	grid-template-columns: repeat(3, 1fr);
}

.grid.four {
	grid-template-columns: repeat(4, 1fr);
}

.card {
	min-height: 100%;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 12px 28px rgba(66, 43, 30, 0.06);
}

.card h3 {
	margin-bottom: 10px;
}

.card p {
	margin: 0;
	color: var(--muted);
}

.number {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #fff3dc;
	color: var(--red);
	font-weight: 900;
}

.photo-frame {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: var(--shadow);
	background: #e9ddd1;
}

.photo-frame img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

.photo-caption {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(35, 27, 24, 0.78);
	color: #fff;
	font-weight: 800;
}

.intro-copy {
	padding: 8px 0;
}

.check-list {
	display: grid;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 28px;
	color: #3d302b;
	font-weight: 700;
}

.check-list li::before {
	position: absolute;
	left: 0;
	top: 9px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gold);
	content: "";
}

.service-tile {
	position: relative;
	overflow: hidden;
	padding: 30px;
	border-radius: 8px;
	background: #fff;
	border-top: 5px solid var(--red);
}

.service-tile:nth-child(2n) {
	border-top-color: var(--gold);
}

.service-tile:nth-child(3n) {
	border-top-color: var(--jade);
}

.service-tile p {
	margin: 12px 0 0;
	color: var(--muted);
}

.proof-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.proof {
	padding: 28px;
	border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.proof:last-child {
	border-right: 0;
}

.proof strong {
	display: block;
	font-size: 18px;
	color: var(--gold-soft);
}

.proof span {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.78);
}

.process {
	counter-reset: step;
	display: grid;
	gap: 16px;
}

.process-item {
	counter-increment: step;
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 18px;
	align-items: start;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.process-item::before {
	content: counter(step, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
	font-weight: 900;
}

.process-item p {
	margin: 6px 0 0;
	color: var(--muted);
}

.image-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 22px;
	align-items: stretch;
}

.image-grid .photo-frame:first-child {
	grid-row: span 2;
}

.image-grid .photo-frame:first-child img {
	min-height: 520px;
}

.poster-panel {
	display: grid;
	grid-template-columns: 0.75fr 1.25fr;
	gap: 34px;
	align-items: center;
	padding: 34px;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow);
}

.poster-panel img {
	width: 100%;
	max-height: 620px;
	border-radius: 8px;
	object-fit: cover;
	object-position: top;
}

.poster-panel p {
	color: var(--muted);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.news-card a {
	display: flex;
	flex-direction: column;
	min-height: 260px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(66, 43, 30, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card a:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.news-card time {
	color: var(--red);
	font-size: 13px;
	font-weight: 900;
}

.news-card h3 {
	margin: 14px 0 12px;
}

.news-card p {
	margin: 0;
	color: var(--muted);
}

.news-card span {
	margin-top: auto;
	padding-top: 22px;
	color: var(--red);
	font-weight: 900;
}

.news-empty {
	padding: 34px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--muted);
	text-align: center;
}

.contact-band {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 28px;
	align-items: center;
	padding: 42px;
	border-radius: 8px;
	background: #221a17;
	color: #fff;
}

.contact-band p {
	color: rgba(255, 255, 255, 0.76);
}

.contact-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
}

.site-footer {
	padding: 34px 0;
	background: #150f0d;
	color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	font-size: 14px;
}

@media (max-width: 960px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.nav-button {
		display: flex;
	}

	.main-nav {
		position: absolute;
		left: 16px;
		right: 16px;
		top: 76px;
		display: none;
		padding: 16px;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.nav-toggle:checked ~ .main-nav {
		display: grid;
		gap: 14px;
	}

	.nav-cta {
		width: 100%;
	}

	.hero-metrics,
	.grid.two,
	.grid.three,
	.grid.four,
	.proof-strip,
	.image-grid,
	.poster-panel,
	.news-grid,
	.contact-band {
		grid-template-columns: 1fr;
	}

	.proof {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	}

	.proof:last-child {
		border-bottom: 0;
	}

	.image-grid .photo-frame:first-child {
		grid-row: auto;
	}
}

@media (max-width: 640px) {
	.nav-shell {
		width: min(100% - 24px, var(--max));
	}

	.brand span {
		display: none;
	}

	.hero {
		min-height: auto;
		background-position: center;
	}

	.hero-inner {
		padding: 76px 0 54px;
	}

	.hero-metrics {
		margin-top: 38px;
	}

	.section {
		padding: 64px 0;
	}

	.card,
	.service-tile,
	.poster-panel,
	.contact-band {
		padding: 22px;
	}

	.process-item {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}
