/* Hero Enquire CTA */
.hero_enquire_wrap{
  position: absolute;
  top: 58%;
  left: 0;
  width: 100%;
  z-index: 33;
  text-align: center;
  pointer-events: none;
}

.hero_enquire_btn{
  display: inline-block;
  pointer-events: auto;
  background-color: #6F4600;
  color: #fff7f1;
  font-family: "GT Walsheim Medium";
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 20px 52px;
  border: 1px solid #6F4600;
  -webkit-transition: all .5s ease-out;
  -moz-transition: all .5s ease-out;
  -o-transition: all .5s ease-out;
  transition: all .5s ease-out;
}

.hero_enquire_btn:hover{
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

/* The theme has a global `a:visited, a:hover, a:focus{ color: inherit; }`
   rule that — because it includes the element type (a) — outranks a
   plain class selector in specificity even though both have one
   pseudo-class/class. Once this link is clicked (marked visited), that
   rule wins and the button falls back to inheriting the page's dark
   text color instead of staying white/cream. !important forces our
   color to stick regardless of visited state. */
.hero_enquire_btn:visited,
.hero_enquire_btn:focus{
  color: #fff7f1 !important;
}

.enquire_flicker_text{
  display: inline-block;
  animation: enquire_flicker 4.5s ease-in-out infinite;
}

@keyframes enquire_flicker{
  0%, 87%, 100% { opacity: 1; }
  89% { opacity: 0.5; }
  91% { opacity: 1; }
  93% { opacity: 0.65; }
  95% { opacity: 1; }
}

.scarcity_badge{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  pointer-events: none;
  background-color: rgba(35, 22, 4, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 247, 241, 0.35);
  box-shadow: 0 4px 24px rgba(20, 12, 0, 0.25);
  color: #fff7f1;
  font-family: "GT Walsheim Medium";
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 999px;
  margin: 0 auto 18px;
  white-space: nowrap;
}

.scarcity_badge strong{
  font-weight: 400;
  color: #ffe6c2;
}

.scarcity_sep{
  opacity: 0.55;
}

.scarcity_dot{
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e0a06b;
  flex-shrink: 0;
}

.scarcity_dot::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e0a06b;
  transform: translate(-50%, -50%);
  animation: scarcity_pulse 2.2s ease-out infinite;
}

@keyframes scarcity_pulse{
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.5); }
}

@media screen and (max-width: 39.99875em){
  .hero_enquire_wrap{ top: 54%; }
  .hero_enquire_btn{ padding: 17px 40px; font-size: 0.9em; }
  .scarcity_badge{ font-size: 0.68em; padding: 11px 20px; margin-bottom: 15px; white-space: nowrap; }
}

/* Enquiry form: compact centered popup instead of full-page panel.
   The modal is centered with position:absolute + top/left 50% + transform,
   positioned relative to .reveal-overlay (Foundation keeps that as
   position:fixed covering the real viewport). This never touches
   `display` on either element, so Foundation's own show/hide toggle
   (jQuery .show()/.hide()) keeps working exactly as it always has —
   earlier attempts that set `display` via CSS fought that toggle and
   either broke centering (position:relative doesn't support top/left%
   absolute-style centering) or got the overlay stuck permanently visible
   (a same-or-lower-specificity `display` override always loses to
   Foundation's default .reveal-overlay{display:none} until JS sets an
   inline style, so it can't reliably win either way). */
.reveal-overlay.form_overlay,
.form_overlay.form_overlay{
  background-color: rgba(20, 12, 0, 0.6) !important;
}

.popup_modal{
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  border: none;
}

.popup_modal .close-button{
  top: 14px;
  right: 14px;
  z-index: 2;
}

#Form_Modal.popup_modal{
  width: 90%;
  max-width: 520px;
  min-height: 0;
  height: auto;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 2px;
  background-color: rgba(104, 66, 1, 0.98);
  /* The original theme's #Form_Modal{ top: 0 !important; ... } rule (an
     ID selector) beats the shared .popup_modal centering rule above even
     though both use !important — ID beats class regardless of importance.
     Repeating the centering properties here, scoped to #Form_Modal.popup_modal
     (ID+class), wins that fight. */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
}

#Form_Modal.popup_modal .modal_content_wrap{
  min-height: 0;
  padding: 48px 8px 32px;
}

#Form_Modal.popup_modal .modal_stamp{
  max-width: min(70%, 52px);
  margin-bottom: 16px;
}

@media screen and (max-width: 39.99875em){
  #Form_Modal.popup_modal{
    width: 92%;
    max-height: 90vh;
  }
  #Form_Modal.popup_modal .modal_content_wrap{
    padding: 40px 4px 28px;
  }
}

/* Meet the Developer: video popup */
.meet_developer_row{
  padding: 10px 0 60px;
  text-align: center;
}

.meet_developer_btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  cursor: pointer;
  color: #6F4600;
  font-family: "GT Walsheim Medium";
  font-weight: 400;
  font-size: 0.95em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid #6F4600;
  border-radius: 999px;
  -webkit-transition: all .4s ease-out;
  -moz-transition: all .4s ease-out;
  transition: all .4s ease-out;
}

.meet_developer_btn:hover{
  background-color: #6F4600;
  color: #fff7f1;
}

.meet_developer_icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

#Developer_Video_Modal.video_modal{
  width: min(90vw, 420px, 49.5vh);
  min-height: 0;
  height: auto;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
}

.video_modal_frame{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}

.developer_video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

@media screen and (max-width: 39.99875em){
  .meet_developer_btn{ padding: 13px 26px; font-size: 0.85em; }
}

/* Mobile fixed bar: split into Call + Enquire */
.register_fixed_row{
  border-top: 1px solid #6F4600;
  box-shadow: 0 -4px 16px rgba(20, 12, 0, 0.12);
}

.register_fixed_row .fixed_register{
  border: none;
  font-size: 1.05em;
  padding: 17px 20px 18px;
}

.register_fixed_row .cell:last-child .fixed_register{
  border-left: 1px solid rgba(111, 70, 0, 0.08);
}

.register_fixed_row .fixed_call{
  background-color: #6F4600;
  color: #fff7f1;
}

.register_fixed_row .fixed_call:visited,
.register_fixed_row .fixed_call:focus{
  color: #fff7f1 !important;
}

/* The source theme delays this bar 6s after scrolling before it slides up
   — overridden here so it appears almost immediately. */
body.scrolled .register_fixed_row{
  transition-delay: 0s;
  transition-duration: .25s;
}

.desktop_call{
  white-space: nowrap;
}

/* Render gallery: video replacing static image */
.render_video{
  min-width: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Poster-image overlay: hides the native "tap to play" state until
   the video is confirmed actually playing, then fades away */
.video_cover{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .6s ease-out;
  opacity: 1;
}

.video_cover.is-hidden{
  opacity: 0;
}

#bgvid_cover{
  position: fixed;
  z-index: 25;
}
