/* ============================================================================
   CULINARA — HERO SECTION (mengikuti komposisi https://sotossbhjhesti.com/)
   Kiri : foto besar layar-penuh (slider otomatis, foto dari panel admin)
   Kanan: panel marun berisi jam buka, judul, kutipan, dua tombol, tiga poin

   Dimuat SETELAH tema-ssb.css. Naikkan ?v= di catalog.html setiap kali
   berkas ini diubah (cache LiteSpeed 7 hari).
   ========================================================================== */

.hero-ssb {
  position: relative;
  width: 100%;
  background: #691414;
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}

.hero-ssb-grid {
  display: grid;
  /* 51 : 49 — foto sedikit lebih lapang, panel teks tetap seimbang */
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  /* tinggi section ditentukan bersama: foto dan panel selalu sama tinggi */
  min-height: clamp(452px, 62vh, 700px);
}

/* ── Kiri: panggung foto ────────────────────────────────────────────────── */
.hs-panggung {
  position: relative;
  overflow: hidden;
  background: #4f0f0f;
  height: 100%;
  min-height: 0;
  /* foto selalu mengisi penuh kotak: tidak ada garis/ruang kosong di tepi */
  display: block;
}

.hs-rel { position: absolute; inset: 0; }

.hs-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}
.hs-slide.is-active { opacity: 1; z-index: 1; }

.hs-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* efek "napas" halus supaya foto terasa hidup (dimatikan bila pengunjung
   memilih kurangi gerak di perangkatnya) */
.hs-slide.is-active img { animation: hsNap 9s ease-out both; }
@keyframes hsNap {
  from { transform: scale(1.015); }
  to   { transform: scale(1.085); }
}

.hs-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: clamp(60px, 7vw, 100px) clamp(18px, 2.6vw, 36px) clamp(56px, 6vw, 76px);
  background: linear-gradient(to top,
      rgba(26, 3, 3, 0.84) 0%,
      rgba(26, 3, 3, 0.34) 52%,
      rgba(26, 3, 3, 0) 100%);
  color: #fff8ee;
  pointer-events: none;
}
.hs-kat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #facc15;
}
.hs-judul {
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hs-panah {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 238, 0.38);
  background: rgba(26, 3, 3, 0.42);
  color: #fff8ee;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hs-prev { left: 14px; }
.hs-next { right: 14px; }
.hs-panah:hover { background: #facc15; border-color: #facc15; color: #4f0f0f; }

.hs-bawah {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 2vw, 26px);
}
.hs-jeda {
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.34);
  background: rgba(26, 3, 3, 0.42);
  color: #fff8ee;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 15px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hs-jeda:hover { background: #facc15; border-color: #facc15; color: #4f0f0f; }
.hs-titik { display: flex; align-items: center; gap: 7px; }
.hs-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.46);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.hs-dot.is-active { width: 26px; background: #facc15; }

.hs-kosong {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  color: rgba(255, 248, 238, 0.7);
  font-size: 14px;
}
.hs-kosong-ikon { color: #facc15; justify-self: center; }
.hs-kosong-kecil { font-size: 12.5px; opacity: 0.8; }

/* ── Kanan: panel teks ─────────────────────────────────────────────────── */
.hero-ssb-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding: clamp(32px, 4.4vw, 70px) clamp(22px, 4vw, 66px);
  background:
    radial-gradient(520px 420px at 96% 4%, rgba(250, 204, 21, 0.14), transparent 62%),
    linear-gradient(158deg, #761717 0%, #691414 46%, #4f0f0f 100%);
  color: #fff8ee;
}

.hero-ssb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin: 0;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-ssb-eyebrow .titik {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
  flex: 0 0 auto;
}

.hero-ssb-judul {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff8ee;
}
.hero-ssb-judul em { font-style: normal; color: #facc15; }

.hero-ssb-kutip {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid #facc15;
  max-width: 54ch;
  color: rgba(255, 248, 238, 0.85);
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.62;
}

.hero-ssb-aksi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.hero-ssb-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: #facc15;
  border: 1px solid #facc15;
  color: #4f0f0f;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.62);
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero-ssb-cta:hover { background: #fde047; border-color: #fde047; color: #4f0f0f; transform: translateY(-2px); }

.hero-ssb-cta-sekunder {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.5);
  color: #fff8ee;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.hero-ssb-cta-sekunder:hover {
  background: rgba(255, 248, 238, 0.12);
  border-color: #facc15;
  color: #facc15;
}

.hero-ssb-info {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 6px 0 0;
  padding: 0;
}
.hero-ssb-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 248, 238, 0.82);
  font-size: 13px;
  line-height: 1.4;
}
.hero-ssb-info li .ikon { color: #facc15; flex: 0 0 auto; }

/* ── Tablet & HP ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-ssb-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hs-panggung {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
  }
  .hero-ssb-panel { padding: 26px 20px 34px; }
  .hero-ssb-judul { font-size: clamp(27px, 7vw, 38px); }
  .hs-caption { padding-bottom: 58px; }
  .hs-panah { width: 38px; height: 38px; }
  .hs-prev { left: 10px; }
  .hs-next { right: 10px; }
}

@media (max-width: 560px) {
  .hs-panggung { aspect-ratio: 4 / 3; }
  .hero-ssb-panel { padding: 22px 18px 30px; gap: 13px; }
  .hero-ssb-eyebrow { font-size: 10px; padding: 6px 13px 6px 11px; }
  .hero-ssb-kutip { font-size: 13.5px; padding-left: 13px; }
  .hero-ssb-cta, .hero-ssb-cta-sekunder { min-height: 48px; font-size: 14px; padding: 0 20px; }
  .hero-ssb-info li { font-size: 12.5px; }
  .hs-judul { font-size: 16px; }
  .hs-bawah { bottom: 10px; }
}

@media (max-width: 380px) {
  .hero-ssb-judul { font-size: 26px; }
  .hs-panah { width: 34px; height: 34px; }
}

/* kurangi gerak bila diminta perangkat */
@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: none; }
  .hs-slide.is-active img { animation: none; }
  .hero-ssb-cta:hover { transform: none; }
}

/* ── Banner mode pratinjau (halaman beranda saat admin memeriksa draf) ─── */
.pratinjau-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: #facc15;
  color: #4f0f0f;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}
.pratinjau-bar b { text-transform: uppercase; letter-spacing: 0.08em; }
.pratinjau-bar a { color: #4f0f0f; font-weight: 800; text-decoration: underline; }
