/* ==========================================================================
   Buku Padi — shared stylesheet
   Palette + typography derived from the source presentation decks.
   ========================================================================== */

:root{
  --green:        #004700;
  --green-deep:   #003400;
  --green-mid:    #1c7a12;
  --green-bright: #2fa018;
  --brown:        #654121;
  --brown-soft:   #7d5a3c;
  --gold:         #ffc000;
  --red:          #cc0000;

  --paper:        #ffffff;
  --paper-tint:   #f6f7f1;
  --paper-green:  #eef3e9;
  --rule:         #ded8cb;
  --rule-soft:    #ece7dc;

  --font-display: 'Anton', 'Impact', 'Haettenschweiler', sans-serif;
  --font-body:    'Barlow Semi Condensed', 'Akrobat', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,.12), 0 18px 44px rgba(0,0,0,.10);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:150px; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height:1.62;
  color:var(--brown);
  background:var(--paper);
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ margin:0; line-height:1.15; }
p{ margin:0 0 1em; }
ul{ margin:0 0 1em; padding-left:1.15em; }
li{ margin-bottom:.3em; }

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.section--tint{ background:var(--paper-tint); }
.section--green-tint{ background:var(--paper-green); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{ background:var(--paper); border-bottom:1px solid var(--rule); }

.header-top{
  display:flex; align-items:flex-start; gap:clamp(.75rem,2.4vw,1.75rem);
  padding-block:.85rem .6rem; flex-wrap:wrap;
}
.brand{ display:flex; flex-direction:column; gap:.28rem; flex:0 0 auto; }
.brand__logo{ width:clamp(148px, 20vw, 205px); }
.brand__tagline{
  font-size:.72rem; letter-spacing:.11em; text-transform:uppercase;
  color:var(--green); font-weight:600; line-height:1.3;
}
.header-meta{
  flex:1 1 260px; display:flex; flex-direction:column; gap:.5rem;
  align-items:flex-start; padding-top:.15rem;
}
.definition{
  font-size:.775rem; line-height:1.4; color:var(--brown-soft);
  font-style:italic; max-width:44ch;
}
.definition b{ font-style:normal; color:var(--brown); }
.header-actions{ display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; }

.btn-download{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--green); color:#fff; text-decoration:none;
  font-weight:700; font-size:.9rem; letter-spacing:.02em;
  padding:.5rem 1rem; border-radius:100px;
  border:2px solid var(--green);
  transition:background .18s ease, color .18s ease, transform .18s ease;
  white-space:nowrap;
}
.btn-download::before{ content:"⬇"; font-size:.95em; }
.btn-download:hover{ background:#fff; color:var(--green); transform:translateY(-1px); }

.lang{ display:flex; align-items:center; gap:.45rem; font-size:.85rem; font-weight:600; }
.lang a{ text-decoration:none; color:var(--brown-soft); padding-bottom:1px; }
.lang a:hover{ color:var(--green); }
.lang a.is-active{ color:var(--green); border-bottom:2px solid var(--green); }
.lang span{ color:var(--rule); }

/* ---------- primary nav ---------- */
.nav-primary{ border-top:1px solid var(--rule); }
.nav-primary__inner{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.nav-primary ul{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:stretch; flex-wrap:wrap;
}
.nav-primary li + li{ border-left:1px solid var(--rule-soft); }
.nav-primary a{
  display:block; text-decoration:none;
  font-weight:700; font-size:clamp(.86rem,.8rem + .22vw,1rem);
  letter-spacing:.01em; color:var(--brown);
  padding:.72rem clamp(.7rem,1.7vw,1.15rem);
  border-bottom:3px solid transparent;
  transition:color .16s ease, border-color .16s ease, background .16s ease;
}
.nav-primary a:hover{ color:var(--green); background:var(--paper-tint); }
.nav-primary a[aria-current="page"]{ color:var(--green); border-bottom-color:var(--green); }

/* ---------- section nav (sticky) ---------- */
.nav-section{
  position:sticky; top:0; z-index:50;
  background:var(--green); color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}
.nav-section__scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.nav-section__scroll::-webkit-scrollbar{ display:none; }
.nav-section ul{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; white-space:nowrap; gap:0;
}
.nav-section a{
  display:block; text-decoration:none; color:rgba(255,255,255,.82);
  font-weight:600; font-size:.88rem; letter-spacing:.015em;
  padding:.6rem clamp(.6rem,1.4vw,1rem);
  border-bottom:3px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}
.nav-section a:hover{ color:#fff; }
.nav-section a.is-active{ color:#fff; border-bottom-color:var(--gold); }
.nav-section li + li::before{
  content:""; display:inline-block; width:1px; height:14px;
  background:rgba(255,255,255,.28); vertical-align:middle;
}
.nav-section li{ display:flex; align-items:center; }

/* ---------- mobile nav toggle ---------- */
.nav-toggle{
  display:none; align-items:center; gap:.5rem;
  background:none; border:1.5px solid var(--rule); border-radius:5px;
  padding:.45rem .7rem; font:inherit; font-weight:700; font-size:.9rem;
  color:var(--brown); cursor:pointer;
}
.nav-toggle__bars{ display:inline-block; width:16px; height:11px; position:relative; }
.nav-toggle__bars i,
.nav-toggle__bars::before,
.nav-toggle__bars::after{
  content:""; position:absolute; left:0; width:100%; height:2px;
  background:var(--green); border-radius:2px; transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before{ top:0; }
.nav-toggle__bars i{ top:4.5px; }
.nav-toggle__bars::after{ bottom:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{ transform:translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i{ opacity:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{ transform:translateY(-4.5px) rotate(-45deg); }

/* ==========================================================================
   TYPOGRAPHY BLOCKS
   ========================================================================== */
.display{
  font-family:var(--font-display); font-weight:400;
  color:var(--green); letter-spacing:.005em;
  font-size:clamp(1.55rem, 1.15rem + 1.75vw, 2.5rem);
  line-height:1.08; margin-bottom:.55rem;
}
.display--sm{ font-size:clamp(1.25rem, 1.05rem + .9vw, 1.7rem); }
.display--white{ color:#fff; }
.eyebrow{
  font-family:var(--font-display); color:var(--green);
  font-size:clamp(1.1rem,.98rem + .6vw,1.4rem); line-height:1.15; margin-bottom:.4rem;
}
.lede{ font-size:1.06em; }
.h-rule{ border:0; border-top:1px solid var(--rule); margin:clamp(1.5rem,4vw,2.5rem) 0; }

.prose > p:last-child{ margin-bottom:0; }
.prose a{ color:var(--green); font-weight:600; }

/* green banner strip (repeated device in the decks) */
.banner{
  background:var(--green); color:#fff;
  padding:clamp(.85rem,2.4vw,1.25rem) clamp(1rem,3vw,1.75rem);
  border-radius:var(--radius);
  text-align:center;
  font-weight:700; font-size:clamp(1.05rem,.95rem + .7vw,1.5rem);
  line-height:1.25; letter-spacing:.005em;
  box-shadow:var(--shadow-sm);
}
.banner--quote{ font-style:italic; }

/* pull quote */
.pullquote{
  border-left:5px solid var(--green);
  background:var(--paper-green);
  padding:clamp(.9rem,2.5vw,1.25rem) clamp(1rem,3vw,1.5rem);
  color:var(--green); font-weight:700;
  font-size:clamp(1rem,.94rem + .45vw,1.22rem); line-height:1.4;
  border-radius:0 var(--radius) var(--radius) 0;
  margin:1.5rem 0;
}

/* ---------- generic grids ---------- */
.grid{ display:grid; gap:clamp(1.1rem,3vw,2rem); }
.grid--2{ grid-template-columns:1fr; }
.grid--split{ grid-template-columns:1fr; align-items:start; }
@media (min-width:760px){
  .grid--2{ grid-template-columns:repeat(2,1fr); }
  .grid--split{ grid-template-columns:1.15fr .85fr; }
  .grid--split-rev{ grid-template-columns:.85fr 1.15fr; }
}

.figure{ margin:0; }
.figure img{
  width:100%; border-radius:var(--radius);
  box-shadow:var(--shadow-sm); background:var(--paper-tint);
}
.figure figcaption{
  font-size:.85rem; font-weight:700; color:var(--brown-soft);
  padding-top:.5rem; line-height:1.35;
}
.figure--plain img{ box-shadow:none; }
.figure--screen img{ border:1px solid var(--rule); }

/* full-bleed hero image */
.hero-band{ position:relative; }
.hero-band img{ width:100%; height:clamp(180px,32vw,420px); object-fit:cover; }
.hero-band--tall img{ height:clamp(230px,40vw,520px); }

/* ---------- phone mockup ---------- */
.phone{
  position:relative; margin-inline:auto;
  width:clamp(190px,60vw,255px);
  border:9px solid #14210f; border-radius:30px;
  background:#14210f; box-shadow:var(--shadow-md);
  overflow:hidden;
}
.phone::before{
  content:""; position:absolute; top:5px; left:50%; transform:translateX(-50%);
  width:38%; height:14px; background:#14210f; border-radius:0 0 10px 10px; z-index:2;
}
.phone img{ width:100%; border-radius:21px; display:block; }

/* ---------- feature list with ticks ---------- */
.ticks{ list-style:none; padding:0; margin:0 0 1.2rem; }
.ticks li{
  position:relative; padding-left:1.65rem; margin-bottom:.55rem; line-height:1.5;
}
.ticks li::before{
  content:""; position:absolute; left:0; top:.42em;
  width:.72rem; height:.42rem; border-left:2.5px solid var(--green-mid);
  border-bottom:2.5px solid var(--green-mid); transform:rotate(-45deg);
}

/* ---------- numbered steps ---------- */
.steps{ list-style:none; padding:0; margin:0; counter-reset:step; }
.steps > li{
  counter-increment:step; position:relative;
  padding:0 0 1.15rem 3.1rem; margin:0;
}
.steps > li::before{
  content:counter(step); position:absolute; left:0; top:0;
  width:2.1rem; height:2.1rem; border-radius:50%;
  background:var(--green); color:#fff;
  font-family:var(--font-display); font-size:1.05rem;
  display:grid; place-items:center;
}
.steps > li:not(:last-child)::after{
  content:""; position:absolute; left:1.05rem; top:2.35rem; bottom:.3rem;
  width:2px; background:var(--rule);
}
.steps h3{
  font-size:1.06rem; font-weight:700; color:var(--green-deep); margin-bottom:.2rem;
}
.steps ul{ margin:.35rem 0 0; }

/* ---------- download card ---------- */
.download-card{
  background:var(--green); color:#fff; border-radius:var(--radius);
  padding:clamp(1.2rem,3vw,1.75rem);
  box-shadow:var(--shadow-sm);
}
.download-card h2{
  font-family:var(--font-display); font-size:clamp(1.5rem,1.2rem + 1.3vw,2.1rem);
  margin-bottom:.65rem; line-height:1.05;
}
.download-card ul{ list-style:none; padding:0; margin:0 0 1.1rem; }
.download-card li{
  display:flex; align-items:baseline; gap:.6rem;
  font-weight:700; padding:.4rem 0; border-bottom:1px solid rgba(255,255,255,.2);
}
.download-card li:last-child{ border-bottom:0; }
.download-card .tag{
  font-size:.7rem; letter-spacing:.08em; text-transform:uppercase;
  background:var(--gold); color:var(--green-deep);
  padding:.12rem .45rem; border-radius:3px; font-weight:800; white-space:nowrap;
}
.download-card .btn-store{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#fff; color:var(--green); text-decoration:none;
  font-weight:800; padding:.6rem 1.15rem; border-radius:100px;
}
.download-card .btn-store:hover{ background:var(--gold); color:var(--green-deep); }

/* ---------- cards ---------- */
.card{
  background:#fff; border:1px solid var(--rule-soft); border-radius:var(--radius);
  padding:clamp(1.05rem,2.6vw,1.5rem); box-shadow:var(--shadow-sm);
}
.card h3{
  font-family:var(--font-display); color:var(--green);
  font-size:clamp(1.15rem,1rem + .6vw,1.45rem); margin-bottom:.45rem;
}

/* ---------- badge / logo grid (About) ---------- */
.badges{
  display:grid; gap:clamp(.5rem,1.8vw,1rem);
  grid-template-columns:repeat(3,1fr);
}
@media (min-width:560px){ .badges{ grid-template-columns:repeat(5,1fr); } }
@media (min-width:900px){ .badges{ grid-template-columns:repeat(7,1fr); } }
.badges img{
  width:100%; aspect-ratio:1; object-fit:contain;
  background:#fff; border:1px solid var(--rule-soft); border-radius:50%;
  padding:.28rem; transition:transform .18s ease, box-shadow .18s ease;
}
.badges img:hover{ transform:translateY(-3px); box-shadow:var(--shadow-sm); }

/* ---------- gallery ---------- */
.gallery{ display:grid; gap:clamp(.85rem,2.4vw,1.5rem); grid-template-columns:1fr; }
@media (min-width:600px){ .gallery{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .gallery--3{ grid-template-columns:repeat(3,1fr); } }
.gallery .figure img{ aspect-ratio:4/3; object-fit:cover; }
.gallery .figure--portrait img{ aspect-ratio:3/4; }
.gallery .figure--wide img{ aspect-ratio:16/9; }
.gallery .span-2{ grid-column:1 / -1; }

/* ---------- team ---------- */
.team-strip{
  display:grid; gap:clamp(.6rem,2vw,1.15rem);
  grid-template-columns:repeat(2,1fr);
}
@media (min-width:560px){ .team-strip{ grid-template-columns:repeat(5,1fr); } }
.team-strip figure{ margin:0; text-align:center; }
.team-strip img{
  width:100%; aspect-ratio:3/4; object-fit:cover; object-position:top center;
  border-radius:var(--radius); box-shadow:var(--shadow-sm);
}
.team-strip figcaption{
  font-family:var(--font-display); color:var(--green);
  font-size:1.05rem; padding-top:.45rem;
}
.bio{ padding-bottom:1.25rem; margin-bottom:1.25rem; border-bottom:1px solid var(--rule-soft); }
.bio:last-child{ border-bottom:0; margin-bottom:0; padding-bottom:0; }
.bio h3{
  font-size:1.1rem; color:var(--green-deep); font-weight:800; margin-bottom:.1rem;
}
.bio .role{
  display:inline-block; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  font-weight:800; color:#fff; background:var(--green); padding:.1rem .5rem;
  border-radius:3px; margin-bottom:.6rem;
}
.bio p{ font-size:.98em; }

/* ---------- article (research paper) ---------- */
.article-head{ margin-bottom:1.5rem; }
.article-head h2{
  font-family:var(--font-display); color:var(--green-deep);
  font-size:clamp(1.5rem,1.2rem + 1.4vw,2.25rem); line-height:1.1; margin-bottom:.6rem;
}
.byline{ font-size:.95rem; line-height:1.45; }
.byline strong{ display:block; font-size:1.06rem; color:var(--green-deep); letter-spacing:.02em; }
.author-card{
  background:var(--paper-tint);
  border-left:5px solid var(--green);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:.9rem 1.1rem;
}

/* ---------- contact strip ---------- */
.contact-strip{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:1rem; background:var(--paper-green); border:1px solid #cfdcc6;
  border-radius:var(--radius); padding:clamp(1rem,2.6vw,1.4rem);
}
.contact-strip p{ margin:0; max-width:62ch; }
.mail-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--green); color:#fff; text-decoration:none; font-weight:800;
  padding:.6rem 1.15rem; border-radius:100px; white-space:nowrap;
}
.mail-btn:hover{ background:var(--green-mid); }

/* ---------- video link ---------- */
.video-link{
  display:inline-flex; align-items:center; gap:.55rem;
  color:var(--red); font-weight:700; text-decoration:none; font-size:.95rem;
}
.video-link::before{
  content:"▶"; display:grid; place-items:center;
  width:1.6rem; height:1.6rem; border-radius:5px; background:var(--red); color:#fff;
  font-size:.7rem; padding-left:2px;
}
.video-link:hover{ text-decoration:underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--green-deep); color:rgba(255,255,255,.82); margin-top:0; }
.site-footer a{ color:rgba(255,255,255,.82); text-decoration:none; }
.site-footer a:hover{ color:#fff; text-decoration:underline; }
.footer-grid{
  display:grid; gap:clamp(1.25rem,3vw,2.25rem);
  grid-template-columns:1fr; padding-block:clamp(2rem,4vw,3rem);
}
@media (min-width:700px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.footer-grid h4{
  font-family:var(--font-display); color:#fff; font-size:1.05rem;
  letter-spacing:.03em; margin-bottom:.7rem;
}
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid li{ margin-bottom:.4rem; }
.footer-logo{ width:170px; background:#fff; border-radius:5px; padding:.3rem; margin-bottom:.8rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  padding-block:1rem; font-size:.82rem;
  display:flex; flex-wrap:wrap; gap:.6rem; justify-content:space-between;
}

/* ==========================================================================
   RESPONSIVE — mobile nav
   ========================================================================== */
@media (max-width:899px){
  html{ scroll-padding-top:110px; }
  .nav-toggle{ display:inline-flex; }
  .nav-primary__inner{ padding-block:.5rem; }
  .nav-primary ul{
    display:none; width:100%; flex-direction:column; order:3;
    border-top:1px solid var(--rule-soft); padding-block:.35rem;
  }
  .nav-primary.is-open ul{ display:flex; }
  .nav-primary li + li{ border-left:0; border-top:1px solid var(--rule-soft); }
  .nav-primary a{ padding:.75rem .25rem; border-bottom:0; border-left:3px solid transparent; }
  .nav-primary a[aria-current="page"]{ border-left-color:var(--green); background:var(--paper-tint); }
  .nav-primary__inner{ flex-wrap:wrap; }
  .nav-label{
    font-family:var(--font-display); color:var(--green);
    font-size:1rem; letter-spacing:.02em;
  }
}
@media (min-width:900px){
  .nav-label{ display:none; }
  .nav-section{ top:0; }
}

/* fine print */
.fineprint{ font-size:.82rem; color:var(--brown-soft); }
.center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.stack > * + *{ margin-top:clamp(1.15rem,3vw,1.9rem); }

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

/* ==========================================================================
   USER-GUIDE BLOCKS (For Farmers page)
   ========================================================================== */
.phone--sm{ width:clamp(158px,40vw,196px); border-width:7px; border-radius:25px; }
.phone--sm::before{ height:11px; }
.phone--sm img{ border-radius:18px; }

.phone-row{
  display:flex; flex-wrap:wrap; gap:clamp(.65rem,2.2vw,1.35rem);
  justify-content:center; align-items:flex-start;
}
.phone-row .phone{ margin:0; }
.phone-shot{ text-align:center; }
.phone-shot figcaption{
  font-size:.8rem; color:var(--brown-soft); font-weight:600;
  padding-top:.5rem; max-width:210px; margin-inline:auto; line-height:1.3;
}

.guide-step{
  display:grid; gap:clamp(1.15rem,3vw,2.25rem);
  grid-template-columns:1fr; align-items:start;
  padding-block:clamp(1.4rem,3.5vw,2.2rem);
  border-top:1px solid var(--rule-soft);
}
.guide-step:first-of-type{ border-top:0; padding-top:.5rem; }
@media (min-width:800px){
  .guide-step{ grid-template-columns:minmax(0,240px) minmax(0,1fr); }
  .guide-step--wide{ grid-template-columns:minmax(0,430px) minmax(0,1fr); }
  .guide-step--rev{ grid-template-columns:minmax(0,1fr) minmax(0,240px); }
  .guide-step--rev .guide-step__media{ order:2; }
}
.guide-step__body h3{
  font-family:var(--font-display); color:var(--green);
  font-size:clamp(1.15rem,1rem + .65vw,1.5rem); margin-bottom:.5rem;
}
.guide-step__body > :last-child{ margin-bottom:0; }
.guide-step__body h4{
  font-size:1rem; font-weight:800; color:var(--green-deep);
  margin:1.1rem 0 .25rem;
}

.badge-note{
  display:flex; gap:.9rem; align-items:center;
  background:var(--paper-green); border:1px solid #cfdcc6; border-radius:var(--radius);
  padding:.8rem 1rem; margin:1.2rem 0;
}
.badge-note img{ width:66px; flex:0 0 auto; border-radius:3px; box-shadow:var(--shadow-sm); }
.badge-note p{ margin:0; font-size:.94rem; }
.badge-note strong{ color:var(--green); display:block; font-size:1.02rem; }

.chip-list{ list-style:none; padding:0; margin:.6rem 0 1rem; display:flex; flex-wrap:wrap; gap:.4rem; }
.chip-list li{
  margin:0; font-size:.85rem; font-weight:700; color:var(--green-deep);
  background:var(--paper-green); border:1px solid #cfdcc6;
  padding:.22rem .7rem; border-radius:100px;
}

.note{
  border-left:4px solid var(--gold); background:#fffaee;
  padding:.75rem 1rem; border-radius:0 var(--radius) var(--radius) 0;
  font-size:.95rem; margin:1rem 0;
}
.note p:last-child{ margin-bottom:0; }
.note strong{ color:var(--green-deep); }
