/* =====================================================================
 * Jahizsaz — homepage (front-page.php). Scoped under .jh-home.
 * Uses the :root tokens from main.css. Mobile-first (375px base).
 * ===================================================================== */

.jh-home { color: var(--ink); background: var(--sand); }
.jh-home [hidden] { display: none !important; }
.jh-home *, .jh-home *::before, .jh-home *::after { box-sizing: border-box; }
:where(.jh-home) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.jh-home) :where(p, h1, h2, h3) { margin: 0; }
.jh-home .jh-ico { display: block; flex: none; }
.jh-home .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.jh-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.jh-wrap--narrow { max-width: 820px; }
@media (min-width: 640px)  { .jh-wrap { padding-inline: 28px; } }
@media (min-width: 1024px) { .jh-wrap { padding-inline: 48px; } }

.jh-sec { padding-block: 48px; }
.jh-sec--paper { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .jh-sec { padding-block: 80px; } }

.jh-sec__head { margin-bottom: 28px; max-width: 680px; }
.jh-sec__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.jh-sec__title { font-size: 24px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.jh-sec__sub { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--ink-muted); }
@media (min-width: 768px) {
	.jh-sec__head { margin-bottom: 40px; }
	.jh-sec__title { font-size: 32px; }
	.jh-sec__sub { font-size: 16px; }
}

.jh-eyebrow {
	display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
	background: var(--accent-soft); color: var(--accent-dark);
	font-size: 13px; font-weight: 700; line-height: 1.7;
}
.jh-note { margin-top: 24px; font-size: 13px; line-height: 1.9; color: var(--ink-muted); }
.jh-more { margin-top: 20px; font-size: 15px; }
.jh-home .jh-more a, .jh-home .jh-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.jh-home .jh-more a:hover, .jh-home .jh-link:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.jh-home .jh-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- buttons ---------- */
.jh-home .jh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px;
	font-size: 15px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
	transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.jh-home .jh-btn--lg { min-height: 54px; font-size: 16px; }
.jh-home .jh-btn:active { transform: translateY(1px); }
.jh-home .jh-btn--primary { background: var(--primary); color: #fff; }
.jh-home .jh-btn--primary:hover { background: var(--primary-dark); color: #fff; }
.jh-home .jh-btn--accent { background: var(--accent); color: var(--ink); }
.jh-home .jh-btn--accent:hover { background: #D79A3E; color: var(--ink); }
.jh-home .jh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.jh-home .jh-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.jh-home .jh-btn:focus-visible, .jh-home .jh-chip input:focus-visible + span, .jh-home .jh-chip--more:focus-visible > span {
	outline: 3px solid var(--accent); outline-offset: 2px;
}

/* =====================================================================
 * 1. HERO
 * ===================================================================== */
.jh-hero {
	padding-block: 28px 44px;
	background:
		radial-gradient(120% 80% at 100% 0%, var(--accent-soft) 0%, rgba(251, 241, 222, 0) 55%),
		var(--sand);
}
.jh-hero__grid { display: grid; gap: 28px; }
.jh-hero__title { margin-top: 14px; font-size: clamp(28px, 8vw, 46px); font-weight: 900; line-height: 1.4; color: var(--primary-dark); letter-spacing: -0.01em; }
.jh-hero__lead { margin-top: 12px; max-width: 560px; font-size: 16px; line-height: 2; color: var(--ink); }

.jh-picker {
	margin-top: 24px; padding: 20px 16px 16px; max-width: 600px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e2);
}
.jh-picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.jh-picker__legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 800; color: var(--ink); }
.jh-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.jh-chip { position: relative; display: inline-flex; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.jh-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jh-chip > span {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
	font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap;
	transition: background-color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.jh-chip:hover > span { border-color: var(--primary); background: var(--primary-soft); }
.jh-chip input:checked + span, .jh-chip--more.is-on > span { background: var(--primary); border-color: var(--primary); color: #fff; }
.jh-chip--more > span { border-style: dashed; }
.jh-chip--more.is-on > span { border-style: solid; }

.jh-picker__custom { margin-top: 16px; }
.jh-picker__custom-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.jh-picker__custom-row { display: flex; align-items: center; gap: 10px; }
.jh-input {
	width: 140px; max-width: 100%; min-height: 48px; padding: 0 14px; text-align: center;
	font-size: 18px; font-weight: 700; color: var(--ink);
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
}
.jh-input:focus { border-color: var(--primary); outline: 3px solid var(--primary-focus); outline-offset: 0; }
.jh-input[aria-invalid="true"] { border-color: var(--danger); }
.jh-picker__unit { font-size: 14px; color: var(--ink-muted); }
.jh-picker__hint { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--ink-muted); }
.jh-picker__hint.is-bad { color: var(--danger); font-weight: 700; }
.jh-picker__submit { width: 100%; margin-top: 16px; }

.jh-trust { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.jh-trust li { display: inline-flex; align-items: center; }
.jh-trust li + li::before { content: ""; width: 4px; height: 4px; margin-inline: 10px; border-radius: 50%; background: var(--accent); }

.jh-hero__visual { display: none; }
.jh-art { display: block; width: 100%; height: auto; aspect-ratio: 440 / 380; }
.il-soft { fill: var(--primary-soft); }
.il-amber-soft { fill: var(--accent-soft); }
.il-roof { fill: var(--primary); }
.il-wall { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.il-door { fill: var(--accent); }
.il-knob { fill: var(--surface); }
.il-win { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 1.5; }
.il-line { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.il-shadow { fill: rgba(14, 79, 74, .14); }
.il-card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.il-bar-ink { fill: var(--primary-dark); }
.il-bar-soft { fill: var(--line); }
.il-bar { fill: var(--line-strong); }
.il-pill { fill: var(--accent); }
.il-dot-on { fill: var(--primary); }
.il-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.il-dot-off { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.il-coin-b { fill: var(--accent-dark); }
.il-coin-s { fill: var(--accent); }
.il-coin-t { fill: #E3AE55; }
.il-spark { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }

@media (min-width: 640px) {
	.jh-hero { padding-block: 44px 60px; }
	.jh-picker { padding: 24px 24px 20px; }
	.jh-picker__submit { width: auto; min-width: 280px; }
	.jh-hero__lead { font-size: 17px; }
}
@media (min-width: 900px) {
	.jh-hero { padding-block: 64px 88px; }
	.jh-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 56px; }
	.jh-hero__visual { display: block; }
}

/* =====================================================================
 * 2. TIERS
 * ===================================================================== */
.jh-tiers { display: grid; gap: 14px; }
.jh-tier {
	position: relative; display: flex; flex-direction: column; padding: 22px 20px 18px;
	background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tier-c, var(--line-strong));
	border-radius: var(--r-lg); box-shadow: var(--e1);
	transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.jh-tier:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.jh-tier--s { --tier-c: var(--line-strong); }
.jh-tier--e { --tier-c: var(--accent); }
.jh-tier--c { --tier-c: var(--primary); }
.jh-tier--l { --tier-c: var(--primary-dark); }
.jh-tier__name { font-size: 17px; font-weight: 800; color: var(--ink); }
.jh-tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; color: var(--ink-muted); font-size: 14px; }
.jh-tier__price strong { font-size: 34px; font-weight: 900; line-height: 1.2; color: var(--primary); }
.jh-tier__meta { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.jh-tier__who { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
.jh-home .jh-tier__link {
	display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; min-height: 44px;
	font-size: 15px; font-weight: 800; color: var(--primary); text-decoration: none;
}
.jh-home .jh-tier__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.jh-home .jh-tier__link:hover { color: var(--accent-dark); }
.jh-home .jh-tier__link:focus-visible { outline: none; }
.jh-home .jh-tier__link:focus-visible::after { outline: 3px solid var(--primary-focus); outline-offset: 2px; }
.jh-tier__link .jh-ico { width: 18px; height: 18px; transition: transform var(--d-2) var(--ease); }
.jh-tier:hover .jh-tier__link .jh-ico { transform: translateX(-3px); }
@media (min-width: 640px)  { .jh-tiers { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .jh-tiers { grid-template-columns: repeat(4, 1fr); } }

/* =====================================================================
 * 3. STEPS
 * ===================================================================== */
.jh-steps { display: grid; gap: 14px; }
.jh-step {
	position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start;
	padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.jh-step__icon {
	grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px;
	border-radius: 50%; background: var(--primary-soft); color: var(--primary);
}
.jh-step__icon .jh-ico { width: 28px; height: 28px; }
.jh-step__num {
	position: absolute; top: 14px; inset-inline-end: 16px; font-size: 28px; font-weight: 900; line-height: 1; color: var(--accent); opacity: .55;
}
.jh-step__title { font-size: 17px; font-weight: 800; padding-inline-end: 32px; }
.jh-step__text { margin-top: 4px; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
@media (min-width: 768px) {
	.jh-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.jh-step { display: block; padding: 28px 24px; }
	.jh-step__icon { margin-bottom: 16px; }
	.jh-step__num { top: 20px; inset-inline-end: 22px; font-size: 36px; }
	.jh-step__title { padding-inline-end: 0; font-size: 18px; }
	.jh-step__text { margin-top: 8px; font-size: 15px; }
}

/* =====================================================================
 * 4. ROOMS
 * ===================================================================== */
.jh-rooms { display: grid; gap: 10px; }
.jh-home .jh-room {
	display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px;
	background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-md);
	color: var(--ink); text-decoration: none;
	transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.jh-home .jh-room:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); transform: translateY(-2px); }
.jh-room__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--primary); }
.jh-room__icon .jh-ico { width: 28px; height: 28px; }
.jh-room__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.jh-room__title { font-size: 16px; font-weight: 800; line-height: 1.5; }
.jh-room__count { font-size: 13px; color: var(--ink-muted); }
.jh-room__go { color: var(--primary); }
.jh-room__go .jh-ico { width: 20px; height: 20px; }
@media (min-width: 640px)  { .jh-rooms { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) {
	.jh-rooms { grid-template-columns: repeat(5, 1fr); }
	.jh-home .jh-room { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; padding: 22px 18px 18px; }
	.jh-room__body { flex: none; }
	.jh-room__go { margin-top: auto; }
	.jh-room__go .jh-ico { transition: transform var(--d-2) var(--ease); }
	.jh-room:hover .jh-room__go .jh-ico { transform: translateX(-4px); }
}

/* =====================================================================
 * 5. BUDGET PILLS
 * ===================================================================== */
.jh-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .jh-pills { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.jh-home .jh-pill {
	display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 12px; text-align: center;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
	font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink); text-decoration: none;
	transition: background-color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.jh-home .jh-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =====================================================================
 * 6. PRICE GUIDES
 * ===================================================================== */
.jh-guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.jh-guide {
	position: relative; display: flex; flex-direction: column; padding: 16px 14px 8px;
	background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-md);
	transition: border-color var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.jh-guide:hover { border-color: var(--primary); transform: translateY(-2px); }
.jh-guide__title { font-size: 15px; font-weight: 800; line-height: 1.6; }
.jh-guide__price { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.jh-guide__price strong { display: block; font-size: 18px; font-weight: 900; line-height: 1.5; color: var(--primary); }
.jh-guide__range { margin-top: 2px; font-size: 13px; line-height: 1.8; color: var(--ink-muted); }
.jh-home .jh-guide__link {
	display: flex; align-items: center; margin-top: auto; padding-top: 8px; min-height: 44px;
	font-size: 13px; font-weight: 800; color: var(--primary); text-decoration: none;
}
.jh-home .jh-guide__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.jh-home .jh-guide__link:hover { color: var(--accent-dark); }
.jh-home .jh-guide__link:focus-visible { outline: none; }
.jh-home .jh-guide__link:focus-visible::after { outline: 3px solid var(--primary-focus); outline-offset: 2px; }
@media (min-width: 640px) {
	.jh-guides { gap: 14px; }
	.jh-guide { padding: 20px 18px 10px; }
	.jh-guide__title { font-size: 16px; }
	.jh-guide__price strong { font-size: 22px; }
	.jh-guide__range { font-size: 13px; }
	.jh-home .jh-guide__link { font-size: 14px; }
}
@media (min-width: 1024px) { .jh-guides { grid-template-columns: repeat(4, 1fr); } }

/* =====================================================================
 * 7. CAROUSEL (plugin markup; we only reserve space)
 * ===================================================================== */
.jh-sec--carousel { min-height: 420px; }

/* =====================================================================
 * 8. POSTS
 * ===================================================================== */
.jh-posts { display: grid; gap: 18px; }
.jh-post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.jh-home .jh-post__media {
	display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--primary-soft); color: var(--primary); overflow: hidden;
}
.jh-post__media .jh-ico { width: 40px; height: 40px; }
.jh-post__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jh-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.jh-post__date { font-size: 12px; color: var(--ink-muted); }
.jh-post__title { font-size: 17px; font-weight: 800; line-height: 1.7; }
.jh-home .jh-post__title a { color: var(--ink); text-decoration: none; }
.jh-home .jh-post__title a:hover { color: var(--primary); }
.jh-post__excerpt { font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
@media (min-width: 768px) { .jh-posts { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* =====================================================================
 * 9. FAQ
 * ===================================================================== */
.jh-faq { display: grid; gap: 10px; }
.jh-faq__item { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.jh-faq__item[open] { background: var(--surface); border-color: var(--primary); }
.jh-faq__sum {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 18px;
	cursor: pointer; list-style: none;
}
.jh-faq__sum::-webkit-details-marker { display: none; }
.jh-faq__sum::marker { content: ""; }
.jh-faq__sum::after {
	content: ""; flex: none; width: 12px; height: 12px; margin-inline-end: 4px;
	border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
	transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--d-2) var(--ease);
}
.jh-faq__item[open] > .jh-faq__sum::after { transform: rotate(-135deg) translate(-3px, -3px); }
.jh-faq__sum:focus-visible { outline: 3px solid var(--primary-focus); outline-offset: 2px; border-radius: var(--r-md); }
.jh-faq__q { font-size: 16px; font-weight: 800; line-height: 1.7; color: var(--ink); }
.jh-faq__a { padding: 0 18px 18px; }
.jh-faq__a p { font-size: 15px; line-height: 2; color: var(--ink); }
@media (min-width: 768px) {
	.jh-faq__sum { padding: 12px 24px; }
	.jh-faq__q { font-size: 17px; }
	.jh-faq__a { padding: 0 24px 22px; }
}

/* =====================================================================
 * 10. FINAL CTA
 * ===================================================================== */
.jh-cta { padding-block: 48px 56px; }
.jh-cta__box {
	padding: 36px 22px; text-align: center; color: #fff; border-radius: var(--r-xl);
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(200, 137, 43, .28) 0%, rgba(200, 137, 43, 0) 60%),
		var(--primary);
}
.jh-cta__title { font-size: 26px; font-weight: 900; line-height: 1.5; color: #fff; }
.jh-cta__text { max-width: 520px; margin: 10px auto 0; font-size: 15px; line-height: 2; color: rgba(255, 255, 255, .88); }
.jh-cta__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media (min-width: 640px) {
	.jh-cta { padding-block: 64px 88px; }
	.jh-cta__box { padding: 56px 40px; }
	.jh-cta__title { font-size: 34px; }
	.jh-cta__text { font-size: 16px; }
	.jh-cta__actions { flex-direction: row; justify-content: center; gap: 14px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.jh-home * { transition: none !important; transform: none !important; }
}
