/* ==========================================================================
   Bhumi Kalapa — Shared Stylesheet
   ========================================================================== */

:root {
  --sage: #6d7564;
  --sage-dark: #565c4d;
  --cacao: #3d2e23;
  --cacao-light: #57422f;
  --cream: #f5f1e8;
  --ink: #202020;
  --paper: #fffefa;

  --display: "Poor Story", cursive;
  --serif: "Playfair Display", serif;

  --wrap: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
textarea {
  font-family: inherit;
}
button {
  cursor: pointer;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}
::selection {
  background: var(--sage);
  color: var(--paper);
}

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--sage-dark);
  opacity: 0.6;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ NAV ============ */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
header.site.scrolled {
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(8px);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(61, 46, 35, 0.12);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px; /* sesuaikan */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.links a {
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--cacao);
  position: relative;
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cacao);
  transition: right 0.3s ease;
}
nav.links a:hover::after {
  right: 0;
}
nav.links a.active {
  color: var(--sage-dark);
}
nav.links a.active::after {
  right: 0;
  background: var(--sage-dark);
}
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--cacao);
  border-radius: 2px;
  font-size: 13.5px !important;
}
.nav-cta:hover {
  background: var(--cacao);
  color: var(--paper) !important;
}
.nav-cta::after {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--cacao);
  display: block;
}
.nav-close {
  display: none;
}

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  padding: 168px var(--edge) 90px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.03;
  color: var(--cacao);
}
.hero h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  color: var(--sage-dark);
  display: block;
  font-size: 1.14em;
  line-height: 1;
  margin-top: 6px;
}
.hero p.lead {
  max-width: 480px;
  margin-top: 26px;
  font-size: 18px;
  color: rgba(32, 32, 32, 0.78);
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 2px;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}
.btn-solid {
  background: var(--cacao);
  color: var(--paper);
}
.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -12px rgba(61, 46, 35, 0.5);
}
.btn-line {
  border: 1px solid var(--cacao);
  color: var(--cacao);
}
.btn-line:hover {
  background: var(--cacao);
  color: var(--paper);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div b {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 26px;
  color: var(--cacao);
}
.hero-stats div span {
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.6);
  letter-spacing: 0.03em;
}

.hero-art {
  position: relative;
  height: 460px;
}
.hero-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ SUB-PAGE HERO ============ */
.page-hero {
  padding: 168px var(--edge) 80px;
  background: var(--paper);
  border-bottom: 1px solid rgba(61, 46, 35, 0.1);
}
.page-hero .inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--cacao);
  line-height: 1.08;
}
.page-hero p {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(32, 32, 32, 0.7);
}
.page-hero .eyebrow {
  justify-content: center;
}
.page-hero .eyebrow::before {
  display: none;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(32, 32, 32, 0.5);
  margin-bottom: 20px;
}
.breadcrumb a:hover {
  color: var(--cacao);
}

/* ============ SECTION generic ============ */
section {
  padding: 118px var(--edge);
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.wide {
  max-width: none;
}
.section-head.center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--cacao);
  line-height: 1.12;
}
.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(32, 32, 32, 0.72);
}

.alt {
  background: var(--paper);
}

/* ============ STORY / ABOUT ============ */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: stretch;
}
.story-copy {
  display: flex;
  flex-direction: column;
}
.story-copy p {
  color: rgba(32, 32, 32, 0.78);
  font-size: 16.5px;
}
.story-copy p + p {
  margin-top: 16px;
}
.story-copy .signoff {
  margin-top: 30px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--sage-dark);
}
.story-copy .btn-line {
  align-self: flex-start;
  margin-top: auto;
}

/* Panel foto penuh-tinggi untuk menyeimbangkan kolom teks (dipakai di Beranda) */
.story-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 60px -30px rgba(61, 46, 35, 0.35);
}
.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px dashed rgba(61, 46, 35, 0.2);
  border-bottom: 1px dashed rgba(61, 46, 35, 0.2);
}

.village-card {
  background: var(--cream);
  border: 1px solid rgba(61, 46, 35, 0.12);
  border-radius: 4px;
  padding: 34px;
  position: relative;
}
.alt .village-card {
  background: var(--cream);
}
.village-card::before {
  content: "Profil Desa";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--cacao);
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}
.village-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  margin-top: 8px;
}
.village-facts .fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  color: var(--cacao);
}
.village-facts .fact span {
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.6);
}
.hamlets {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed rgba(61, 46, 35, 0.25);
}
.hamlets span.lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
}
.hamlets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hamlets li {
  font-size: 13px;
  padding: 6px 13px;
  background: var(--paper);
  border: 1px solid rgba(61, 46, 35, 0.18);
  border-radius: 2px;
}

/* root cause / objective blocks (Tentang page) */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.reason-card {
  background: var(--cream);
  border-left: 3px solid var(--sage);
  padding: 26px 28px;
}
.reason-card h4 {
  font-size: 16.5px;
  color: var(--cacao);
  margin-bottom: 10px;
}
.reason-card p {
  font-size: 14.5px;
  color: rgba(32, 32, 32, 0.7);
}

/* ============ PROSES ============ */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--sage) 0 10px,
    transparent 10px 18px
  );
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
}
.flow-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(61, 46, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 15px;
  color: var(--cacao);
  margin-bottom: 22px;
  box-shadow: 0 10px 24px -14px rgba(61, 46, 35, 0.4);
}
.alt .flow-num {
  background: var(--cream);
}
.flow-step h3 {
  font-size: 21px;
  color: var(--cacao);
  margin-bottom: 10px;
}
.flow-step p {
  font-size: 15px;
  color: rgba(32, 32, 32, 0.72);
}
.value-note {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--cream);
  border-radius: 4px;
  padding: 26px 30px;
  border: 1px solid rgba(61, 46, 35, 0.1);
}
.alt .value-note {
  background: var(--cream);
}
.value-note .num {
  font-family: var(--display);
  font-size: 46px;
  color: var(--sage-dark);
  line-height: 1;
}
.value-note p {
  font-size: 15px;
  color: rgba(32, 32, 32, 0.75);
  max-width: 560px;
}

/* detailed process table */
.phase-table {
  margin-top: 70px;
  border-top: 1px solid rgba(61, 46, 35, 0.15);
}
.phase-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(61, 46, 35, 0.12);
  align-items: center;
}
.phase-row.head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  padding-bottom: 14px;
}
.phase-row .phase-label {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cacao);
  font-size: 16px;
}
.phase-row div p {
  font-size: 14px;
  color: rgba(32, 32, 32, 0.7);
}

/* ============ PRODUK ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 34px 28px;
  border: 1px solid rgba(61, 46, 35, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
}
.alt .product-card {
  background: var(--cream);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -26px rgba(61, 46, 35, 0.35);
}
.product-icon-wrap {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
}
.product-icon-wrap svg {
  width: 100%;
  height: 100%;
}
.product-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
}
.product-card h3 {
  font-size: 22px;
  color: var(--cacao);
  margin: 10px 0 10px;
}
.product-card p {
  font-size: 14.5px;
  color: rgba(32, 32, 32, 0.7);
}
.product-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(61, 46, 35, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-meta span {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(61, 46, 35, 0.2);
  border-radius: 2px;
  color: rgba(32, 32, 32, 0.65);
}

/* ============ SHOP CARD (e-commerce style) ============ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.shop-card {
  background: var(--paper);
  border: 1px solid rgba(61, 46, 35, 0.12);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.alt .shop-card {
  background: var(--paper);
}
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px rgba(61, 46, 35, 0.38);
}
.shop-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-bottom: 1px solid rgba(61, 46, 35, 0.1);
}
.shop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cacao);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  z-index: 2;
}
.shop-icon {
  width: 92px;
  height: 92px;
}
.shop-icon svg {
  width: 100%;
  height: 100%;
}
.shop-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-title h3 {
  font-size: 19px;
  color: var(--cacao);
  margin-bottom: 8px;
}
.shop-desc {
  font-size: 13.5px;
  color: rgba(32, 32, 32, 0.65);
  flex: 1;
  margin-bottom: 16px;
}
.shop-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.6);
}
.shop-rating .stars {
  color: #c9932c;
  font-size: 13px;
  letter-spacing: 1px;
}
.shop-rating b {
  color: var(--cacao);
  font-weight: 700;
}
.shop-sold {
  position: relative;
  padding-left: 9px;
}
.shop-sold::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(32, 32, 32, 0.4);
}
.shop-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.shop-price-row .price {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 21px;
  color: var(--cacao);
}
.shop-price-row .unit {
  font-size: 12px;
  color: rgba(32, 32, 32, 0.5);
}
.shop-actions {
  display: flex;
  gap: 10px;
}
.shop-actions .btn {
  padding: 12px 14px;
  font-size: 12.8px;
}
.shop-actions .buy-btn {
  flex: 1;
  justify-content: center;
  border: none;
}
.shop-actions .btn-line {
  flex-shrink: 0;
}

/* related-product mini cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--cream);
  border: 1px solid rgba(61, 46, 35, 0.1);
  border-radius: 4px;
  padding: 22px 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.alt .related-card {
  background: var(--cream);
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px rgba(61, 46, 35, 0.3);
}
.related-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}
.related-card .icon svg {
  width: 100%;
  height: 100%;
}
.related-card h4 {
  font-size: 14px;
  color: var(--cacao);
  margin-bottom: 6px;
  line-height: 1.3;
}
.related-card span.price {
  font-size: 12.5px;
  color: var(--sage-dark);
  font-weight: 600;
}

/* ============ PRODUCT DETAIL HERO ============ */
.product-hero {
  padding: 168px var(--edge) 90px;
  background: var(--paper);
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
}
.product-visual {
  background: var(--cream);
  border-radius: 4px;
  aspect-ratio: 1/1;
  border: 1px solid rgba(61, 46, 35, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-visual .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--cacao);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 2px;
}
.product-visual .icon {
  width: 190px;
  height: 190px;
}
.product-visual .icon svg {
  width: 100%;
  height: 100%;
}

.product-info .eyebrow {
  margin-bottom: 14px;
}
.product-info h1 {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--cacao);
  line-height: 1.1;
}
.product-info .price-lg {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  color: var(--cacao);
}
.product-info .price-lg .unit {
  font-size: 14px;
  color: rgba(32, 32, 32, 0.5);
  font-weight: 500;
  margin-left: 8px;
}
.product-info p.desc {
  margin: 20px 0 8px;
  font-size: 15.5px;
  color: rgba(32, 32, 32, 0.72);
  max-width: 480px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 26px 0 30px;
  padding: 24px;
  background: var(--cream);
  border-radius: 4px;
  border: 1px solid rgba(61, 46, 35, 0.1);
  max-width: 520px;
}
.spec-list .spec span.lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 5px;
}
.spec-list .spec p {
  font-size: 14px;
  color: var(--cacao);
  font-weight: 600;
}

.steps-list {
  counter-reset: step;
  margin-top: 22px;
  max-width: 600px;
}
.steps-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(61, 46, 35, 0.18);
}
.steps-list li:last-child {
  border-bottom: none;
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cacao);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.steps-list li p {
  font-size: 14.5px;
  color: rgba(32, 32, 32, 0.72);
  padding-top: 5px;
}

/* ============ BUY MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 32, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--paper);
  max-width: 420px;
  width: 100%;
  border-radius: 4px;
  padding: 38px 34px 30px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--cacao);
  line-height: 1;
  padding: 4px;
}
.modal-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
}
.modal-box h3 {
  font-size: 21px;
  color: var(--cacao);
  margin: 10px 0 4px;
}
.modal-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--sage-dark);
  margin-bottom: 26px;
}
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.market-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(61, 46, 35, 0.2);
  border-radius: 2px;
  font-size: 14.5px;
  color: var(--cacao);
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.market-btn:hover {
  border-color: var(--sage);
  background: var(--cream);
}
.market-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cacao);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.modal-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(32, 32, 32, 0.55);
}

/* ============ NILAI KAMI (professional redesign) ============ */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(61, 46, 35, 0.15);
}
.vm-card {
  padding: 48px 44px;
}
.vm-card + .vm-card {
  border-left: 1px solid rgba(61, 46, 35, 0.15);
}
.vm-card .vm-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 20px;
  display: block;
}
.vm-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 25px);
  color: var(--cacao);
  line-height: 1.5;
}

.value-row {
  display: flex;
  margin-top: 70px;
  border-top: 1px solid rgba(61, 46, 35, 0.15);
}
.value-item {
  flex: 1;
  padding: 36px 30px;
}
.value-item + .value-item {
  border-left: 1px solid rgba(61, 46, 35, 0.15);
}
.value-item .roman {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 22px;
}
.value-item h4 {
  font-size: 19px;
  color: var(--cacao);
  margin-bottom: 12px;
}
.value-item p {
  font-size: 14px;
  color: rgba(32, 32, 32, 0.68);
}

.pullquote {
  text-align: center;
  max-width: 760px;
  margin: 90px auto 0;
  padding: 50px 0;
  position: relative;
  border-top: 1px solid rgba(61, 46, 35, 0.18);
  border-bottom: 1px solid rgba(61, 46, 35, 0.18);
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 28px);
  color: var(--cacao);
  line-height: 1.6;
}
.pullquote span {
  display: block;
  margin-top: 20px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.principles {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 60px;
}
.principle {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.principle .pnum {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 14px;
  color: var(--paper);
  background: var(--cacao);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.principle h5 {
  font-size: 15.5px;
  color: var(--cacao);
  margin-bottom: 6px;
}
.principle p {
  font-size: 13.5px;
  color: rgba(32, 32, 32, 0.68);
}

/* ============ DAMPAK ============ */
.impact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.impact-hub {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px -22px rgba(61, 46, 35, 0.4);
}
.alt .impact-hub {
  background: var(--cream);
}
.impact-hub span.mark {
  font-family: var(--display);
  font-size: 24px;
  color: var(--cacao);
}
.impact-hub span.sub {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-top: 4px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 44px;
  position: relative;
}
.impact-grid::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(61, 46, 35, 0.18);
}
.impact-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 24px 18px;
  border: 1px solid rgba(61, 46, 35, 0.1);
  text-align: center;
  position: relative;
}
.alt .impact-card {
  background: var(--paper);
}
.impact-card::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: rgba(61, 46, 35, 0.18);
}
.impact-card .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
}
.impact-card .icon svg {
  width: 100%;
  height: 100%;
}
.impact-card h4 {
  font-size: 15.5px;
  color: var(--cacao);
  margin-bottom: 8px;
}
.impact-card p {
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.65);
}

/* SDG / contribution table */
.contrib-table {
  margin-top: 90px;
  border-top: 1px solid rgba(61, 46, 35, 0.15);
}
.contrib-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(61, 46, 35, 0.12);
}
.contrib-row.head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  padding-bottom: 14px;
}
.contrib-row .who {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cacao);
  font-size: 15.5px;
}
.contrib-row p {
  font-size: 13.5px;
  color: rgba(32, 32, 32, 0.7);
}

/* ============ TESTIMONI ============ */
.quote-box {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.quote-box .mark {
  font-family: var(--display);
  font-size: 64px;
  color: var(--sage);
  line-height: 0.4;
  margin-bottom: 18px;
  display: block;
}
.quote-box p.q {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--cacao);
  line-height: 1.5;
}
.quote-box .who {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(32, 32, 32, 0.65);
}
.quote-box .who b {
  color: var(--cacao);
  font-family: var(--serif);
  font-style: italic;
}

/* ============ KONTAK ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info h3 {
  font-size: 24px;
  color: var(--cacao);
  margin-bottom: 18px;
}
.contact-info p {
  font-size: 15px;
  color: rgba(32, 32, 32, 0.72);
  margin-bottom: 30px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list .item span.lbl {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 6px;
}
.contact-list .item p {
  font-size: 15px;
  color: var(--cacao);
  margin: 0;
}
.contact-form {
  background: var(--paper);
  border: 1px solid rgba(61, 46, 35, 0.12);
  border-radius: 4px;
  padding: 40px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(61, 46, 35, 0.25);
  border-radius: 2px;
  background: var(--cream);
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--serif);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1.5px solid var(--sage);
  background: var(--paper);
}
.form-note {
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.5);
  margin-top: 14px;
}

/* ============ CTA / FOOTER ============ */
.cta-band {
  background: var(--cacao);
  color: var(--cream);
  padding-top: 110px;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
}
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  color: var(--cream);
}
.cta-inner .script {
  font-family: var(--display);
  color: var(--sage);
  display: block;
  font-size: 1.1em;
  margin-top: 6px;
}
.cta-inner p {
  margin-top: 20px;
  font-size: 16px;
  color: rgba(245, 241, 232, 0.72);
}
.cta-inner .hero-cta {
  justify-content: center;
  margin-top: 36px;
}
.cta-inner .btn-line {
  border-color: rgba(245, 241, 232, 0.5);
  color: var(--cream);
}
.cta-inner .btn-line:hover {
  background: var(--cream);
  color: var(--cacao);
}
.cta-inner .btn-solid {
  background: var(--sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-grid .logo {
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-grid p.desc {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.6);
  max-width: 280px;
}
.footer-grid h5 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin-bottom: 18px;
}
.footer-grid ul li {
  margin-bottom: 11px;
}
.footer-grid ul a {
  font-size: 14.5px;
  color: rgba(245, 241, 232, 0.82);
}
.footer-grid ul a:hover {
  color: var(--sage);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  font-size: 12.5px;
  color: rgba(245, 241, 232, 0.45);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 60px; /* sesuaikan jika ingin lebih besar/kecil */
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  opacity: 0.85;
}

.social {
  display: flex;
  gap: 14px;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.social a:hover {
  background: var(--sage);
  border-color: var(--sage);
}

/* ============ FOTO DI DALAM SECTION YANG SUDAH ADA ============ */
/* 1) .section-photo — tempel di <section> yang sudah ada agar section itu
     punya foto latar + overlay gelap. Tambahkan <img class="section-photo-img">
     dan <div class="section-photo-overlay"> sebagai anak pertama section.
     Tambahkan juga class "on-light" jika section tsb awalnya berlatar terang
     (teks gelap) supaya teks otomatis berubah kontras/terang. */
.section-photo {
  position: relative;
  isolation: isolate;
}
.section-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.section-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 46, 35, 0.7) 0%,
    rgba(61, 46, 35, 0.86) 100%
  );
  z-index: -1;
}
.section-photo.on-light .eyebrow,
.section-photo.on-light h1,
.section-photo.on-light h2,
.section-photo.on-light h3,
.section-photo.on-light h4 {
  color: var(--paper);
}
.section-photo.on-light .eyebrow::before {
  background: var(--sage);
}
.section-photo.on-light p {
  color: rgba(245, 241, 232, 0.85);
}
.section-photo.on-light .breadcrumb,
.section-photo.on-light .breadcrumb a {
  color: rgba(245, 241, 232, 0.6);
}
.section-photo.on-light .quote-box .mark {
  color: var(--sage);
}
.section-photo.on-light .quote-box p.q {
  color: var(--paper);
}
.section-photo.on-light .quote-box .who {
  color: rgba(245, 241, 232, 0.75);
}
.section-photo.on-light .quote-box .who b {
  color: var(--paper);
}

/* 2) .photo-card — kotak foto untuk ditaruh di dalam card/grid yang sudah ada
     (mis. di dalam .village-card, .value-note, .contact-info, atau langsung
     di dalam .wrap). Ganti src pada <img> sesuai file di assets/img/bk-img/. */
.photo-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 40px -24px rgba(61, 46, 35, 0.4);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card.wide {
  aspect-ratio: 21 / 8;
}
.photo-card.sm {
  width: 84px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

/* ============ IKON VISUAL & PROFIL DESA RINGKAS ============ */
.icon-mark {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.icon-mark svg {
  width: 100%;
  height: 100%;
}
.vm-card .icon-mark,
.value-item .icon-mark {
  width: 34px;
  height: 34px;
}
.reason-card .icon-mark {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}

/* Profil desa versi ringkas — cukup 3 poin singkat + ikon, tanpa angka statistik */
.village-facts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}
.vf-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.vf-item .icon-mark {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.vf-item b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--cacao);
  margin-bottom: 2px;
}
.vf-item span {
  font-size: 12.5px;
  color: rgba(32, 32, 32, 0.62);
  line-height: 1.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  nav.links {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    height: 100vh;
    width: 78%;
    max-width: 340px;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px var(--edge);
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
  }
  nav.links.open {
    transform: translateX(0);
  }
  .burger {
    display: flex;
  }
  .nav-close {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--cacao);
    padding: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 280px;
    order: -1;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-photo {
    min-height: 260px;
    order: -1;
  }
  .reason-grid {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow::before {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .vm-card + .vm-card {
    border-left: none;
    border-top: 1px solid rgba(61, 46, 35, 0.15);
  }
  .value-row {
    flex-direction: column;
  }
  .value-item + .value-item {
    border-left: none;
    border-top: 1px solid rgba(61, 46, 35, 0.15);
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid::before {
    display: none;
  }
  .impact-card::before {
    display: none;
  }
  .contrib-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .phase-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .phase-row.head {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-hero-grid {
    grid-template-columns: 1fr;
  }
  .product-visual {
    max-width: 360px;
    margin-inline: auto;
  }
  .spec-list {
    max-width: none;
  }
}
@media (max-width: 560px) {
  section {
    padding: 84px var(--edge);
  }
  .page-hero {
    padding: 140px var(--edge) 60px;
  }
  .product-hero {
    padding: 140px var(--edge) 60px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .shop-body {
    padding: 16px 14px 18px;
  }
  .shop-title h3 {
    font-size: 15.5px;
  }
  .shop-desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .shop-rating {
    font-size: 10.5px;
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .shop-price-row .price {
    font-size: 17px;
  }
  .shop-icon {
    width: 60px;
    height: 60px;
  }
  .shop-actions .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .village-facts {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .shop-actions {
    flex-direction: column;
  }
  .shop-actions .btn-line {
    width: 100%;
    justify-content: center;
  }
  .photo-card.wide {
    aspect-ratio: 4 / 3;
  }
  .photo-card.sm {
    width: 64px;
  }
}
