/* ================================================================
   Safety Net.Css
   Global override net: WhatsApp floats, NJT popup, TS2 page, low-contrast greys.
   Source: additional-css-v3.5.css sections § 8  CROSS-BROWSER / MOBILE UTILITIES, L3966-4015
   This file is enqueued from astra_child_enqueue_styles() in
   functions.php. Keep it out of the Customizer - it is versioned in git.
   ================================================================ */

/* ================================================================
   § 8  CROSS-BROWSER / MOBILE UTILITIES
   These are intentionally scoped to wrapper classes only.
================================================================ */

/* Sticky header fix for iOS Safari */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Search icon sizing — Astra SVG */
.ast-header-search svg {
    width: 20px !important;
    height: 20px !important;
    max-width: none !important;
}

/* Ensure search icon always visible on desktop */
.ast-header-search {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Hide search on mobile (hamburger replaces it) */
@media (max-width: 921px) {
    .ast-header-search { display: none !important; }
}

/* ==========================================================
   NJT WP WhatsApp PLUGIN (wp-whatsapp) - floating button
   The live floating button is rendered by the plugin's JS:
   .wa__btn_popup_icon default bg #2db742 fails contrast for
   its white SVG glyph (2.64:1, needs >=3:1). Override to the
   AA-safe green used elsewhere on the site.
   ========================================================== */
.wa__btn_popup .wa__btn_popup_icon {
    background: #1E8449 !important;
}


/* ================================================================
   section 14  SOURCE-LEVEL PALETTE FIXES - FALLBACK SAFETY NET (25 Oct 2026)
   Theme CSS files + NJT wp-whatsapp plugin still ship the old palette.
   They are being fixed at source and re-uploaded; these rules keep the
   live site AA-compliant until that upload lands.
   Wrapper-class rules match the theme specificity exactly; the ROI and
   Times Square 2 pages carry their own inline !important rules, so
   those overrides use body / body.page-id-4975 specificity.
   ================================================================ */

/* --- CTA buttons: white on green --- */
body .ref-cta-btn { background: #1E8449; }
body .ref-cta-btn:hover { background: #166534; }
body .roi-cta-btn { background: #1E8449 !important; }
body .roi-cta-btn:hover { background: #166534 !important; }
body .rts-cta-btn { background: #1E8449 !important; }
body .rts-cta-btn:hover { background: #166534 !important; }

/* --- Low-contrast greys --- */
.property-card__price-label { color: #64748b; }
.mm2h-ura-wrap .mm2h-faq-icon { color: #64748b; }
.rts-faq-item { border-color: #64748b; }

/* --- WhatsApp floats (not rendered today, kept in sync) --- */
.whatsapp-float { background-color: #1E8449; }
.bgw-wa-float { background: #1E8449; }

/* --- NJT wp-whatsapp plugin popup (site-wide, JS-injected) --- */
.wa__popup_call_btn { background: #1E8449 !important; color: #fff !important; }
.wa__popup_chat_box .wa__popup_heading { background: #166534 !important; color: #fff !important; }
.wa__popup_chat_box .wa__popup_heading .wa__popup_title { color: #fff !important; }
.wa__popup_chat_box .wa__popup_heading .wa__popup_intro { color: rgba(255, 255, 255, 0.93) !important; }
.wa__popup_chat_box .wa__popup_heading .wa__popup_intro a { color: #fff !important; }
.wa__popup_chat_box .wa__popup_notice { color: #64748b !important; }
.wa__popup_chat_box .wa__stt { border-left-color: #1E8449 !important; }
.wa__stt_online { background: #1E8449 !important; }
.wa__stt_online .wa__cs_info .wa__cs_name { color: #fff !important; }
.wa__cs_info .wa__cs_status { background: #166534 !important; color: #fff !important; }
.wa__btn_status { color: #fff !important; }
.wa__member_stt_online { color: #1E8449 !important; }
.wa__member_duty { color: #64748b !important; }
.wa__popup_chat_box_gray .wa__popup_heading_gray { border-top-color: #1E8449 !important; color: #475569 !important; }
.wa__popup_chat_box_gray .wa__popup_heading_gray .wa__popup_title { color: #363c47 !important; }
