/* Nexus mobile layer (Nov 2026). Loaded last on every page; applies only on phones/small tablets.
   Overrides earlier stacked mobile rules so the header, menu and hero behave consistently. Desktop is unaffected. */
@media (max-width: 760px) {
  /* ---------- compact one-row header ---------- */
  .nx-nav-reveal { display: none !important; }
  .nx-head { position: sticky !important; top: 0 !important; z-index: 1000 !important; padding: 0 !important; background: #fff !important; box-shadow: 0 1px 0 #e3ece7, 0 4px 14px rgba(0,0,0,.04) !important; will-change: auto !important; transform: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; contain: none !important; }
  .nx-head-in { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; padding: 8px 14px !important; min-height: 60px !important; width: 100% !important; max-width: none !important; }
  .nx-brand { min-width: 0 !important; flex: 1 1 auto !important; gap: 10px !important; }
  .nx-brand img { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; }
  .nx-brand strong { font-size: 16px !important; line-height: 1.15 !important; white-space: nowrap !important; }
  .nx-brand small { font-size: 9.5px !important; letter-spacing: .07em !important; white-space: nowrap !important; }
  .nx-tools { display: flex !important; flex: 0 0 auto !important; gap: 8px !important; width: auto !important; margin: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; }
  .nx-tools > *:not(.nx-m-btn) { display: none !important; }
  .nx-m-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #cfe0d6; background: #eef5f1; color: #1f5a45; text-decoration: none; cursor: pointer; padding: 0; }
  .nx-m-btn svg { width: 22px; height: 22px; }
  .nx-m-btn.nx-m-menu { background: #1f5a45; border-color: #1f5a45; color: #fff; }

  /* ---------- full-screen menu ---------- */
  nav.nx-nav { display: none !important; }
  html.nx-menu-open, html.nx-menu-open body { overflow: hidden !important; }
  html.nx-menu-open nav.nx-nav { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; justify-content: flex-start !important; position: fixed !important; top: var(--nxm-top, 61px) !important; left: 0 !important; right: 0 !important; bottom: 0 !important; height: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 14px 16px 40px !important; gap: 8px !important; background: #fff !important; overflow-y: auto !important; overflow-x: hidden !important; z-index: 999 !important; border: 0 !important; border-top: 1px solid #e3ece7 !important; border-radius: 0 !important; scrollbar-width: none; }
  html.nx-menu-open nav.nx-nav > a { display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 52px !important; padding: 12px 16px !important; font-size: 17px !important; font-weight: 600 !important; border-radius: 12px !important; background: #f4f8f6 !important; color: #1d2a24 !important; white-space: normal !important; width: auto !important; border: 0 !important; box-shadow: none !important; }
  html.nx-menu-open nav.nx-nav > a::after { content: "›"; font-size: 22px; color: #7a9187; }
  html.nx-menu-open nav.nx-nav > a[aria-current="page"], html.nx-menu-open nav.nx-nav > a.active { background: #1f5a45 !important; color: #fff !important; }
  html.nx-menu-open nav.nx-nav > a[aria-current="page"]::after, html.nx-menu-open nav.nx-nav > a.active::after { color: #cfe7dc; }
  .nx-m-extra { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #e3ece7; }
  .nx-m-extra a, .nx-m-extra button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid #cfe0d6; background: #fff; color: #1f5a45; }
  .nx-m-extra .nx-m-cta { background: #1f5a45; border-color: #1f5a45; color: #fff; }
  .nx-m-extra .nx-m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nx-m-extra p { margin: 6px 2px 0; font-size: 13px; color: #5f6f67; text-align: center; }
  html.nx-menu-open .nx-m-bar { display: none !important; }

  /* search / accessibility panels open as a clean sheet under the header */
  #nx-search-panel.open, #nx-access-panel.open { position: fixed !important; top: var(--nxm-top, 61px) !important; left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; border-radius: 0 0 16px 16px !important; z-index: 1001 !important; box-shadow: 0 12px 30px rgba(0,0,0,.12) !important; }
  #nx-search-panel.open form { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  #nx-search-panel.open input { font-size: 16px !important; min-height: 48px !important; width: 100% !important; }

  /* ---------- home hero: stack text, then photo ---------- */
  .herogrid { display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important; }
  .herogrid > * { min-width: 0 !important; max-width: 100% !important; }
  .herogrid > .nx-slideshow-compact { width: 100% !important; max-width: 360px !important; margin: 0 auto !important; }
  .hero { padding-top: 22px !important; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px) !important; line-height: 1.12 !important; }
  .hero .eyebrow { font-size: 12px !important; }
  .hero-actions { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; text-align: center !important; }

  /* ---------- comfortable tap targets ---------- */
  main .btn, main button, main .nx-primary, footer a { min-height: 44px; }
  main .btn, main .nx-primary { display: inline-flex; align-items: center; }
  footer a { display: inline-flex; align-items: center; }
  input, select, textarea { font-size: 16px !important; } /* stops iPhone zooming into form fields */

  /* ---------- sticky Call / Request Care bar ---------- */
  .nx-m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid #dfe7e2; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .nx-m-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .nx-m-bar svg { width: 19px; height: 19px; }
  .nx-m-bar .nx-m-call { background: #eef5f1; color: #1f5a45; border: 1px solid #cfe0d6; }
  .nx-m-bar .nx-m-req { background: #1f5a45; color: #fff; }
  body { padding-bottom: 80px !important; }
  .nx-m-hide { display: none !important; }
}
@media (min-width: 761px) {
  .nx-m-btn, .nx-m-extra, .nx-m-bar { display: none !important; }
}
