/* Kopi Senja — website contoh kafe */
:root {
  --bg: #10201b;
  --bg2: #142822;
  --card: #183029;
  --ink: #eef3ec;
  --mute: #a9bdb2;
  --gold: #dcb673;
  --line: #2c4a40;
  --on: #10201b;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
em { color: var(--gold); }
.w { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 0.75rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--gold); color: var(--on); font-weight: 700; text-decoration: none; border: 1.5px solid var(--gold); cursor: pointer; font-size: 1rem; transition: transform 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn.full { width: 100%; }
.back { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: #000c; color: #fff; font: 500 0.82rem system-ui, sans-serif; padding: 9px 14px; border-radius: 99px; text-decoration: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { font: 400 1.6rem var(--serif); text-decoration: none; }
.logo i { color: var(--gold); }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; color: var(--mute); font-weight: 500; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; }
.lead { color: var(--mute); max-width: 48ch; margin: 22px 0 0; font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6fd09a; box-shadow: 0 0 0 4px rgba(111, 208, 154, 0.18); }
.dot.closed { background: #e0866e; box-shadow: 0 0 0 4px rgba(224, 134, 110, 0.18); }
.mini { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.mini b { display: block; font-weight: 700; }
.mini span { color: var(--mute); font-size: 0.9rem; }
.hero-img { margin: 0; position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 24px 24px; }
.hero-img figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(16, 32, 27, 0.8); padding: 6px 12px; border-radius: 99px; font-size: 0.82rem; color: var(--mute); }

/* keunggulan */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 0; }
.perks div { background: var(--bg2); padding: 26px 28px; }
.perks b { font: 400 1.35rem var(--serif); color: var(--gold); }
.perks p { margin: 8px 0 0; color: var(--mute); font-size: 0.95rem; }

/* menu */
section { padding-top: 96px; }
.sec-head { margin-bottom: 30px; }
.sec-head h2, .about h2, .reserve h2, .loc h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button { min-height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--mute); font: 500 0.95rem var(--sans); cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dishes article { background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.dishes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dishes article > div { padding: 18px 20px 22px; position: relative; }
.dishes h3 { font-size: 1.35rem; display: flex; justify-content: space-between; gap: 10px; }
.dishes h3 span { font: 700 1rem var(--sans); color: var(--gold); white-space: nowrap; padding-top: 4px; }
.dishes p { margin: 8px 0 0; color: var(--mute); font-size: 0.93rem; }
.dishes small { position: absolute; top: -16px; right: 16px; background: var(--gold); color: var(--on); font-weight: 700; font-size: 0.75rem; padding: 4px 10px; border-radius: 99px; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; margin-top: 36px; }
.list div { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.list i { flex: 1; border-bottom: 1px dotted var(--line); }
.list b { color: var(--gold); }
.hide { display: none !important; }
.note { color: var(--mute); font-size: 0.88rem; margin-top: 22px; }

/* tentang */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about figure { margin: 0; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.about p { color: var(--mute); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font: 400 2.4rem var(--serif); color: var(--gold); }
.facts dd { margin: 0; color: var(--mute); font-size: 0.9rem; }

/* galeri */
.g { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.g img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; }

/* reservasi */
.reserve { margin-top: 96px; padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--mute); }
.form input, .form select { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: 400 1rem var(--sans); }
.form input:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* lokasi */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
address { font-style: normal; font-size: 1.15rem; margin-top: 16px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 22px; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--ink); font-weight: 700; }
.hours tr.today td:first-child::after { content: " · hari ini"; color: var(--gold); font-weight: 500; }
.map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.map .btn { position: absolute; left: 16px; bottom: 16px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 80px; }
.f-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

@media (max-width: 900px) {
  .links { display: none; }
  .hero, .about, .r-in, .loc { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 36px; }
  .hero-img img { aspect-ratio: 4 / 3; border-radius: 24px; }
  .perks, .dishes { grid-template-columns: 1fr; }
  .list { grid-template-columns: 1fr; }
  .g { grid-template-columns: 1fr 1fr; }
  .g img { height: 220px; }
  .g img:first-child { grid-column: 1 / -1; }
  section { padding-top: 72px; }
}
