/* Kebun Harvest — Wisata Kebun Buah (Harvest Market Hub)
   Arketipe: Marketplace Mega-Menu & Rekomendasi */

:root {
  --primary: #3f7d32;
  --primary-dark: #2c5a22;
  --secondary: #f4a300;
  --accent: #c4472a;
  --bg: #fbf9f2;
  --surface: #ffffff;
  --border: #e7e0cf;
  --text: #26311f;
  --text-muted: #5c6650;
  --success: #2f9e4a;
  --warning: #f4a300;
  --danger: #c4472a;
  --info: #2f8f9d;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(63,125,50,0.12);
  --font-heading: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

[data-theme="dark"] {
  --primary: #6fbf52;
  --primary-dark: #4f9a3a;
  --secondary: #ffc857;
  --accent: #ff7a5c;
  --bg: #10150c;
  --surface: #1a2214;
  --border: #2c3624;
  --text: #eef2e6;
  --text-muted: #a7b39a;
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.2; }
p { color: var(--text-muted); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  font-weight: 700; font-family: var(--font-body); cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: .95rem;
}
.btn-pill { border-radius: 999px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.badge-promo { background: var(--secondary); color: #4a2e00; }
.badge-live { background: var(--success); color: #fff; position: absolute; bottom: 12px; left: 12px; }
.badge-discount { background: var(--danger); color: #fff; }
.badge-free { background: var(--info); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; margin-bottom: 10px;
}
.eyebrow-light { color: var(--secondary); }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.header-top-inner { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.brand em { font-style: normal; color: var(--secondary); }
.brand-icon { font-size: 1.5rem; }

.search-bar {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; max-width: 520px;
}
.search-bar i { color: var(--text-muted); }
.search-bar input { flex: 1; border: none; background: transparent; outline: none; color: var(--text); font-family: var(--font-body); }
.search-bar button { border: none; background: var(--primary); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: var(--bg); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--text); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; }

.mega-nav { border-top: 1px solid var(--border); background: var(--surface); }
.mega-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mega-item { position: relative; }
.mega-item > a, .mega-trigger {
  display: block; padding: 14px 16px; font-weight: 700; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: var(--font-body); font-size: .95rem;
}
.mega-item > a:hover, .mega-trigger:hover { color: var(--primary); }
.mega-panel {
  display: none; position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; gap: 32px; min-width: 560px; z-index: 50;
}
.mega-item.open .mega-panel { display: flex; }
.mega-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; color: var(--text); }
.mega-col a:hover { color: var(--primary); }
.mega-promo { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 12px; padding: 16px; }
.mega-promo .link-cta { color: #fff; font-weight: 700; }

/* ===== BANNER CAROUSEL ===== */
.banner-carousel { position: relative; overflow: hidden; }
.banner-track { display: flex; transition: transform .6s ease; }
.banner-slide { min-width: 100%; padding: 46px 0; color: #fff; }
.banner-content h2 { font-size: 1.8rem; margin-bottom: 8px; }
.banner-content p { color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.banner-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0; background: var(--bg); }
.banner-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.banner-dots button.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== HERO ===== */
.hero { padding: 60px 0 20px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.6rem; }
.text-accent { color: var(--primary); }
.hero-cta { display: flex; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 20px; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--primary); font-family: var(--font-heading); }
.hero-stats span { font-size: .82rem; color: var(--text-muted); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== MARQUEE ===== */
.marquee { overflow: hidden; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Category grid (aktivitas) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 160px; object-fit: cover; }
.cat-card-body { padding: 16px; }
.cat-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat-card-body p { font-size: .88rem; margin: 0; }

/* Marketplace layout */
.market-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.facet-sidebar {
  position: sticky; top: 130px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.facet-sidebar h3 { font-size: 1rem; margin-bottom: 16px; }
.facet-group { margin-bottom: 18px; }
.facet-group h4 { font-size: .82rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.facet-group label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .9rem; cursor: pointer; }

.row-block { margin-bottom: 40px; }
.row-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.row-block-head h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.hscroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.pkg-card {
  flex: 0 0 260px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pkg-card img { width: 100%; height: 140px; object-fit: cover; }
.pkg-body { padding: 16px; position: relative; }
.pkg-badges { position: absolute; top: -160px; left: 12px; display: flex; gap: 6px; }
.pkg-body h4 { font-size: 1rem; margin-bottom: 4px; }
.pkg-meta { display: flex; gap: 10px; font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.pkg-price { font-family: var(--font-heading); font-size: 1.15rem; color: var(--primary); font-weight: 800; }
.pkg-price small { color: var(--text-muted); font-size: .75rem; font-weight: 400; }
.pkg-body .btn { width: 100%; margin-top: 10px; padding: 10px; font-size: .9rem; }

/* Advisor */
.advisor-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 60px 0; color: #fff; }
.advisor-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.advisor-text h2 { color: #fff; }
.advisor-text p { color: rgba(255,255,255,0.85); }
.advisor-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.advisor-form select {
  padding: 12px 16px; border-radius: 999px; border: none; font-family: var(--font-body); font-weight: 600;
  background: #fff; color: var(--text);
}
.advisor-result {
  background: rgba(255,255,255,0.12); border-radius: var(--radius); padding: 18px; margin-top: 16px; text-align: left;
}
.advisor-result strong { display: block; margin-bottom: 6px; }

/* Stats */
.stat-strip { padding: 50px 0; background: var(--bg); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-card strong { display: block; font-size: 2.2rem; font-family: var(--font-heading); color: var(--primary); }
.stat-card span { color: var(--text-muted); font-size: .85rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { display: flex; gap: 10px; padding: 6px 0; color: var(--text); }
.check-list i { color: var(--success); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { border-radius: 12px; cursor: pointer; height: 200px; width: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid img:hover { transform: scale(1.03); }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-card img { height: 160px; width: 100%; object-fit: cover; }
.article-card-body { padding: 16px; }
.article-card-body h3 { font-size: 1.02rem; }
.article-card-body span { font-size: .78rem; color: var(--text-muted); }

/* Testimoni */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.testi-card .stars { color: var(--secondary); margin-bottom: 10px; }
.testi-card p { color: var(--text); font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* FAQ Accordion */
.accordion { max-width: 760px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel p { padding: 0 4px 18px; }
.acc-item.open .acc-panel { max-height: 300px; }
.acc-item.open .acc-trigger i { transform: rotate(180deg); }
.acc-trigger i { transition: transform .3s ease; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 10px; padding: 8px 0; }
.contact-list i { color: var(--primary); width: 20px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-body); outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.brand-footer { margin-bottom: 10px; }
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* Floating */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow); z-index: 80; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.08);} }
.back-to-top {
  position: fixed; bottom: 24px; right: 90px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  z-index: 80; box-shadow: var(--shadow);
}

/* Modal / Toast */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: var(--radius); padding: 32px; max-width: 420px; position: relative; text-align: center; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.modal-box h3 { margin: 12px 0; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff;
  padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow); z-index: 300; font-weight: 700;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .market-layout { grid-template-columns: 1fr; }
  .facet-sidebar { position: static; }
  .cat-grid, .gallery-grid, .article-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .search-bar { display: none; }
  .mega-nav { display: none; }
  .mega-nav.open { display: block; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mega-list { flex-direction: column; }
  .mega-panel { position: static; min-width: 0; flex-direction: column; box-shadow: none; border: none; }
  .header-cta span { display: none; }
}
@media (max-width: 560px) {
  .cat-grid, .gallery-grid, .article-grid, .testi-grid, .stat-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
