/* =========================================================================
   SARIAH CATERING — stylesheet
   Arah: "Dapur Rumahan yang Hangat" · heritage Indonesia, personal, terpercaya
   ========================================================================= */

:root {
  /* ---- Palet (dari aset brand: logo + foto produk) ---- */
  --krem:        #F6EFE3;   /* base hangat */
  --krem-gelap:  #ECE0CC;   /* panel di atas krem */
  --daun:        #33502E;   /* DOMINAN — hijau daun pisang tua */
  --daun-gelap:  #243A20;   /* section gelap / footer */
  --brass:       #B8935A;   /* aksen dekoratif (brass muted) */
  --brass-light: #D9BA85;   /* brass terang — untuk teks di atas hijau gelap */
  --brass-teks:  #7A5A2F;   /* brass untuk teks di atas krem/putih (kontras 5.5:1) */
  --biru-debu:   #8CA0AA;   /* aksen sekunder (seragam chef) */
  --teks:        #2A2420;   /* near-black hangat */
  --cream-on-green: #F3ECDD;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "General Sans", "Segoe UI", system-ui, sans-serif;
  --font-script: "Parisienne", "Fraunces", cursive;

  --wrap: 1140px;
  --radius-arch: 14rem 14rem 1.1rem 1.1rem;
  --shadow-soft: 0 18px 40px -22px rgba(36, 58, 32, 0.45);
  --shadow-deep: 0 30px 60px -28px rgba(36, 58, 32, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--krem);
  color: var(--teks);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 4.6rem; /* ruang untuk sticky CTA di HP */
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Tipografi ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--teks);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--brass-teks);
  line-height: 1;
  display: inline-block;
  margin-bottom: .35rem;
}
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--teks); }
.band--green .lead { 
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); 
  color: var(--cream-on-green); 
  font-weight: 500;
  opacity: 0.95;
}
.italic-em { font-style: italic; color: var(--daun); }

/* ---- Layout ---- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
section { position: relative; }
.band { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.band--green {
  background: var(--daun);
  color: var(--cream-on-green);
}
.band--green h1, .band--green h2, .band--green h3 { color: var(--cream-on-green); }
.band--green .eyebrow { color: var(--brass-light); }
/* kartu menu di dalam band hijau tetap pakai judul gelap (bg kartu putih) */
.band--green .menu-card-body h3 { color: var(--teks); }

.section-head { max-width: 46ch; margin-bottom: 2.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---- Tombol ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-wa {
  background: var(--daun); color: var(--cream-on-green);
  box-shadow: var(--shadow-soft);
}
.btn-wa:hover { background: var(--daun-gelap); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--daun); border-color: var(--daun);
}
.btn-ghost:hover { background: var(--daun); color: var(--cream-on-green); }
.btn-ghost-light {
  background: var(--brass); color: #241F14; border-color: transparent;
}
.btn-ghost-light:hover { background: var(--brass-light); transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--krem) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--daun) 14%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--daun); line-height: 1; }
.brand small { display: block; font-family: var(--font-script); font-size: 1rem; color: var(--brass-teks); line-height: 1; }

.nav { display: none; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--teks); font-weight: 500; font-size: .98rem;
  position: relative; padding: .2rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brass); transition: width .2s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav .btn { margin-left: .4rem; }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none;
  border: 1px solid color-mix(in srgb, var(--daun) 30%, transparent);
  border-radius: 10px; padding: 9px 10px; cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--daun); border-radius: 2px; }

/* drawer mobile */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
  background: var(--daun); color: var(--cream-on-green);
  z-index: 60; transform: translateX(100%); transition: transform .28s ease;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem;
}
.drawer.is-open { transform: translateX(0); box-shadow: var(--shadow-deep); }
.drawer a:not(.btn) { color: var(--cream-on-green); text-decoration: none; font-size: 1.15rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer a:not(.btn):active { background: rgba(255,255,255,.08); }
.drawer .btn { margin-top: 1rem; justify-content: center; }
.drawer-close { align-self: flex-end; background: none; border: 0; color: var(--cream-on-green); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.scrim { position: fixed; inset: 0; background: rgba(20,30,18,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---- Hero ---- */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy .eyebrow { margin-bottom: .2rem; }
.hero-copy h1 { margin: .1rem 0 .8rem; }
.hero-copy h1 .line2 { display: block; font-style: italic; color: var(--daun); }
.hero-copy p { max-width: 38ch; color: var(--teks); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-trust {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  font-size: .92rem; color: var(--brass-teks);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 1.1em; height: 1.1em; }

/* collage dengan bingkai arkuade + stempel */
.hero-collage { position: relative; min-height: 360px; }
.arch {
  border-radius: var(--radius-arch); overflow: hidden;
  box-shadow: var(--shadow-deep); border: 6px solid #fff;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--main {
  width: 78%; aspect-ratio: 4/5; margin-left: auto; position: relative; z-index: 1;
}
.arch--sub {
  position: absolute; left: 0; bottom: -1.5rem; width: 46%;
  aspect-ratio: 1/1; z-index: 2; border-color: var(--krem);
  transform: rotate(-4deg);
}
.stamp {
  position: absolute; top: -1.4rem; right: 2%; width: 116px; height: 116px; z-index: 3;
  animation: spin 22s linear infinite;
}
.stamp .ring { fill: var(--daun); stroke: var(--brass); stroke-width: 2.5; }
.stamp .ring-inner { fill: none; stroke: var(--brass); stroke-width: 1; opacity: .6; }
.stamp text.curve { fill: var(--cream-on-green); font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: 1.5px; }
.stamp text.core { fill: var(--brass); font-family: var(--font-script); font-size: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Marquee ---- */
.marquee {
  background: var(--daun-gelap); color: var(--cream-on-green);
  overflow: hidden; white-space: nowrap; padding: .7rem 0;
  border-block: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
}
.marquee-track { display: inline-flex; gap: 2.2rem; align-items: center; animation: marquee 26s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-script); font-size: 1.4rem; color: var(--brass-light); }
.marquee-track .dot { color: var(--cream-on-green); font-family: var(--font-body); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- "Kenapa" list (editorial, bukan card grid) ---- */
.whys { display: grid; gap: 0; }
.why {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px dashed color-mix(in srgb, var(--daun) 35%, transparent);
}
.why:last-child { border-bottom: 1px dashed color-mix(in srgb, var(--daun) 35%, transparent); }
.why .ic { width: 38px; height: 38px; color: var(--brass-teks); flex: none; }
.why h3 { margin: 0 0 .3rem; }
.why p { margin: 0; color: color-mix(in srgb, var(--teks) 85%, transparent); }

/* ---- Menu ---- */
.menu-grid { display: grid; gap: 1.6rem; }
.menu-card {
  background: #fff; border-radius: 1.4rem; overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--daun) 10%, transparent);
  display: flex; flex-direction: column;
}
.menu-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--krem-gelap); }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.menu-card:hover .menu-card-media img { transform: scale(1.04); }
.menu-card-tag {
  position: absolute; top: .8rem; left: .8rem; background: var(--daun); color: var(--cream-on-green);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px;
}
.menu-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.menu-card-body h3 { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 600; }
.menu-card-body .unconfirmed { font-size: .85rem; color: var(--brass-teks); font-style: italic; font-family: var(--font-body); font-weight: 500; }
.menu-card-body p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--teks); opacity: 0.88; flex: 1; }
.menu-card-body .isian { flex: 0 0 auto; font-size: .95rem; line-height: 1.6; font-weight: 500; color: var(--teks); opacity: 0.82; background: var(--krem); border-radius: .6rem; padding: .5rem .8rem; }
.menu-card-body .isian strong { color: var(--brass-teks); font-weight: 600; }
.menu-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.price { font-family: var(--font-display); font-size: 1.65rem; color: var(--daun); font-weight: 600; }
.price.price--ask { font-size: 1.08rem; color: var(--brass-teks); font-family: var(--font-body); font-weight: 600; }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }

/* ---- Langkah Cara Pesan (nomor = urutan NYATA) ---- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--krem-gelap); border-radius: 1.2rem; padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--brass);
}
.step .badge {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--daun); color: var(--cream-on-green);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.step h3 { margin: 0 0 .2rem; }
.step p { margin: 0; font-size: .96rem; }
.step .ph { font-size: .85rem; }

/* ---- Kontak ---- */
.kontak-grid { display: grid; gap: 1.6rem; }
.kontak-card {
  background: #fff; border-radius: 1.4rem; padding: 1.6rem; box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--daun) 10%, transparent);
}
.kontak-card h3 { margin: 0 0 .8rem; }
.kontak-row { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; border-top: 1px dashed color-mix(in srgb, var(--daun) 25%, transparent); }
.kontak-row:first-of-type { border-top: 0; }
.kontak-row svg { width: 1.3em; height: 1.3em; color: var(--daun); flex: none; margin-top: .2rem; }
.kontak-row b { display: block; font-weight: 600; }
.kontak-row span { color: color-mix(in srgb, var(--teks) 80%, transparent); font-size: .95rem; }
.kontak-cta { background: var(--daun); color: var(--cream-on-green); border-radius: 1.4rem; padding: 2rem 1.6rem; text-align: center; }
.kontak-cta h3 { color: var(--cream-on-green); }
.kontak-cta .btn { margin-top: .8rem; }

/* ---- About ---- */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-photo { border-radius: var(--radius-arch); overflow: hidden; box-shadow: var(--shadow-deep); border: 6px solid #fff; aspect-ratio: 4/5; background: var(--krem-gelap); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.value-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.value-list li { display: flex; gap: .7rem; align-items: flex-start; }
.value-list svg { width: 1.4em; height: 1.4em; color: var(--brass-teks); flex: none; margin-top: .1rem; }
.ph {
  color: var(--brass-teks); font-style: italic; background: color-mix(in srgb, var(--brass) 14%, transparent);
  padding: .05rem .5rem; border-radius: .4rem; font-size: .9em;
}

/* ---- Footer ---- */
.site-footer { background: var(--daun-gelap); color: var(--cream-on-green); position: relative; }
.weave {
  height: 22px; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='22' viewBox='0 0 40 22'%3E%3Cg stroke='%23B8935A' stroke-width='5' fill='none' stroke-linecap='round'%3E%3Cpath d='M0 6 H40'/%3E%3Cpath d='M0 16 H40'/%3E%3Cpath d='M10 0 V22'/%3E%3Cpath d='M30 0 V22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 22px;
}
.site-footer .wrap { display: grid; gap: 1.6rem; padding: 2.6rem 0 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; background:#fff; }
.footer-brand b { font-family: var(--font-display); color: var(--cream-on-green); font-size: 1.3rem; }
.footer-brand small { display:block; font-family: var(--font-script); color: var(--brass-light); font-size: 1.1rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-col h4 { color: var(--brass-light); font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.footer-col a { display: block; color: var(--cream-on-green); text-decoration: none; padding: .25rem 0; opacity: .9; }
.footer-col a:hover { opacity: 1; color: var(--brass); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0 2rem; font-size: .85rem; opacity: .8; }

/* ---- Floating WA + sticky mobile bar ---- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--daun);
  display: none; place-items: center; box-shadow: var(--shadow-deep);
  color: var(--cream-on-green); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
  background: color-mix(in srgb, var(--daun) 96%, #000);
  padding: .7rem 1.2rem calc(.7rem + env(safe-area-inset-bottom));
  display: flex; gap: .6rem; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.6);
}
.sticky-cta .btn { flex: 1; justify-content: center; }
.sticky-cta .btn-ghost-light { flex: 0 0 auto; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---- Leaf divider (organic, bukan garis lurus) ---- */
.leaf-divider { display: block; width: 100%; height: 34px; color: var(--brass); }

/* =========================================================================
   Responsive — mobile-first; perlebar di layar lebih besar
   ========================================================================= */
@media (min-width: 720px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .sticky-cta { display: none; }
  .wa-float { display: grid; }
  body { padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .whys { grid-template-columns: 1fr 1fr; column-gap: 2.4rem; }
  .why:nth-child(2) { border-top: 1px dashed color-mix(in srgb, var(--daun) 35%, transparent); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .kontak-grid { grid-template-columns: 1.1fr .9fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .site-footer .wrap { grid-template-columns: 1.4fr 2fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp, .marquee-track, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
