/* ── Beranda v2 (UI baru, 2026-10-27) ── kelas `hm-*`; edukasi & club memakai home.css ── */
.hm-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--spacing-lg); box-sizing: border-box; width: 100%; }
.hm-head { text-align: center; display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.hm-title { margin: 0; text-align: center; font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--color-primary); line-height: 1.2; }
.hm-subtitle { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.hm-dots { display: flex; justify-content: center; gap: 8px; }
.hm-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hm-dot.is-on { width: 28px; background: var(--color-primary); }
.hm-dots--dark .hm-dot { background: var(--color-border-strong); }
.hm-dots--dark .hm-dot.is-on { background: var(--color-primary); }
.hm-quote-mark { color: var(--color-primary); flex-shrink: 0; }
.hm-car-btn {
	flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-primary); cursor: pointer;
	box-shadow: 0 2px 8px rgba(26, 13, 8, .08); transition: background .2s, color .2s;
}
.hm-car-btn:hover { background: var(--color-primary); color: #fff; }

/* Hero */
.hm-hero { position: relative; overflow: hidden; background: var(--color-surface); }
.hm-hero-track { display: flex; transition: transform .6s cubic-bezier(.455, .03, .515, .955); }
.hm-hero-slide { flex: 0 0 100%; display: block; }
.hm-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 2880 / 1436; object-fit: cover; }
.hm-hero .hm-dots { position: absolute; left: 0; right: 0; bottom: 14px; }
.hm-hero .hm-dot.is-on { background: #fff; }

/* Tentang + angka */
.hm-intro { background: #fff; padding: var(--section-md) 0; }
.hm-intro-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--spacing-lg); box-sizing: border-box; display: flex; flex-direction: column; gap: 56px; align-items: center; }
.hm-intro-text { max-width: 980px; display: flex; flex-direction: column; gap: 20px; text-align: center; }
.hm-intro-text p { margin: 0; font-size: var(--text-base); line-height: 1.7; color: var(--color-primary); }
.hm-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hm-stat { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hm-stat-value { font-size: var(--text-4xl); font-weight: var(--weight-bold); color: var(--color-primary); line-height: 1.1; }
.hm-stat-label { margin: 0; max-width: 260px; font-size: var(--text-xs); line-height: 1.5; color: var(--primitive-neutral-700); }

/* Banner */
.hm-banner { background: #fff; }
.hm-banner a, .hm-banner-img { display: block; width: 100%; }
.hm-banner-img { height: auto; aspect-ratio: 2880 / 1436; object-fit: cover; }

/* Trust */
.hm-trust { background: #fff; padding: var(--section-md) 0; }
.hm-badges { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 64px); flex-wrap: wrap; }
.hm-badge { width: clamp(96px, 10vw, 140px); height: auto; display: block; }

/* Produk */
.hm-showcase { background: #fff; padding: 0 0 var(--section-md); }
.hm-showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hm-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-tab {
	height: 34px; padding: 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: #fff;
	font: inherit; font-size: 13px; font-weight: var(--weight-medium); color: var(--color-muted); cursor: pointer; transition: all .2s ease;
}
.hm-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.hm-tab.is-on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.hm-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: var(--weight-medium); color: var(--color-text); }
.hm-more:hover { color: var(--color-primary); }
.hm-car { position: relative; display: flex; align-items: center; gap: 12px; }
.hm-car .hm-car-btn { position: relative; z-index: 20; }
/* Panggung: kartu diposisikan oleh script (tengah = aktif) */
.hm-car-track { position: relative; flex: 1; min-width: 0; height: 520px; overflow: hidden; }
.hm-prod {
	--cw: clamp(190px, 17vw, 250px);
	position: absolute; left: 50%; top: 56px; width: var(--cw); box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 16px 14px 18px; background: #fff; border: 1px solid var(--primitive-neutral-300); border-radius: var(--radius-lg);
	transition: transform .45s cubic-bezier(.455, .03, .515, .955), opacity .35s ease, box-shadow .3s ease; will-change: transform, opacity;
}
.hm-prod[data-d="x"] { opacity: 0; pointer-events: none; }
.hm-prod.is-center { box-shadow: 0 18px 44px rgba(92, 37, 25, .16); border-color: var(--primitive-neutral-300); }
.hm-prod-media { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.hm-prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-stars { display: flex; gap: 2px; color: var(--color-secondary); }
.hm-stars svg { width: 13px; height: 13px; }
.hm-prod.is-center .hm-stars svg { width: 15px; height: 15px; }
.hm-prod-name { margin: 0; text-align: center; font-size: 13px; font-weight: var(--weight-medium); line-height: 1.35; }
.hm-prod.is-center .hm-prod-name { font-size: 14px; font-weight: var(--weight-semibold); }
.hm-prod-name a { color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-prod-btn {
	margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 22px;
	border: 1px solid var(--color-primary); border-radius: var(--radius-full); font-size: 12px; font-weight: var(--weight-medium); color: var(--color-primary);
	transition: background .2s, color .2s;
}
.hm-prod.is-center .hm-prod-btn { height: 38px; background: var(--color-primary); color: #fff; font-weight: var(--weight-semibold); }
.hm-prod-btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.hm-empty { text-align: center; color: var(--color-muted); }
.hm-empty[hidden] { display: none; }

/* Timeline (ukuran mengikuti referensi: konten 1280px, kolom 278px, jarak 56px) */
.hm-timeline { background: #fff; padding: 0 0 var(--section-md); }
.hm-timeline-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px; }
.hm-tl { display: flex; flex-direction: column; min-width: 0; }
.hm-tl-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 0; display: block; }
.hm-tl-line { position: relative; height: 28px; margin-top: 36px; display: flex; align-items: center; }
.hm-tl-line::before { content: ""; position: absolute; left: 0; right: -56px; top: 50%; height: 2px; transform: translateY(-50%); background: #DCCBBB; }
.hm-tl:last-child .hm-tl-line::before { right: 0; }
.hm-tl-line span {
	position: relative; z-index: 1; margin-left: 15px; width: 26px; height: 26px; font-size: 0; color: #6F4221;
	background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
}
.hm-tl-year { margin-top: 18px; font-size: 26px; font-weight: var(--weight-bold); line-height: 1.2; color: #6F4221; }
.hm-tl-title { margin: 20px 0 0; min-height: calc(26px * 4); font-size: 19px; font-weight: var(--weight-semibold); text-transform: uppercase; line-height: 26px; color: #6F4221; }
.hm-tl-text { margin: 30px 0 0; font-size: 14px; line-height: 21px; color: var(--color-muted); }

/* Trusted & Tested */
.hm-awards { background: #fff; padding: 0 0 var(--section-md); display: flex; flex-direction: column; gap: 32px; }
.hm-marquee { position: relative; overflow: hidden; width: min(calc(var(--container) - 2 * var(--spacing-lg)), calc(100% - 2 * var(--spacing-lg))); margin: 0 auto; }
/* Pudar di ujung kiri & kanan supaya logo tidak terlihat terpotong */
.hm-marquee::before, .hm-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(48px, 10%, 140px); z-index: 2; pointer-events: none; }
.hm-marquee::before { left: 0; background: linear-gradient(to right, #fff 8%, rgba(255, 255, 255, 0)); }
.hm-marquee::after { right: 0; background: linear-gradient(to left, #fff 8%, rgba(255, 255, 255, 0)); }
.hm-marquee-track { display: flex; width: max-content; animation: hm-marquee 40s linear infinite; }
.hm-marquee:hover .hm-marquee-track { animation-play-state: paused; }
.hm-marquee-list { display: flex; align-items: center; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.hm-marquee-list img { height: 110px; width: auto; display: block; }
@keyframes hm-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hm-marquee-track { animation: none; } .hm-hero-track, .hm-med-track { transition: none; } }

/* Dipercaya oleh medis */
.hm-med { background: #fff; padding: 0 0 var(--section-md); }
.hm-med .hm-title { margin-bottom: 32px; }
.hm-med-wrap { display: flex; align-items: center; gap: 12px; }
.hm-med-view { flex: 1; min-width: 0; overflow: hidden; }
.hm-med-track { display: flex; transition: transform .5s cubic-bezier(.455, .03, .515, .955); }
.hm-med-slide { flex: 0 0 100%; display: flex; align-items: stretch; box-sizing: border-box; }
.hm-med-photo { width: clamp(150px, 21%, 260px); aspect-ratio: 1; object-fit: cover; border-radius: 16px 0 0 16px; flex-shrink: 0; align-self: center; }
.hm-med-card { flex: 1; background: var(--color-surface); border-radius: 0 16px 16px 0; padding: 28px 40px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hm-med-quote { margin: 4px 0 8px; font-size: var(--text-base); font-style: italic; font-weight: var(--weight-semibold); line-height: 1.6; color: var(--color-primary); }
.hm-med-name { margin: 0; font-size: 14px; font-weight: var(--weight-bold); color: var(--primitive-neutral-800); }
.hm-med-role { margin: 0; font-size: 12px; color: var(--color-muted); }
.hm-med .hm-dots { margin-top: 24px; }

/* Mommy */
.hm-mommy { background: #fff; padding: 0 0 var(--section-md); overflow: hidden; }
.hm-mommy .hm-title { margin-bottom: 32px; }
.hm-mommy-wrap { position: relative; }
.hm-mommy-stage { position: relative; height: 270px; overflow: hidden; padding: 0; }
.hm-mommy-card {
	--mw: clamp(280px, 32vw, 440px);
	position: absolute; left: 50%; top: 14px; width: var(--mw); min-height: 220px; box-sizing: border-box;
	display: flex; flex-direction: column; gap: 14px; padding: 24px 26px;
	background: #fff; border-radius: 20px; box-shadow: 0 10px 34px rgba(26, 13, 8, .10);
	transition: transform .5s cubic-bezier(.455, .03, .515, .955), opacity .4s ease;
}
.hm-mommy-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; }
.hm-mommy-btn--prev { left: max(16px, calc((100% - var(--container)) / 2 + 24px)); }
.hm-mommy-btn--next { right: max(16px, calc((100% - var(--container)) / 2 + 24px)); }
.hm-mommy .hm-dots { margin-top: 8px; }
.hm-mommy-quote { margin: 0; font-size: 14px; line-height: 1.7; color: var(--primitive-neutral-700); }
.hm-mommy-person { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-text); }
.hm-mommy-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

@media (max-width: 1024px) {
	.hm-timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
	.hm-tl-line::before { right: -32px !important; }
	.hm-tl:nth-child(2n) .hm-tl-line::before { right: 0 !important; }
	.hm-tl-title { min-height: 0; }
}
@media (max-width: 768px) {
	.hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-stat-value { font-size: var(--text-3xl); }
	.hm-title { font-size: var(--text-2xl); }
	.hm-car-track { height: 470px; }
	.hm-prod { --cw: 58vw; }
	.hm-car-btn { width: 34px; height: 34px; }
	.hm-med-slide { flex-direction: column; }
	.hm-med-photo { width: 100%; max-height: 260px; aspect-ratio: auto; border-radius: 16px 16px 0 0; }
	.hm-med-card { border-radius: 0 0 16px 16px; padding: 22px 20px; }
	.hm-marquee-list img { height: 80px; }
	.hm-timeline-grid { grid-template-columns: 1fr; }
	.hm-tl-line::before { right: 0 !important; }
}

/* ── Healthy Baby Club: penyesuaian ke desain baru (lebar container 1440px, kartu 2-3 sedikit lebih rendah) ── */
.home-club-inner { max-width: var(--container); gap: 44px; }
.home-club-banner { border-radius: 8px; }
.home-club-cards { gap: 40px; align-items: start; }
.home-club-card-img { border-radius: 8px; aspect-ratio: 346 / 231; width: 100%; object-fit: cover; }
.home-club-card-label { width: calc(100% - 30px); padding: 14px 12px; }
.home-club-card-label strong { font-size: 20px; }
.home-club-card-label span { font-size: 16px; font-weight: var(--weight-regular); color: var(--color-muted); }
.home-club-btn { font-size: 16px; padding: 0.65rem 2rem; }
@media (max-width: 768px) {
	.home-club-inner { gap: 32px; }
}

/* Subjudul club: satu baris di desktop (tadinya dibatasi 720px) */
.home-club-subtitle { max-width: none; width: 100%; }
@media (min-width: 769px) { .home-club-subtitle { white-space: nowrap; } }

/* ── Jarak antar section seragam (acuan: template /fest-{tahun}): tiap section hanya punya margin bawah 80px ── */
.hm-hero, .hm-intro, .hm-banner, .hm-trust, .hm-showcase, .hm-timeline, .hm-awards, .hm-med, .hm-mommy, .home-edu, .home-club { padding: 0; margin: 0 0 80px; }
@media (max-width: 768px) {
	.hm-hero, .hm-intro, .hm-banner, .hm-trust, .hm-showcase, .hm-timeline, .hm-awards, .hm-med, .hm-mommy, .home-edu, .home-club { margin-bottom: 60px; }
}
