/* ============================================================
   JajanMatcha - Demo Portofolio Jajan Web #1
   Palet: hijau matcha + putih, tanpa gradasi
   ============================================================ */

:root {
  --matcha-dark: #42591F;
  --matcha-dark-2: #354818;
  --matcha: #7C9A4E;
  --matcha-light: #E4EBD2;
  --cream: #FAF7EF;
  --white: #FFFFFF;
  --ink: #232B14;
  --ink-soft: #55603F;
  --line: #DFE5CE;
  --radius: 14px;
  --shadow-card: 0 2px 10px rgba(35, 43, 20, 0.07);
  --shadow-lift: 0 10px 28px rgba(35, 43, 20, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }

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

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--matcha-dark); color: #fff; }
.btn-primary:hover { background: var(--matcha-dark-2); }
.btn-outline { background: transparent; color: var(--matcha-dark); border-color: var(--matcha-dark); }
.btn-outline:hover { background: var(--matcha-light); }
.btn-white { background: #fff; color: var(--matcha-dark); }
.btn-white:hover { background: var(--matcha-light); }
.btn-small { padding: 9px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(35, 43, 20, 0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { font-size: 21px; font-weight: 500; color: var(--matcha-dark); letter-spacing: -0.02em; }
.brand-text strong { font-weight: 800; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--matcha-dark); border-bottom-color: var(--matcha); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--matcha-dark);
  margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Section umum ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(27px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin-top: 8px; }
.kicker {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--matcha-dark);
  background: var(--matcha-light); padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; background: var(--white); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 52px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 52px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 18px;
}
.hero-copy .lead { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--matcha); margin-right: 8px; vertical-align: 2px; }
.hero-media { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kartu keunggulan ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-card);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--matcha-light);
  color: var(--matcha-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Menu Andalan ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.menu-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.menu-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; flex: none; }
.menu-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--matcha-dark); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.menu-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.menu-body h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.menu-body p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-weight: 800; color: var(--matcha-dark); font-size: 17px; }
.order-link {
  font-weight: 700; font-size: 15px; color: var(--matcha-dark); text-decoration: none;
  border: 1.5px solid var(--matcha-dark); border-radius: 999px; padding: 6px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}
.order-link:hover { background: var(--matcha-dark); color: #fff; }

/* ---------- Menu Lengkap ---------- */
.menu-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.menu-group h3 {
  font-size: 19px; font-weight: 800; color: var(--matcha-dark); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--matcha-light);
}
.menu-group ul { list-style: none; }
.menu-group li {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.menu-group li:last-child { border-bottom: 0; }
.menu-group .item { font-weight: 600; }
.menu-group .price { margin-left: auto; font-size: 16px; white-space: nowrap; }
.menu-note { text-align: center; color: var(--ink-soft); font-size: 15px; margin-top: 30px; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.about-media { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.about-stats { display: flex; gap: 36px; margin-top: 24px; flex-wrap: wrap; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-size: 26px; font-weight: 800; color: var(--matcha-dark); letter-spacing: -0.02em; }
.about-stats span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Cara Pesan ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--matcha-dark); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Testimoni ---------- */
.sample-label {
  display: inline-block; background: var(--matcha-light); color: var(--matcha-dark);
  font-size: 13px; font-weight: 700; padding: 4px 13px; border-radius: 999px;
}
.quote-card { display: flex; flex-direction: column; gap: 16px; }
.quote-card blockquote { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.quote-card figcaption { display: flex; flex-direction: column; margin-top: auto; }
.quote-card figcaption strong { font-size: 15.5px; color: var(--matcha-dark); }
.quote-card figcaption span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Lokasi ---------- */
.location-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.location-copy h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.info-list { margin-bottom: 28px; }
.info-list > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list > div:first-child { padding-top: 0; }
.info-list dt { font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--matcha); }
.info-list dd { font-weight: 600; margin-top: 2px; }
.location-media { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); }
.location-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 16.5px; font-weight: 700; color: var(--ink);
  padding: 18px 22px;
}
.faq-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--matcha-light); color: var(--matcha-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- CTA Penutup ---------- */
.cta-final { background: var(--matcha-dark); color: #fff; padding: 76px 0; }
.cta-inner { text-align: center; }
.cta-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 18px; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-inner p { color: var(--matcha-light); margin-bottom: 26px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9DFC6; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px;
}
.footer-brand img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3, .footer-info h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-info p { font-size: 15px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { font-size: 13.5px; color: #A9B48C; text-align: center; }
.footer-bottom strong { color: #fff; }

/* ---------- Tombol WA melayang ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--matcha-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(35, 43, 20, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { background: var(--matcha-dark-2); transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsif ---------- */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .location-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 44px 0 60px; }
  .menu-grid, .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 62px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    display: none; box-shadow: 0 14px 24px rgba(35, 43, 20, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 2px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .menu-grid, .cards-3, .steps, .menu-full-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { flex: 1; }
  .about-stats { gap: 24px; }
  /* Tombol marketplace di mobile: logo saja, tanpa teks */
  .platform-btn { padding: 11px 16px; }
  .platform-btn .platform-name { display: none; }
  .platform-btn .platform-logo { width: 26px; height: 26px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- Tombol pesan di kartu (memicu popup) ---------- */
button.order-link { font-family: inherit; background: transparent; cursor: pointer; }

/* ---------- Baris tombol platform pemesanan ---------- */
.order-platforms { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.platform-btn { gap: 9px; }
.platform-logo { width: 21px; height: 21px; flex: none; }
.platforms-note { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 14px; }
.cta-inner .order-platforms { margin-top: 0; }
.cta-inner .platforms-note { color: var(--matcha-light); }
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* ---------- Popup pesanan ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(35, 43, 20, 0.55);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 26px 24px 24px;
  position: relative;
}
@media (min-width: 641px) {
  .modal-overlay.open { align-items: center; padding: 24px; }
  .modal { border-radius: 20px; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); font-size: 24px; line-height: 1;
}
.modal-close:hover { background: var(--matcha-light); }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.modal-head img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.modal-head-text h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.modal-price { font-weight: 800; color: var(--matcha-dark); font-size: 17px; }

.opt-group { margin-bottom: 16px; }
.opt-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { border-color: var(--matcha); }
.pill.selected { background: var(--matcha-dark); border-color: var(--matcha-dark); color: #fff; }
.pill .extra { font-size: 12.5px; opacity: 0.85; margin-left: 4px; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; }
.qty-row .opt-label { margin-bottom: 0; }
.qty-control {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px;
}
.qty-control button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--matcha-light); color: var(--matcha-dark);
  font-size: 20px; font-weight: 800; line-height: 1;
}
.qty-control button:hover { background: var(--matcha); color: #fff; }
.qty-control span { min-width: 36px; text-align: center; font-weight: 800; font-size: 17px; }

.note-field { display: block; margin-bottom: 18px; }
.note-field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; resize: vertical;
}
.note-field textarea:focus { outline: none; border-color: var(--matcha); }

.modal-total {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px;
  font-size: 16px; font-weight: 600;
}
.modal-total strong { font-size: 22px; font-weight: 800; color: var(--matcha-dark); }
.modal-order { width: 100%; }
