/* ==========================================================
   MeCoffee Coffee Shop & Roastery — stylesheet utama
   ========================================================== */

:root {
  --bg: #0c0a08;
  --bg-2: #13100d;
  --card: #1a1612;
  --card-2: #221c17;
  --line: rgba(255, 238, 214, 0.09);
  --line-2: rgba(255, 238, 214, 0.16);
  --text: #f1e9de;
  --muted: #a99c8b;
  --faint: #7d7163;
  --brand: #a5742b;
  --gold: #cf9f5a;
  --gold-hi: #e2b877;
  --on-gold: #140f09;
  --green: #25d366;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --wrap: 1200px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #4a3a26; border-radius: 10px; border: 2px solid var(--bg); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.title {
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px;
}
.title em, .display em { font-style: italic; color: var(--gold); font-weight: 500; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 62ch; margin-top: 18px; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.prose { color: var(--muted); max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 12px 30px -10px rgba(207, 159, 90, 0.55); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--wa { background: var(--green); color: #062b14; }
.btn--wa:hover { background: #3be07a; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.link-arrow .icon { transition: transform .25s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page:not(.page--home) .site-header {
  background: rgba(12, 10, 8, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #000; border: 1px solid var(--line); }
.brand strong { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.brand strong span { color: var(--gold); }
.brand small { display: block; color: var(--faint); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-radius: 10px;
  transition: color .2s ease;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 16px 120px; background: rgba(12, 10, 8, 0.97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-size: 20px; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--display); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 24px 0 0; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: rgba(12, 10, 8, 0.97); }
}

/* Bottom tab bar (mobile) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 55;
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(20, 16, 13, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-2); border-radius: 22px; padding: 6px; box-shadow: var(--shadow);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 16px; color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }
  .tabbar a .icon { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--gold-hi); background: rgba(207, 159, 90, 0.1); }
  .tabbar a.tab-wa { color: var(--green); }
  body { padding-bottom: 96px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 22s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.25) 35%, rgba(12, 10, 8, 0.85) 75%, var(--bg) 100%),
    radial-gradient(80% 60% at 15% 85%, rgba(12, 10, 8, 0.8), transparent 70%);
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__content { padding: calc(var(--header-h) + 64px) 0 clamp(56px, 9vw, 104px); max-width: 780px; }
.display { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 8vw, 92px); line-height: 1; letter-spacing: -0.03em; margin-top: 18px; }
.hero .lead { color: #d8cbb9; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--gold); }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(165, 116, 43, 0.18), transparent); pointer-events: none; }
.page-hero--image { min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; }
.page-hero--image .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 10, 8, 0.6), rgba(12, 10, 8, 0.75) 50%, var(--bg)); }
.page-hero .title { font-size: clamp(36px, 6vw, 68px); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* ---------- Media frames ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.frame:hover img { transform: scale(1.05); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame__badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 280px;
  padding: 16px 18px; border-radius: 16px; background: rgba(12, 10, 8, 0.78); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
}
.frame__badge strong { display: block; font-family: var(--display); font-style: italic; color: var(--gold-hi); font-size: 22px; font-weight: 500; }
.frame__badge span { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage .frame:first-child { grid-row: span 2; }
.collage .frame { aspect-ratio: 1; }
.collage .frame:first-child { aspect-ratio: auto; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: rgba(207, 159, 90, 0.1); color: var(--gold); border: 1px solid rgba(207, 159, 90, 0.2);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.stats div { background: var(--bg); padding: 20px; }
.section--alt .stats div { background: var(--bg-2); }
.stats strong { display: block; font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); color: var(--gold-hi); font-weight: 600; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }

/* Product cards */
.product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
.product-card:hover { border-color: rgba(207, 159, 90, 0.4); transform: translateY(-4px); }
.product-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__body h3 { font-size: 20px; }
.product-card__origin { color: var(--faint); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.product-card__price { color: var(--gold-hi); font-weight: 800; font-size: 17px; margin-top: auto; padding-top: 10px; }
.product-card__price small { color: var(--faint); font-weight: 500; font-size: 12px; }

/* Option pills */
.options { display: grid; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); margin: 24px 0; }
.options legend, .options .label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; padding: 0; }
.options fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.pill:hover { border-color: var(--gold); }
.pill[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.price-big { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 600; color: var(--gold-hi); margin-top: 10px; }
.product-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-top: 24px; }
.product-meta dt { color: var(--faint); }
.product-meta dd { margin: 0; color: var(--text); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumbs a { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.thumbs a:hover img { transform: scale(1.08); }

/* ---------- Menu ---------- */
.menu-tools { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 20px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; padding: 10px; border-radius: 20px; background: rgba(19, 16, 13, 0.9); backdrop-filter: blur(14px); border: 1px solid var(--line); }
@media (max-width: 600px) { .menu-tools { grid-template-columns: 1fr; } }
.field { position: relative; }
.field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.field input, .field select {
  width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg);
  padding: 10px 16px 10px 46px; outline: none; transition: border-color .2s ease; appearance: none;
}
.field select { padding-right: 36px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 32px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; transition: all .2s ease; }
.chip:hover, .chip.is-active { border-color: var(--gold); color: var(--gold-hi); background: rgba(207, 159, 90, 0.08); }
/* Kartu kategori menu (grid 2 kolom, 1 kolom di mobile) */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); align-items: start; }
@media (max-width: 820px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-cat { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); scroll-margin-top: calc(var(--header-h) + 96px); transition: border-color .3s ease; }
.menu-cat:hover { border-color: rgba(207, 159, 90, 0.3); }
.menu-cat__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.menu-cat__head h2 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.menu-cat__meta { color: var(--faint); font-size: 13px; margin-top: 2px; }
.menu-cat__num { position: absolute; top: -14px; right: 14px; font-family: var(--display); font-size: 96px; font-weight: 600; line-height: 1; color: rgba(207, 159, 90, 0.07); pointer-events: none; }
.menu-list { counter-reset: menu; }
.menu-item { counter-increment: menu; display: flex; align-items: baseline; gap: 12px; padding: 13px 2px; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.menu-item::before { content: counter(menu) "."; color: var(--faint); font-size: 13px; font-weight: 700; min-width: 20px; font-variant-numeric: tabular-nums; }
.menu-item[hidden] { display: none; }
.menu-item__name { font-weight: 600; }
.menu-item__cat { display: none; font-size: 11px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.is-searching .menu-item__cat { display: block; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted rgba(255, 238, 214, 0.18); transform: translateY(-4px); min-width: 20px; }
.menu-item__price { color: var(--gold-hi); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-empty { display: none; text-align: center; padding: 48px 16px; color: var(--muted); }
.menu-empty.is-visible { display: block; }
.is-searching .chips { opacity: .4; pointer-events: none; }

/* Story cards (menu photos) */
.story-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.story { scroll-snap-align: start; margin: 0; }
.story a { display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.story a:hover img { transform: scale(1.05); }
.story figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.story figcaption strong { display: block; color: var(--text); font-size: 15px; }

/* ---------- Gallery ---------- */
/* Galeri: grid seragam rasio 4:5 (foto dipotong rapi di thumbnail; versi utuh tampil di modal zoom) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gallery figure { margin: 0; min-width: 0; }
.gallery a { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5)); opacity: 0; transition: opacity .3s ease; }
.gallery a:hover::after { opacity: 1; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; line-height: 1.45; }
@media (max-width: 640px) { .gallery figcaption { font-size: 12px; } }
.gallery--portrait { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .gallery--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.strip a { aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.strip a:hover img { transform: scale(1.08); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* Lightbox */
/* Modal zoom: foto utuh (tidak dipotong) sebesar mungkin sesuai layar */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(8, 6, 5, 0.97); padding: 56px 72px 48px; }
.lightbox.is-open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { --lb-h: calc(100svh - 150px); margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
/* --ar (rasio lebar/tinggi) diisi JS saat foto dimuat → foto diperbesar pas layar tanpa terpotong/terdistorsi */
.lightbox img { width: min(100%, calc(var(--lb-h) * var(--ar, 0.8))); height: auto; max-height: var(--lb-h); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
@media (max-width: 760px) { .lightbox { padding: 64px 8px 88px; } .lightbox figure { --lb-h: calc(100svh - 190px); } }
.lightbox figcaption { color: var(--muted); font-size: 14px; text-align: center; max-width: 70ch; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.lightbox button:hover { background: var(--gold); color: var(--on-gold); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; } .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); } }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.review blockquote { margin: 0; color: #d6c9b8; font-size: 15.5px; }
.review blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 56px; line-height: 0.6; color: var(--gold); margin: 10px 0 6px; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-hi), var(--brand)); flex: none; font-size: 14px; }
.review cite { font-style: normal; font-weight: 700; display: block; }
.review footer span { font-size: 12px; color: var(--faint); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 15px; height: 15px; }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); }
.rating-badge strong { font-size: 22px; font-family: var(--display); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-family: var(--display); font-size: 26px; color: var(--gold); font-weight: 600; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(207, 159, 90, 0.22), transparent 55%), var(--card);
  border: 1px solid rgba(207, 159, 90, 0.25); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta .title { font-size: clamp(28px, 4vw, 44px); margin-top: 10px; }
.cta .actions { margin-top: 0; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.info-list { display: grid; gap: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--gold-hi); font-weight: 700; }
.hours .closed { color: #e07a6a !important; font-weight: 700; }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.open-status.is-open { color: #7be3a0; }
.open-status.is-open::before { background: #33d17a; box-shadow: 0 0 0 4px rgba(51, 209, 122, 0.2); }
.open-status.is-closed { color: #f0a090; }
.open-status.is-closed::before { background: #e07a6a; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; height: 100%; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.4) contrast(1.05); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--muted); transition: color .2s ease; }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-about p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 40ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s ease; }
.socials a:hover { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
/* Baris bawah: 3 baris rata tengah — copyright, sosial media, powered by */
.footer-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; color: var(--faint); font-size: 13.5px; }
.footer-bottom .socials { margin-top: 0; justify-content: center; }
.footer-bottom .socials a { color: var(--muted); }
.footer-bottom .socials a:hover { color: var(--on-gold); }
.powered { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.powered a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s ease, color .2s ease; }
.powered a:hover { color: var(--gold-hi); border-color: rgba(11, 184, 245, 0.5); }
.powered img { width: 22px; height: 24px; }

/* Floating action buttons */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6); transition: transform .25s ease; position: relative; }
.fab a:hover { transform: translateY(-3px) scale(1.05); }
.fab a .icon { width: 28px; height: 28px; }
.fab .fab-wa { background: var(--green); color: #fff; }
.fab .fab-menu { background: var(--gold); color: var(--on-gold); }
.fab .fab-menu:hover { background: var(--gold-hi); }
.fab .fab-review { background: #fff; }
.fab a span { position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(8px); white-space: nowrap; background: #fff; color: #111; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .25s ease; }
.fab a:hover span, .fab a:focus-visible span { opacity: 1; transform: translateY(-50%); }
/* Indikator berkedip di navigasi "Menu" */
.has-pulse { position: relative; }
.pulse { position: absolute; top: 6px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: #ff6a3d; box-shadow: 0 0 8px rgba(255, 106, 61, 0.8); animation: pulse-blink 1.4s ease-in-out infinite; pointer-events: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff6a3d; animation: pulse-ring 1.4s ease-out infinite; }
@keyframes pulse-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.nav a.has-pulse { padding-right: 16px; }
.tabbar a.has-pulse .pulse { top: 6px; right: calc(50% - 16px); }
@media (max-width: 1080px) { .nav a.has-pulse .pulse { top: 50%; right: auto; left: 76px; margin-top: -4px; } }
@media (prefers-reduced-motion: reduce) { .pulse, .pulse::after { animation: none !important; } }

/* Mobile: WA & ulasan sudah ada di tab bar — sisakan tombol download menu tepat di atas tab bar */
@media (max-width: 760px) {
  .fab { right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .fab .fab-wa, .fab .fab-review { display: none; }
  .fab a { width: 50px; height: 50px; }
  .fab a .icon { width: 24px; height: 24px; }
  .fab a span { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .display { font-size: clamp(80px, 18vw, 180px); color: var(--gold); }

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(207, 159, 90, 0.12); color: var(--gold-hi); }

/* Menu cetak A4 (halaman /menu/) */
.print-menu figure { margin: 0; }
.print-menu a { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); transition: transform .35s ease; }
.print-menu a:hover { transform: translateY(-4px); }
.print-menu img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.print-menu figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* Roasted beans: kartu unggulan, daftar harga teks, galeri foto lama */
.bean-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 980px) { .bean-features { grid-template-columns: 1fr; } }
.bean-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
.bean-feature:hover { border-color: rgba(207, 159, 90, 0.4); transform: translateY(-4px); }
.bean-feature__media { display: block; overflow: hidden; background: #e9efe4; height: 100%; min-height: 320px; position: relative; }
.bean-feature__media img { position: absolute; inset: 0; }
.bean-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.bean-feature:hover .bean-feature__media img { transform: scale(1.05); }
.bean-feature__body { padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bean-feature__body h2, .bean-feature__body h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.bean-feature__body h2 a:hover, .bean-feature__body h3 a:hover { color: var(--gold-hi); }
.bean-feature__body .muted { font-size: 14px; }
.bean-prices { width: 100%; margin-top: 4px; border-top: 1px solid var(--line); }
.bean-prices li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.bean-prices span { color: var(--muted); font-weight: 600; font-size: 14px; }
.bean-prices strong { color: var(--gold-hi); font-size: 17px; font-variant-numeric: tabular-nums; }
.bean-feature__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 520px) { .bean-feature { grid-template-columns: 1fr; } .bean-feature__media { height: auto; min-height: 0; aspect-ratio: 1 / 1; } }

.bean-list { margin-top: clamp(16px, 2.4vw, 28px); overflow-x: auto; }
.bean-list h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.bean-list table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; }
.bean-list th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.bean-list td { padding: 10px 0; vertical-align: top; }
.bean-list tr.last td { border-bottom: 1px solid var(--line); }
.bean-list td small { display: block; color: var(--faint); font-size: 12.5px; }
.bean-list td a:hover strong { color: var(--gold-hi); }
.bean-list .num { text-align: right; color: var(--gold-hi); font-weight: 800; font-variant-numeric: tabular-nums; width: 90px; }
.bean-list th.num { color: var(--faint); }
.bean-list tr.more td { padding: 14px 0 4px; color: var(--muted); }
.bean-list tr.more em { font-family: var(--display); color: var(--gold-hi); font-weight: 500; }

.bean-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(16px, 2.4vw, 28px); }
.bean-gallery a { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.bean-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.bean-gallery a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .bean-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Kolase 2×2 rasio 4:5 (bagian "Tentang MeCoffee" di beranda) */
.collage-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collage-4 .frame { display: block; aspect-ratio: 4 / 5; }
.collage-4 .frame:nth-child(even) { transform: translateY(28px); }
@media (max-width: 880px) { .collage-4 .frame:nth-child(even) { transform: none; } }
