:root {
  --hg-bf-wa: #25d366;
  --hg-bf-wa-dark: #1ebe57;
  --hg-bf-gold: #f0c14b;
  --hg-bf-red-2: #e63946;
}

/* Top promo bar → WhatsApp */
.hg-bf-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  background: linear-gradient(90deg, #0a0a0a 0%, #2a0a0c 50%, #0a0a0a 100%);
  border-bottom: 2px solid var(--hg-bf-red-2);
  font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
}
body.hg-bf-has-bar { padding-top: 48px; }
body.hg-bf-has-bar .gosn-header { top: 0 !important; }
.hg-bf-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  line-height: 1.45;
}
.hg-bf-bar__badge {
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(180deg, #e63946, #c1121f);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.hg-bf-bar__cta {
  border: 1px solid var(--hg-bf-gold);
  color: var(--hg-bf-gold);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.hg-bf-bar__text strong { color: var(--hg-bf-gold); }

/* Modal = bare image only (no frame / card / bg) → WhatsApp */
.hg-bf-modal[hidden] { display: none !important; }
.hg-bf-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: grid !important;
  place-items: center;
  padding: 0.5rem;
  background: transparent !important;
}
.hg-bf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.hg-bf-modal__panel {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: max-content;
  max-width: min(420px, 88vw);
  max-height: 92vh;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  line-height: 0;
}
.hg-bf-modal__panel a {
  display: block;
  line-height: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hg-bf-modal__panel img {
  width: auto;
  max-width: min(420px, 94vw);
  height: auto;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}
.hg-bf-modal__close {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/*
  Exact WA pill from design reference:
  flat #25D366, fully rounded, WHITE icon + WHITE text, no white circle.
*/
.hg-bf-wa-btn,
a.hg-bf-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  min-width: 200px;
  min-height: 52px;
  padding: 0.85rem 1.75rem !important;
  border-radius: 999px !important;
  background: #25d366 !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: Tajawal, Tahoma, sans-serif !important;
}
.hg-bf-wa-btn:hover,
.hg-bf-wa-btn:focus {
  background: #1ebe57 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.hg-bf-wa-btn svg {
  width: 1.45rem !important;
  height: 1.45rem !important;
  fill: #fff !important;
  flex: 0 0 auto;
  display: block !important;
}
/* kill old white-circle icon style if any leftover markup */
.hg-bf-wa-btn__icon {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  place-items: center !important;
  padding: 0 !important;
}

body.hg-bf-has-bar .gosn-hero__cta-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
body.hg-bf-has-bar .gosn-hero__cta-bar > *:not(.hg-bf-wa-btn) {
  display: none !important;
}

/* Hide Click-to-Chat until scroll; then force same green pill look */
#ht-ctc-chat,
.ht-ctc.ht-ctc-chat {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s !important;
}
body.hg-bf-scrolled #ht-ctc-chat,
body.hg-bf-scrolled .ht-ctc.ht-ctc-chat {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Our own floating WA (backup if CTC missing) */
.hg-bf-float {
  position: fixed !important;
  left: 14px !important;
  bottom: 18px !important;
  z-index: 2147483001 !important;
  display: none !important;
}
body.hg-bf-scrolled .hg-bf-float {
  display: block !important;
}
.hg-bf-float .hg-bf-wa-btn {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0.7rem 1.25rem !important;
  font-size: 1.05rem !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
}

@media (max-width: 879px) {
  body.hg-bf-has-bar .gosn-hero.gosn-hero--visual {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: #000 !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slider__track {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1080 / 1400 !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-hero__bg {
    object-fit: contain !important;
    object-position: center top !important;
    background: #000 !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-hero__cta-bar,
  body.hg-bf-has-bar .gosn-hero .gosn-slider__ui {
    position: relative !important;
    inset: auto !important;
    margin: 10px 12px 14px !important;
    z-index: 2 !important;
  }
}
@media (min-width: 880px) {
  /* Desktop: image drives height — no band/gap under banner */
  body.hg-bf-has-bar .gosn-hero.gosn-hero--visual::after,
  body.hg-bf-has-bar .gosn-hero.gosn-hero--visual::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
  body.hg-bf-has-bar .gosn-hero.gosn-hero--visual {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slider__track {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: transparent !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: none !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slide.is-active {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    height: auto !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slide picture,
  body.hg-bf-has-bar .gosn-hero .gosn-hero__bg {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1920 / 640 !important;
    object-fit: fill !important;
    object-position: center top !important;
    background: transparent !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-hero__cta-bar {
    position: relative !important;
    inset: auto !important;
    margin: 0 auto !important;
    padding-top: 14px !important;
    z-index: 2 !important;
  }
  body.hg-bf-has-bar .gosn-hero .gosn-slider__ui {
    position: relative !important;
    inset: auto !important;
    margin: 0 auto 10px !important;
  }
}
