/* Answered HVAC — shared site navigation (all pages)
   Top header: always visible (sticky). Footer links: on every page.
   Phones: pinned "Call Lisa" button; the other page links appear
   above it only once the visitor reaches the bottom of the page. */

.an-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,15,24,0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #363c58;
  padding: 0 1.5rem;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.4;
}
.an-header *, .an-mobilebar * { box-sizing: border-box; }
.an-header-inner {
  max-width: 1100px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.an-logo { font-size: 1.1rem; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.an-logo span { color: #00c8ff; }
.an-links { display: flex; align-items: center; gap: 0.25rem; }
.an-links a {
  color: #a0a8c0; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.75rem; border-radius: 8px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.an-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.an-links a.active { color: #00c8ff; }
.an-links a.an-cta { background: #f05500; color: #fff; font-weight: 700; padding: 0.45rem 1rem; margin-left: 0.25rem; }
.an-links a.an-cta:hover { background: #d44a00; color: #fff; }

/* Pinned phone bar (hidden on larger screens) */
.an-mobilebar { display: none; }

/* Homepage: the old React bottom tab bar is replaced by the bar above */
#root nav.fixed.bottom-0 { display: none !important; }
#root footer.pb-28 { padding-bottom: 3rem !important; }

@media (max-width: 640px) {
  .an-header { padding: 0 1rem; }
  .an-header-inner { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 0 0.35rem; }
  .an-logo { font-size: 1.05rem; text-align: center; }
  .an-links { justify-content: space-between; gap: 0; margin-top: 0.3rem; }
  .an-links a { font-size: 0.8rem; padding: 0.7rem 0.3rem; } /* about 44px tall tap targets */
  .an-long { display: none; } /* "ROI Calculator" shows as "Calculator" on phones */
  .an-links a.an-cta { display: none; } /* Call Lisa lives in the pinned bar on phones */

  body { padding-bottom: 150px; }

  .an-mobilebar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(13,15,24,0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid #363c58;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.3;
  }
  .an-more {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem;
    max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease, visibility 0s linear .25s;
  }
  .an-mobilebar.an-at-bottom .an-more {
    max-height: 120px; opacity: 1; visibility: visible; margin-bottom: 0.55rem;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease, visibility 0s;
  }
  .an-more a {
    display: block; text-align: center; text-decoration: none;
    color: #d4d8e8; font-size: 0.72rem; font-weight: 600;
    background: #1e2133; border: 1px solid #363c58; border-radius: 8px;
    padding: 0.5rem 0.15rem; white-space: nowrap;
  }
  .an-more a.active { color: #00c8ff; border-color: rgba(0,200,255,0.4); }
  .an-call {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: #f05500; color: #fff; text-decoration: none;
    font-size: 1rem; font-weight: 800; border-radius: 10px; padding: 0.8rem 1rem;
    box-shadow: 0 4px 18px rgba(240,85,0,0.35);
  }
  .an-call:active { background: #d44a00; }
  .an-call svg { width: 18px; height: 18px; flex: none; }
}

/* Fallback footer (homepage shell only): hidden whenever the React page renders its own footer */
.an-footer {
  border-top: 1px solid #363c58; padding: 2rem 1.5rem; text-align: center;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.75rem; line-height: 1.6; color: #6b7490; background: #09090f;
}
.an-footer p { margin: 0; }
.an-footer a { color: #6b7490; text-decoration: none; }
.an-footer a:hover { color: #00c8ff; }
#root:empty ~ .an-footer { display: none; }
body:has(#root footer) .an-footer { display: none; }
