:root {
  --green-1: #eaf6ee;
  --green-2: #9bd0a5;
  --green-3: #2e8b57;
  --green-4: #236e47;
  --teal: #0f6f6b;
  --teal-2: #0b5c58;
  --gold: #d6b15d;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #f6f8f7;
  color: #121816;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box
}

/* NAVBAR (fix tinggi) */
.navbar-masjid {
  background: var(--green-1) !important;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding: .30rem 0;
}

.navbar-masjid .navbar-brand {
  padding: 0;
  line-height: 1;
}

.navbar-masjid .logo {
  height: 56px !important;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width:575px) {
  .navbar-masjid .logo {
    height: 52px;
  }
}

.navbar-masjid .nav-link {
  font-weight: 700;
  color: var(--green-3);
  white-space: nowrap;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.navbar-masjid .nav-link:hover {
  color: var(--green-4);
}

.navbar-masjid .nav-link.active {
  color: var(--green-4);
  position: relative;
}

.navbar-masjid .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: auto;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--green-2);
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.drop-in {
  opacity: 0;
  transform: translateY(-36px);
  transition: .9s;
}

.drop-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* PROMO */
.promo {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    url('promo.png') center/cover no-repeat,
    linear-gradient(180deg, #0e6c67, #0a5b56);
  padding: clamp(60px, 9vw, 120px) 0 clamp(120px, 12vw, 160px);
  display: grid;
  place-items: center;
  text-align: center;
}

.promo .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  padding-inline: clamp(12px, 4vw, 40px);
}

.promo-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.text-highlight {
  color: var(--gold);
}

.btn-panduan {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
  padding: .6rem 1.4rem;
  border-radius: 10px;
  font-weight: 800;
}

.btn-panduan:hover {
  background: rgba(255, 255, 255, .14);
}

@media(max-width:575px) {
  .promo {
    background: var(--teal);
  }
}

/* DATE BAR PREMIUM */
.datebar {
  background: var(--green-1);
  /* Light background to separate from hero */
  border-top: 1px solid rgba(0, 0, 0, .04);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  padding: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.datebar-wrap {
  display: grid;
  gap: 16px;
  align-items: end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "start end time" "dur dur btn";
}

.datebar .form-label,
.schedule-filter .form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-2);
  font-weight: 800;
  margin-bottom: 6px;
}

.datebar .form-control,
.datebar .form-select,
.schedule-filter .form-control,
.schedule-filter .form-select {
  border-radius: 12px;
  border: 1px solid #dce2e0;
  padding: 10px 14px;
  font-weight: 600;
  /* Premium input feel */
  background-color: #fff;
  color: #2c3e50;
  transition: all 0.2s ease;
  min-height: 48px;
}

.datebar .form-control:focus,
.datebar .form-select:focus,
.schedule-filter .form-control:focus,
.schedule-filter .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--green-1);
}

.datebar-actions {
  grid-area: btn;
  min-width: 220px;
}

/* Button override */
#btnSetDates,
#btnCheckAvailability {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--teal), var(--green-3));
  border: none;
  box-shadow: 0 8px 16px rgba(15, 111, 107, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

#btnSetDates:hover,
#btnCheckAvailability:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 111, 107, 0.3);
}

/* datebar layout helpers */
.datebar-field--start {
  grid-area: start;
}

.datebar-field--end {
  grid-area: end;
}

.datebar-field--time {
  grid-area: time;
}

.datebar-field--dur {
  grid-area: dur;
}

@media (max-width: 767px) {
  .datebar-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "start" "end" "time" "dur" "btn";
  }

  .datebar-actions {
    min-width: auto;
  }
}

/* SECTION TITLE */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
}

/* FLOW */
.flow-card {
  position: relative;
  /* <--- tambah ini */
  background: #0e635d;
  border-radius: 22px;
  padding: 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(4, 24, 22, .12);
  transition: .35s;
}

.flow-step-badge {
  position: absolute;
  top: 10px;
  left: 16px;
  /* kalau mau di kanan atas: ganti left:16px; jadi right:16px; */
  z-index: 3;
  background: white;
  color: #0e635d;
  font-weight: 800;
  font-size: .9rem;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

@media (max-width:575px) {
  .flow-step-badge {
    top: 8px;
    left: 12px;
    font-size: .8rem;
    padding: 2px 8px;
  }
}


.flow-thumb {
  background: #eaf3f1;
  border-radius: 14px;
  height: 130px;
  overflow: hidden;
}

.flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(max-width:575px) {
  .flow-thumb {
    height: 100px;
  }
}

.flow-caption {
  text-align: center;
  font-weight: 800;
  margin-top: 10px;
}

.flow-card:hover,
.flow-card.tap-active {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 30px rgba(5, 48, 44, .28);
}

/* Grid 5 kolom di lg */
@media(min-width:992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ITEM CARD */
.item-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  transition: .35s;
}

.item-thumb {
  position: relative;
  background: #f0f2f1;
  overflow: hidden;
}

.item-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform .35s;
}

.item-card:hover,
.item-card.tap-active {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

.item-card:hover .item-thumb img,
.item-card.tap-active .item-thumb img {
  transform: scale(1.06);
}

.badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #167c73;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: .25rem .6rem;
  font-size: .85rem;
}

.qty-actions {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: .35rem;
}

.qty-btn {
  background: #0f6f6b;
  color: #fff;
  border: none;
  border-radius: 7px;
  width: 28px;
  height: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}

.qty-btn:hover {
  transform: scale(1.06);
}

.qty-btn:active {
  transform: scale(0.96);
}

.item-body {
  padding: 12px;
  text-align: center;
}

.item-desc {
  font-weight: 300;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 6px;
  /* Reduced gap */
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-line-clamp: 2;
  /* Explicit dup for some browsers maybe? Just keep it standard */
  /* Fallback logic mostly handled by browsers, just stick to standard webkit box */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}



/* CTA */
.cta-card {
  text-decoration: none;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #167c73, #2aa178);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: .35s;
  min-height: 84px;
}

.cta-card:hover,
.cta-card.tap-active {
  transform: translateY(-6px) scale(1.03);
}

.cta-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8fff0;
  color: #146757;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* REVEAL ANIMATE */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: .9s;
}

.reveal-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Efek scale hanya di layar besar */
@media (min-width: 992px) {
  .items-grid>[class*="col-"] {
    transition: transform .3s ease, opacity .3s ease;
  }

  .items-grid:hover .item-card,
  .items-grid:hover .cta-card {
    transform: scale(0.90);
    opacity: 0.6;
  }

  .items-grid .item-card:hover,
  .items-grid .cta-card:hover {
    transform: scale(1.12);
    opacity: 1;
    z-index: 3;
  }

  .item-card.is-expanded {
    transform: scale(1.12) !important;
    opacity: 1 !important;
    z-index: 3;
  }

  .items-grid.has-expanded .item-card:not(.is-expanded),
  .items-grid.has-expanded .cta-card:not(.is-expanded) {
    transform: scale(0.90);
    opacity: 0.6;
  }
}

/* Floating Checkout (FAB) */
.fab-checkout {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #167c73, #0f6f6b);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  z-index: 1200;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.fab-checkout:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.fab-checkout:active {
  transform: translateY(0) scale(0.98);
}

.fab-checkout.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.1);
}

.fab-checkout .bi {
  font-size: 22px;
  line-height: 1;
}

.fab-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  background: #dc3545;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(220, 53, 69, .45);
}

@media (max-width: 575px) {
  .fab-checkout {
    right: 16px;
    bottom: 16px;
  }
}

/* FOOTER */
.site-footer {
  background: #eaf6ee;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

/* FAB Contact (WA) */
.fab-contact {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 1200;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fab-contact:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.fab-contact:active {
  transform: translateY(0) scale(0.98);
}

.fab-contact .bi {
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 575px) {
  .fab-contact {
    right: 16px;
    bottom: 84px;
  }
}