/* ============================================================
   Clickability hotfix — v2
   Loaded after security.css (dependency declared in functions.php).
   Prevents decorative pseudo-elements and hidden overlays from
   intercepting pointer events on links, buttons, and nav items.
   ============================================================ */

/* ── 1. Hidden mobile layers must never intercept clicks ── */
.mobile-backdrop,
.mobile-overlay {
  pointer-events: none;
}
.mobile-backdrop.open,
.mobile-overlay.open {
  pointer-events: auto;
}

/* ── 2. Decorative security overlays must not block interaction ── */
/* These are the ::after covers placed on image containers in       */
/* security.css (section 6). pointer-events:none makes them        */
/* invisible to click/tap events while still rendering visually.   */
.hero-bg-image::after,
.portfolio-img-wrap::after,
.case-study-img::after,
.blog-thumbnail::after {
  pointer-events: none !important;
}

/* ── 3. Button sheen / hover layers must not sit above the        */
/*    clickable target. Every page CSS redeclares .btn::after      */
/*    without pointer-events:none — this rule overrides them all.  */
.btn::before,
.btn::after,
button::before,
button::after,
a.btn::before,
a.btn::after,
input[type="submit"]::before,
input[type="submit"]::after {
  pointer-events: none !important;
}

/* ── 4. Common decorative card overlays (::before / ::after) ── */
.service-card::before,
.service-card::after,
.pricing-card::before,
.pricing-card::after,
.team-card::before,
.team-card::after,
.portfolio-card::before,
.portfolio-card::after,
.case-study-card::before,
.case-study-card::after,
.contact-option-card::before,
.contact-option-card::after,
.offer-card::before,
.offer-card::after,
.result-card::before,
.result-card::after,
.type-card::before,
.type-card::after,
.feat-card::before,
.feat-card::after,
.testi-slide::before,
.testi-slide::after,
.pcard::before,
.pcard::after,
.metric-card::before,
.metric-card::after,
.cert-card::before,
.cert-card::after,
.blog-card::before,
.blog-card::after,
.svc-card::before,
.svc-card::after,
.proj-card::before,
.proj-card::after {
  pointer-events: none !important;
}

/* ── 5. Hero / section decorative overlays ── */
.hero-section::before,
.hero-section::after,
.hero-inner::before,
.hero-inner::after,
.slide-bg-overlay,
.aip-main-overlay,
.about-section::before {
  pointer-events: none !important;
}

/* ── 6. Ensure intended interactive controls are always            */
/*    reachable above any nearby decorative layers.                 */
a,
button,
input[type="submit"],
input[type="button"],
.btn,
.nav-link,
.nav-call-btn,
.mobile-nav-item,
.mobile-sub-item,
.pcard-link,
.po-close,
.hamburger,
.mobile-close,
.mega-item,
.faq-btn,
.carousel-btn,
.carousel-dot,
.tcar-btn,
.tcar-dot,
.social-link,
.tag-chip,
.cat-btn,
.footer-col a,
.footer-legal a,
[role="button"],
[onclick],
summary {
  position: relative;
  z-index: 2;
}

/* ── 7. Restore pointer cursor on interactive elements inside      */
/*    cards that had cursor:default set by security.css             */
.service-card a,
.service-card button,
.service-card .btn,
.pricing-card a,
.pricing-card button,
.pricing-card .btn,
.team-card a,
.team-card button,
.portfolio-card a,
.portfolio-card button,
.cert-card a,
.cert-card button,
.blog-card a,
.blog-card button,
.svc-card a,
.svc-card button,
.proj-card a,
.proj-card button {
  cursor: pointer !important;
}


/* ═══════════════════════════════════════════════════════════════════
 * NAV CALL BUTTON — FINAL RESPONSIVE FIX
 * Desktop/laptop: hidden completely. Tablet/mobile: visible as a
 * premium rounded brand-colour pill like the supplied reference.
 * ═══════════════════════════════════════════════════════════════════ */

@media (min-width: 961px) {
  body .nav .nav-inner .nav-mobile-controls {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body .nav .nav-inner .nav-mobile-controls .nav-call-btn,
  body .nav .nav-inner a.nav-call-btn {
    display: none !important;
  }
}

@media (max-width: 960px) {
  body .nav .nav-inner .nav-mobile-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
  }
}

body .nav .nav-inner a.nav-call-btn {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 11px !important;
  min-width: 126px !important;
  height: 48px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--green, #00C853) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(0, 200, 83, .28) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 20 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

@media (max-width: 960px) {
  body .nav .nav-inner a.nav-call-btn {
    display: inline-flex !important;
  }
}

body .nav .nav-inner a.nav-call-btn:hover,
body .nav .nav-inner a.nav-call-btn:focus-visible {
  background: var(--green-dark, #00A846) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 34px rgba(0, 200, 83, .36) !important;
  outline: none !important;
}

body .nav .nav-inner a.nav-call-btn:active {
  transform: translateY(0) scale(.98) !important;
  box-shadow: 0 6px 18px rgba(0, 200, 83, .24) !important;
}

body .nav .nav-inner a.nav-call-btn .nav-call-label {
  display: inline-block !important;
  color: #ffffff !important;
  font-family: var(--font-d, Manrope, Inter, sans-serif) !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  line-height: 1 !important;
}

body .nav .nav-inner a.nav-call-btn svg {
  width: 23px !important;
  height: 23px !important;
  display: block !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 2.6 !important;
}

@media (max-width: 480px) {
  body .nav .nav-inner a.nav-call-btn {
    min-width: 112px !important;
    height: 44px !important;
    padding: 0 16px !important;
    gap: 9px !important;
  }

  body .nav .nav-inner a.nav-call-btn .nav-call-label {
    font-size: .84rem !important;
  }

  body .nav .nav-inner a.nav-call-btn svg {
    width: 21px !important;
    height: 21px !important;
  }
}

@media (max-width: 360px) {
  body .nav .nav-inner a.nav-call-btn {
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body .nav .nav-inner a.nav-call-btn .nav-call-label {
    display: none !important;
  }
}

/* === GET V30 FINAL CALL BUTTON VISIBILITY OVERRIDE === */
@media (min-width: 961px){#nav .nav-mobile-controls,#nav .nav-mobile-controls .nav-call-btn,#nav a.nav-call-btn{display:none !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;}}
@media (max-width: 960px){#nav .nav-mobile-controls{display:flex !important;visibility:visible !important;opacity:1 !important;pointer-events:auto !important;}#nav .nav-mobile-controls .nav-call-btn{display:inline-flex !important;}}
