/* ================================================
   STYLE.CSS — dipakai bersama di semua halaman
   ================================================
   Isi file ini: hal-hal yang HARUS sama persis di semua
   halaman (index utama, toko, dll) — warna, tipografi dasar,
   header/navbar, footer.

   Style yang khusus buat satu halaman aja (hero, product grid,
   keranjang, dsb) TETAP ditulis di <style> masing-masing file,
   supaya file ini gak jadi kepanjangan dan gampang dibaca.

   Cara pakai: taruh <link rel="stylesheet" href="/style.css">
   di <head>, SEBELUM <style> bawaan halaman (biar style halaman
   bisa nimpa kalau memang perlu).
*/

:root{
  --bg: #f7f6f2;
  --ink: #1b1a17;
  --accent: #5f7052;
  --accent-soft: #e7ebe1;
  --line: #dbd8ce;
  --muted: #78766d;
  --card-bg: #ffffff;
  --danger: #a3453b;
  --radius: 2px;
}

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

html{ scroll-behavior:smooth; }
section[id]{ scroll-margin-top:80px; }

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3, .display{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
}

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:0 32px;
}

/* ---------- HEADER / NAVBAR ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:60;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.logo{
  font-family:'Fraunces', serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.01em;
  text-decoration:none;
  color:var(--ink);
}
.logo span{
  color:var(--muted); font-family:'Inter',sans-serif;
  font-weight:400; font-size:13px; margin-left:8px;
}
nav{ display:flex; gap:28px; align-items:center; }
nav a{
  font-size:14px;
  color:var(--muted);
  transition:color .15s ease;
}
nav a:hover{ color:var(--ink); }

.hamburger{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:28px; height:22px;
  background:none; border:none; cursor:pointer; padding:0;
}
.hamburger span{
  display:block; width:100%; height:1.5px; background:var(--ink);
  transition:transform .25s ease, opacity .25s ease;
}
.hamburger.active span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

.mobile-nav{
  display:none;
  flex-direction:column;
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:8px 32px 18px;
}
.mobile-nav a{
  padding:13px 0;
  font-size:15px;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.mobile-nav a:last-child{ border-bottom:none; }
.mobile-nav.open{ display:flex; }

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--line);
  padding:28px 0;
  font-size:12.5px; color:var(--muted);
  display:flex; justify-content:space-between;
}

@media (max-width:640px){
  header nav.nav-links{ display:none; }
  .hamburger{ display:flex; }
  footer{ flex-direction:column; gap:8px; text-align:center; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ transition:none; opacity:1; transform:none; }
}
