/* ===== Cafe — style "Roast Journal" (Editorial Scrollytelling Premium archetype) ===== */

:root {
  --paper: #f7f3ee;
  --paper-alt: #efe6da;
  --surface: #ffffff;
  --ink: #171310;
  --ink-muted: #6b5f52;
  --hairline: #ddd0bd;
  --rust: #a4502e;
  --rust-dark: #7c3a20;
  --dark: #171310;
  --dark-alt: #24201b;
  --danger: #b3261e;
  --success: #2f6b3f;
  --radius: 4px;
  --shadow: 0 20px 50px rgba(23, 19, 16, 0.10);
  --ease: 260ms cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --paper: #12100e;
  --paper-alt: #1b1713;
  --surface: #1f1a16;
  --ink: #f2ece2;
  --ink-muted: #a99884;
  --hairline: #362d24;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}

h1, h2, h3, .brand, .quote-text { font-family: "Fraunces", "Georgia", serif; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.eyebrow {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rust);
  margin-bottom: 14px;
}

/* ===== Contextual link-CTA (bukan tombol besar berulang) ===== */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--rust);
  padding-bottom: 2px;
  transition: gap var(--ease), color var(--ease);
}
.link-cta:hover { gap: 14px; color: var(--rust); }
.link-cta i { font-size: 0.8rem; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-solid:hover { background: var(--rust); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

.icon-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--ease);
}
.icon-btn:hover { background: var(--paper-alt); }

/* ===== Navbar — minimal, tanpa marquee/mega-icon ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 238, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: transform var(--ease), background var(--ease);
}
[data-theme="dark"] .navbar { background: rgba(18, 16, 14, 0.86); }
.navbar.nav-hidden { transform: translateY(-100%); }
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; }
.brand span { color: var(--rust); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--rust); }
.navbar-actions { display: flex; align-items: center; gap: 4px; }
.hamburger { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 240px;
    background: var(--surface); flex-direction: column; padding: 90px 30px; gap: 26px;
    transform: translateX(100%); transition: transform var(--ease); box-shadow: var(--shadow); z-index: 39;
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: inline-flex; }
}

/* ===== Hero — whitespace-heavy, tipografi besar, TANPA foto full-bleed gelap ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-text p { color: var(--ink-muted); font-size: 1.05rem; max-width: 440px; margin-top: 22px; }
.hero-scrollcue {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.hero-scrollcue i { animation: bob 1.6s ease-in-out infinite; color: var(--rust); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero-visual img { border-radius: var(--radius); }

.stat-strip {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 70px;
  display: flex; gap: 50px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline); padding-top: 34px;
}
.stat-strip .stat { display: flex; flex-direction: column; }
.stat-num { font-family: "Fraunces", serif; font-size: 1.8rem; }
.stat-label { font-size: 0.76rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-visual { order: -1; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

/* ===== Narrative sections (image + text alternating, TANPA card/border/grid katalog) ===== */
.narrative {
  max-width: 1100px; margin: 0 auto; padding: 90px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.narrative.reverse .narrative-media { order: 2; }
.narrative-media img { border-radius: var(--radius); }
.narrative-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; line-height: 1.2; }
.narrative-body p { color: var(--ink-muted); margin-top: 18px; line-height: 1.75; }
.narrative-body .link-cta { margin-top: 24px; }
@media (max-width: 800px) {
  .narrative { grid-template-columns: 1fr; gap: 30px; padding: 60px 24px; }
  .narrative.reverse .narrative-media { order: 0; }
}

/* Roast slider tertanam dalam narrative (fitur khas — bukan panel gradient advisor) */
.roast-slider { margin-top: 30px; }
.roast-slider input[type="range"] {
  width: 100%; appearance: none; height: 4px; background: var(--hairline); border-radius: 2px; outline: none;
}
.roast-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--rust);
  cursor: pointer; box-shadow: var(--shadow);
}
.roast-slider input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--rust); border: none; cursor: pointer;
}
.roast-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.roast-result { margin-top: 22px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.roast-result strong { font-family: "Fraunces", serif; font-size: 1.05rem; }
.roast-result p { margin-top: 8px; }

/* ===== Racikan Signature — blok besar bergantian, bukan grid kartu ===== */
.signature-section { padding: 40px 0 20px; }
.signature-block {
  max-width: 1100px; margin: 0 auto; padding: 70px 24px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center;
  border-bottom: 1px solid var(--hairline);
}
.signature-block.reverse .sig-media { order: 2; }
.sig-media img { border-radius: var(--radius); }
.sig-index { font-family: "Fraunces", serif; font-size: 0.85rem; color: var(--rust); margin-bottom: 10px; }
.sig-name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sig-note { color: var(--ink-muted); margin-top: 14px; line-height: 1.7; }
.sig-price { font-family: "Fraunces", serif; font-size: 1.2rem; margin-top: 18px; }
.sig-order { margin-top: 16px; }
@media (max-width: 800px) {
  .signature-block { grid-template-columns: 1fr; gap: 26px; padding: 50px 24px; }
  .signature-block.reverse .sig-media { order: 0; }
}

/* ===== Galeri — filmstrip horizontal scroll (bukan grid statis) ===== */
.filmstrip-wrap { padding: 90px 0; }
.filmstrip-head { max-width: 1100px; margin: 0 auto; padding: 0 24px 34px; }
.filmstrip { display: flex; gap: 18px; overflow-x: auto; padding: 0 24px 10px; scroll-snap-type: x mandatory; }
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }
.film-item {
  flex: 0 0 240px; scroll-snap-align: start; cursor: pointer; position: relative;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
}
.film-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.film-item:hover img { transform: scale(1.05); }
.film-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px;
  background: linear-gradient(to top, rgba(23,19,16,0.82), transparent); color: #f2ece2; font-size: 0.8rem;
}

/* ===== Menu lengkap — list minimal, TANPA search/chip/skeleton/cart ===== */
.menu-list-section { max-width: 780px; margin: 0 auto; padding: 90px 24px; }
.menu-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--hairline); margin-bottom: 10px; }
.menu-tab {
  padding: 12px 4px; margin-right: 26px; background: none; border: none; cursor: pointer;
  font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--ink-muted);
  border-bottom: 2px solid transparent; text-transform: uppercase; letter-spacing: 0.03em;
}
.menu-tab.active { color: var(--ink); border-color: var(--rust); }
.menu-row {
  display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
.menu-row-name { font-weight: 600; }
.menu-row-note { color: var(--ink-muted); font-size: 0.82rem; margin-top: 4px; }
.menu-row-price { font-family: "Fraunces", serif; white-space: nowrap; }

/* ===== Testimoni — 1 kutipan besar berputar (bukan grid kartu) ===== */
.quote-section { background: var(--dark); color: #f2ece2; max-width: none; padding: 100px 24px; text-align: center; }
.quote-track { max-width: 760px; margin: 0 auto; position: relative; min-height: 180px; }
.quote-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; pointer-events: none;
}
.quote-slide.active { opacity: 1; transform: translate(0,0); pointer-events: auto; }
.quote-text { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; font-style: italic; }
.quote-name { margin-top: 24px; font-weight: 600; font-size: 0.9rem; }
.quote-role { font-size: 0.78rem; color: #a99884; }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.quote-dot { width: 8px; height: 8px; border-radius: 50%; background: #4b4136; border: none; cursor: pointer; }
.quote-dot.active { background: var(--rust); }

/* ===== FAQ — accordion minimal ===== */
.faq-section { max-width: 780px; margin: 0 auto; padding: 90px 24px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: "Fraunces", serif; font-size: 1.02rem; color: var(--ink);
}
.faq-question i { color: var(--rust); transition: transform var(--ease); font-size: 0.9rem; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.faq-answer p { padding: 0 0 22px; margin: 0; color: var(--ink-muted); line-height: 1.7; }

/* ===== Kontak/Reservasi — minimal, satu kolom ===== */
.contact-section { max-width: 620px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.contact-section p.lead { color: var(--ink-muted); margin-top: 16px; }
.contact-links { display: flex; justify-content: center; gap: 30px; margin: 30px 0 44px; flex-wrap: wrap; }
.contact-links a { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.contact-links i { color: var(--rust); }
.reserve-form { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.reserve-form label { font-size: 0.78rem; color: var(--ink-muted); margin-top: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.reserve-form input, .reserve-form textarea {
  padding: 12px 4px; border: none; border-bottom: 1.5px solid var(--hairline); background: transparent;
  color: var(--ink); font-family: inherit; font-size: 0.95rem; resize: vertical; transition: border-color var(--ease);
}
.reserve-form input:focus, .reserve-form textarea:focus { outline: none; border-color: var(--rust); }
.reserve-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reserve-form button { margin-top: 26px; }
.reserve-note { font-size: 0.74rem; color: var(--ink-muted); text-align: center; margin-top: 14px; }
@media (max-width: 480px) { .reserve-form .form-row { grid-template-columns: 1fr; } }

/* ===== Footer — slim, satu baris ===== */
.footer { border-top: 1px solid var(--hairline); padding: 30px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--ink-muted); }
.footer-links a:hover { color: var(--rust); }
.footer-copy { font-size: 0.76rem; color: var(--ink-muted); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--ink-muted); font-size: 0.95rem; }
.footer-social a:hover { color: var(--rust); }

/* ===== Floating WA + back to top (subtle, minimal) ===== */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 30;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow); transition: transform var(--ease), background var(--ease);
}
.wa-float:hover { transform: scale(1.08); background: var(--rust); }
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline);
  cursor: pointer; box-shadow: var(--shadow); font-size: 0.95rem; transition: transform var(--ease);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ===== Overlay + modal (newsletter/jurnal — bukan promo diskon) ===== */
.overlay-backdrop { position: fixed; inset: 0; background: rgba(23,19,16,0.55); z-index: 49; opacity: 0; transition: opacity var(--ease); }
.overlay-backdrop.show { opacity: 1; }
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 60;
  background: var(--surface); color: var(--ink); width: min(440px, 90vw); max-height: 85vh; overflow: auto;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 32px 32px;
  transform: translate(-50%, -50%) scale(0.94); opacity: 0; pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 1rem; }
.journal-modal h3 { font-size: 1.4rem; margin-bottom: 10px; }
.journal-modal p { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 20px; }
.journal-modal .subscribe-row { display: flex; gap: 10px; }
.journal-modal input { flex: 1; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: inherit; }
.journal-note { font-size: 0.7rem; color: var(--ink-muted); margin-top: 14px !important; }

.lightbox-modal { width: min(680px, 92vw); padding: 20px; text-align: center; background: var(--dark); color: #f2ece2; }
.lightbox-modal img { width: 100%; border-radius: var(--radius); max-height: 58vh; object-fit: cover; }
.lightbox-modal p { color: #a99884; font-size: 0.85rem; margin-top: 10px; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius);
  border-left: 3px solid var(--rust); font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); animation: toast-in 220ms ease; max-width: 300px;
}
.toast.leaving { animation: toast-out 220ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px);} to { opacity: 1; transform: translateX(0);} }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px);} }

/* ===== Section title shared ===== */
.section-head { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* blur-up image skeleton (pengganti skeleton-card retail) */
img.lazy-blur { filter: blur(14px); transition: filter 500ms ease; }
img.lazy-blur.loaded { filter: blur(0); }

[hidden] { display: none !important; }
