/*
Theme Name: Xinhai Mirror
Author: Xinhai Mirror
Description: Custom B2B theme for Xinhai Mirror, a full-length mirror manufacturer in Xun County, Hebi, Henan. Lightweight, dependency-free, responsive.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xinhai
Tags: business, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--ink: #17171a;
	--ink-2: #24252a;
	--ink-3: #3a3b41;
	--muted: #6c6d74;
	--muted-2: #8b8c93;
	--paper: #f7f4ef;
	--paper-2: #efe9df;
	--cream: #fbf9f6;
	--white: #ffffff;
	--line: #ddd5c9;
	--line-soft: #e8e2d8;
	--line-dark: rgba(255, 255, 255, .16);
	--accent: #a85327;
	--accent-dark: #86401c;
	--accent-soft: #f0e0d4;
	--steel: #c8ccd0;
	--ok: #2f6b46;
	--err: #a3291f;

	--serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--gutter: clamp(20px, 4.4vw, 56px);
	--max: 1280px;
	--section: clamp(64px, 8.5vw, 132px);
	--radius: 2px;
	--header-h: 78px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color .25s var(--ease), opacity .25s var(--ease);
}

a:hover { color: var(--accent); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.015em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 20px;
	font-size: .85rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.skip-link:focus { top: 12px; color: var(--paper); }

/* ==========================================================================
   3. Typography helpers
   ========================================================================== */
.display,
.hero h1,
.page-hero h1,
.section-title,
.editorial h2 {
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -.02em;
}

.hero h1 {
	font-size: clamp(2.65rem, 5.6vw, 4.9rem);
	line-height: .98;
	margin: 0 0 .42em;
}

.hero h1 em,
.editorial h2 em {
	font-style: italic;
	color: var(--accent);
}

h2.section-title {
	font-size: clamp(1.95rem, 3.5vw, 3.1rem);
	line-height: 1.03;
	margin: 0;
	max-width: 21ch;
}

.section-title--wide { max-width: 30ch; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 1.4rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: currentColor;
	flex: none;
}

.eyebrow--light { color: var(--accent-soft); }

.lead {
	font-size: clamp(1.05rem, 1.35vw, 1.2rem);
	line-height: 1.6;
	color: var(--ink-3);
	max-width: 46ch;
}

.small {
	font-size: .82rem;
	color: var(--muted);
	line-height: 1.55;
}

.mono-label {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--wide { max-width: 1480px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush-top { padding-top: clamp(34px, 4vw, 60px); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a { color: var(--paper); }
.section--ink .lead { color: rgba(247, 244, 239, .74); }
.section--ink .section-title { color: var(--paper); }
.section--ink .eyebrow { color: #d8a986; }

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
	gap: clamp(24px, 4vw, 72px);
	align-items: end;
	margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head__aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
	justify-items: start;
}

.section-head__aside p { margin: 0; }

.rule { border-top: 1px solid var(--line); }
.section--ink .rule { border-color: var(--line-dark); }

/* ==========================================================================
   5. Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	min-height: 52px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-size: .84rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.1;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
	transform: translateY(-1px);
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: rgba(23, 23, 26, .28);
}

.btn--ghost:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.btn--accent {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--light {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
}

.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--outline-light {
	background: transparent;
	border-color: rgba(247, 244, 239, .38);
	color: var(--paper);
}

.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--sm { min-height: 44px; padding: 12px 20px; font-size: .76rem; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink);
	border-bottom: 1px solid rgba(23, 23, 26, .22);
	padding-bottom: 6px;
}

.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

.section--ink .link-arrow { color: var(--paper); border-color: rgba(247, 244, 239, .3); }
.section--ink .link-arrow:hover { color: #d8a986; border-color: #d8a986; }

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(247, 244, 239, .94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line-soft);
	transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.is-stuck {
	background: var(--paper);
	box-shadow: 0 10px 30px -22px rgba(23, 23, 26, .55);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 2.5vw, 40px);
	min-height: var(--header-h);
}

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

.brand__mark {
	width: 34px;
	height: 42px;
	flex: none;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.5rem;
	letter-spacing: .01em;
}

.brand__sub {
	margin-top: 6px;
	font-size: .58rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
}

.brand img { max-height: 46px; width: auto; }

.site-nav { margin-left: auto; }

.menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.1vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu li { margin: 0; }

.menu a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: .855rem;
	font-weight: 500;
	letter-spacing: .015em;
	color: var(--ink-3);
}

.menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a { color: var(--ink); }

.menu a:hover::after,
.menu .current-menu-item > a::after,
.menu .current_page_item > a::after { transform: scaleX(1); }

.header-actions {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.4vw, 22px);
	flex: none;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .82rem;
	font-weight: 500;
	color: var(--ink-3);
	white-space: nowrap;
}

.header-phone svg { width: 15px; height: 15px; opacity: .65; }
.header-phone:hover { color: var(--accent); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle span {
	position: relative;
	display: block;
	width: 18px;
	height: 1px;
	background: var(--ink);
	transition: transform .25s var(--ease), background .25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 1px;
	background: var(--ink);
	transition: transform .25s var(--ease);
}

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

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(44px, 5.6vw, 88px) clamp(40px, 5vw, 80px);
	background:
		radial-gradient(120% 90% at 78% 12%, rgba(255, 255, 255, .9) 0%, rgba(247, 244, 239, 0) 62%),
		var(--paper);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.hero__copy { max-width: 40rem; }

.hero__note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	font-size: .8rem;
	color: var(--muted);
}

.hero__note svg { width: 15px; height: 15px; color: var(--accent); }

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
	margin-top: clamp(26px, 3vw, 40px);
}

.hero__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hero__stage {
	position: relative;
	border: 1px solid var(--line-soft);
	background: var(--paper-2);
	overflow: hidden;
}

.hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.hero__caption {
	text-align: right;
	font-size: .68rem;
	line-height: 1.5;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Stats strip */
.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	margin-top: clamp(36px, 4.6vw, 64px);
	padding-top: clamp(20px, 2.6vw, 32px);
	gap: clamp(18px, 3vw, 40px);
}

.stat__value {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--serif);
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	line-height: 1;
	letter-spacing: -.01em;
}

.stat__unit {
	font-family: var(--sans);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.stat__label {
	margin-top: 8px;
	font-size: .84rem;
	color: var(--ink-3);
	max-width: 22ch;
}

/* ==========================================================================
   8. Editorial split sections
   ========================================================================== */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
}

.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--top { align-items: start; }

.figure {
	margin: 0;
	position: relative;
}

.figure__img {
	width: 100%;
	background: var(--paper-2);
	object-fit: cover;
}

.figure--portrait .figure__img { aspect-ratio: 4 / 5; }
.figure--tall .figure__img { aspect-ratio: 3 / 4; }
.figure--landscape .figure__img { aspect-ratio: 3 / 2; }
.figure--square .figure__img { aspect-ratio: 1 / 1; }

.figure__caption {
	margin-top: 12px;
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--muted);
}

.feature-list {
	list-style: none;
	margin: clamp(22px, 3vw, 34px) 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.feature-list li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-size: .95rem;
	color: var(--ink-3);
}

.feature-list li strong {
	display: block;
	color: var(--ink);
	font-weight: 600;
	margin-bottom: 2px;
}

.feature-list .feature-num {
	font-family: var(--serif);
	font-size: .95rem;
	color: var(--accent);
	padding-top: 1px;
}

/* ==========================================================================
   9. Product cards & catalog
   ========================================================================== */
.catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(20px, 2.6vw, 34px);
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--cream);
	border: 1px solid var(--line-soft);
	transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.product-card:hover {
	border-color: var(--line);
	transform: translateY(-3px);
	box-shadow: 0 26px 40px -34px rgba(23, 23, 26, .5);
}

.product-card__media {
	display: block;
	position: relative;
	background: var(--paper-2);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.025); }

.product-card__badge {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 6px 10px;
	background: rgba(251, 249, 246, .92);
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.product-card__body {
	padding: clamp(18px, 2vw, 26px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.product-card__title {
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1.15;
	margin: 0;
}

.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--accent); }

.product-card__excerpt {
	font-size: .9rem;
	color: var(--muted);
	margin: 0;
}

.product-card__foot {
	margin-top: auto;
	padding-top: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--line-soft);
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.product-card__foot svg { width: 14px; height: 14px; }

.catalog-aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(24px, 3vw, 36px);
	padding: clamp(22px, 3vw, 40px);
	background: var(--ink);
	color: var(--paper);
}

.catalog-aside h3 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	margin: 0;
	color: var(--paper);
}

.catalog-aside p { color: rgba(247, 244, 239, .72); font-size: .92rem; margin: 12px 0 0; }

.catalog-aside__list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	border-top: 1px solid var(--line-dark);
}

.catalog-aside__list li {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--line-dark);
	font-size: .82rem;
}

.catalog-aside__list strong {
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(247, 244, 239, .5);
	padding-top: 3px;
}

.catalog-aside__list span { color: rgba(247, 244, 239, .78); }

.term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.term-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 100px;
	font-size: .76rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-3);
	background: var(--cream);
}

.term-chip:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   10. Applications
   ========================================================================== */
.app-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.app-item {
	position: relative;
	padding: clamp(26px, 3.4vw, 46px);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	transition: background .35s var(--ease);
}

.app-item:hover { background: var(--cream); }

.app-item__num {
	font-family: var(--serif);
	font-size: 2.6rem;
	line-height: 1;
	color: var(--accent);
	opacity: .9;
}

.app-item h3 {
	font-family: var(--serif);
	font-size: clamp(1.35rem, 1.9vw, 1.75rem);
	margin: 18px 0 10px;
}

.app-item p { font-size: .93rem; color: var(--muted); margin: 0; max-width: 38ch; }

.app-item__tag {
	display: inline-block;
	margin-top: 18px;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
	border-bottom: 1px solid var(--line);
	padding-bottom: 4px;
}

/* ==========================================================================
   11. Process
   ========================================================================== */
.process-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

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

/* Product diptych: front and back views of the same unit */
.product-diptych { margin: 0; }

.product-diptych__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.product-diptych__pair img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 2;
	object-fit: cover;
	background: var(--paper-2);
	border: 1px solid var(--line-soft);
}

.product-diptych__pair .mono-label {
	display: block;
	margin-top: 10px;
}

.product-diptych figcaption { margin-top: 14px; }

.process-card { display: flex; flex-direction: column; gap: 0; }

.process-card__media {
	position: relative;
	overflow: hidden;
	background: var(--paper-2);
	aspect-ratio: 4 / 3;
}

.process-card__media img { width: 100%; height: 100%; object-fit: cover; }

.process-card__step {
	position: absolute;
	left: 0;
	top: 0;
	padding: 10px 14px;
	background: var(--paper);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink);
}

.process-card__body {
	padding-top: 18px;
	border-top: 1px solid var(--line);
	margin-top: 18px;
}

.process-card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.process-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   12. Capacity band
   ========================================================================== */
.capacity {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.capacity__figure {
	font-family: var(--serif);
	font-size: clamp(4.4rem, 12vw, 9.5rem);
	line-height: .82;
	letter-spacing: -.03em;
	color: var(--paper);
}

.capacity__figure span { color: #d8a986; }

.capacity__unit {
	margin-top: 16px;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(247, 244, 239, .6);
}

.capacity__list {
	display: grid;
	gap: 0;
	margin-top: 28px;
	border-top: 1px solid var(--line-dark);
}

.capacity__list div {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-dark);
	font-size: .9rem;
	color: rgba(247, 244, 239, .8);
}

.capacity__list dt,
.capacity__list strong {
	color: var(--paper);
	font-weight: 500;
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding-top: 2px;
}

/* ==========================================================================
   13. CTA band
   ========================================================================== */
.cta-band {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(26px, 4vw, 64px);
	align-items: center;
	padding: clamp(34px, 4.6vw, 64px);
	background: var(--cream);
	border: 1px solid var(--line);
}

.cta-band h2 {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3.2vw, 2.8rem);
	margin: 0 0 14px;
}

.cta-band p { color: var(--muted); max-width: 40ch; margin: 0; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ==========================================================================
   14. Page hero / breadcrumbs
   ========================================================================== */
.page-hero {
	padding-block: clamp(36px, 4.4vw, 66px) clamp(28px, 3.4vw, 48px);
	border-bottom: 1px solid var(--line-soft);
	background: var(--paper);
}

.page-hero--sand { background: var(--paper-2); }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(20px, 2.6vw, 34px);
	font-size: .74rem;
	letter-spacing: .04em;
	color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink-3); }
.crumbs .sep { opacity: .5; }

.page-hero h1 {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	margin: 0;
	max-width: 26ch;
}

.page-hero__lead {
	margin-top: 18px;
	max-width: 56ch;
	font-size: clamp(1rem, 1.3vw, 1.14rem);
	color: var(--ink-3);
}

.page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 26px;
	font-size: .74rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   15. Entry content (classic HTML from the editor)
   ========================================================================== */
.entry-content {
	font-size: 1.02rem;
	color: var(--ink-3);
}

.entry-content > * { max-width: 72ch; }

.entry-content h2 {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	color: var(--ink);
	margin: 2.4em 0 .55em;
	letter-spacing: -.015em;
}

.entry-content h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
	margin: 1.9em 0 .5em;
	letter-spacing: 0;
}

.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }

.entry-content ul,
.entry-content ol { padding-left: 1.2em; }

.entry-content li { margin-bottom: .5em; }

.entry-content a {
	color: var(--ink);
	border-bottom: 1px solid var(--accent);
}
.entry-content a:hover { color: var(--accent); }

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--accent);
	font-family: var(--serif);
	font-size: 1.3rem;
	line-height: 1.4;
	color: var(--ink);
}

.entry-content figure { margin: 2em 0; max-width: 100%; }
.entry-content figure img { width: 100%; }
.entry-content figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: .92rem;
}

.entry-content th,
.entry-content td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.entry-content th { font-weight: 600; color: var(--ink); background: var(--paper-2); }

/* ==========================================================================
   16. Single product
   ========================================================================== */
.product-top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(28px, 4.4vw, 68px);
	align-items: start;
	padding-block: clamp(28px, 3.6vw, 52px);
}

.gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.gallery__stage {
	position: relative;
	background: var(--paper-2);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid var(--line-soft);
}

.gallery__stage img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: clamp(10px, 2vw, 26px);
	transition: opacity .3s var(--ease);
}

.gallery__stage img.is-loading { opacity: .35; }

.gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.gallery__thumb {
	padding: 0;
	border: 1px solid var(--line-soft);
	background: var(--paper-2);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .25s var(--ease), opacity .25s var(--ease);
	opacity: .78;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); opacity: 1; }

.product-info__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}

.product-info__eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.product-info h1 {
	font-family: var(--serif);
	font-size: clamp(2.1rem, 3.6vw, 3.3rem);
	line-height: 1.02;
	margin: 0 0 .3em;
}

.product-info__summary {
	font-size: 1.05rem;
	color: var(--ink-3);
	max-width: 44ch;
}

.spec-highlight {
	list-style: none;
	margin: 26px 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.spec-highlight li {
	display: grid;
	grid-template-columns: minmax(120px, .5fr) minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	margin: 0;
	border-bottom: 1px solid var(--line);
	font-size: .92rem;
}

.spec-highlight dt,
.spec-highlight .k {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 3px;
}

.spec-highlight .v { color: var(--ink-3); }

.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.product-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	font-size: .8rem;
	color: var(--muted);
	line-height: 1.55;
}

.product-note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--accent); }

.product-sections { border-top: 1px solid var(--line); }

.product-section {
	padding-block: clamp(36px, 4.4vw, 64px);
	border-bottom: 1px solid var(--line);
}

.product-section__head {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(20px, 4vw, 60px);
	align-items: start;
}

.product-section h2 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	margin: 0;
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
}

.spec-table caption {
	caption-side: bottom;
	margin-top: 12px;
	font-size: .76rem;
	color: var(--muted);
	text-align: left;
}

.spec-table th,
.spec-table td {
	padding: 13px 16px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.spec-table th {
	width: 40%;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	background: rgba(239, 233, 223, .5);
}

.spec-table td { color: var(--ink-3); }

.detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
	margin-top: clamp(24px, 3vw, 40px);
}

.detail-grid figure { margin: 0; }
.detail-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--paper-2); }
.detail-grid--tall img { aspect-ratio: 3 / 4; object-position: center 40%; }
.detail-grid--pair { grid-template-columns: 1fr 1fr; }
.detail-grid figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   17. Inquiry form
   ========================================================================== */
.inquiry {
	background: var(--cream);
	border: 1px solid var(--line);
	padding: clamp(24px, 3.4vw, 46px);
}

.inquiry h2 {
	font-family: var(--serif);
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	margin: 0 0 12px;
}

.inquiry__intro { color: var(--muted); font-size: .94rem; max-width: 52ch; margin-bottom: 26px; }

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 13px 14px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: .95rem;
	color: var(--ink);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	min-height: 48px;
}

.field textarea { min-height: 132px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--ink-3);
	box-shadow: 0 0 0 3px rgba(23, 23, 26, .06);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field__hint { font-size: .74rem; color: var(--muted); }

.form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.form-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .78rem;
	color: var(--muted);
	max-width: 42ch;
}

.form-consent input { margin-top: 3px; flex: none; accent-color: var(--ink); }

.form-trap { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	margin-bottom: 24px;
	border: 1px solid;
	font-size: .9rem;
	line-height: 1.5;
}

.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice--ok { border-color: #bcd8c6; background: #f0f7f2; color: #20563a; }
.notice--err { border-color: #e6c3bd; background: #fdf2f0; color: #8c2a20; }
.notice ul { margin: 6px 0 0; padding-left: 1.1em; }

/* ==========================================================================
   18. Contact / info blocks
   ========================================================================== */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 4.4vw, 68px);
	align-items: start;
}

.info-list { border-top: 1px solid var(--line); }

.info-list > div {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.info-list dt {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 3px;
}

.info-list dd { margin: 0; font-size: .96rem; color: var(--ink-3); }
.info-list dd a { border-bottom: 1px solid var(--line); }
.info-list dd a:hover { border-color: var(--accent); }

.info-list .value-strong {
	font-family: var(--serif);
	font-size: 1.25rem;
	color: var(--ink);
	line-height: 1.3;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.site-footer {
	background: var(--ink);
	color: rgba(247, 244, 239, .72);
	padding-block: clamp(48px, 6vw, 84px) 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(36px, 4.6vw, 64px);
}

.site-footer .brand__name { color: var(--paper); }
.site-footer .brand__sub { color: rgba(247, 244, 239, .5); }

.footer-brand p {
	margin: 20px 0 0;
	font-size: .9rem;
	line-height: 1.65;
	max-width: 32ch;
	color: rgba(247, 244, 239, .62);
}

.footer-col h2,
.footer-col h3 {
	margin: 0 0 16px;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(247, 244, 239, .46);
}

.footer-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.footer-menu a {
	font-size: .9rem;
	color: rgba(247, 244, 239, .78);
}

.footer-menu a:hover { color: #fff; }

.footer-contact { display: grid; gap: 12px; font-size: .9rem; }
.footer-contact a { color: rgba(247, 244, 239, .82); }
.footer-contact a:hover { color: #fff; }
.footer-contact .k { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 244, 239, .4); margin-bottom: 3px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 22px;
	border-top: 1px solid var(--line-dark);
	font-size: .78rem;
	color: rgba(247, 244, 239, .5);
}

.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(247, 244, 239, .62); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   20. Search, 404, misc
   ========================================================================== */
.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 13px 14px;
	background: var(--white);
	border: 1px solid var(--line);
	font-size: .95rem;
	min-height: 48px;
}

.empty-state {
	padding: clamp(40px, 6vw, 90px) 0;
	max-width: 46ch;
}

.empty-state h1,
.empty-state h2 {
	font-family: var(--serif);
	font-size: clamp(2rem, 4vw, 3.2rem);
	margin-bottom: 16px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: clamp(32px, 4vw, 56px);
	font-size: .85rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	color: var(--ink-3);
}

.pagination .current,
.pagination .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Anchor offset for sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   21. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.header-phone { display: none; }
	:root { --header-h: 72px; }
}

@media (max-width: 980px) {
	.hero__grid,
	.split,
	.split--wide-left,
	.capacity,
	.contact-grid,
	.product-top,
	.section-head,
	.product-section__head,
	.cta-band {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__visual { order: 2; margin-top: 10px; }
	.hero__stage { margin-top: 4px; }
	.hero__caption { display: none; }

	.gallery { position: static; }
	.capacity__figure { font-size: clamp(4rem, 16vw, 7rem); }
	.process-grid,
	.process-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta-band__actions { justify-content: flex-start; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section-head__aside { margin-top: -6px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		display: none;
		margin: 0;
		padding: 10px var(--gutter) 28px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -30px rgba(23, 23, 26, .6);
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}

	.nav-open .site-nav { display: block; }

	.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.menu li { border-bottom: 1px solid var(--line-soft); }

	.menu a {
		display: block;
		padding: 16px 2px;
		font-size: 1rem;
	}

	.menu a::after { display: none; }

	.header-actions .btn { display: none; }
}

@media (max-width: 720px) {
	.stats { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.process-grid,
	.process-grid--four,
	.detail-grid,
	.app-grid,
	.form-grid,
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.app-grid { border-left: 0; }
	.app-item { border-left: 1px solid var(--line); }
	.gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-stage__inset { display: none; }
	.detail-grid--pair { grid-template-columns: minmax(0, 1fr); }
	.capacity__list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.info-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.cta-band { padding: 26px; }
	.section { padding-block: clamp(52px, 11vw, 76px); }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
	.product-actions .btn { width: 100%; }
	.form-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* Print */
@media print {
	.site-header,
	.site-footer,
	.inquiry,
	.cta-band,
	.nav-toggle { display: none !important; }
	body { background: #fff; color: #000; }
}
