/*
 * Policy Pages — shared shell (Phase 11, reused by Shipping/Payment later)
 * "Dark Forest / Imperial Gold / Cream"
 * Loaded only on static policy pages via is_page(). Scoped under .eh-policy
 * to avoid collisions with the Ecome parent theme. Ported from design bundle
 * styles.css (page-head / section / closing-band patterns shared across the
 * Returns & Refunds, Shipping Policy, and Payment Methods pages).
 */

.eh-policy {
	--eh-forest-900: #0d2a20;
	--eh-forest-800: #14392c;
	--eh-forest-700: #1b4332;
	--eh-herb-600: #2d6a4f;
	--eh-herb-500: #3b8466;
	--eh-gold-600: #b78712;
	--eh-gold-500: #d4a017;
	--eh-gold-400: #e6bf4f;
	--eh-cream-50: #faf7f1;
	--eh-cream-100: #f8f5f0;
	--eh-cream-200: #efe8d9;
	--eh-ink-900: #14201a;
	--eh-ink-700: #2f3a32;
	--eh-ink-500: #6b7368;
	--eh-line: rgba(20, 32, 26, 0.12);
	--eh-line-dark: rgba(243, 228, 182, 0.18);
	--eh-font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	--eh-font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--eh-font-body);
	color: var(--eh-ink-700);
	background: var(--eh-cream-50);
}

.eh-policy *,
.eh-policy *::before,
.eh-policy *::after { box-sizing: border-box; }

.eh-policy img { max-width: 100%; height: auto; display: block; }
.eh-policy a { color: inherit; text-decoration: none; }
.eh-policy button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.eh-policy h1, .eh-policy h2, .eh-policy h3, .eh-policy h4 {
	font-family: var(--eh-font-display);
	color: var(--eh-forest-900);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
}
.eh-policy h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 400; }
.eh-policy h2 { font-size: clamp(36px, 4.5vw, 60px); }
.eh-policy h3 { font-size: clamp(22px, 2.2vw, 30px); }

.eh-policy .eh-container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 40px;
}
@media (max-width: 720px) { .eh-policy .eh-container { padding: 0 20px; } }

/* === Eyebrow / gold accents === */
.eh-policy .eh-eyebrow {
	font-family: var(--eh-font-body);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 11px;
	font-weight: 700;
	color: var(--eh-gold-600);
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.eh-policy .eh-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--eh-gold-500);
}
.eh-policy .eh-eyebrow--invert { color: var(--eh-gold-400); }
.eh-policy .eh-eyebrow--center::after {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--eh-gold-500);
}
.eh-policy .eh-gold { color: var(--eh-gold-500); font-style: italic; font-weight: 400; }

/* === Section head (intro block above a section) === */
.eh-policy .eh-section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: end;
	margin-bottom: 60px;
}
.eh-policy .eh-section-head--center {
	grid-template-columns: 1fr;
	text-align: center;
	justify-items: center;
	margin-bottom: 70px;
}
.eh-policy .eh-section-head h2 { margin-top: 18px; }
.eh-policy .eh-section-head p {
	font-size: 16px;
	color: var(--eh-ink-500);
	margin: 18px 0 0;
	max-width: 540px;
	line-height: 1.7;
}

/* === Buttons === */
.eh-policy .eh-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 28px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: all 0.25s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}
.eh-policy .eh-btn-gold {
	background: var(--eh-gold-500);
	color: var(--eh-forest-900);
	border-color: var(--eh-gold-500);
}
.eh-policy .eh-btn-gold:hover { background: var(--eh-gold-400); border-color: var(--eh-gold-400); transform: translateY(-1px); }
.eh-policy .eh-btn .eh-arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .25s; }
.eh-policy .eh-btn .eh-arrow::after {
	content: ""; position: absolute; right: 0; top: -3px;
	width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.eh-policy .eh-btn:hover .eh-arrow { width: 26px; }

/* === Page head (dark hero) === */
.eh-policy .eh-page-head {
	background: var(--eh-forest-900);
	color: var(--eh-cream-100);
	padding: 90px 0 80px;
	position: relative;
	overflow: hidden;
}
.eh-policy .eh-page-head::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(45, 106, 79, 0.4), transparent 60%);
}
.eh-policy .eh-page-head-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.eh-policy .eh-page-head h1 { color: var(--eh-cream-100); font-size: clamp(48px, 6vw, 88px); }
.eh-policy .eh-page-head h1 .eh-gold { color: var(--eh-gold-500); font-style: italic; font-weight: 400; }

.eh-policy .eh-breadcrumbs {
	font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	color: rgba(243, 228, 182, 0.55); margin-bottom: 20px;
}
.eh-policy .eh-breadcrumbs a { color: var(--eh-gold-400); }
.eh-policy .eh-breadcrumbs .eh-sep { margin: 0 12px; opacity: 0.5; }

.eh-policy .eh-head-meta { text-align: right; }
.eh-policy .eh-head-meta .eh-stats { display: flex; gap: 30px; justify-content: flex-end; }
.eh-policy .eh-stat-pair { display: flex; flex-direction: column; }
.eh-policy .eh-stat-pair .eh-n {
	font-family: var(--eh-font-display); font-size: 42px; color: var(--eh-gold-500); display: block; line-height: 1;
}
.eh-policy .eh-stat-pair .eh-l { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 228, 182, 0.5); margin-top: 6px; display: block; }

@media (max-width: 800px) {
	.eh-policy .eh-page-head-inner { grid-template-columns: 1fr; }
	.eh-policy .eh-head-meta { text-align: left; }
	.eh-policy .eh-head-meta .eh-stats { justify-content: flex-start; }
}

/* === Section common === */
.eh-policy .eh-section { padding: 110px 0; position: relative; }

/* === Closing band (forest-700 + gold glow) === */
.eh-policy .eh-closing {
	background: var(--eh-forest-700);
	color: var(--eh-cream-100);
	position: relative;
	overflow: hidden;
}
.eh-policy .eh-closing::before {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.16), transparent 55%);
	pointer-events: none;
}
.eh-policy .eh-closing::after {
	content: "";
	position: absolute;
	top: -1px; left: 50%; transform: translateX(-50%);
	width: 1px; height: 60px;
	background: linear-gradient(180deg, var(--eh-gold-500), transparent);
}
.eh-policy .eh-closing-inner {
	position: relative;
	text-align: center;
	max-width: 860px;
	margin: 0 auto;
}
.eh-policy .eh-closing .eh-closing-eyebrow {
	font-size: 10px;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: rgba(243, 228, 182, 0.55);
	font-weight: 700;
	display: block;
	margin-bottom: 28px;
}
.eh-policy .eh-closing h2 {
	color: var(--eh-cream-100);
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.15;
	font-weight: 400;
}
.eh-policy .eh-closing h2 .eh-gold { color: var(--eh-gold-500); font-style: italic; }
.eh-policy .eh-closing .eh-contact-row {
	margin-top: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.eh-policy .eh-closing .eh-contact-sub {
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(243, 228, 182, 0.55);
	font-weight: 700;
}
