/* =========================================================
   Ecohomes Forum Proyek — public pages
   Brand: --eh-accent #19babf  |  --eh-dark #1A2332
   ========================================================= */

:root {
	--eh-accent:      #19babf;
	--eh-accent-dark: #139399;
	--eh-dark:        #1A2332;
	--eh-dark-80:     rgba(26,35,50,.8);
	--eh-grey-50:     #f7f8fa;
	--eh-grey-100:    #eef0f3;
	--eh-grey-400:    #a0aab8;
	--eh-grey-700:    #4a5568;
	--eh-text:        #1A2332;
	--eh-radius:      12px;
	--eh-shadow-sm:   0 2px 8px rgba(26,35,50,.07);
	--eh-shadow-md:   0 6px 24px rgba(26,35,50,.11);
	--eh-shadow-lg:   0 16px 48px rgba(26,35,50,.16);
	--eh-font:        'Inter', system-ui, sans-serif;
	--eh-transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ── Shared ─────────────────────────────────────────────── */
.eh-fp-archive,
.eh-fp-single {
	font-family: var(--eh-font);
	color: var(--eh-text);
}

.eh-fp-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.eh-fp-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	flex-shrink: 0;
}

.eh-fp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: transform var(--eh-transition), box-shadow var(--eh-transition), background var(--eh-transition);
	background: var(--eh-accent);
	color: #fff;
	width: 100%;
	justify-content: center;
	margin-bottom: 10px;
}
.eh-fp-btn:hover {
	background: var(--eh-accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(25,186,191,.35);
	color: #fff;
	text-decoration: none;
}
.eh-fp-btn--wa {
	background: #25D366;
}
.eh-fp-btn--wa:hover {
	background: #1ebe5c;
	box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.eh-fp-btn--outline {
	background: transparent;
	color: var(--eh-accent);
	border: 2px solid var(--eh-accent);
}
.eh-fp-btn--outline:hover {
	background: var(--eh-accent);
	color: #fff;
}

.eh-fp-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* ── ARCHIVE — Hero ─────────────────────────────────────── */
.eh-fp-hero {
	position: relative;
	background: var(--eh-dark);
	padding: 72px 0 0;
	overflow: hidden;
}
.eh-fp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 70% 50%, rgba(25,186,191,.25) 0%, transparent 65%);
	pointer-events: none;
}
.eh-fp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 56px;
	text-align: center;
}
.eh-fp-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--eh-accent);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.eh-fp-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--eh-accent);
	animation: eh-pulse 1.8s ease-in-out infinite;
}
@keyframes eh-pulse {
	0%,100% { opacity:1; transform:scale(1); }
	50%      { opacity:.4; transform:scale(.75); }
}
.eh-fp-hero__title {
	font-size: clamp(2rem,5vw,3.25rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 16px;
	letter-spacing: -.02em;
	line-height: 1.15;
}
.eh-fp-hero__sub {
	font-size: 1rem;
	color: rgba(255,255,255,.7);
	margin: 0 auto;
	max-width: 560px;
	line-height: 1.7;
}
.eh-fp-hero__wave {
	display: block;
	line-height: 0;
}
.eh-fp-hero__wave svg {
	display: block;
	width: 100%;
	height: 60px;
	fill: #fff;
}

/* ── ARCHIVE — Filters ──────────────────────────────────── */
.eh-fp-filters-wrap {
	background: #fff;
	padding: 20px 0 16px;
	border-bottom: 1px solid var(--eh-grey-100);
	position: sticky;
	top: 0;
	z-index: 90;
	box-shadow: var(--eh-shadow-sm);
}
.eh-fp-filters {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.eh-fp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.eh-fp-chip {
	padding: 6px 16px;
	border-radius: 20px;
	font-size: .8125rem;
	font-weight: 600;
	border: 1.5px solid var(--eh-grey-100);
	background: var(--eh-grey-50);
	color: var(--eh-grey-700);
	cursor: pointer;
	transition: all var(--eh-transition);
	white-space: nowrap;
}
.eh-fp-chip:hover {
	border-color: var(--eh-accent);
	color: var(--eh-accent);
	background: rgba(25,186,191,.06);
}
.eh-fp-chip.is-active {
	background: var(--eh-accent);
	border-color: var(--eh-accent);
	color: #fff;
}
.eh-fp-results-meta {
	font-size: .8125rem;
	color: var(--eh-grey-400);
	margin-left: auto;
	white-space: nowrap;
}

/* ── ARCHIVE — Grid ─────────────────────────────────────── */
.eh-fp-grid-section {
	background: var(--eh-grey-50);
	padding: 40px 0 64px;
}
.eh-fp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

/* ── Card ───────────────────────────────────────────────── */
.eh-fp-card {
	background: #fff;
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow-sm);
	overflow: hidden;
	transition: transform var(--eh-transition), box-shadow var(--eh-transition);
}
.eh-fp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--eh-shadow-lg);
}
.eh-fp-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.eh-fp-card__thumb {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--eh-grey-100);
}
.eh-fp-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.eh-fp-card:hover .eh-fp-card__img {
	transform: scale(1.04);
}
.eh-fp-card__thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--eh-grey-400);
}
.eh-fp-card__thumb-placeholder svg {
	width: 48px;
	height: 48px;
}
.eh-fp-card__type-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.eh-fp-card__status-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
}

.eh-fp-card__body {
	padding: 18px 20px 20px;
}
.eh-fp-card__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.4;
	color: var(--eh-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eh-fp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 10px;
}
.eh-fp-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .78rem;
	color: var(--eh-grey-700);
}
.eh-fp-card__needs {
	font-size: .8rem;
	color: var(--eh-grey-700);
	margin: 0 0 12px;
	line-height: 1.5;
}
.eh-fp-card__needs strong {
	color: var(--eh-dark);
}

/* Progress bar */
.eh-fp-card__progress {
	margin: 10px 0 12px;
}
.eh-fp-card__progress-bar {
	height: 5px;
	border-radius: 3px;
	background: var(--eh-grey-100);
	overflow: hidden;
}
.eh-fp-card__progress-fill {
	height: 100%;
	border-radius: 3px;
	background: var(--eh-accent);
	transition: width .6s ease;
}
.eh-fp-card__progress-label {
	display: block;
	font-size: .72rem;
	color: var(--eh-grey-400);
	margin-top: 4px;
}

.eh-fp-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--eh-grey-100);
	margin-top: 10px;
}
.eh-fp-card__price {
	font-size: .875rem;
	font-weight: 700;
	color: var(--eh-accent);
}
.eh-fp-card__time {
	font-size: .75rem;
	color: var(--eh-grey-400);
}

/* Pagination */
.eh-fp-grid-section .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	gap: 6px;
}
.eh-fp-grid-section .page-numbers li {}
.eh-fp-grid-section .page-numbers a,
.eh-fp-grid-section .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: .875rem;
	font-weight: 600;
	border: 1.5px solid var(--eh-grey-100);
	background: #fff;
	color: var(--eh-grey-700);
	text-decoration: none;
	transition: all var(--eh-transition);
}
.eh-fp-grid-section .page-numbers a:hover {
	border-color: var(--eh-accent);
	color: var(--eh-accent);
}
.eh-fp-grid-section .page-numbers .current {
	background: var(--eh-accent);
	border-color: var(--eh-accent);
	color: #fff;
}

/* Empty state */
.eh-fp-empty {
	text-align: center;
	padding: 80px 24px;
}
.eh-fp-empty__icon {
	width: 64px;
	margin: 0 auto 24px;
}
.eh-fp-empty h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 10px;
}
.eh-fp-empty p {
	color: var(--eh-grey-700);
	margin: 0 0 24px;
}

/* ── SINGLE — Breadcrumb ────────────────────────────────── */
.eh-fp-breadcrumb {
	background: var(--eh-grey-50);
	border-bottom: 1px solid var(--eh-grey-100);
	padding: 12px 0;
	font-size: .8125rem;
	color: var(--eh-grey-400);
}
.eh-fp-breadcrumb .eh-fp-container {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.eh-fp-breadcrumb a {
	color: var(--eh-accent);
	text-decoration: none;
}
.eh-fp-breadcrumb a:hover {
	text-decoration: underline;
}
.eh-fp-breadcrumb span:last-child {
	color: var(--eh-grey-700);
	font-weight: 500;
}

/* ── SINGLE — Hero ──────────────────────────────────────── */
.eh-fp-single-hero {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	background: var(--eh-dark);
	overflow: hidden;
}
.eh-fp-single-hero__bg {
	position: absolute;
	inset: 0;
}
.eh-fp-single-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.eh-fp-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26,35,50,.92) 0%, rgba(26,35,50,.4) 60%, transparent 100%);
}
.eh-fp-single-hero__content {
	position: relative;
	z-index: 1;
	padding-top: 40px;
	padding-bottom: 40px;
}
.eh-fp-single-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.eh-fp-single-hero__title {
	font-size: clamp(1.5rem,4vw,2.5rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 14px;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.eh-fp-single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: rgba(255,255,255,.75);
	font-size: .875rem;
}
.eh-fp-single-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ── SINGLE — Body layout ───────────────────────────────── */
.eh-fp-single-body {
	background: var(--eh-grey-50);
	padding: 40px 0 72px;
}
.eh-fp-single-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 32px;
	align-items: start;
}

/* ── SINGLE — Info Grid ─────────────────────────────────── */
.eh-fp-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 28px;
}
.eh-fp-info-card {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 16px 18px;
	box-shadow: var(--eh-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.eh-fp-info-card__label {
	font-size: .73rem;
	color: var(--eh-grey-400);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.eh-fp-info-card__value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--eh-dark);
}
.eh-fp-info-card__value--accent {
	color: var(--eh-accent);
}

/* ── SINGLE — Progress ──────────────────────────────────── */
.eh-fp-single-progress {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 20px 22px;
	box-shadow: var(--eh-shadow-sm);
	margin-bottom: 24px;
}
.eh-fp-single-progress__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--eh-dark);
}
.eh-fp-single-progress__pct {
	color: var(--eh-accent);
}
.eh-fp-single-progress__track {
	height: 8px;
	border-radius: 4px;
	background: var(--eh-grey-100);
	overflow: hidden;
}
.eh-fp-single-progress__fill {
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--eh-accent), var(--eh-accent-dark));
	transition: width .8s ease;
}

/* ── SINGLE — Needs & Content ───────────────────────────── */
.eh-fp-single-needs {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 24px;
	box-shadow: var(--eh-shadow-sm);
	margin-bottom: 24px;
}
.eh-fp-single-needs h2 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--eh-dark);
}
.eh-fp-single-needs p {
	font-size: .9rem;
	line-height: 1.7;
	color: var(--eh-grey-700);
	margin: 0;
}

.eh-fp-single-content {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 28px;
	box-shadow: var(--eh-shadow-sm);
	font-size: .9375rem;
	line-height: 1.75;
	color: var(--eh-grey-700);
}
.eh-fp-single-content h2,
.eh-fp-single-content h3 {
	color: var(--eh-dark);
}

/* ── SINGLE — Sidebar ───────────────────────────────────── */
.eh-fp-single-sidebar {
	position: sticky;
	top: 80px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eh-fp-cta-card {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 28px 24px;
	box-shadow: var(--eh-shadow-md);
	text-align: center;
}
.eh-fp-cta-card__icon {
	width: 48px;
	margin: 0 auto 16px;
}
.eh-fp-cta-card__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--eh-dark);
}
.eh-fp-cta-card__desc {
	font-size: .85rem;
	color: var(--eh-grey-700);
	line-height: 1.6;
	margin: 0 0 20px;
}

.eh-fp-share-card {
	background: #fff;
	border-radius: var(--eh-radius);
	padding: 20px 24px;
	box-shadow: var(--eh-shadow-sm);
}
.eh-fp-share-card h4 {
	font-size: .875rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--eh-dark);
}
.eh-fp-share-btns {
	display: flex;
	gap: 10px;
}
.eh-fp-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: transform var(--eh-transition), opacity var(--eh-transition);
	text-decoration: none;
}
.eh-fp-share-btn svg {
	width: 18px;
	height: 18px;
}
.eh-fp-share-btn:hover {
	transform: scale(1.1);
	opacity: .85;
}
.eh-fp-share-btn--fb  { background: #1877f2; color: #fff; }
.eh-fp-share-btn--tw  { background: #1da1f2; color: #fff; }
.eh-fp-share-btn--copy { background: var(--eh-grey-100); color: var(--eh-grey-700); }

.eh-fp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--eh-accent);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 0;
}
.eh-fp-back-link:hover {
	color: var(--eh-accent-dark);
	text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
	.eh-fp-single-layout {
		grid-template-columns: 1fr;
	}
	.eh-fp-single-sidebar {
		position: static;
	}
}
@media (max-width: 640px) {
	.eh-fp-grid {
		grid-template-columns: 1fr;
	}
	.eh-fp-hero {
		padding-top: 48px;
	}
	.eh-fp-filters-wrap {
		padding: 14px 0 12px;
	}
	.eh-fp-chips {
		gap: 6px;
	}
	.eh-fp-chip {
		padding: 5px 12px;
		font-size: .75rem;
	}
	.eh-fp-info-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
