/* =========================
   SECTION: Tiny utility replacements
   NOTE:
   - Ganti inline style kecil supaya markup lebih bersih
   ========================= */
.home-inline-flex {
  display: inline-flex;
}

.home-align-center {
  align-items: center;
}

.home-gap-10 {
  gap: 10px;
}

.home-nav-current {
  font-weight: 700;
}

.home-slider-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-best-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

.home-hours-pill-offset {
  margin-left: 8px;
}

.home-hours-note,
.home-social-dot {
  color: var(--muted);
}

/* =========================
   SECTION: Announcements
   DEPENDENCY:
   - page-home.js guna data-ann dan modal IDs
   DEBUG-POINT:
   - Kalau modal tak buka, semak [data-ann-open], .announcement-card, dan #hbAnnModal
   ========================= */
.announcement-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .announcement-list {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: hbFadeUp .55s ease-out forwards;
  animation-delay: var(--hb-delay, 0ms);
}

@keyframes hbFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hb-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hb-ann-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.hb-readmore {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.hb-readmore:hover {
  text-decoration: underline;
}

/* =========================
   SECTION: Announcement modal
   DEBUG-POINT:
   - Kalau modal nampak tapi tak boleh close, semak data-ann-close listeners di JS
   ========================= */
.hb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.hb-modal[aria-hidden="false"] {
  display: block;
}

.hb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hb-modal-dialog {
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 10vh auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  animation: hbPop .18s ease-out;
}

@keyframes hbPop {
  from {
    opacity: .75;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hb-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}

.hb-modal-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 44px;
}

.hb-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3cf;
}

.hb-modal-icon i {
  color: #d1a63b;
}

.hb-modal-title {
  color: #7a5b12;
  font-size: 1.12rem;
  font-weight: 900;
}

.hb-modal-date {
  margin-top: 3px;
  color: #8a7a45;
  font-size: .9rem;
}

.hb-modal-body {
  margin-top: 14px;
  color: #6f5f33;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* =========================
   SECTION: Video promo dessert table
   DEPENDENCY:
   - page-home.js guna IDs:
   - #hbVideoPromoSection
   - #hbDessertVideo
   - #hbVideoFrame
   - #hbVideoOverlay
   - .hb-video-thumb
   - .hb-video-thumb-media
   DEBUG-POINT:
   - Kalau thumb swap tak jalan, semak data-video-src dan data-video-poster
   ========================= */
.hb-video-section {
  padding: 10px 0 24px;
  background:
    radial-gradient(circle at top left, rgba(244,196,48,.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(244,196,48,.06), transparent 24%);
}

.hb-video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,170,56,.18);
  border-radius: 30px;
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  box-shadow: 0 18px 42px rgba(93,68,16,.08);
}

.hb-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, rgba(244,196,48,.10), transparent 16%),
    radial-gradient(circle at 92% 82%, rgba(244,196,48,.08), transparent 18%);
}

.hb-video-head {
  position: relative;
  z-index: 1;
  padding: 38px 24px 12px;
  text-align: center;
}

.hb-video-title {
  margin: 0 0 12px;
  color: #8b6514;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: .2px;
}

.hb-video-sub {
  max-width: 920px;
  margin: 0 auto;
  color: #6f5f33;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.8;
}

.hb-video-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px 24px 28px;
}

.hb-video-player-wrap {
  padding: 10px;
  border: 1px solid rgba(212,170,56,.22);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(90,67,18,.08);
}

.hb-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #efe4c7;
  aspect-ratio: 16 / 10;
}

.hb-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dbc593;
}

.hb-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,.14), rgba(0,0,0,.04));
  cursor: pointer;
  pointer-events: auto;
  transition: .25s ease;
}

.hb-video-frame.is-playing .hb-video-play-overlay {
  opacity: 0;
}

.hb-video-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: rgba(244,196,48,.84);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}

.hb-video-play-btn i {
  margin-left: 4px;
  color: #fff;
  font-size: 34px;
}

.hb-video-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hb-video-thumb {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212,170,56,.22);
  border-radius: 16px;
  background: #fff8e8;
  cursor: pointer;
}

.hb-video-thumb-media {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #efe4c7;
  transition: transform .28s ease;
}

.hb-video-thumb:hover .hb-video-thumb-media {
  transform: scale(1.04);
}

.hb-video-thumb.active {
  outline: 2px solid rgba(244,196,48,.72);
  box-shadow: 0 10px 24px rgba(194,146,16,.14);
}

.hb-video-thumb-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #9b7116;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  pointer-events: none;
}

.hb-video-thumb-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2px;
  pointer-events: none;
}

.hb-video-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hb-video-points {
  padding: 24px 24px 20px;
  border: 1px solid rgba(212,170,56,.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(90,67,18,.07);
}

.hb-video-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-video-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #5f4a20;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hb-video-list i {
  flex: 0 0 auto;
  margin-top: 6px;
  color: #e0ae1c;
  font-size: 1rem;
}

.hb-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hb-video-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 700;
}

.hb-video-tag.gold { background: #f7e5ab; color: #73520b; }
.hb-video-tag.lilac { background: #eadcf3; color: #6f467e; }
.hb-video-tag.gray { background: #edf0f7; color: #566070; }

.hb-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hb-video-actions .btn {
  min-width: 220px;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(112,84,18,.10);
}

.hb-video-actions .btn.btn-gold {
  box-shadow: 0 14px 28px rgba(176,128,10,.22);
}

@media (max-width: 991px) {
  .hb-video-grid {
    grid-template-columns: 1fr;
  }

  .hb-video-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hb-video-card {
    border-radius: 22px;
  }

  .hb-video-head {
    padding: 30px 18px 10px;
  }

  .hb-video-grid {
    gap: 16px;
    padding: 14px 16px 20px;
  }

  .hb-video-player-wrap,
  .hb-video-points {
    border-radius: 18px;
  }

  .hb-video-frame {
    border-radius: 14px;
  }

  .hb-video-play-btn {
    width: 78px;
    height: 78px;
  }

  .hb-video-play-btn i {
    font-size: 28px;
  }

  .hb-video-list li {
    font-size: 1rem;
  }

  .hb-video-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hb-video-thumb {
    min-height: 64px;
    border-radius: 12px;
  }
}