/* =========================================================
   ALENGKA HOME LIVING — Stylesheet
   Palet: ivory/beige · hijau tua · terakota · charcoal
   ========================================================= */

:root {
  --ivory: #FAF7F2;
  --beige: #F1EBE1;
  --sand: #E4DACB;
  --green: #1F3A2E;
  --green-2: #2C4F3F;
  --green-soft: #DDE5DC;
  --terra: #B5653E;
  --terra-dark: #9A5230;
  --ink: #1C1C1A;
  --text: #4A4640;
  --muted: #847D73;
  --line: rgba(28, 28, 26, .1);
  --white: #FFFFFF;
  --wa: #25D366;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(31, 58, 46, .06);
  --shadow: 0 18px 40px -18px rgba(31, 58, 46, .28);
  --shadow-lg: 0 30px 60px -25px rgba(31, 58, 46, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 67px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
/* Semua foto memakai object-fit: cover agar tidak gepeng di layar apa pun */
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--beige); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Tipografi umum ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.eyebrow--light { color: #E6C9A8; }

.section { padding: clamp(56px, 6.5vw, 96px) 0; }
.section__head { max-width: 680px; margin: 0 auto clamp(36px, 4.5vw, 56px); text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section__title em, .hero__title em, .closing__title em { font-style: italic; font-weight: 500; color: var(--terra); }
.section__title--light { color: var(--beige); }
.section__title--light em { color: #E6C9A8; }
.section__lead { margin-top: 20px; font-size: 17px; color: var(--muted); }

/* ---------- Tombol ---------- */
.btn {
  --bg: var(--green); --fg: var(--beige);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn::before { /* efek "fill" halus saat hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--terra);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--white); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico use[href="#i-arrow"], .btn:hover svg:last-child { transform: translateX(3px); }

.btn--primary { --bg: var(--green); --fg: var(--beige); }
.btn--light { --bg: var(--beige); --fg: var(--green); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--wa); }
.btn--outline { --bg: transparent; --fg: var(--green); border-color: var(--green); }
.btn--outline::before { background: var(--green); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 19px 36px; font-size: 16px; }
.btn--wa {
  --bg: var(--green-soft); --fg: var(--green);
  padding: 10px 16px; font-size: 13px; gap: 8px;
}
.btn--wa::before { background: var(--wa); }
.btn--wa .ico { width: 16px; height: 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor;
  transition: transform .6s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg); }
.logo__mark svg { width: 28px; height: 22px; }
.logo__img { height: 46px; width: auto; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.logo__text small { margin-top: 5px; font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.logo--light { color: var(--beige); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--white);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease), color .4s var(--ease);
}
.header .logo { color: var(--white); }
.header.is-scrolled {
  --header-h: 68px;
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.header.is-scrolled .logo { color: var(--green); }
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 247, 242, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative; font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
  padding: 6px 0; opacity: .85; transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header:not(.is-scrolled) .nav__cta { --bg: rgba(255,255,255,.14); --fg: var(--white); border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }

.burger { display: none; width: 44px; height: 44px; margin-right: -11px; position: relative; z-index: 60; }
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
  color: var(--white);
  overflow: hidden;
  background: var(--green); /* fallback bila foto belum ada */
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(18, 30, 24, .55) 0%, rgba(18, 30, 24, .78) 100%),
    linear-gradient(0deg, rgba(18, 30, 24, .6) 0%, transparent 40%);
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.hero__sub { max-width: 620px; margin: 26px auto 0; font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(255,255,255,.82); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }


/* ---------- Strip segmen ---------- */
.segments { background: var(--green); color: var(--beige); overflow: hidden; padding: 22px 0; }
.segments__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.segments__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.segments span { display: inline-flex; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: rgba(241,235,225,.8); }
.segments strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--beige); }
.segments i { font-style: normal; font-size: 14px; color: #E6C9A8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Keunggulan ---------- */
.features { background: var(--ivory); }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: clamp(32px, 3.6vw, 52px) clamp(26px, 3vw, 44px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
  transition: background-color .5s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--terra); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.feature:hover { background: var(--beige); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  margin: 0 auto 28px;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.feature__icon svg { width: 32px; height: 32px; }
.feature:hover .feature__icon { background: var(--green); color: var(--beige); transform: translateY(-4px) rotate(-6deg); }
.feature__title { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.feature__text { font-size: 15px; font-weight: 400; color: var(--text); max-width: 320px; margin-inline: auto; }

/* ---------- Katalog ---------- */
.catalog { background: var(--beige); }
.tabs {
  position: sticky; top: 67px; z-index: 20;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px; padding: 14px 0;
  background: var(--beige);
  /* latar penuh selebar layar tanpa merusak layout */
  box-shadow: 0 0 0 100vmax var(--beige);
  clip-path: inset(0 -100vmax);
}

.tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 100px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--sand); background: var(--ivory);
  transition: all .35s var(--ease);
}
.tab:hover { border-color: var(--green); color: var(--green); }
.tab.is-active { background: var(--green); border-color: var(--green); color: var(--beige); box-shadow: var(--shadow); }

.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  min-height: 400px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  animation: cardIn .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card__open {
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; cursor: pointer;
}
.card__open:focus-visible { outline-offset: -3px; }
.card__wa {
  position: relative; z-index: 3; flex-shrink: 0;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__wa svg { width: 22px; height: 22px; }
.card__wa:hover { background: var(--wa); color: var(--white); transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 20px -8px rgba(37,211,102,.6); }
.card__media {
  position: relative; aspect-ratio: 4 / 4.6; overflow: hidden;
  background: linear-gradient(135deg, var(--sand), var(--beige));
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { /* gradien halus di bawah foto */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(0deg, rgba(0,0,0,.18), transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }

/* Placeholder elegan jika file foto belum tersedia */
.card__media.is-missing img { display: none; }
.card__media.is-missing::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(31,58,46,.04) 14px 15px),
    linear-gradient(135deg, var(--sand), var(--beige));
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.card__title { margin-bottom: 18px; font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.18; color: var(--ink); }
.card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 20px;
}
.card__foot { align-items: center; border-top: 1px solid var(--line); }
.card__price { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 17px; color: var(--green); }
.card__price small { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.card__price del { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; order: 3; }
.card__price--ask { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 19px; }

.catalog__more { display: flex; justify-content: center; margin-top: 52px; }
.catalog__more[hidden] { display: none; }

.custom-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 80px; padding: clamp(32px, 4vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--green);
  color: rgba(241,235,225,.8);
}
.custom-cta h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.15; color: var(--beige); margin-bottom: 10px; }
.custom-cta .eyebrow { margin-bottom: 12px; }
.custom-cta p:not(.eyebrow) { max-width: 560px; }

/* ---------- Katalog Warna ---------- */
.colors {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: rgba(241,235,225,.75);
}
.colors__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.colors__text p { font-size: 17px; margin-top: 20px; max-width: 480px; }

.colors__gallery {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 70px); gap: 16px;
}
.colors__item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  cursor: zoom-in; background: var(--green);
}
.colors__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.colors__item:hover img { transform: scale(1.06); }
.colors__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--green); background: rgba(250,247,242,.92);
}
.colors__item--a { grid-row: 1 / 5; }
.colors__item--b { grid-row: 1 / 3; }
.colors__item--c { grid-row: 3 / 7; }
.colors__item--d { grid-row: 5 / 7; }

/* ---------- Cara Pesan ---------- */
.steps { background: var(--ivory); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__icon {
  position: relative; display: grid; place-items: center;
  width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--sand); color: var(--green);
  transition: all .5s var(--ease);
}
.step__icon svg { width: 36px; height: 36px; }
.step:hover .step__icon { background: var(--green); color: var(--beige); border-color: var(--green); transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  position: absolute; top: -2px; right: -2px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--terra); color: var(--white); font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 4px var(--ivory);
}
.step h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); max-width: 250px; margin-inline: auto; }

/* ---------- Closing CTA ---------- */
.closing {
  padding: clamp(56px, 7vw, 104px) 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(181,101,62,.14), transparent 60%),
    var(--beige);
  text-align: center;
}
.closing__inner { max-width: 820px; }
.closing__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; color: var(--ink); }
.closing__text { margin: 24px auto 40px; max-width: 600px; font-size: 17px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: rgba(241,235,225,.7); padding: 28px 0 22px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(241,235,225,.12); }
.footer__logo .logo__mark { width: 40px; height: 40px; }
.footer__logo .logo__mark svg { width: 24px; height: 18px; }
.footer__logo .logo__text strong { font-size: 21px; }
.footer__copy { padding-top: 18px; font-size: 13px; text-align: center; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--beige); }

/* ---------- WhatsApp melayang ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; gap: 0;
  height: 60px; padding: 0 17px; border-radius: 100px;
  background: var(--wa); color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: gap .45s var(--ease), padding .45s var(--ease), transform .4s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--wa); animation: waPulse 2.4s infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-float svg { width: 26px; height: 26px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 15px; transition: max-width .45s var(--ease); }
.wa-float { translate: 0 var(--lift, 0px); }
.wa-float:hover { gap: 10px; padding: 0 24px 0 20px; transform: translateY(-3px); }
.wa-float:hover .wa-float__label { max-width: 120px; }

/* ---------- Detail produk ---------- */
.pd {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 32px;
}
.pd[hidden] { display: none; }
.pd__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 22, 18, .72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pd__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(1080px, 100%); height: min(700px, calc(100vh - 64px));
  background: var(--ivory); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.pd.is-open .pd__backdrop { opacity: 1; }
.pd.is-open .pd__panel { opacity: 1; transform: none; }
.pd__media img { transition: opacity .18s ease; }
.pd__media.is-switching img { opacity: 0; }
.pd__nav[hidden], .pd__counter[hidden] { display: none; }

.pd__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 28px; line-height: 1; color: var(--green); background: var(--beige);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.pd__close:hover { background: var(--green); color: var(--beige); transform: rotate(90deg); }

.pd__media { position: relative; min-height: 0; background: linear-gradient(135deg, var(--sand), var(--beige)); overflow: hidden; }
.pd__media img { cursor: zoom-in; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__media.is-missing { cursor: default; }
.pd__media.is-missing img { display: none; }
.pd__media.is-missing::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--muted);
}
.pd__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,247,242,.92); color: var(--green); box-shadow: var(--shadow-sm);
  transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.pd__nav svg { width: 20px; height: 20px; }
.pd__nav:hover { background: var(--green); color: var(--beige); }
.pd__nav--prev { left: 16px; }
.pd__nav--next { right: 16px; }
.pd__nav--prev:hover { transform: translateX(-2px); }
.pd__nav--next:hover { transform: translateX(2px); }
.pd__counter {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
  padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: rgba(28,28,26,.6); color: var(--white);
}

.pd__info { display: flex; flex-direction: column; min-height: 0; }
.pd__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 48px 44px 24px; }
.pd__foot { flex-shrink: 0; padding: 18px 44px 22px; border-top: 1px solid var(--line); background: var(--ivory); }
.pd__cat { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 10px; padding-right: 48px; }
.pd__title { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.1; color: var(--ink); padding-right: 36px; }
.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd__price small { width: 100%; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd__price strong { font-size: 28px; font-weight: 700; color: var(--green); line-height: 1.1; }
.pd__price strong.is-ask { font-family: var(--font-display); font-style: italic; font-weight: 600; }
.pd__price del { font-size: 15px; color: var(--muted); }
.pd__label { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.pd__specs li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--text); }
.pd__specs li + li { margin-top: 8px; }
.pd__specs li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.pd__cta { width: 100%; }
.pd__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 60px 20px;
  background: rgba(15, 22, 18, .92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img {
  max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-sm);
  transform: scale(.96); transition: transform .45s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__figure figcaption { margin-top: 18px; font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--beige); text-align: center; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%;
  font-size: 32px; line-height: 1; color: var(--beige); background: rgba(255,255,255,.08);
  transition: background-color .3s, transform .4s var(--ease);
}
.lightbox__close:hover { background: var(--terra); transform: rotate(90deg); }

/* ---------- Animasi reveal saat scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(4) { transition-delay: .36s; }
.hero .reveal:nth-child(5) { transition-delay: .48s; }
.features__grid .reveal:nth-child(3n+2), .steps__list .reveal:nth-child(2) { transition-delay: .1s; }
.features__grid .reveal:nth-child(3n), .steps__list .reveal:nth-child(3) { transition-delay: .2s; }
.steps__list .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Laptop kecil */
@media (max-width: 1180px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .nav__list { gap: 24px; }
  .nav { gap: 24px; }
}

/* Tablet */
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  /* Menu HP: panel selebar layar, turun dari atas sampai sekitar tengah layar */
  .nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 55;
    min-height: 52vh; min-height: 52svh;
    flex-direction: column; justify-content: center; align-items: center; gap: 18px;
    padding: calc(var(--header-h) + 8px) 24px 28px;
    background: var(--ivory); color: var(--ink);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 48px -20px rgba(31, 58, 46, .45);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav.is-open { visibility: visible; transform: none; transition: transform .45s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: min(420px, 100%); }
  .nav__link { display: block; padding: 11px 14px; border-radius: 12px; text-align: center; font-size: 16px; opacity: 1; transition: background-color .25s, color .25s; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: var(--beige); color: var(--green); }
  .nav__cta, .header:not(.is-scrolled) .nav__cta { --bg: var(--green); --fg: var(--beige); border-color: transparent; backdrop-filter: none; width: min(420px, 100%); }

  /* logo & tombol tutup tetap terlihat di atas panel */
  .header .logo, .burger { position: relative; z-index: 60; transition: color .3s; }
  body.menu-open .header .logo { color: var(--green); }
  body.menu-open .burger { color: var(--ink); }
  body.menu-open { overflow: hidden; }

  /* lapisan gelap di bawah panel */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 45;
    background: rgba(15, 22, 18, .45);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  body.menu-open::after { opacity: 1; pointer-events: auto; }


  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .custom-cta { flex-direction: column; align-items: flex-start; }

  .colors__inner { grid-template-columns: 1fr; }
  .colors__gallery { grid-template-rows: repeat(6, 64px); }

  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }

}

@media (max-width: 860px) {
  .pd { padding: 0; place-items: end center; }
  .pd__panel {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    width: 100%; height: auto; max-height: 94vh; max-height: 94svh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }
  .pd__media { aspect-ratio: 4 / 3.4; max-height: 46vh; width: 100%; }
  .pd__scroll { padding: 24px 20px 18px; }
  .pd__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .pd__cat, .pd__title { padding-right: 0; }
  .pd__close { top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(250,247,242,.94); }
  .pd__nav { width: 40px; height: 40px; }
  .pd__nav--prev { left: 12px; }
  .pd__nav--next { right: 12px; }
}

/* Mobile */
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .logo__mark { width: 40px; height: 40px; }
  .logo__mark svg { width: 24px; height: 18px; }
  .logo__text strong { font-size: 21px; }
  .logo__text small { font-size: 8.5px; letter-spacing: .36em; }

  .hero { padding-bottom: 90px; }
  .hero__overlay { background: linear-gradient(0deg, rgba(18,30,24,.9) 0%, rgba(18,30,24,.7) 50%, rgba(18,30,24,.6) 100%); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .segments span { font-size: 11.5px; gap: 8px; }
  .segments strong { font-size: 25px; }

  .features__grid { grid-template-columns: 1fr; }

  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -18px 24px; padding: 12px 18px; scroll-padding-inline: 18px; scrollbar-width: none; scroll-snap-type: x proximity; box-shadow: none; clip-path: none; }

  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; scroll-snap-align: start; padding: 11px 18px; font-size: 14px; }

  .products { gap: 14px; }
  .card { border-radius: 14px; }
  .card__body { padding: 14px 12px 14px 14px; }
  .card__title { margin-bottom: 14px; font-size: 17.5px; line-height: 1.22; }
  .card__foot { gap: 6px; padding-top: 12px; }
  .card__price { font-size: 14.5px; }
  .card__price small { font-size: 10px; margin-bottom: 2px; }
  .card__wa { width: 36px; height: 36px; }
  .card__wa svg { width: 18px; height: 18px; }

  .custom-cta { margin-top: 44px; align-items: center; text-align: center; }
  .custom-cta p:not(.eyebrow) { margin-inline: auto; }
  .custom-cta .btn { width: 100%; }

  .colors__gallery { gap: 10px; grid-template-rows: repeat(6, 52px); }

  .steps__list { grid-template-columns: 1fr; row-gap: 48px; }

  .closing .btn { width: 100%; white-space: normal; }


  .wa-float { right: 16px; bottom: 16px; height: 56px; padding: 0 15px; }
}

/* Perapian khusus HP */
@media (max-width: 600px) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: 34px; }
  .section__lead { margin-top: 14px; font-size: 15.5px; }

  .feature { padding: 30px 22px; }
  .feature__icon { width: 58px; height: 58px; margin-bottom: 16px; }
  .feature__icon svg { width: 28px; height: 28px; }
  .feature__title { font-size: 23px; margin-bottom: 8px; }
  .feature__text { font-size: 14.5px; }

  .catalog__more { margin-top: 36px; }
  .catalog__more .btn { width: 100%; }

  .colors__text { text-align: center; }
  .colors__text p { margin-inline: auto; font-size: 15.5px; }
  .colors__gallery { grid-template-rows: none; gap: 12px; }
  .colors__item { grid-row: auto !important; aspect-ratio: 3 / 4; }
  .colors__item figcaption { left: 8px; bottom: 8px; padding: 5px 10px; font-size: 11px; }

  .steps__list { row-gap: 26px; }
  .step {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start;
    text-align: left; padding: 0;
  }
  .step__icon { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .step__icon svg { width: 28px; height: 28px; }
  .step__num { width: 24px; height: 24px; font-size: 12px; }
  .step h3 { font-size: 22px; margin: 4px 0 4px; }
  .step p { max-width: none; margin: 0; font-size: 14.5px; }

  .closing { padding: 52px 0; }
  .closing__title { font-size: 34px; }
  .closing__text { margin: 18px auto 30px; font-size: 15.5px; }

  .footer { padding: 22px 0 18px; }
  .footer__top { flex-direction: column; gap: 12px; }
  .footer__copy { padding-top: 14px; font-size: clamp(9.5px, 2.95vw, 12.5px); white-space: nowrap; }
  .footer__top { padding-bottom: 16px; }
}

@media (max-width: 360px) {
  .products { grid-template-columns: 1fr; }
}
