/* ===========================================================
   Rimbun — shared stylesheet (multi-page static site)
   Layout concept: calm botanical storefront, generous paper
   margins, leafy accents, tidy grids.
   =========================================================== */
:root {
  /* bright, airy light palette — fresh greens on near-white paper */
  --paper: #f8fbf2;
  --paper-2: #edf4e2;
  --ink: #23342a;
  --ink-soft: #5a6b59;
  --line: #e0e9d3;
  --leaf: #3d8a4c;
  --leaf-bright: #58a862;
  --clay: #c87a4a;
  --card: #ffffff;
  --shadow: 20px 30px 60px -42px rgba(45,93,58,.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --maxw: 1180px;
  color-scheme: light;
}
/* Mode gelap hanya aktif bila tombol tema ditekan — tidak auto-gelap. */
:root[data-theme="dark"] {
  --paper: #161c15; --paper-2: #1e271d; --ink: #eef3e8;
  --ink-soft: #abb9a7; --line: #2d382b; --leaf: #74b473; --leaf-bright: #93ce8f;
  --clay: #d98f62; --card: #1c241b; --shadow: 20px 30px 60px -38px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left,0px)); padding-right: max(20px, env(safe-area-inset-right,0px)); }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--leaf); }

.btn { font-family: var(--sans); font-weight: 600; font-size: .95rem; border: none; cursor: pointer; border-radius: 999px; padding: .85em 1.6em; display: inline-flex; align-items: center; gap: .5em; transition: transform .15s ease, background .2s ease, color .2s ease; }
.btn-primary { background: var(--leaf); color: #fbfcf8; }
.btn-primary:hover { background: var(--leaf-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }

/* ---------- header ---------- */
body::before { content:""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top,0px); z-index: 60; background: var(--paper); }
header { position: sticky; top: env(safe-area-inset-top,0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.brand .leaf-mark { color: var(--leaf); flex: none; }
.nav-links { display: flex; gap: 1.9rem; font-weight: 500; font-size: .95rem; }
.nav-links a { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--leaf); }
.nav-links a.active { color: var(--leaf); border-color: var(--leaf); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; padding: .4rem; border-radius: 10px; position: relative; }
.icon-btn:hover { color: var(--leaf); }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--clay); color: #fff; font-family: var(--sans); font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }
.menu-toggle { display: none; }
#mobileNav { display: none; border-top: 1px solid var(--line); }
#mobileNav.open { display: block; }
#mobileNav .wrap { display: flex; flex-direction: column; gap: .2rem; padding-block: .6rem; }
#mobileNav a { padding: .6rem 0; font-weight: 500; border-bottom: 1px solid var(--line); }
#mobileNav a:last-child { border-bottom: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--leaf); }
.hero p.lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 34ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
.hero-art { position: relative; aspect-ratio: 5/6; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(160deg, #cfe0c3, #8fb98a); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-badge { position: absolute; left: -14px; bottom: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; }
.hero-badge .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--leaf); color: #fff; display: grid; place-items: center; flex: none; }
.hero-badge b { font-family: var(--serif); font-size: 1rem; }
.hero-badge span { font-size: .78rem; color: var(--ink-soft); display: block; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.page-head .eyebrow { display: block; margin-bottom: .8rem; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.page-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; margin-top: 1rem; }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--leaf); }

/* ---------- marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.strip-inner { display: flex; gap: 3rem; padding-block: .8rem; white-space: nowrap; animation: slide 26s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--leaf); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-inner { animation: none; } }

/* ---------- section shell ---------- */
section.block { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.sec-head p { color: var(--ink-soft); max-width: 46ch; margin-top: .7rem; }
.link-arrow { color: var(--leaf); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow:hover { gap: .7rem; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat { border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; background: var(--card); display: flex; flex-direction: column; gap: 1rem; min-height: 180px; justify-content: space-between; transition: transform .18s ease, border-color .18s ease; }
.cat:hover { transform: translateY(-4px); border-color: var(--leaf); }
.cat .cat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); color: var(--leaf); display: grid; place-items: center; }
.cat h3 { font-size: 1.22rem; }
.cat small { color: var(--ink-soft); font-size: .85rem; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.thumb { aspect-ratio: 1/1; position: relative; display: grid; place-items: center; }
.thumb svg { width: 72%; height: 72%; }
.tag { position: absolute; top: .8rem; left: .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .28em .7em; border-radius: 999px; background: var(--ink); color: var(--paper); }
.tag.clay { background: var(--clay); color: #fff; }
.tag.leaf { background: var(--leaf); color: #fff; }
.card-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body .care { font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.card-body h3 { font-size: 1.28rem; }
.card-body .sci { font-style: italic; font-size: .85rem; color: var(--ink-soft); font-family: var(--serif); }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .7rem; }
.price { font-family: var(--serif); font-size: 1.3rem; }
.price s { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin-right: .4rem; }
.add { width: 42px; height: 42px; border-radius: 12px; background: var(--leaf); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, background .2s ease; flex: none; }
.add:hover { background: var(--leaf-bright); }
.add:active { transform: scale(.88); }

/* ---------- catalog filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip { font-family: var(--sans); font-weight: 600; font-size: .85rem; cursor: pointer; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: .5em 1.1em; transition: all .15s ease; }
.chip:hover { border-color: var(--leaf); color: var(--leaf); }
.chip.active { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.result-count { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.4rem; }
.empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; grid-column: 1 / -1; }

/* ---------- why / care features ---------- */
.why { background: var(--paper-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-item { display: flex; flex-direction: column; gap: .7rem; }
.why-item .wic { width: 50px; height: 50px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--leaf); display: grid; place-items: center; }
.why-item h3 { font-size: 1.35rem; }
.why-item p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- care steps (perawatan) ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; gap: 1.1rem; }
.step .no { font-family: var(--serif); font-size: 1.6rem; color: var(--leaf); flex: none; width: 2.4rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--leaf); font-size: 1.4rem; font-family: var(--serif); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin-top: .7rem; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem; align-items: center; }
.split .art { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(160deg, #cfe0c3, #8fb98a); }
.split .art svg { width: 100%; height: 100%; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1rem; }
.prose h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.value { border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; background: var(--card); }
.value h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- testimonial ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.3vw, 2.3rem); line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.quote .by { margin-top: 1.6rem; color: var(--ink-soft); font-weight: 500; }
.stars { color: var(--clay); letter-spacing: .15em; margin-bottom: 1.4rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 1.3rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; }
.info .iic { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); color: var(--leaf); display: grid; place-items: center; flex: none; }
.info h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.info p, .info a { color: var(--ink-soft); }
.info a:hover { color: var(--leaf); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea { font-family: var(--sans); font-size: .95rem; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: .8em 1em; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.map { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); display: grid; place-items: center; color: var(--ink-soft); margin-top: 1.4rem; }

/* ---------- newsletter CTA ---------- */
.cta-card { background: var(--leaf); color: #f3f5ee; border-radius: 28px; padding: clamp(2.2rem, 5vw, 3.6rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; }
.cta-card p { margin-top: .9rem; color: #dfeadb; max-width: 40ch; }
.signup { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input { flex: 1; min-width: 180px; border: none; border-radius: 999px; padding: .95em 1.3em; font-family: var(--sans); font-size: .95rem; background: rgba(255,255,255,.14); color: #fff; }
.signup input::placeholder { color: #cfe0cb; }
.signup input:focus-visible { outline: 2px solid #fff; }
.signup .btn { background: #fbfcf8; color: var(--leaf); }
.signup .btn:hover { background: #fff; transform: translateY(-2px); }
.note { font-size: .78rem; color: #cfe0cb; margin-top: .8rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.foot-links { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.foot-links a:hover { color: var(--leaf); }
.foot-about p { color: var(--ink-soft); font-size: .95rem; margin-top: .9rem; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,30,20,.5); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 90; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--paper); border-left: 1px solid var(--line); z-index: 95; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.9,.3,1); box-shadow: -20px 0 50px -30px rgba(20,30,20,.5); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); flex: none; }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-close { background: none; border: none; cursor: pointer; color: var(--ink); padding: .3rem; border-radius: 8px; }
.drawer-close:hover { color: var(--leaf); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.3rem; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 2.5rem 1rem; }
.cart-empty svg { color: var(--line); margin-bottom: .8rem; }
.cart-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-thumb { width: 54px; height: 54px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.cart-item .ci-thumb svg { width: 70%; height: 70%; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 600; font-size: .98rem; }
.cart-item .ci-price { color: var(--ink-soft); font-size: .85rem; }
.cart-item .ci-ctrl { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 28px; height: 28px; border: none; background: var(--card); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.stepper button:hover { background: var(--paper-2); color: var(--leaf); }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9rem; }
.stepper input { width: 42px; text-align: center; border: none; background: var(--card); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; padding: 4px 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; background: var(--paper-2); }
.ci-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .8rem; margin-left: auto; align-self: flex-start; }
.ci-remove:hover { color: var(--clay); }
.ci-line { font-family: var(--serif); font-weight: 500; font-size: 1rem; white-space: nowrap; }
.checkout { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem calc(1.1rem + env(safe-area-inset-bottom,0px)); background: var(--paper); flex: none; }
.checkout .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.checkout label { font-weight: 600; font-size: .85rem; }
.checkout input, .checkout textarea { font-family: var(--sans); font-size: .92rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: .6em .8em; width: 100%; }
.checkout textarea { resize: vertical; min-height: 56px; }
.checkout input:focus-visible, .checkout textarea:focus-visible { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; margin: .2rem 0 .9rem; }
.total-row .t-label { color: var(--ink-soft); font-size: .9rem; }
.total-row .t-val { font-family: var(--serif); font-size: 1.6rem; }
.btn-wa { width: 100%; justify-content: center; background: #25D366; color: #06321a; font-weight: 700; }
.btn-wa:hover { background: #20c35d; transform: translateY(-2px); }
.btn-wa:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.checkout .hint { font-size: .74rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.3rem + env(safe-area-inset-bottom,0px)); transform: translateX(-50%) translateY(140%); background: var(--ink); color: var(--paper); padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); z-index: 100; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); display: flex; align-items: center; gap: .55rem; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 420px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-card { grid-template-columns: 1fr; gap: 1.4rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .grid, .cats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
