/*
Theme Name: باغ پله‌ای
Theme URI: https://yasfun.ir/
Author: صبانت
Description: باغ پله‌ای برای پارک‌ها، جاهای دیدنی و سفر
Version: 1.0.0
Text Domain: baghpele
*/

:root {
	--ink: #1e2f28;
	--muted: #5f746a;
	--bg: #e8f0ea;
	--leaf: #2f6b4f;
	--leaf-deep: #1f4a37;
	--stone: #c5b49a;
	--water: #4e8ea8;
	--sun: #e6b35a;
	--card: #f7fbf7;
	--line: #c9d8ce;
	--pack: #24362e;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		linear-gradient(180deg, #d5e6db 0%, var(--bg) 32%, #dde8e0 100%);
	color: var(--ink);
	font-family: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
	line-height: 1.7;
}
a { color: var(--leaf-deep); text-decoration: none; }
a:hover { color: #163628; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* Terraced garden header */
.terrace {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	background:
		linear-gradient(180deg, #7eb7c9 0%, #a8cfe0 28%, #dfe8c8 55%, #6f9b72 56%, #3f6d4f 100%);
	border-bottom: 4px solid var(--leaf-deep);
}
.terrace-sky {
	position: absolute; inset: 0 0 48% 0;
	background:
		radial-gradient(90px 60px at 82% 30%, rgba(255,220,140,.55), transparent 70%),
		linear-gradient(180deg, #6aa7bc, transparent);
}
.terrace-steps {
	position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
	z-index: 1;
}
.terrace-fountain {
	position: absolute; left: 50%; bottom: 18%;
	transform: translateX(-50%);
	width: 120px; height: 90px; z-index: 2;
	opacity: .95;
}
.terrace-brand {
	position: relative; z-index: 3;
	max-width: 1120px; margin: 0 auto;
	padding: 26px 18px 70px;
	display: flex; align-items: center; gap: 14px;
	color: var(--ink);
}
.terrace-brand .logo {
	width: 64px; height: 64px; flex: 0 0 auto;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
.brand-text { min-width: 0; }
.brand-text .name {
	display: block; font-size: 1.55rem; font-weight: 700;
	color: #143226; text-shadow: 0 1px 0 rgba(255,255,255,.35); line-height: 1.25;
}
.brand-text .tag { display: block; margin-top: 4px; color: #2a4538; font-size: .88rem; }
.terrace-chip {
	position: absolute; z-index: 3; left: 16px; bottom: 12px;
	padding: 4px 11px; font-size: .76rem;
	background: rgba(31,74,55,.88); color: #e8f6ee;
	border: 1px solid rgba(230,179,90,.4);
}

.path-nav {
	background: var(--leaf-deep);
	border-bottom: 1px solid rgba(230,179,90,.28);
}
.path-inner {
	max-width: 1120px; margin: 0 auto;
	padding: 9px 16px;
	display: flex; align-items: center; gap: 10px;
}
.nav-toggle { display: none; }
.nav-btn {
	display: none; width: 42px; height: 34px;
	border: 1px solid rgba(230,179,90,.35); background: #2a5642; cursor: pointer;
}
.nav-btn span, .nav-btn::before, .nav-btn::after {
	display: block; height: 2px; margin: 6px 8px 0; background: #ffe2a8;
}
.nav-btn::before, .nav-btn::after { content: ""; margin-top: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav a {
	color: #d7ebe0; font-size: .9rem;
	padding: 3px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.on { color: #ffe2a8; border-bottom-color: var(--sun); }

/* LTR shell */
.shell {
	direction: ltr;
	display: flex; align-items: flex-start; gap: 20px;
	max-width: 1120px; margin: 0 auto;
	padding: 16px 16px 42px;
}
.shell > * { direction: rtl; }
main { flex: 1 1 auto; min-width: 0; }

/* Lead with vertical today's path */
.lead-stage {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}
.today-path {
	background: var(--pack);
	color: #dff0e6;
	border: 1px solid #355445;
	padding: 10px 8px;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.today-path .label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: .78rem; font-weight: 700; color: #ffe2a8;
	letter-spacing: .04em;
}
.today-path .step {
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	border: 2px solid #7ec9a2; color: #7ec9a2;
	font-size: .72rem; font-weight: 700;
}
.today-path .step.on {
	background: #7ec9a2; color: #1a2e24; border-color: #7ec9a2;
}
.lead-card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: 220px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--ink);
	overflow: hidden;
}
.lead-art {
	position: relative; min-height: 200px;
	background: linear-gradient(160deg, #4e8ea8, #2f6b4f);
}
.lead-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lead-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.kicker { font-size: .72rem; color: var(--leaf); font-weight: 700; }
.lead-body h2 { margin: 0; font-size: 1.35rem; line-height: 1.4; color: var(--leaf-deep); }
.meta { font-size: .78rem; color: var(--muted); }
.lead-excerpt { margin: 0; font-size: .92rem; color: #3d5248; }

.section-label {
	margin: 4px 0 12px;
	font-size: .88rem; font-weight: 700; color: var(--leaf-deep);
	display: flex; align-items: center; gap: 10px;
}
.section-label::after {
	content: ""; flex: 1; height: 1px; background: var(--line);
}

.park-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.park-card {
	display: flex; flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--ink);
	overflow: hidden;
	min-height: 100%;
	transition: transform .18s ease, border-color .18s ease;
}
.park-card:hover {
	transform: translateY(-2px);
	border-color: var(--leaf);
}
.park-art {
	position: relative; min-height: 140px;
	background: linear-gradient(135deg, #4e8ea8, #3f6d4f);
}
.park-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.park-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.park-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; color: var(--leaf-deep); }

/* Sticky garden backpack */
.pack {
	flex: 0 0 280px;
	background: var(--pack);
	color: #e4f1ea;
	border: 1px solid #355445;
	padding: 12px;
}
.pack-head {
	display: flex; align-items: center; gap: 10px;
	padding-bottom: 12px; margin-bottom: 12px;
	border-bottom: 1px dashed rgba(230,179,90,.35);
}
.pack-head svg { width: 36px; height: 36px; }
.pack-head strong { display: block; color: #ffe2a8; font-size: .95rem; }
.widget { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.widget:last-child { border-bottom: 0; margin: 0; }
.widget-title { margin: 0 0 8px; font-size: .84rem; color: #ffe2a8; }
.widget ul { margin: 0; padding: 0 16px 0 0; }
.widget li { margin: 0 0 6px; }
.widget a { color: #d5e9de; }
.widget a:hover { color: #ffe2a8; }
.search-form { display: flex; gap: 6px; }
.search-field {
	flex: 1; min-width: 0; border: 1px solid #456555; background: #1a2a22;
	color: #fff; padding: 7px 8px;
}
.search-submit {
	border: 0; background: var(--sun); color: #1a2a22;
	padding: 7px 10px; font-weight: 700; cursor: pointer;
}
.behtarinseo, .behtarinseo a { color: #d5e9de; }
.behtarinseo a:hover { color: #ffe2a8; }

.entry {
	background: var(--card); border: 1px solid var(--line); padding: 18px 18px 24px;
}
.entry-title { margin: 6px 0 8px; font-size: 1.5rem; color: var(--leaf-deep); line-height: 1.35; }
.entry-thumb { margin: 12px 0 16px; }
.entry-content p { margin: 0 0 1em; }

.site-footer {
	background: var(--leaf-deep); color: #b8d0c2;
	border-top: 3px solid var(--sun);
	padding: 16px; text-align: center; font-size: .84rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nav-links a, .nav-links span {
	padding: 6px 11px; border: 1px solid var(--line); background: var(--card); color: var(--leaf-deep);
}

@media (max-width: 920px) {
	.shell { flex-direction: column; }
	.pack { width: 100%; flex-basis: auto; position: static; max-height: none; }
	.lead-card { grid-template-columns: 1fr; }
	.lead-art { min-height: 180px; }
}
@media (max-width: 640px) {
	.lead-stage { grid-template-columns: 1fr; }
	.today-path {
		flex-direction: row; justify-content: flex-start;
		padding: 8px 10px;
	}
	.today-path .label {
		writing-mode: horizontal-tb; transform: none; margin-left: auto;
	}
	.park-grid { grid-template-columns: 1fr; }
	.nav-btn { display: block; }
	.nav { display: none; width: 100%; }
	.nav-toggle:checked ~ .nav { display: flex; flex-direction: column; }
	.brand-text .name { font-size: 1.22rem; }
}
