/* =========================================================
   Kamal et Jun Mushroom: rebrand
   Tema pertanian jamur: hijau hutan dan pucuk daun, cokelat tanah
   dan jamur kuping, kuning bulir padi sebagai penanda aksi.
   ========================================================= */

:root {
  --hutan: #16301e; /* hijau hutan: navbar, tombol, seksi gelap */
  --daun-tua: #2c5a38;
  --ink: #1f2a1c;
  --pucuk: #dfead0; /* hijau pucuk muda: latar hero dan seksi selang-seling */
  --krem: #fbf8ef; /* putih jamur tiram */
  --padi: #f0b429; /* kuning bulir padi: aksen dan ajakan bertindak */
  --kuping: #7a4a1f; /* cokelat jamur kuping: fokus dan penanda */
  --tanah: #2e2016; /* cokelat tanah: footer */
  --wa: #12803e;
  --wa-dark: #0d6a32;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.0625rem;
  background: var(--pucuk);
  color: var(--ink);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--hutan);
}

h3 {
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: 60ch;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--kuping);
  outline-offset: 3px;
}

.navbar a:focus-visible,
.navbar button:focus-visible,
.dark a:focus-visible,
.dark button:focus-visible,
footer a:focus-visible,
dialog#lb button:focus-visible {
  outline-color: var(--padi);
}

/* ---------- Bar info di atas ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 8px max(24px, calc((100% - 1100px) / 2));
  background: var(--tanah);
  color: #e6dbc9;
  font-size: 0.9rem;
}

.topbar p,
.topbar .sosmed {
  margin: 0;
  max-width: none;
}

.topbar a {
  color: #fff;
  font-weight: 600;
}

.topbar .sosmed {
  gap: 4px 18px;
}

.topbar a:hover {
  color: var(--padi);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px max(24px, calc((100% - 1100px) / 2));
  background: var(--hutan);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--padi);
  color: var(--hutan);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-dark);
}

.btn-ghost {
  border-color: currentColor;
  color: var(--hutan);
}

.btn-ghost:hover {
  background: rgba(22, 48, 30, 0.08);
}

.btn-moss {
  background: var(--hutan);
  color: #fff;
}

.btn-moss:hover {
  background: var(--daun-tua);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 1px 1px, rgba(22, 48, 30, 0.13) 1.5px, transparent 0) 0 0 / 24px 24px, var(--pucuk);
  color: var(--hutan);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 64px max(24px, calc((100% - 1100px) / 2)) 44px;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--daun-tua);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 14px;
  border: 2px solid var(--hutan);
  border-radius: 999px;
  background: var(--krem);
  color: var(--hutan);
  font-size: 0.85rem;
  font-weight: 700;
}

.hl {
  background: linear-gradient(transparent 58%, var(--padi) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}

/* Satu momen yang paling diingat: foto berbentuk daun, dengan bayangan
   kuning, dua foto bulat produk di sudut, dan stiker miring */
.hero-img {
  position: relative;
  margin: 0;
  padding: 0 0 40px 30px;
  width: 100%;
  max-width: 680px;
  justify-self: end;
}

.hv-main {
  display: block;
  width: 100%;
  height: auto; /* atribut height di HTML jangan dipakai, bentuk diatur aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 200px 28px 200px 28px;
  border: 4px solid var(--hutan);
  box-shadow: 10px 10px 0 var(--padi);
}

.hv-chip {
  position: absolute;
  z-index: 2;
  margin: 0;
  width: 96px;
  text-align: center;
}

.hv-chip img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--krem);
  box-shadow: 0 8px 20px rgba(22, 48, 30, 0.28);
}

.hv-chip figcaption {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  margin-top: -14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--hutan);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.hv-a {
  left: 0;
  bottom: 0;
}

.hv-b {
  right: 18px;
  bottom: 0;
}

.sticker {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 24px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--kuping);
  border: 3px solid var(--hutan);
  color: var(--krem);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  transform: rotate(-12deg);
}

/* ---------- Seksi ---------- */
.section {
  padding: 96px max(24px, calc((100% - 1100px) / 2));
  background: var(--krem);
}

.section.alt {
  background: var(--pucuk);
}

.section.dark {
  background: var(--hutan);
  color: #fff;
}

.section.dark h2 {
  color: #fff;
}

.section.dark > p {
  color: #cfe0c8;
}

/* Judul seksi di tengah, kecuali Tentang */
.section:not(#tentang) > h2,
.section.dark > p {
  text-align: center;
}

.section.dark > p {
  margin-inline: auto;
}

/* Tentang: teks di kiri, empat poin jadi kotak bento di kanan */
#tentang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  align-items: center;
}

#tentang h2,
#tentang p {
  grid-column: 1;
}

#tentang h2 {
  align-self: end;
}

#tentang p {
  align-self: start;
}

#tentang .checks {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checks li {
  position: relative;
  min-height: 180px;
  padding: 68px 20px 20px;
  border-radius: 24px;
  background: var(--pucuk);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.checks li:nth-child(1),
.checks li:nth-child(4) {
  background: var(--padi);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hutan);
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
}

.checks li span {
  display: block;
  margin-top: 6px;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

/* ---------- Produk ---------- */
.produk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 24px;
  background: var(--krem);
  border-radius: var(--radius);
}

.card > :not(img) {
  margin-left: 10px;
  margin-right: 10px;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 140px 140px 18px 18px;
  display: block;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.4rem;
}

.card p {
  margin-bottom: 16px;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.harga {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hutan);
  margin-bottom: 8px;
}

.harga span {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

/* ---------- Cara pesan: urutan sungguhan, jadi bernomor ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.steps li {
  counter-increment: step;
  padding-top: 70px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--padi);
  border: 2px solid var(--hutan);
  color: var(--hutan);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 50px;
  text-align: center;
}

.steps h3 {
  font-size: 1.3rem;
}

/* ---------- Galeri: foto pertama besar ---------- */
.galeri {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 160px;
  gap: 10px;
  margin-top: 28px;
}

.galeri button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 20px;
  overflow: hidden;
}

.galeri button:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.galeri img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.galeri button:hover img {
  transform: scale(1.06);
}

.galeri .extra {
  display: none;
}

.galeri.open .extra {
  display: block;
}

.btn.more {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
}

dialog#lb {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
}

dialog#lb::backdrop {
  background: rgba(22, 48, 30, 0.9);
}

dialog#lb img {
  display: block;
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 16px;
}

dialog#lb button {
  margin-top: 10px;
}

dialog#lb .btn-ghost {
  color: #fff;
}

dialog#lb .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Kontak ---------- */
.section.kontak {
  background: var(--padi);
  color: var(--hutan);
  text-align: center;
}

.kontak h2 {
  color: var(--hutan);
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.kontak p {
  margin-inline: auto;
}

.btn,
.sosmed a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ico {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* ikon hitam jadi putih */
}

.sosmed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 24px auto 0;
}

.kontak .sosmed a {
  padding: 8px 18px;
  border: 2px solid var(--hutan);
  border-radius: 999px;
  color: var(--hutan);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.kontak .sosmed a:hover {
  background: var(--hutan);
  color: #fff;
}

.kontak .sosmed .ico {
  filter: none; /* ikon tetap hitam di latar kuning */
}

.kontak .sosmed a:hover .ico {
  filter: brightness(0) invert(1);
}

/* ---------- Lokasi ---------- */
.lokasi-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.maps {
  border-radius: var(--radius);
  border: 3px solid var(--hutan);
  overflow: hidden;
}

.maps iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* ---------- WhatsApp melayang ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  border-color: #fff;
  box-shadow: 0 8px 22px rgba(22, 48, 30, 0.35);
}

footer {
  padding: 56px max(24px, calc((100% - 1100px) / 2)) 24px;
  background: var(--tanah);
  color: #d3c3ad;
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 40px;
}

footer h3 {
  font-size: 1.1rem;
  color: #fff;
}

footer p {
  margin: 0 0 0.8em;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin-bottom: 6px;
}

footer a {
  color: #fff;
  text-underline-offset: 4px;
}

footer a:hover {
  color: var(--padi);
}

footer .logo {
  margin-bottom: 12px;
}

footer .sosmed {
  justify-content: flex-start;
  margin: 0;
}

.foot-bottom {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  max-width: none;
}

/* ---------- Satu gerak masuk: hero saja ---------- */
.hero-text,
.hero-img {
  animation: rise 0.8s ease-out both;
}

.hero-img {
  animation-delay: 0.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Harga & paket wisata ---------- */
.paket {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.paket-card {
  display: flex;
  flex-direction: column;
  background: var(--krem);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.paket-card h3 {
  font-size: 1.35rem;
  color: var(--hutan);
}

.paket-card .harga {
  align-self: flex-start;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--padi);
  margin-bottom: 12px;
}

.durasi {
  font-weight: 700;
  margin-bottom: 12px;
}

.paket-list {
  margin: 0 0 24px;
  padding-left: 20px;
  flex: 1;
}

.paket-list li {
  margin-bottom: 6px;
}

.paket-list li::marker {
  color: var(--kuping);
}

.paket-card .btn {
  text-align: center;
  justify-content: center;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .topbar {
    justify-content: center;
  }

  .topbar p:first-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
    gap: 28px;
  }

  .hero-actions {
    margin-bottom: 0;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero-img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 16px;
    justify-self: center;
  }

  .hv-chip,
  .hv-chip img {
    width: 80px;
  }

  .hv-chip img {
    height: 80px;
  }

  .sticker {
    width: 72px;
    height: 72px;
    font-size: 0.7rem;
    top: 18px;
  }

  .section {
    padding: 60px 20px;
  }

  #tentang {
    grid-template-columns: 1fr;
  }

  #tentang .checks {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .lokasi-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--hutan);
    padding: 8px 24px 16px;
  }

  .navbar.active .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .galeri {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    grid-auto-rows: 120px;
  }
}

/* ---------- Foto wisata edukasi ---------- */
[hidden] {
  display: none !important;
}

.wisata-foto {
  margin-top: 64px;
}

/* Sembunyikan seluruh blok bila belum ada satu pun foto */
.wisata-foto:not(:has(figure:not([hidden]))) {
  display: none;
}

.wisata-foto h3 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
}

.fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.fotos figure {
  margin: 0;
}

.fotos button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 24px;
  overflow: hidden;
  cursor: zoom-in;
}

.fotos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}

.fotos button:hover img {
  transform: scale(1.05);
}
