/* Hand-maintained. The build never overwrites this file. Bump render.ASSET_VERSION after editing. */
:root {
  --emerald-700: #0F4D33;
  --emerald-900: #0A3322;
  --gold-500: #B8862B;
  --gold-400: #D9AA55;
  --date-brown: #6B2E14;
  --cream-50: #FBF8F0;
  --surface: #FFFFFF;
  --ink: #13261D;
  --muted: #5B6B61;
  --line: #E6DDC6;
  --on-primary: #FBF8F0;
  --on-dark: #EFE8D6;
  --on-dark-muted: #C9D2C4;
  --tint: #F1F5EE;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ar: "Amiri", "Noto Naskh Arabic", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --emerald-700: #1E7A52;
    --emerald-900: #0A2418;
    --gold-500: #D9AA55;
    --gold-400: #E8C27A;
    --date-brown: #E39A72;
    --cream-50: #0D1712;
    --surface: #14231B;
    --ink: #EFE8D6;
    --muted: #A9B5AA;
    --line: #26392D;
    --tint: #102019;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Sticky header is two rows (~110px); anchors land below it. */
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream-50); color: var(--ink); font: 400 16px/26px var(--font-body); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--emerald-700); margin: 0 0 16px; }
h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.08; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 20px; line-height: 26px; }
p { margin: 0 0 16px; }
a { color: var(--emerald-700); text-underline-offset: 3px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { h1, h2, h3, a, .brand { color: var(--gold-400); } }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -80px; min-height: 44px; display: inline-flex; align-items: center; background: var(--emerald-700); color: var(--on-primary); padding: 8px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
section { padding: 48px 0; }
.wrap > section { padding: 24px 0; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.caption { font-size: 13px; line-height: 20px; color: var(--muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 60ch; }
.ar { font-family: var(--font-ar); font-weight: 700; color: var(--gold-500); }
.ar.big { font-size: 40px; line-height: 52px; margin: 0 0 8px; }
.more { margin: 24px 0 0; font-weight: 700; }
.more a { display: inline-block; padding: 10px 0; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream-50); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; margin-right: auto; color: var(--emerald-700); font-family: var(--font-display); font-size: 18px; line-height: 20px; }
/* The logo artwork has a white background, so it always sits on a white shape (brand rule: light base only). */
/* Full logo (names included), shown whole on its own light base. Brand rule: logo only on cream or white. */
.brand img { width: 76px; height: auto; display: block; border-radius: 10px; background: #FFFFFF; }
.brand > span { line-height: 22px; }
.brand .ar { font-size: 16px; display: block; }
.bar > .lang, .bar > .btn, .bar > .menu-btn { flex-shrink: 0; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font: 700 12px var(--font-body); letter-spacing: .12em; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--emerald-700); color: var(--on-primary); }
.btn-wa { gap: 8px; }
.btn-wa svg { flex-shrink: 0; }
.menu-btn { display: none; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 13px var(--font-body); cursor: pointer; }
.menu-btn svg path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
/* Desktop and tablet: second header row with every link visible. */
.mainnav { border-top: 1px solid var(--line); }
.mainnav .wrap { display: flex; gap: 4px; }
.mainnav a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.mainnav a:first-child { padding-left: 0; }
.mainnav a[aria-current="page"] { color: var(--emerald-700); border-bottom-color: var(--gold-500); font-weight: 700; }
@media (prefers-color-scheme: dark) { .mainnav a[aria-current="page"] { color: var(--gold-400); } }
/* Phones: a Menu button opens the links as a list; the floating button (below) keeps WhatsApp one tap away. */
@media (max-width: 767px) {
  html { scroll-padding-top: 92px; }
  .bar > .btn-wa { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { width: 68px; }
  /* On phones the logo itself carries the name; the typed name stays for screen readers only. */
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav .wrap { flex-direction: column; gap: 0; padding-bottom: 8px; }
  .mainnav a { min-height: 48px; padding: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mainnav a:last-child { border-bottom: 0; }
  .mainnav a[aria-current="page"] { border-bottom-color: var(--line); }
}
@media (max-width: 359px) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Floating WhatsApp button: phones only, sized so it never hides the last line of the footer. */
.wa-float { display: none; }
@media (max-width: 767px) {
  .wa-float { display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--emerald-700); color: var(--on-primary); border: 2px solid var(--gold-400); box-shadow: 0 4px 14px rgba(10, 51, 34, .25); }
  .wa-float svg { width: 26px; height: 26px; }
  body { padding-bottom: 88px; }
}

/* ---------- Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 0 0; margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.crumbs li { margin: 0; padding: 12px 0; }
.crumbs li:has(a) { padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; }

/* ---------- Buttons and tags (one shape everywhere: pill, 48px tall) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--emerald-700); background: var(--emerald-700); color: var(--on-primary); font: 700 15px/20px var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--emerald-900); }
.btn-ghost { background: transparent; color: var(--emerald-700); border-width: 1.5px; }
.btn-ghost:hover { background: var(--emerald-700); color: var(--on-primary); }
.btn-gold { background: var(--gold-400); border-color: var(--gold-400); color: #0A3322; }
.btn-gold:hover { background: #E8C27A; }
@media (prefers-color-scheme: dark) {
  .btn { color: var(--on-primary); }
  .btn-ghost { color: var(--gold-400); border-color: var(--gold-400); }
  .btn-ghost:hover { color: var(--on-primary); }
  .btn-gold { color: #0A2418; }
}
.tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border: 1px solid var(--emerald-700); border-radius: 999px; color: var(--emerald-700); }
@media (prefers-color-scheme: dark) { .tag { color: var(--gold-400); border-color: var(--gold-400); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 767px) { .actions .btn { width: 100%; } }

/* ---------- Hero (home) */
.hero { padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero-text { max-width: 580px; }
.hero .story { color: var(--gold-500); font-family: var(--font-display); font-size: 22px; line-height: 28px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(38px, calc(16px + 3.6vw), 56px); line-height: 1.08; margin-bottom: 16px; }
.hero .lead { max-width: 580px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--gold-500); flex-shrink: 0; }
/* The hero artwork already holds the logo and the plate: always show it whole (contain), never crop it. Cream stays cream in dark mode to match the artwork. */
.hero-photo { border-radius: 24px; overflow: hidden; border: 1px solid rgba(184, 134, 43, .35); box-shadow: 0 12px 32px rgba(10, 51, 34, .10); background: #FBF8F0; aspect-ratio: 4 / 5; }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
@media (max-width: 767px) {
  .hero { padding: 24px 0 48px; }
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 55fr 45fr; gap: clamp(48px, 5vw, 64px); }
}

/* ---------- Section rhythm: cream and a very light green alternate */
.tint { background: var(--tint); }

/* ---------- One-time entrance motion (added by main.js; skipped entirely with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
/* Lenis (desktop only, see main.js). From lenis.css 1.3.27, plus native smooth scroll turned off so the two never fight. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* SplitText masks each heading line; keep descenders (g, y, p) from being clipped. */
.motion-rich h1 > div, .motion-rich h2 > div { padding-bottom: .08em; margin-bottom: -.08em; }

/* Quiet hover on product cards (mouse only, never with reduced motion). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
  .card:hover { transform: translateY(-4px); border-color: rgba(184, 134, 43, .55); box-shadow: 0 10px 24px rgba(10, 51, 34, .08); }
  .card .media img { transition: transform .6s ease; }
  .card:hover .media img { transform: scale(1.03); }
}

/* ---------- Inner page head and prose */
.page-head { padding: 24px 0 8px; }
.prose { max-width: 72ch; }
.prose section { padding: 24px 0 0; }
.prose ul li::marker { color: var(--gold-500); }
.link-list { list-style: none; padding: 0; }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; font-weight: 500; }

/* ---------- Product cards */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.media { aspect-ratio: 4 / 3; background: var(--cream-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .media { border-bottom: 1px solid var(--line); }
.media picture, .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-ar); font-weight: 700; font-size: 56px; line-height: 1.4; color: var(--gold-500); }
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .ar { font-size: 26px; line-height: 38px; margin: 0; color: var(--gold-500); flex: none; }
.card h3 { margin: 0; }
.card h3 a { color: inherit; text-decoration: none; display: block; padding: 4px 0; line-height: 1.35; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); margin: 0; line-height: 1.65; flex: 1; }
.card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.card-actions .btn { width: 100%; min-height: 44px; flex: 1 1 auto; padding: 8px 10px; font-size: 13px; line-height: 18px; }
@media (max-width: 767px) {
  body { line-height: 28px; }
  .hero .story { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { line-height: 30px; }
  .actions { margin-top: 28px; }
  .trust { margin-top: 28px; gap: 12px 20px; }
  .trust li { line-height: 22px; }
  p { margin-bottom: 20px; }
  h2 { margin-bottom: 20px; }
  .lead { line-height: 30px; margin-bottom: 24px; }
  .label.tag { margin-bottom: 12px; }
  .prose li { margin-bottom: 12px; line-height: 28px; }
  .cards { gap: 12px; }
  .card .body { padding: 12px; gap: 9px; }
  .card .ar { font-size: 23px; line-height: 32px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 14px; line-height: 23px; }
}
@media (min-width: 768px) {
  .card .body { padding: 16px; gap: 8px; }
  .card .ar { font-size: 28px; line-height: 36px; }
  .card h3 a { padding: 10px 0; }
  .card p { line-height: 26px; margin: 0 0 8px; }
  .card-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 0; }
  .card-actions .btn { width: auto; min-height: 48px; padding: 8px 12px; font-size: 15px; line-height: 20px; }
}

/* ---------- Variety page */
.variety-top { display: grid; gap: 24px; margin: 24px 0; align-items: start; }
@media (min-width: 820px) { .variety-top { grid-template-columns: 1fr 1fr; } }
.hero-media { border: 1px solid var(--line); border-radius: 14px; }
.hero-media .ph { font-size: 96px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
caption { text-align: left; font: 700 12px/16px var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts { border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 40%; font-weight: 700; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare { min-width: 640px; }
.compare thead th { background: var(--cream-50); font-size: 14px; }
.compare tbody th a { font-weight: 700; display: inline-block; padding: 4px 0; }

/* ---------- Dark luxury sections */
.dark { background: var(--emerald-900); color: var(--on-dark); }
.dark h2 { color: var(--gold-400); }
.dark .lead, .dark p { color: var(--on-dark-muted); }
.dark a:not(.btn) { color: var(--gold-400); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border: 1px solid rgba(217, 170, 85, .35); border-radius: 14px; padding: 16px; margin: 0; }
.steps .n { font-family: var(--font-display); font-size: 32px; line-height: 38px; color: var(--gold-400); display: block; }
.steps h3 { color: var(--on-dark); font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; }
.cta-band { text-align: left; }

/* ---------- Why list */
.why { list-style: none; padding: 0; display: grid; gap: 16px; margin: 24px 0 0; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0; }
.why h3 { margin-bottom: 8px; }
.why p { margin: 0; color: var(--muted); }

/* ---------- FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 44px; padding: 12px 32px 12px 0; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--gold-500); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); }

/* ---------- Contact cards */
.contact-cards { list-style: none; padding: 0; display: grid; gap: 16px; margin: 0; }
@media (min-width: 820px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0; }
.contact-cards h2 { font-size: 22px; margin-bottom: 8px; }
.big-text { font-size: 20px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.big-text a { user-select: auto; display: inline-block; padding: 8px 0; }

/* ---------- Form */
.form { display: grid; gap: 16px; max-width: 640px; margin-top: 24px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px/26px var(--font-body); }
input:focus, select:focus, textarea:focus { border-color: var(--emerald-700); }
textarea { min-height: 112px; resize: vertical; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.qty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-error { color: var(--date-brown); font-weight: 700; margin: 0; }
@media (max-width: 767px) { .form .btn { width: 100%; } }

/* ---------- 404 */
.notfound { padding: 48px 16px; }

/* ---------- Footer */
.site-footer { background: var(--emerald-900); color: var(--on-dark); padding: 48px 0 24px; }
.site-footer a { color: var(--gold-400); }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer .cols { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.site-footer h2 { font-size: 20px; color: var(--gold-400); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 11px 0; overflow-wrap: anywhere; }
/* On emerald the logo sits on a light card (brand rule), never cropped. */
.footer-logo { width: 96px; height: auto; border-radius: 14px; background: #FFFFFF; padding: 6px; display: block; margin-bottom: 12px; }
.site-footer .ar { font-size: 24px; color: var(--gold-400); margin: 0 0 8px; }
.site-footer .caption { color: #A9B5AA; padding: 11px 0; }
.site-footer .small { color: #A9B5AA; font-size: 13px; margin-top: 24px; border-top: 1px solid rgba(217, 170, 85, .25); padding-top: 16px; }

/* ---------- "Dari Kebun hingga Tiba": three small cards side by side at every width (no slider) */
.journey { padding: clamp(40px, 6vw, 56px) 0; }
.journey .wrap { max-width: 1100px; }
.story-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .story-cards { gap: 16px; } }
.story-cards li { margin: 0; min-width: 0; background: var(--cream-50); border: 1px solid rgba(184, 134, 43, .35); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.story-media { height: clamp(88px, 18vw, 168px); aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--line); }
.story-media picture, .story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 12px 14px 16px; }
.story-body .n { display: block; font: 700 12px/16px var(--font-body); letter-spacing: .12em; color: var(--gold-500); margin-bottom: 4px; }
.story-body h3 { font-size: 18px; line-height: 24px; margin: 0 0 6px; }
.story-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 767px) {
  .story-body { padding: 8px 8px 10px; }
  .story-body .n { font-size: 11px; margin-bottom: 2px; }
  .story-body h3 { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
  .story-body p { font-size: 11px; line-height: 1.4; }
}
@media (min-width: 380px) and (max-width: 767px) {
  .story-body h3 { font-size: 14px; }
  .story-body p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
