/* ============================================================
   Axis Constructions (Pvt) Ltd — homepage mirror
   Small custom layer on top of the vendored Elementor/ElementsKit
   CSS. Everything else is ported 1:1 from the reference site.
   ============================================================ */

/* ---------- Body scroll lock (mobile menu / popup) ---------- */
body.ekit-menu-active,
body.elementor-popup-open {
  overflow: hidden;
}

/* ---------- Video embeds (injected by script.js) ---------- */
.elementor-widget-video .elementor-wrapper {
  --video-aspect-ratio: 16 / 9;
}
.elementor-widget-video .elementor-wrapper iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}

/* Background video (hero) */
.elementor-background-video-container {
  width: 100%;
  height: 100%;
}
.elementor-background-video-embed {
  width: 100%;
  height: 100%;
}
.elementor-background-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- ElementsKit accordion extend ---------- */
.elementskit-accordion .elementskit-card-body {
  transition: max-height 0.35s ease;
}

/* ---------- Elementor popup (Contact Details) ---------- */
.elementor-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 2, 0.6);
  pointer-events: all;
}
.elementor-popup-modal[style*="display: flex"] {
  align-items: center;
  justify-content: center;
}
.elementor-popup-modal .dialog-widget-content {
  background: transparent;
  max-width: 100%;
  width: auto;
  pointer-events: all;
  overflow: visible;
}
.elementor-popup-modal .dialog-message {
  max-height: 100vh;
  width: min(640px, 92vw);
  overflow-y: auto;
  padding: 0;
  background: transparent;
}
.elementor-popup-modal .elementor {
  width: 100%;
}
.elementor-popup-modal .dialog-close-button {
  display: flex;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1f2124;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.elementor-popup-modal .dialog-close-button svg {
  width: 14px;
  height: 14px;
  fill: #1f2124;
}
.elementor-popup-modal .dialog-close-button:hover {
  background: #f0f0f0;
}

/* ensure the raw popup template does not flash before JS wraps it */
.elementor-location-popup {
  display: none;
}
.elementor-popup-modal .elementor-location-popup {
  display: block;
}

/* ---------- Entrance animation polish ---------- */
.animated.fadeIn,
.animated.fadeInRight,
.animated.fadeInLeft,
.animated.slideInRight {
  animation-fill-mode: both;
}

/* AI-inspired Bahria Town hero: existing content, dimensions and theme remain. */
.elementor-1284 .elementor-element.elementor-element-da80643 {
  isolation: isolate;
  background: #171b1c;
}
.elementor-1284 .elementor-element.elementor-element-da80643::before {
  z-index: 1;
  pointer-events: none;
}
.elementor-1284 .elementor-element.elementor-element-da80643 > .elementor-element {
  z-index: 2;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); }
.hero-slide.is-active img { animation: hero-slow-zoom 9s linear both; }
@keyframes hero-slow-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-slider.is-paused .hero-slide img { animation-play-state: paused; }
.elementor-1284 .elementor-element.elementor-element-da80643 > .hero-slider-controls {
  position: absolute; bottom: 24px; left: 50%; right: auto; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 10px; width: auto;
  color: #fff; font-size: 12px; line-height: 1.2;
}
.hero-slider-controls button {
  min-width: 38px; min-height: 38px; padding: 8px 12px; border: 1px solid #ffffff66;
  border-radius: 4px; background: #1119; color: #fff; cursor: pointer; font: inherit;
}
.hero-slider-controls button:hover, .hero-slider-controls button:focus-visible { background: #ffffff26; border-color: #fff; }
.hero-slider-count { font-size: 12px; letter-spacing: 2px; }
@media (max-width: 767px) {
  .elementor-1284 .elementor-element.elementor-element-da80643 > .hero-slider-controls { bottom: 18px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; transform: none; }
}

/* Local property photographs and walkthroughs. */
.hero-slide img { object-position: center 60%; }
.local-property-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #171b1c; border-radius: 4px; }
.property-tour-enquiry { display: flex; position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; color: white; }
.property-tour-enquiry img { width: 100%; height: 100%; object-fit: cover; }
.property-tour-enquiry span { position: absolute; inset: auto 0 0; padding: 28px 18px; background: linear-gradient(transparent, #111e); color: white; font: 500 18px/1.5 Poppins, sans-serif; }

/* Highlight the business name and exact office location. */
.hero-brand-highlight { display: inline-block; padding: 10px 18px; margin-bottom: 18px; border-left: 4px solid #e87b1e; background: #15191deb; color: #ffac58; font: 800 clamp(20px, 3vw, 34px)/1.25 Poppins, sans-serif; letter-spacing: 2px; }
.hero-brand-highlight span { display: block; margin-top: 5px; color: #fff; font-size: 12px; letter-spacing: 4px; }
.office-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(20px, 5vw, 70px); background: #1f2124; color: #fff; text-align: left; }
.office-map-heading strong { color: #ffac58; font: 800 clamp(22px, 3vw, 32px)/1.3 Poppins, sans-serif; letter-spacing: 1px; }
.office-map-heading strong span { color: #fff; }
.office-map-heading p { margin: 6px 0 0; color: #eee; font-size: 14px; }
.office-map-heading a { flex-shrink: 0; padding: 12px 20px; border-radius: 4px; background: #e87b1e; color: #fff; font-weight: 700; }
.office-map-heading a:hover, .office-map-heading a:focus-visible { background: #c65f0c; color: #fff; }
@media (max-width: 600px) { .office-map-heading { flex-direction: column; align-items: flex-start; } .office-map-heading strong span { display: block; font-size: 15px; letter-spacing: 3px; } }

/* Native WhatsApp link stays clickable without the WordPress plugin. */
#ht-ctc-chat { display: block; z-index: 1000; cursor: pointer; text-decoration: none; border-radius: 50%; }
#ht-ctc-chat:focus-visible { outline: 3px solid #1f2124; outline-offset: 5px; }
