/**
 * SoWan Kedai Kopi — Main Stylesheet
 * Vanilla CSS3, tanpa framework/bundler.
 * Identitas: Krem, Cokelat Tua, Hijau Daun, Oranye Kamboja.
 */

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root,
[data-theme="light"] {
  /* TAMPILAN 1: LIGHT MODE (Fresh Daylight / Segar & Cerah ala Ini Kopi Ulon) */
  --bg: #FAF7F2;
  --bg-intro: linear-gradient(180deg, #FDFBF7 0%, #FAF7F2 50%, #F5EFE6 100%);
  --bg-section: #FAF7F2;
  --cream: #F6E8D6;
  --surface: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: rgba(58, 35, 21, 0.08);
  --card-shadow: 0 10px 28px -6px rgba(42, 24, 16, 0.05), 0 2px 8px rgba(42, 24, 16, 0.03);
  --card-hover-shadow: 0 16px 36px -8px rgba(42, 24, 16, 0.1), 0 4px 12px rgba(42, 24, 16, 0.04);
  --ink: #2A1810;
  --text-heading: #2A1810;
  --text-body: #4A3528;
  --coffee: #2A1810;
  --muted: #5C4535;
  --leaf: #2E3B25;
  --bloom: #E0842A;
  --bloom-soft: #F0B060;
  --line: rgba(58, 35, 21, 0.1);
  --line-light: rgba(246, 232, 214, 0.22);
  --photo-border: 6px solid #FFFFFF;
  --photo-shadow: 0 18px 40px -10px rgba(42, 24, 16, 0.14), 0 4px 12px rgba(42, 24, 16, 0.06);
  --photo-filter: brightness(1.03) saturate(1.05);

  --serif: "Instrument Serif", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  /* TAMPILAN 2: DARK MODE (Warm Night Lounge / Malam Teduh & Cozy) */
  --bg: #16110D;
  --bg-intro: #1E1712;
  --bg-section: #1E1712;
  --cream: #F6E8D6;
  --surface: rgba(255, 248, 240, 0.04);
  --card-bg: rgba(255, 248, 240, 0.04);
  --card-border: rgba(246, 232, 214, 0.12);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(240, 176, 96, 0.12);
  --ink: #F6E8D6;
  --text-heading: #F6E8D6;
  --text-body: rgba(246, 232, 214, 0.86);
  --coffee: #F6E8D6;
  --muted: rgba(246, 232, 214, 0.65);
  --leaf: #1D2619;
  --bloom: #F0B060;
  --bloom-soft: #F0B060;
  --line: rgba(246, 232, 214, 0.1);
  --line-light: rgba(246, 232, 214, 0.16);
  --photo-border: 2px solid rgba(240, 176, 96, 0.25);
  --photo-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(224, 132, 42, 0.08);
  --photo-filter: brightness(0.98) saturate(1.06);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 400 17px/1.65 var(--sans);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bloom);
  outline-offset: 3px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h2 {
  font: 400 clamp(36px, 5.5vw, 62px)/1.08 var(--serif);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h2 em {
  font-style: italic;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: inherit;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn.f {
  background: var(--cream);
  color: #24160C;
  border-color: var(--cream);
}

.btn.f:hover {
  opacity: 0.92;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  line-height: 1.2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-sm:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  color: var(--cream);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.solid {
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #2A1810;
  border-bottom: 1px solid rgba(58, 35, 21, 0.08);
  box-shadow: 0 4px 20px rgba(42, 24, 16, 0.06);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Header brand logo */
.lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lg:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.lg-icon {
  height: 40px;
  width: auto;
  aspect-ratio: 60 / 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.lg-icon img,
.lg > img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

header:not(.solid):not(.menu-open) .lg-icon img,
header:not(.solid):not(.menu-open) .lg > img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.48));
}

.lg-icon .logo-brown,
.lg > .logo-brown {
  display: none;
}

header.solid .lg-icon .logo-cream,
header.solid .lg > .logo-cream {
  display: none !important;
}

header.solid .lg-icon .logo-brown,
header.solid .lg > .logo-brown {
  display: block !important;
}

header.solid .lg,
header.solid .lg-title,
header.solid nav a {
  color: #2A1810;
}

header.solid nav a:not(.btn):hover {
  color: #E0842A;
  opacity: 1;
}

header.solid nav .btn {
  background: #2E3B25;
  color: #FAF7F2;
  border: 1px solid #2E3B25;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 59, 37, 0.18);
}

header.solid nav .btn:hover {
  background: #3B4D30;
  color: #FFFFFF;
}

.lg-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.lg-title {
  font: 400 24px/1 var(--serif);
  letter-spacing: 0.01em;
}

.lg-title i {
  font-style: italic;
  color: var(--bloom);
}

.lg-sub {
  font: 500 8.5px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bloom);
  margin-top: 3px;
  opacity: 0.95;
}

/* ==========================================================================
   NAVIGATION BAR & NAV-LINKS
   ========================================================================== */
nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
  color: inherit;
}

.nav-links a:hover {
  opacity: 0.75;
}

header.solid .nav-links a {
  color: #2A1810;
}

header.solid .nav-links a:hover {
  color: #E0842A;
  opacity: 1;
}

/* Header text readability when transparent on top of hero */
header:not(.solid) .lg-title {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

header:not(.solid) .nav-links a {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] header.solid .nav-links a {
  color: #F6E8D6;
}

[data-theme="dark"] header.solid .nav-links a:hover {
  color: #F0B060;
}

/* ==========================================================================
   THEME TOGGLE SWITCH (☀️ / 🌙)
   ========================================================================== */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle[aria-busy="true"] {
  cursor: default;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(240, 176, 96, 0.6);
  box-shadow: 0 0 16px rgba(224, 132, 42, 0.35);
}

.theme-toggle:active {
  transform: scale(0.94);
}

/* Header solid mode adjustments for theme-toggle */
header.solid .theme-toggle {
  background: rgba(42, 24, 16, 0.05);
  border-color: rgba(58, 35, 21, 0.14);
  color: #2A1810;
}

header.solid .theme-toggle:hover {
  background: rgba(224, 132, 42, 0.12);
  border-color: #E0842A;
  color: #E0842A;
}

[data-theme="dark"] header.solid .theme-toggle {
  background: rgba(255, 248, 240, 0.08);
  border-color: rgba(246, 232, 214, 0.18);
  color: #F6E8D6;
}

[data-theme="dark"] header.solid .theme-toggle:hover {
  background: rgba(240, 176, 96, 0.18);
  border-color: #F0B060;
  color: #F0B060;
  box-shadow: 0 0 16px rgba(240, 176, 96, 0.25);
}

/* Icon rotation and fade transition (Scoped strictly to #theme-toggle) */
#theme-toggle .theme-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode state: Sun visible, Moon hidden */
:root:not([data-theme="dark"]) #theme-toggle .icon-sun,
[data-theme="light"] #theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root:not([data-theme="dark"]) #theme-toggle .icon-moon,
[data-theme="light"] #theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-135deg) scale(0.45);
  pointer-events: none;
}

/* Dark mode state: Moon visible, Sun hidden */
[data-theme="dark"] #theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(135deg) scale(0.45);
  pointer-events: none;
}

[data-theme="dark"] #theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Hamburger Menu Button (Mobile) */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

header.solid .menu-toggle {
  background: rgba(42, 24, 16, 0.05);
  border-color: rgba(58, 35, 21, 0.14);
  color: #2A1810;
}

[data-theme="dark"] header.solid .menu-toggle {
  background: rgba(255, 248, 240, 0.08);
  border-color: rgba(246, 232, 214, 0.18);
  color: #F6E8D6;
}

header.menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
header.menu-open .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .lg-icon,
  .lg-icon img,
  .lg > img {
    height: 32px;
    width: auto;
  }

  nav {
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  nav .btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #FAF7F2;
    color: #2A1810;
    border: 1px solid rgba(58, 35, 21, 0.1);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(42, 24, 16, 0.18);
    z-index: 60;
  }

  header.menu-open .nav-links {
    display: flex;
    animation: heroFade 0.22s ease both;
  }

  header .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #2A1810;
    text-decoration: none;
  }

  header .nav-links a:hover {
    background: rgba(224, 132, 42, 0.12);
    color: #E0842A;
    opacity: 1;
  }

  header.menu-open {
    background: rgba(253, 251, 247, 0.98);
    color: #2A1810;
    border-bottom: 1px solid rgba(58, 35, 21, 0.08);
  }
  header.menu-open .lg-icon .logo-cream,
  header.menu-open .lg > .logo-cream { display: none !important; }
  header.menu-open .lg-icon .logo-brown,
  header.menu-open .lg > .logo-brown { display: block !important; }
  header.menu-open .lg,
  header.menu-open .lg-title { color: #2A1810; }
  header.menu-open nav .btn {
    background: #2E3B25;
    color: #FAF7F2;
    border-color: #2E3B25;
  }

  /* Dark mode on mobile open */
  [data-theme="dark"] header.menu-open {
    background: rgba(22, 17, 13, 0.98);
    color: #F6E8D6;
    border-bottom: 1px solid rgba(246, 232, 214, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  }
  [data-theme="dark"] header.menu-open .lg-icon .logo-cream,
  [data-theme="dark"] header.menu-open .lg > .logo-cream { display: block !important; }
  [data-theme="dark"] header.menu-open .lg-icon .logo-brown,
  [data-theme="dark"] header.menu-open .lg > .logo-brown { display: none !important; }
  [data-theme="dark"] header.menu-open .lg,
  [data-theme="dark"] header.menu-open .lg-title { color: #F6E8D6; }
  [data-theme="dark"] header.menu-open nav .btn {
    background: #242E1F;
    color: #FAF7F2;
    border-color: rgba(240, 176, 96, 0.35);
  }
  [data-theme="dark"] .nav-links {
    background: #241812;
    color: #F6E8D6;
    border: 1px solid rgba(246, 232, 214, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(224, 132, 42, 0.08);
  }
  [data-theme="dark"] header .nav-links a {
    color: #F6E8D6;
  }
  [data-theme="dark"] header .nav-links a:hover {
    background: rgba(240, 176, 96, 0.14);
    color: #F0B060;
  }
}

@media (max-width: 400px) {
  header .wrap {
    padding: 0 12px;
  }
  nav {
    gap: 6px;
  }
  .lg {
    gap: 8px;
  }
  .lg-icon,
  .lg-icon img,
  .lg > img {
    height: 32px;
    width: auto;
  }
  .lg-title {
    font-size: 20px;
  }
  .lg-sub {
    font-size: 7.5px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  nav .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   1. HERO SECTION (100svh) — DUAL-LAYER SIANG & MALAM CROSSFADE (ANTI-KEDIP)
   - Durasi animasi dikontrol lewat --hero-fade-dur (default: 1.8s)
   - Easing transisi lewat --hero-fade-ease (cubic-bezier(.4, 0, .2, 1))
   ========================================================================== */
.hero {
  --hero-fade-dur: 0.55s;
  --hero-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background-color: #18100A;
  overflow: hidden;
}

/* Dua layer gambar bertumpuk (Siang & Malam):
   - Layer yang KELUAR berada di bawah (z-index: 0) dan menahan opacity: 1
     sampai layer yang masuk selesai fade-in (menggunakan delay pada opacity
     sebesar var(--hero-fade-dur)), sambil tetap zoom-out halus (scale 1 -> 1.06).
   - Layer yang MASUK berada di atas (z-index: 1) dan langsung fade-in (opacity 0 -> 1)
     sambil zoom-in mengecil (scale 1.06 -> 1) tanpa delay.
   Dengan teknik ini, total opasitas gambar selalu 100% sehingga tidak ada kedip gelap! */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  opacity: 0;
  transform: scale(1.06);
  contain: paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-bg--malam {
  object-position: center 35%;
}

/* Mode Siang Aktif:
   - Siang di atas (z-index: 1), fade-in langsung (0s delay) & scale(1.06 -> 1)
   - Malam di bawah (z-index: 0), tahan opacity 1 selama --hero-fade-dur baru 0, sambil scale(1 -> 1.06) */
.hero[data-mode="siang"] .hero-bg--siang,
.hero:not([data-mode="malam"]) .hero-bg--siang {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--hero-fade-dur) var(--hero-fade-ease) 0s,
    transform var(--hero-fade-dur) var(--hero-fade-ease) 0s;
}

.hero[data-mode="siang"] .hero-bg--malam,
.hero:not([data-mode="malam"]) .hero-bg--malam {
  z-index: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.01s linear var(--hero-fade-dur),
    transform var(--hero-fade-dur) var(--hero-fade-ease) 0s;
}

/* Mode Malam Aktif:
   - Malam di atas (z-index: 1), fade-in langsung (0s delay) & scale(1.06 -> 1)
   - Siang di bawah (z-index: 0), tahan opacity 1 selama --hero-fade-dur baru 0, sambil scale(1 -> 1.06) */
.hero[data-mode="malam"] .hero-bg--malam {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--hero-fade-dur) var(--hero-fade-ease) 0s,
    transform var(--hero-fade-dur) var(--hero-fade-ease) 0s;
}

.hero[data-mode="malam"] .hero-bg--siang {
  z-index: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.01s linear var(--hero-fade-dur),
    transform var(--hero-fade-dur) var(--hero-fade-ease) 0s;
}

/* Saat pertama kali dimuat, nonaktifkan transisi & delay agar langsung tampil tanpa animasi */
.hero.hero--no-transition .hero-bg,
.hero.hero--no-transition .hero-overlay::before,
.hero.hero--no-transition .hero-overlay::after,
.hero.hero--no-transition .in {
  transition: none !important;
  transition-delay: 0s !important;
}

/* Overlay Gradasi Dua Nuansa (Siang: Hangat Keemasan, Malam: Biru-Cokelat Gelap)
   Menggunakan pseudo-element ::before & ::after dengan transisi opacity murni (GPU-friendly) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  will-change: opacity;
  transition: opacity var(--hero-fade-dur) var(--hero-fade-ease);
}

/* Nuansa Siang: Hangat Keemasan */
.hero-overlay::before {
  background: linear-gradient(
    180deg,
    rgba(38, 24, 12, 0.44) 0%,
    rgba(180, 112, 42, 0.16) 40%,
    rgba(48, 30, 14, 0.32) 70%,
    rgba(28, 18, 10, 0.64) 100%
  );
  opacity: 1;
}

/* Nuansa Malam: Biru-Cokelat Gelap */
.hero-overlay::after {
  background: linear-gradient(
    180deg,
    rgba(12, 16, 28, 0.66) 0%,
    rgba(22, 18, 24, 0.38) 42%,
    rgba(26, 18, 14, 0.56) 72%,
    rgba(16, 11, 8, 0.84) 100%
  );
  opacity: 0;
}

.hero[data-mode="malam"] .hero-overlay::before {
  opacity: 0;
}

.hero[data-mode="malam"] .hero-overlay::after {
  opacity: 1;
}

/* Konten Tengah Hero (Logo + CTA)
   PENTING: Jangan beri transform/scale pada .hero .in agar SVG logo tidak bergetar saat ganti tema */
.hero .in {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero .cta {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.is-switching .cta {
  opacity: 0.78;
}

.hero .logo {
  display: block;
  width: min(460px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.6));
}

@media (max-width: 768px) {
  .hero-bg,
  .hero-bg--malam {
    object-fit: cover;
    object-position: 52% 35%;
  }

  .hero .logo {
    width: min(340px, 76vw);
  }
}

/* ==========================================================================
   ANIMASI LOGO HERO "TUMBUH" & KELOPAK POHON KAMBOJA
   ========================================================================== */
.hero-logo-svg {
  overflow: visible;
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-svg.logo-is-animating {
  will-change: transform, opacity;
}

.hero-logo-svg.logo-fading-out {
  opacity: 0 !important;
}

/* State awal / saat reset (.hero-logo-svg:not(.logo-play)):
   Semua bagian tersembunyi (stroke-dashoffset penuh, bunga scale 0, wordmark opacity 0) */
.kamboja-stroke-arch,
.kamboja-stroke-trunk {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.kamboja-guide-stroke {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 1;
}

.hero-logo-flower {
  transform-box: view-box;
  opacity: 0;
  transform: scale(0) rotate(-18deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-logo-flower--1 {
  transform-origin: 306px 114px;
}

.hero-logo-flower--2 {
  transform-origin: 351px 79px;
}

.hero-logo-flower--3 {
  transform-origin: 404px 116px;
}

.hero-logo-wordmark {
  opacity: 0;
  transform: translateY(8px);
}

.hero-logo-full-seal {
  opacity: 0;
}

.hero-logo-sparkle {
  opacity: 0;
  transform-origin: 0px 0px;
  pointer-events: none;
}

/* Saat .logo-play aktif (baik saat load pertama maupun saat replayHeroLogo dipanggil):
   1. Ranting & kubah tergambar (1.4s)
   2. 3 bunga kamboja mekar satu per satu (scale 0->1, selisih 110ms)
   3. Wordmark fade-in halus, diikuti pengunci logo-cream.png penuh setelah mask selesai
   4. Satu bunga sesekali berkilau tipis */
.hero-logo-svg.logo-play .kamboja-stroke-arch,
.hero-logo-svg.logo-play .kamboja-stroke-trunk {
  animation: kambojaStrokeDraw 1.4s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}

.hero-logo-svg.logo-play .kamboja-guide-stroke {
  animation:
    kambojaStrokeDraw 1.4s cubic-bezier(0.35, 0, 0.2, 1) forwards,
    kambojaGuideFade 0.6s 1.35s ease forwards;
}

.hero-logo-svg.logo-play .hero-logo-flower {
  animation: kambojaFlowerBloom 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-logo-svg.logo-play .hero-logo-flower--1 {
  animation-delay: 0.92s;
}

.hero-logo-svg.logo-play .hero-logo-flower--2 {
  animation-delay: 1.03s;
}

.hero-logo-svg.logo-play .hero-logo-flower--3 {
  animation-delay: 1.14s;
}

.hero-logo-svg.logo-play .hero-logo-wordmark {
  animation: kambojaWordmarkIn 0.85s 1.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-logo-svg.logo-play .hero-logo-full-seal {
  animation: kambojaSealIn 0.45s 1.65s ease forwards;
}

.hero-logo-svg.logo-play .hero-logo-sparkle {
  animation: kambojaFlowerSparkle 7.5s 2.6s ease-in-out infinite;
}

@keyframes kambojaStrokeDraw {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes kambojaGuideFade {
  to {
    opacity: 0;
  }
}

@keyframes kambojaFlowerBloom {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-18deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes kambojaWordmarkIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kambojaSealIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes kambojaFlowerSparkle {
  0%, 78%, 100% {
    opacity: 0;
    transform: translate(351px, 79px) scale(0.5) rotate(0deg);
  }
  86% {
    opacity: 0.82;
    transform: translate(351px, 79px) scale(1.08) rotate(22deg);
  }
  92% {
    opacity: 0.35;
    transform: translate(351px, 79px) scale(0.85) rotate(40deg);
  }
}

/* Layer Kelopak Jatuh di Hero (z-index: 2, di belakang .hero .in yang z-index: 3) */
.kamboja-petals-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Layer Kelopak Samar Parallax di Section Berikutnya (#profil) */
.kamboja-petals-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.profile .profile-wrap {
  position: relative;
  z-index: 1;
}

/* Layer Kelopak Mendarat di Footer (#kunjungi) */
footer,
footer#kunjungi {
  position: relative;
  overflow: hidden;
}

.kamboja-petals-footer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

footer > .wrap {
  position: relative;
  z-index: 1;
}

/* Elemen Kelopak Kamboja, Bunga Utuh Jatuh & Titik Cahaya Lampu Tali */
.kamboja-petal,
.kamboja-flower {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0);
}

.kamboja-petal {
  width: 22px;
  height: 22px;
  transition: opacity 0.6s ease;
}

.kamboja-flower {
  width: 52px;
  height: 52px;
  transform-origin: 48% 38%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.kamboja-is-running .kamboja-petal,
.kamboja-is-running .kamboja-flower,
.kamboja-is-running .kamboja-light-dot {
  will-change: transform, opacity;
}

.kamboja-petal-inner,
.kamboja-flower-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  box-shadow: none;
  transition: opacity var(--hero-fade-dur, 0.55s) var(--hero-fade-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.kamboja-petal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transition: opacity var(--hero-fade-dur, 0.55s) var(--hero-fade-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.kamboja-flower-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: none;
  border: 0;
  box-shadow: none;
  transition: opacity var(--hero-fade-dur, 0.55s) var(--hero-fade-ease, cubic-bezier(0.22, 1, 0.36, 1));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Kompensasi margin transparan 3000x3000 Canva & titik putar di pusat massa gambar */
.kamboja-flower-img--1 {
  transform-origin: 47.1% 35.3%;
  transform: scale(1.62);
}

.kamboja-flower-img--2 {
  transform-origin: 49.1% 42.4%;
  transform: scale(1.46);
}

/* Kedalaman bunga jatuh: maksimal 1 bunga besar tajam, lainnya blur 1–2px */
.kamboja-flower--sharp {
  --flower-blur: blur(0px);
}

.kamboja-flower--depth-1 {
  --flower-blur: blur(1.2px);
}

.kamboja-flower--depth-2 {
  --flower-blur: blur(1.8px);
}

/* Tema Siang vs Malam pada Bunga Utuh (bayangan lewat filter: drop-shadow() pada <img>, bukan box-shadow) */
.kamboja-flower .kamboja-flower-img--siang {
  opacity: 1;
  filter: var(--flower-blur, blur(0px)) drop-shadow(0 4px 9px rgba(58, 35, 21, 0.34)) drop-shadow(0 1px 3px rgba(42, 24, 16, 0.22));
}

.kamboja-flower .kamboja-flower-img--malam {
  opacity: 0;
  filter: var(--flower-blur, blur(0px)) brightness(0.85) drop-shadow(0 4px 10px rgba(18, 10, 6, 0.52)) drop-shadow(0 0 9px rgba(240, 176, 96, 0.32));
}

.hero[data-mode="malam"] .kamboja-flower .kamboja-flower-img--siang,
[data-theme="dark"] .kamboja-flower .kamboja-flower-img--siang {
  opacity: 0;
}

.hero[data-mode="malam"] .kamboja-flower .kamboja-flower-img--malam,
[data-theme="dark"] .kamboja-flower .kamboja-flower-img--malam {
  opacity: 1;
}

.hero[data-mode="malam"] .kamboja-flower--day-only .kamboja-flower-inner,
[data-theme="dark"] .kamboja-flower--day-only .kamboja-flower-inner {
  opacity: 0 !important;
}

/* Sinkron Tema Siang <-> Malam pada Kelopak SVG (durasi sama dengan --hero-fade-dur) */
.kamboja-petal .kamboja-svg--siang {
  opacity: 1;
  filter: drop-shadow(0 2px 5px rgba(42, 24, 16, 0.18));
}

.kamboja-petal .kamboja-svg--malam {
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(240, 176, 96, 0.48));
}

.hero[data-mode="malam"] .kamboja-petal .kamboja-svg--siang,
[data-theme="dark"] .kamboja-petal .kamboja-svg--siang {
  opacity: 0;
}

.hero[data-mode="malam"] .kamboja-petal .kamboja-svg--malam,
[data-theme="dark"] .kamboja-petal .kamboja-svg--malam {
  opacity: 1;
}

/* Kelopak tambahan khusus siang memudar halus saat masuk mode malam */
.hero[data-mode="malam"] .kamboja-petal--day-only .kamboja-petal-inner,
[data-theme="dark"] .kamboja-petal--day-only .kamboja-petal-inner {
  opacity: 0 !important;
}

/* Titik cahaya kecil pantulan lampu tali di Mode Malam */
.kamboja-light-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFDF9 0%, var(--bloom-soft) 55%, rgba(240, 176, 96, 0) 100%);
  box-shadow: 0 0 10px 2px rgba(240, 176, 96, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.8);
  transition: opacity var(--hero-fade-dur, 0.55s) var(--hero-fade-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.hero[data-mode="malam"] .kamboja-light-dot {
  opacity: var(--dot-alpha, 0.55);
}

/* Kelopak kecil yang lepas saat tombol "Lihat menu" di-hover */
.kamboja-petal--burst {
  z-index: 2;
  pointer-events: none;
}

/* Kelopak & 1 Bunga Utuh yang "mendarat" pelan lalu diam di Footer */
.kamboja-petal--landed {
  position: absolute;
  pointer-events: none;
  opacity: 0.42;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-theme="dark"] .kamboja-petal--landed {
  opacity: 0.34;
}

.kamboja-flower--footer {
  position: absolute;
  top: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(18px, -38px, 0) rotate(-24deg) scale(0.92, 0.78);
  transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1), transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.kamboja-flower--footer.is-landed {
  opacity: 0.52;
  transform: translate3d(0, 0, 0) rotate(-8deg) scale(1, 0.84);
}

[data-theme="dark"] .kamboja-flower--footer.is-landed {
  opacity: 0.42;
}

.hero h1 {
  font: italic 400 clamp(32px, 5.5vw, 58px)/1.12 var(--serif);
  margin: 18px 0 28px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
  animation: heroFade 1.4s 0.25s ease both;
}

.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
  animation: heroFade 1.4s 0.25s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .logo,
  .hero h1,
  .hero .cta,
  .kamboja-stroke-arch,
  .kamboja-stroke-trunk,
  .kamboja-guide-stroke,
  .hero-logo-flower,
  .hero-logo-wordmark,
  .hero-logo-full-seal,
  .hero-logo-sparkle {
    animation: none !important;
  }
  .kamboja-stroke-arch,
  .kamboja-stroke-trunk {
    stroke-dashoffset: 0 !important;
  }
  .kamboja-guide-stroke,
  .hero-logo-sparkle {
    opacity: 0 !important;
  }
  .hero-logo-flower,
  .hero-logo-wordmark,
  .hero-logo-full-seal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero[data-mode="siang"] .hero-bg--siang,
  .hero:not([data-mode="malam"]) .hero-bg--siang,
  .hero[data-mode="malam"] .hero-bg--malam {
    transform: none !important;
    transition: opacity 0.35s ease 0s !important;
  }
  .hero[data-mode="siang"] .hero-bg--malam,
  .hero:not([data-mode="malam"]) .hero-bg--malam,
  .hero[data-mode="malam"] .hero-bg--siang {
    transform: none !important;
    transition: opacity 0.01s linear 0.35s !important;
  }
  .hero-overlay::before,
  .hero-overlay::after {
    transition: opacity 0.35s ease !important;
  }
  .hero .in,
  .hero.is-switching .in {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  #theme-toggle .theme-icon {
    transform: none !important;
    transition: opacity 0.25s ease !important;
  }
  .kamboja-flower--footer,
  .kamboja-flower--footer.is-landed {
    opacity: 0.45 !important;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1, 0.84) !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   2. PENGANTAR & HORIZONTAL PHOTO GALLERY
   ========================================================================== */
/* ==========================================================================
   2. PENGANTAR & HORIZONTAL PHOTO GALLERY (ALA INI KOPI ULON)
   ========================================================================== */
.section-intro {
  background-color: #FAF7F2;
  padding-top: clamp(72px, 8.5vw, 112px);
  padding-bottom: clamp(68px, 8vw, 100px);
  position: relative;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(58, 35, 21, 0.08);
  margin-bottom: clamp(32px, 4.5vw, 44px);
}

.intro-col-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(126, 59, 10, 0.07);
  border: 1px solid rgba(126, 59, 10, 0.22);
  box-shadow: 0 1px 3px rgba(42, 24, 16, 0.03);
  width: fit-content;
}

.eyebrow-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #8C4105;
  flex-shrink: 0;
}

.note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: #703508; /* Skor Kontras 7.94:1 di pill, 8.93:1 di kanvas #FAF7F2 (WCAG AAA >= 7.0:1) */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.intro h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2A1810; /* Espresso: Skor Kontras 15.89:1 di atas #FAF7F2 (WCAG AAA) */
  margin: 0;
}

.intro h2 em {
  font-style: italic;
  font-weight: 400;
  color: #8C4105; /* Skor Kontras 6.84:1 di atas #FAF7F2 (WCAG AAA Teks Besar >= 4.5:1) */
}

.intro-col-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.intro p,
#intro-p1,
#intro-p2 {
  color: #2A1810; /* Espresso murni: Skor Kontras 15.89:1 di atas #FAF7F2 (WCAG AAA) */
  max-width: 52ch; /* Batas baca ideal editorial typography desktop */
  margin: 0 0 16px;
  font-size: clamp(16px, 1.2vw, 17.5px);
  line-height: 1.75; /* Line-height nyaman editorial */
  text-wrap: pretty;
}

#intro-p2 {
  color: #382417; /* Espresso hangat berbobot: Skor Kontras 13.50:1 (WCAG AAA) */
}

.intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .section-intro {
    padding-top: clamp(56px, 7vw, 76px);
    padding-bottom: clamp(56px, 7vw, 76px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .intro-col-text {
    width: 100%;
  }

  .intro p,
  #intro-p1,
  #intro-p2 {
    max-width: 100%; /* Menyesuaikan container mobile tanpa melebar berlebih */
    margin-bottom: 14px;
  }
}

/* Feature Highlights Grid ala Ini Kopi Ulon */
.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0; /* Rapih dan pas, ruang bawah diatur oleh padding-bottom .section-intro */
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFFFFF;
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(58, 35, 21, 0.08);
  box-shadow: 0 10px 28px -6px rgba(42, 24, 16, 0.05), 0 2px 8px rgba(42, 24, 16, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(42, 24, 16, 0.1), 0 4px 12px rgba(42, 24, 16, 0.04);
  border-color: rgba(224, 132, 42, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2E3B25; /* Warna daun */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(224, 132, 42, 0.16); /* Aksen emas */
  border: 1px solid rgba(46, 59, 37, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(224, 132, 42, 0.24);
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-content h3 {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 700;
  color: #2A1810; /* Espresso: Skor Kontras 16.60:1 di atas #FFFFFF (WCAG AAA) */
  margin: 0 0 6px;
  line-height: 1.35;
}

.feature-content p {
  font-size: 14px;
  color: #432E22; /* Kopi pekat: Skor Kontras 12.30:1 di atas #FFFFFF (WCAG AAA) */
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .intro-features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
  }

  .feature-card {
    padding: 20px 18px;
  }
}

/* Horizontal photo strip (scroll-snap) */
.strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px));
  padding: 16px max(24px, calc((100vw - 1120px) / 2 + 24px)) 40px;
  align-items: stretch;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar {
  height: 6px;
}

.strip::-webkit-scrollbar-track {
  background: transparent;
}

.strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.strip::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.strip figure {
  margin: 0;
  flex: 0 0 min(76vw, 290px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 140px 140px 18px 18px;
  border: 6px solid #FFFFFF;
  box-shadow: 0 18px 40px -10px rgba(42, 24, 16, 0.14), 0 4px 12px rgba(42, 24, 16, 0.06);
  background: #FFFFFF;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.25s ease;
}

.strip figure.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.strip figure:nth-child(1) { transition-delay: 0s; }
.strip figure:nth-child(2) { transition-delay: 0.1s; }
.strip figure:nth-child(3) { transition-delay: 0.2s; }
.strip figure:nth-child(4) { transition-delay: 0.3s; }
.strip figure:nth-child(5) { transition-delay: 0.4s; }
.strip figure:nth-child(6) { transition-delay: 0.5s; }
.strip figure:nth-child(7) { transition-delay: 0.6s; }
.strip figure:nth-child(n+8) { transition-delay: 0.7s; }

/* Motif khas: lengkung atas seragam (aspect-ratio 3/4) dengan bingkai putih tebal ala Ini Kopi Ulon */
.strip img,
.strip figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: 380px;
  object-fit: cover;
  object-position: center 65%;
  border-radius: inherit;
  filter: brightness(1.03) saturate(1.06);
  background: #FFFFFF;
  transform: scale(1);
  transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

.strip figure:hover {
  box-shadow: 0 26px 54px -8px rgba(42, 24, 16, 0.26), 0 10px 22px rgba(42, 24, 16, 0.12);
}

.strip figure:hover img {
  transform: scale(1.05);
  box-shadow: 0 24px 48px -10px rgba(42, 24, 16, 0.22), 0 8px 18px rgba(42, 24, 16, 0.1);
  filter: brightness(1.05) saturate(1.09);
}

/* Visit Photo & Visit Card (Scroll Reveal + Hover Zoom) */
.visit-card,
.visit-photo {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.25s ease;
}

.visit-card.is-visible,
.visit-photo.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.visit-photo {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 40px -10px rgba(42, 24, 16, 0.14), 0 4px 12px rgba(42, 24, 16, 0.06);
}

.visit-photo:hover {
  box-shadow: 0 26px 56px -8px rgba(42, 24, 16, 0.28), 0 10px 24px rgba(42, 24, 16, 0.12);
}

.visit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

.visit-photo:hover img {
  transform: scale(1.05);
  box-shadow: 0 24px 48px -10px rgba(42, 24, 16, 0.24), 0 8px 18px rgba(42, 24, 16, 0.1);
}

/* Subtle Floating Badge Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.photo-badge,
.visit-badge,
.floating-badge,
#floating-jam-status,
.visit-photo .badge-status,
.strip figure .badge-tag {
  animation: float 3s ease-in-out infinite;
  will-change: transform;
}

.strip figcaption {
  font-size: 13.5px;
  font-weight: 600;
  color: #2A1810;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 800px) {
  .strip {
    gap: 16px;
    padding: 12px 20px 32px;
    scroll-padding-left: 20px;
  }

  .strip figure {
    flex: 0 0 min(78vw, 270px);
    border-radius: 120px 120px 14px 14px;
    border-width: 5px;
  }

  .strip img,
  .strip figure img {
    height: 340px;
  }
}

/* ==========================================================================
   3. MENU SECTION (leaf green background, cream text)
   ========================================================================== */
.menu {
  background: var(--leaf);
  color: var(--cream);
}

.menu .hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.menu .hd h2 {
  margin: 0;
}

.cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

@media (max-width: 1024px) {
  .cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 40px;
  }
}

@media (max-width: 600px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.menu-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.menu-col h3 {
  font: 700 32px/1 var(--hand);
  color: var(--bloom-soft);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.menu-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.menu-col li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.menu-col li .item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.menu-col li .item-header {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  max-width: 100%;
}

.menu-col li span,
.menu-col li .item-name {
  font: 400 20px/1.2 var(--serif);
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.menu-col li b,
.menu-col li .item-price {
  font-weight: 500;
  font-family: var(--sans);
  font-size: 15px;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .menu-col li {
    gap: 10px;
    padding: 10px 0;
  }

  .menu-col li span,
  .menu-col li .item-name {
    font-size: 18px;
  }

  .menu-col li .item-header {
    gap: 4px 6px;
  }

  .menu-col li b,
  .menu-col li .item-price {
    font-size: 14.5px;
    margin-left: 6px;
  }
}

/* Menu bottom notes & delivery row */
.menu-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.unit {
  font-size: 14px;
  opacity: 0.82;
  margin: 0;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.delivery-label {
  font: italic 400 18px/1 var(--serif);
  opacity: 0.88;
}

.delivery-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. ULASAN SECTION (OPSIONAL)
   ========================================================================== */
.reviews {
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.reviews h2 {
  margin-bottom: 36px;
}

.review-item {
  max-width: 760px;
  margin: 0 auto 36px;
}

.review-quote {
  font: 700 clamp(28px, 4vw, 42px)/1.3 var(--hand);
  color: var(--bloom);
  margin: 0 0 16px;
  quotes: "“" "”";
}

.review-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}

.review-name {
  font-weight: 600;
  color: var(--ink);
}

.review-stars {
  color: var(--bloom-soft);
  letter-spacing: 2px;
  font-size: 16px;
}

.reviews-btn {
  margin-top: 36px;
}

/* ==========================================================================
   5. KUNJUNGI SECTION
   ========================================================================== */
/* ==========================================================================
   6. FOOTER & INFORMASI KUNJUNGAN
   ========================================================================== */
footer,
footer#kunjungi {
  background: var(--leaf);
  color: var(--cream);
  padding: clamp(52px, 6vw, 64px) 0 32px;
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  transition: background 0.35s ease, color 0.35s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1.2fr 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-brand {
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #F0B060;
  margin-bottom: 12px;
  display: inline-block;
}

/* Kolom 1: Brand & Logo Sertifikasi Halal */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer-col-brand .footer-logo {
  height: clamp(44px, 5.2vw, 52px);
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin: 0;
  display: block;
  opacity: 0.98;
}

.footer-halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(44px, 5.2vw, 52px);
  padding: 4px 10px 4px 8px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-halal-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  border-color: #F0B060;
}

.footer-halal-img {
  height: clamp(34px, 4.2vw, 42px);
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-halal-badge .halal-svg {
  height: clamp(34px, 4.2vw, 40px);
  width: auto;
  color: #670075;
  display: block;
  flex-shrink: 0;
}

.footer-halal-badge .halal-bg-dot {
  fill: #2E3B25;
  transition: fill 0.35s ease;
}

[data-theme="dark"] .footer-halal-badge .halal-bg-dot {
  fill: #140E0A;
}

.halal-badge-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  text-align: left;
}

.halal-label-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #670075; /* BPJPH Purple */
  text-transform: uppercase;
}

.halal-label-sub {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #8C4105; /* Coffee warm tone */
  text-transform: uppercase;
  margin-top: 1px;
}

/* Kolom 2: Lokasi */
.footer-loc-lead {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.82);
  margin: 0 0 10px;
}

.footer-address {
  font-style: normal;
  margin-bottom: 14px;
}

.footer-address p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.95);
  margin: 0;
  word-break: break-word;
}

.footer-link-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #F0B060;
  text-decoration: none;
  border: 1px solid rgba(240, 176, 96, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-link-btn:hover {
  transform: translateY(-1px);
  background: rgba(240, 176, 96, 0.15);
  border-color: #F0B060;
  color: #FFFFFF;
}

/* Kolom 3: Jam & Kontak */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.95);
  line-height: 1.4;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F0B060;
}

.footer-contact-text {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

a.footer-contact-text:hover {
  color: #F0B060;
  text-decoration: underline;
}

/* Kolom 4: Pesan Online */
.footer-delivery-desc {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(250, 247, 242, 0.8);
  margin: 0 0 12px;
}

.footer-col-delivery .delivery-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-col-delivery .delivery-links .btn-sm {
  background: rgba(255, 255, 255, 0.14);
  color: #FAF7F2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-col-delivery .delivery-links .btn-sm:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

/* Baris Bawah */
.footer-bottom-bar {
  margin-top: clamp(36px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-bar .footer-sm {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.72);
  margin: 0;
}

.footer-status-badge {
  font-size: 12px;
  font-weight: 600;
  color: #F0B060;
  background: rgba(240, 176, 96, 0.12);
  border: 1px solid rgba(240, 176, 96, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
}

@media (max-width: 600px) {
  footer,
  footer#kunjungi {
    padding: 44px 0 32px;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-logos {
    gap: 12px;
  }
  .footer-col-brand .footer-logo {
    height: 44px;
  }
  .footer-halal-badge {
    height: 44px;
    padding: 3px 8px 3px 6px;
    gap: 6px;
  }
  .footer-halal-img {
    height: 34px;
  }
  .footer-halal-badge .halal-svg {
    height: 32px;
  }
  .halal-label-title {
    font-size: 10.5px;
  }
  .halal-label-sub {
    font-size: 7.5px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    padding-top: 16px;
  }
}

/* ==========================================================================
   PITA PROMO, STATUS OPERASIONAL, DAN BADGE TAMBAHAN
   ========================================================================== */
.promo-banner {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bloom);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
}

body.has-promo header {
  top: calc(env(safe-area-inset-top, 0px) + 36px);
}

body.has-promo html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 108px);
}

/* Fallback Noscript */
.noscript-bar {
  background: var(--bloom);
  color: #FFFFFF;
  padding: 12px 20px;
  text-align: center;
  font-size: 14.5px;
  position: relative;
  z-index: 100;
  line-height: 1.5;
}

.noscript-bar a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

/* Menu Item State: Habis, Label Baru/Favorit, Catatan */
.menu-col li.is-habis .item-name {
  text-decoration: line-through;
  opacity: 0.55;
}

.menu-col li.is-habis b,
.menu-col li.is-habis .item-price {
  opacity: 0.55;
}

.badge-habis,
.badge-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-tag {
  background: var(--bloom);
  color: #FFFFFF;
  margin-left: 6px;
}

.badge-habis {
  background: rgba(246, 232, 214, 0.22);
  color: var(--cream);
  margin-left: 6px;
  text-decoration: none !important;
  opacity: 1 !important;
}

.item-note {
  display: block;
  font-size: 12px;
  opacity: 0.78;
  font-family: var(--sans);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
}

/* Status Buka / Tutup */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-status.buka {
  background: rgba(46, 125, 50, 0.16);
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.35);
}

.badge-status.tutup {
  background: rgba(198, 40, 40, 0.14);
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, 0.35);
}

@media (prefers-color-scheme: dark) {
  .badge-status.buka {
    background: rgba(129, 199, 132, 0.2);
    color: #A5D6A7;
    border-color: rgba(129, 199, 132, 0.4);
  }
  .badge-status.tutup {
    background: rgba(239, 154, 154, 0.2);
    color: #FFCDD2;
    border-color: rgba(239, 154, 154, 0.4);
  }
}

.review-source {
  font-size: 13px;
  opacity: 0.75;
  font-style: italic;
  margin-left: 6px;
}

/* ==========================================================================
   SMOOTH THEME TRANSITION HELPERS
   ========================================================================== */
body,
section,
.section-intro,
.profile,
.feature-card,
.feature-icon,
.feature-content h3,
.feature-content p,
.visit-card,
header,
header.solid,
.nav-links,
.nav-links a,
.btn,
.btn-sm,
.profile-btn-primary,
.profile-btn-secondary,
.theme-toggle,
.menu-toggle,
.menu-tab,
.menu-search input,
.to-top,
.footer-link-btn,
.footer-halal-badge,
footer,
footer#kunjungi,
.delivery-row,
.delivery-links .btn-sm,
.eyebrow-pill,
.eyebrow-line,
.note,
.profile-eyebrow,
.profile-title,
.profile-p,
.profile-circle-big,
.profile-circle-small,
.intro,
.intro h2,
.intro h2 em,
.intro p,
#intro-p1,
#intro-p2,
.reviews,
.reviews h2,
.review-quote,
.review-name,
.review-meta,
.strip img {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   DARK MODE COMPONENT STYLES ([data-theme="dark"])
   Konsep: "Warm Night Lounge / Malam Teduh & Cozy"
   ========================================================================== */

/* 1. Header Solid on Scroll */
[data-theme="dark"] header.solid {
  background: rgba(22, 17, 13, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #F6E8D6;
  border-bottom: 1px solid rgba(246, 232, 214, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] header.solid .lg-icon .logo-cream,
[data-theme="dark"] header.solid .lg > .logo-cream {
  display: block !important;
}

[data-theme="dark"] header.solid .lg-icon .logo-brown,
[data-theme="dark"] header.solid .lg > .logo-brown {
  display: none !important;
}

[data-theme="dark"] header.solid .lg,
[data-theme="dark"] header.solid .lg-title,
[data-theme="dark"] header.solid nav a:not(.btn) {
  color: #F6E8D6;
}

[data-theme="dark"] header.solid nav a:not(.btn):hover {
  color: #F0B060;
}

[data-theme="dark"] header.solid nav .btn {
  background: #242E1F;
  border-color: rgba(240, 176, 96, 0.35);
  color: #FAF7F2;
}

[data-theme="dark"] header.solid nav .btn:hover {
  background: #2E3B25;
  border-color: #F0B060;
}

/* 2. Section Intro & Feature Highlights */
[data-theme="dark"] .section-intro {
  background: #16110D; /* Cokelat malam: Kanvas gelap murni */
}

[data-theme="dark"] .intro {
  border-bottom-color: rgba(246, 232, 214, 0.1);
}

[data-theme="dark"] .eyebrow-pill {
  background: rgba(240, 176, 96, 0.12);
  border-color: rgba(240, 176, 96, 0.28);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .eyebrow-line {
  background: #F0B060;
}

[data-theme="dark"] .note {
  color: #F0B060; /* Warm gold glow: Skor Kontras 9.90:1 di atas #16110D (WCAG AAA >= 7.0:1) */
}

[data-theme="dark"] .intro h2 {
  color: #F6E8D6; /* Krem: Skor Kontras 15.56:1 di atas #16110D (WCAG AAA) */
}

[data-theme="dark"] .intro h2 em {
  color: #F0B060; /* Aksen emas warm glow: Skor Kontras 9.90:1 (WCAG AAA) */
}

[data-theme="dark"] .intro p,
[data-theme="dark"] #intro-p1 {
  color: #F6E8D6; /* Krem: Skor Kontras 15.56:1 di atas #16110D (WCAG AAA >= 7.0:1) */
}

[data-theme="dark"] #intro-p2 {
  color: rgba(246, 232, 214, 0.88); /* Krem lembut: Skor Kontras 11.20:1 di atas #16110D (WCAG AAA) */
}

/* Feature Highlights (Dark Glassmorphism) */
[data-theme="dark"] .feature-card {
  background: rgba(255, 248, 240, 0.04); /* Glassmorphism transparan */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 232, 214, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(240, 176, 96, 0.14);
  border-color: rgba(240, 176, 96, 0.38);
}

[data-theme="dark"] .feature-icon {
  background: rgba(240, 176, 96, 0.12);
  color: #F0B060; /* Aksen emas warm glow */
  border: 1px solid rgba(240, 176, 96, 0.28);
  box-shadow: 0 0 0 5px rgba(240, 176, 96, 0.08), 0 0 16px rgba(240, 176, 96, 0.18);
}

[data-theme="dark"] .feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(240, 176, 96, 0.18), 0 0 22px rgba(240, 176, 96, 0.26);
}

[data-theme="dark"] .feature-content h3 {
  color: #F6E8D6; /* Krem: Skor Kontras 15.00:1 (WCAG AAA) */
}

[data-theme="dark"] .feature-content p {
  color: rgba(246, 232, 214, 0.88); /* Skor Kontras 11.20:1 (WCAG AAA) */
}

/* 3. Horizontal Photo Strip (Bingkai Kaca Gelap + Warm Ambient Glow) */
[data-theme="dark"] .strip figure {
  border: 2px solid rgba(240, 176, 96, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(224, 132, 42, 0.08);
  background: #1E1712;
}

[data-theme="dark"] .strip figure:hover {
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.7), 0 0 32px rgba(240, 176, 96, 0.22);
  border-color: rgba(240, 176, 96, 0.45);
}

[data-theme="dark"] .strip img,
[data-theme="dark"] .strip figure img {
  background: #1E1712;
  filter: brightness(0.98) saturate(1.06);
}

[data-theme="dark"] .strip figure:hover img {
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65), 0 0 30px rgba(240, 176, 96, 0.18);
}

[data-theme="dark"] .visit-photo {
  border: 2px solid rgba(240, 176, 96, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(224, 132, 42, 0.08);
}

[data-theme="dark"] .visit-photo:hover {
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.7), 0 0 32px rgba(240, 176, 96, 0.22);
  border-color: rgba(240, 176, 96, 0.45);
}

[data-theme="dark"] .strip figcaption {
  color: #F6E8D6;
}

[data-theme="dark"] .strip::-webkit-scrollbar-thumb {
  background: rgba(246, 232, 214, 0.18);
}

[data-theme="dark"] .strip::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 176, 96, 0.4);
}

/* Delivery Row & Pill Pesan Antar */
[data-theme="dark"] .delivery-row {
  background: rgba(255, 248, 240, 0.03);
  border-color: rgba(246, 232, 214, 0.15);
}

[data-theme="dark"] .delivery-label {
  color: rgba(246, 232, 214, 0.75);
}

[data-theme="dark"] .delivery-links .btn-sm {
  background: rgba(255, 248, 240, 0.06);
  color: #F6E8D6;
  border-color: rgba(246, 232, 214, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .delivery-links .btn-sm:hover {
  border-color: #F0B060;
  color: #F0B060;
  background: rgba(240, 176, 96, 0.14);
}

/* 5. Reviews & Footer */
[data-theme="dark"] .reviews {
  background: #16110D;
  color: #F6E8D6;
}

[data-theme="dark"] .reviews h2 {
  color: #F6E8D6;
}

[data-theme="dark"] .reviews h2 em {
  color: #F0B060;
}

[data-theme="dark"] .review-quote {
  color: #F0B060;
}

[data-theme="dark"] .review-name {
  color: #F6E8D6;
}

[data-theme="dark"] .review-meta {
  color: rgba(246, 232, 214, 0.7);
}

[data-theme="dark"] .review-stars {
  color: #F0B060;
}

[data-theme="dark"] footer,
[data-theme="dark"] footer#kunjungi {
  background: #140E0A;
  color: #F6E8D6;
  border-top: 1px solid rgba(240, 176, 96, 0.14);
}

[data-theme="dark"] .footer-halal-badge {
  background: #FFFFFF;
  border-color: rgba(240, 176, 96, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .footer-halal-badge:hover {
  border-color: #F0B060;
  box-shadow: 0 6px 20px rgba(240, 176, 96, 0.28);
}

[data-theme="dark"] .footer-link-btn {
  color: #F0B060;
  border-color: rgba(240, 176, 96, 0.4);
}

[data-theme="dark"] .footer-contact-icon {
  background: rgba(240, 176, 96, 0.12);
}

[data-theme="dark"] .footer-bottom-bar {
  border-top-color: rgba(246, 232, 214, 0.1);
}

/* 6. Operational Status Badge */
[data-theme="dark"] .badge-status.buka {
  background: rgba(129, 199, 132, 0.2);
  color: #A5D6A7;
  border-color: rgba(129, 199, 132, 0.4);
}

[data-theme="dark"] .badge-status.tutup {
  background: rgba(239, 154, 154, 0.2);
  color: #FFCDD2;
  border-color: rgba(239, 154, 154, 0.4);
}

/* ==========================================================================
   ==========================================================================
   TAMBAHAN INTERAKTIF (ala Ini Kopi Ulon)
   Garis progres scroll, hero,
   tab menu + pencarian, reveal saat scroll, tombol ke atas.
   ==========================================================================
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Garis progres scroll --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--bloom-soft), var(--bloom));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* --- Hero: isyarat gulir --- */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.88;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cream), rgba(246, 232, 214, 0));
  transform-origin: top;
  animation: cueLine 1.9s ease-in-out infinite;
}

@keyframes cueLine {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   MENU: TAB KATEGORI + PENCARIAN
   ========================================================================== */
.menu .hd { margin-bottom: 28px; }

.menu-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--cream);
  font: 600 14px/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-tab:hover {
  background: rgba(246, 232, 214, 0.12);
  transform: translateY(-1px);
}

.menu-tab.is-active {
  background: var(--cream);
  border-color: var(--cream);
  color: #24160C;
}

.menu-search {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--cream);
}

.menu-search svg {
  position: absolute;
  left: 15px;
  opacity: 0.75;
  pointer-events: none;
}

.menu-search input {
  min-width: 220px;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: rgba(246, 232, 214, 0.08);
  color: var(--cream);
  font: 500 14.5px/1.2 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-search input::placeholder { color: rgba(246, 232, 214, 0.62); }

.menu-search input:focus {
  outline: none;
  border-color: var(--bloom-soft);
  background: rgba(246, 232, 214, 0.15);
}

.menu-col[hidden],
.menu-col li[hidden],
.menu-empty[hidden] { display: none; }

.cols.filtered {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.cols.filtered .menu-col ul {
  display: block;
  columns: 2;
  column-gap: 48px;
}

.cols.filtered .menu-col li { break-inside: avoid; }

.menu-empty {
  text-align: center;
  padding: 28px 0 8px;
  opacity: 0.88;
  font: italic 400 22px/1.4 var(--serif);
}

@media (max-width: 640px) {
  .menu-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px 4px;
    width: calc(100% + 48px);
    scrollbar-width: none;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab { flex-shrink: 0; }
  .menu-search { width: 100%; }
  .menu-search input { width: 100%; min-width: 0; }
  .cols.filtered .menu-col ul { columns: 1; }
}

/* ==========================================================================
   REVEAL SAAT SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   TOMBOL KE ATAS
   ========================================================================== */
.to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246, 232, 214, 0.3);
  background: var(--leaf);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(42, 24, 16, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { background: #3B4D30; }

/* ==========================================================================
   PREFERENSI GERAK MINIMAL
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   DARK MODE GAYA UNTUK KOMPONEN BARU ([data-theme="dark"])
   Konsep: Warm Night Lounge (Cokelat kopi hangat, malam teduh & cozy)
   ========================================================================== */

/* Menu Tools Dark */
[data-theme="dark"] .menu-tab {
  border-color: rgba(246, 232, 214, 0.2);
  color: #F6E8D6;
}

[data-theme="dark"] .menu-tab:hover {
  background: rgba(240, 176, 96, 0.14);
  border-color: rgba(240, 176, 96, 0.4);
  color: #F0B060;
}

[data-theme="dark"] .menu-tab.is-active {
  background: #F6E8D6;
  border-color: #F6E8D6;
  color: #24160C;
}

[data-theme="dark"] .menu-search input {
  background: rgba(255, 248, 240, 0.07);
  border-color: rgba(246, 232, 214, 0.18);
  color: #F6E8D6;
}

[data-theme="dark"] .menu-search input:focus {
  border-color: #F0B060;
  background: rgba(255, 248, 240, 0.12);
  box-shadow: 0 0 12px rgba(240, 176, 96, 0.15);
}

/* 4. Tombol Ke Atas Dark */
[data-theme="dark"] .to-top {
  background: #141B11;
  border-color: rgba(246, 232, 214, 0.25);
  color: #F6E8D6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .to-top:hover {
  background: #242E1F;
  border-color: #F0B060;
  color: #F0B060;
}

/* ==========================================================================
   BLOK PROFIL BULAT (ALA INI KOPI ULON)
   ========================================================================== */
.profile {
  background: var(--bg);
  padding: clamp(72px, 8.5vw, 112px) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(58, 35, 21, 0.08);
}

.profile-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

/* Kolom Teks */
.profile-col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 6;
}

.profile-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bloom);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.profile-title {
  font-family: var(--sans);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.profile-p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 520px;
  margin-bottom: 0;
}

.profile-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(26px, 3.2vw, 36px);
}

.profile-btn-primary {
  background: var(--leaf);
  color: #FAF7F2;
  border: 1px solid var(--leaf);
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(46, 59, 37, 0.22);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.profile-btn-primary:hover {
  background: #3B4D30;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 59, 37, 0.3);
}

.profile-btn-secondary {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(58, 35, 21, 0.18);
  padding: 13px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(42, 24, 16, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.profile-btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 24, 16, 0.08);
}

/* Kolom Foto */
.profile-col-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 0 32px 32px;
}

.profile-media-frame {
  position: relative;
  width: min(440px, 38vw);
  height: min(440px, 38vw);
  flex-shrink: 0;
}

/* Lingkaran dekorasi lembut di belakang foto besar */
.profile-circle-backdrop {
  position: absolute;
  top: -10px;
  right: -14px;
  width: 104%;
  height: 104%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 96, 0.22) 0%, rgba(224, 132, 42, 0.08) 55%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

/* Lingkaran Besar */
.profile-circle-big {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 12px solid #FFFFFF;
  box-shadow: 0 20px 48px -8px rgba(42, 24, 16, 0.16), 0 6px 18px rgba(42, 24, 16, 0.06);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.profile-media-frame:hover .profile-circle-big {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px -8px rgba(42, 24, 16, 0.22), 0 10px 24px rgba(42, 24, 16, 0.08);
}

.profile-circle-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

.profile-circle-big:hover img {
  transform: scale(1.05);
}

.profile-circle-big .profile-img-light {
  object-position: center 30%;
  display: block;
}

.profile-circle-big .profile-img-dark {
  object-position: center 46%;
  display: none;
}

/* Lingkaran Kecil Menempel di Kiri Bawah */
.profile-circle-small {
  position: absolute;
  width: 46%;
  height: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  bottom: -4%;
  left: -12%;
  border: 10px solid #FFFFFF;
  box-shadow: 0 16px 36px -4px rgba(42, 24, 16, 0.18), 0 4px 14px rgba(42, 24, 16, 0.08);
  overflow: hidden;
  z-index: 3;
  animation: profileFloat 6s ease-in-out infinite alternate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.profile-circle-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  display: block;
}

@keyframes profileFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

/* --- TAMPILAN DARK MODE --- */
[data-theme="dark"] .profile {
  background: #18120E;
  border-bottom-color: rgba(246, 232, 214, 0.06);
}

[data-theme="dark"] .profile-eyebrow {
  color: #F0B060;
}

[data-theme="dark"] .profile-title {
  color: #F6E8D6;
}

[data-theme="dark"] .profile-p {
  color: rgba(246, 232, 214, 0.85);
}

[data-theme="dark"] .profile-circle-big .profile-img-light {
  display: none;
}

[data-theme="dark"] .profile-circle-big .profile-img-dark {
  display: block;
}

[data-theme="dark"] .profile-circle-backdrop {
  background: radial-gradient(circle, rgba(240, 176, 96, 0.14) 0%, rgba(224, 132, 42, 0.04) 60%, transparent 75%);
}

[data-theme="dark"] .profile-circle-big {
  border-color: #2E1F18;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 232, 214, 0.08);
}

[data-theme="dark"] .profile-media-frame:hover .profile-circle-big {
  border-color: #38251B;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.65), 0 0 24px rgba(240, 176, 96, 0.15);
}

[data-theme="dark"] .profile-circle-small {
  border-color: #2E1F18;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(246, 232, 214, 0.08);
}

[data-theme="dark"] .profile-btn-primary {
  background: #2E3B25;
  border-color: #3F5233;
  color: #F6E8D6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-btn-primary:hover {
  background: #3C4D31;
  color: #FFFFFF;
  border-color: #F0B060;
}

[data-theme="dark"] .profile-btn-secondary {
  background: rgba(255, 248, 240, 0.05);
  color: #F6E8D6;
  border-color: rgba(246, 232, 214, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .profile-btn-secondary:hover {
  border-color: #F0B060;
  color: #F0B060;
  background: rgba(255, 248, 240, 0.09);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  .profile-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .profile-col-media {
    order: -1;
    padding: 16px 0 24px 0;
  }

  .profile-media-frame {
    width: min(78vw, 340px);
    height: min(78vw, 340px);
    margin: 0 auto;
  }

  .profile-circle-backdrop {
    top: -8px;
    right: -8px;
  }

  .profile-circle-big {
    border-width: 9px;
  }

  .profile-circle-small {
    width: 45%;
    height: 45%;
    bottom: -3%;
    left: -5%;
    border-width: 7px;
  }

  .profile-col-text {
    align-items: center;
  }

  .profile-eyebrow {
    margin-bottom: 12px;
  }

  .profile-p {
    max-width: 100%;
  }

  .profile-actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-media-frame {
    width: min(74vw, 280px);
    height: min(74vw, 280px);
  }

  .profile-circle-small {
    left: -3%;
    bottom: -3%;
    border-width: 6px;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .profile-btn-primary,
  .profile-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-circle-small,
  .photo-badge,
  .visit-badge,
  .floating-badge,
  #floating-jam-status,
  .visit-photo .badge-status,
  .strip figure .badge-tag {
    animation: none !important;
  }
  .strip figure,
  .visit-card,
  .visit-photo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .strip figure:hover img,
  .visit-photo:hover img,
  .profile-circle-big:hover img,
  .profile-media-frame:hover .profile-circle-big {
    transform: none !important;
  }
  .profile-btn-primary:hover,
  .profile-btn-secondary:hover {
    transform: none;
  }
}

