/* ============================================================
   Template Resto/Kuliner — style.css
   Semua warna per-brand diambil dari CSS variables (diatur via admin):
   --header-bg, --header-text, --btn, --btn-text, --accent, --text
   Ganti warna/logo/background/banner dari admin => jadi brand baru.
   ============================================================ */

:root {
  --header-bg:   #b45309;
  --header-text: #fde68a;
  --btn:         #f59e0b;
  --btn-text:    #ffffff;
  --accent:      #78350f;
  --text:        #1f2937;
}

/* Sticky footer: body kolom penuh setinggi layar, main mengisi sisa ruang
   supaya footer selalu menempel di bawah (tidak "kepotong"/transparan). */
html, body { height: 100%; }
body {
  color: var(--text);
  background-color: #fff7ed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
main { flex: 1 0 auto; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--header-text);
  letter-spacing: .5px;
  display: block;
  line-height: 1.1;
}
.brand-logo { max-height: 52px; width: auto; display: block; }
.brand-tagline { color: var(--header-text); opacity: .85; font-size: .8rem; }

.nav-pill {
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.nav-pill:hover { filter: brightness(1.08); color: var(--btn-text); }
.nav-cta { background: var(--accent); }

/* ── Banner slider (rasio 1600 x 525, di body homepage) ───── */
.banner-slider {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}
.banner-slider .banner-img {
  aspect-ratio: 1600 / 525;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* ── Marquee (teks berjalan, di body homepage) ────────────── */
.marquee-bar {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* ── Kartu postingan ──────────────────────────────────────── */
.post-card {
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.post-card .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.post-card .card-title { color: var(--accent); font-weight: 700; font-size: 1rem; }
.post-card .card-subtitle { color: var(--btn); font-weight: 600; font-size: .8rem; margin-bottom: .15rem; }
.post-card .card-text { color: #444; font-size: .9rem; }

.btn-resto {
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 700;
  border: none;
}
.btn-resto:hover { color: var(--btn-text); filter: brightness(1.08); }

.section-title {
  color: var(--accent);
  font-weight: 800;
  border-left: 6px solid var(--btn);
  padding-left: 12px;
  margin: 1rem 0;
}

/* ── Detail postingan ─────────────────────────────────────── */
.post-detail .section-title { font-size: 2rem; }
/* sub judul = 50% ukuran judul (1rem dari 2rem), tampil di bawah gambar */
.post-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--btn);
  margin: .25rem 0 .75rem;
}
.post-detail img.cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--accent);
}
.post-meta { color: var(--header-bg); font-size: .9rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  background: var(--header-bg);
  color: var(--header-text);
  margin-top: 2rem;
}
.site-footer .copyright { color: var(--header-text); opacity: .8; }

/* ── Hero (opsional, hilang bila tak ada gambar) ──────────── */
.hero {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}
.hero img { width: 100%; object-fit: cover; }

/* content panel supaya teks tetap terbaca di atas background image */
.content-panel {
  background: rgba(255, 255, 255, .92);
  border-radius: 12px;
  padding: 1.25rem;
}
