/* CapsicoHealth — standalone-page "chrome" (header/nav/footer + page-level resets).
   This file is HAND-MAINTAINED and lives ONLY in CapsicoRoot. It is NOT copied from
   CapsicoWebStatic and is NOT overwritten by set_landing_agents.cmd.

   The content styling (colors, hero, buttons, cards, etc.) lives in site.css, which IS
   copied verbatim from the ground-truth fragment at
   /CapsicoWebStatic/WebContent/marketing/agents/site.css (scoped to #AGENTS_MAIN).

   This file supplies the two things the fragment intentionally has no opinion about:
   1) Page-level resets/chrome (header/nav/footer) needed only for a standalone document —
      the header/footer markup itself is generated at runtime by site.js.
   2) A small override that undoes the SPA-only positioning the ground-truth site.css
      applies to #AGENTS_MAIN (position:absolute/height:100%), since a standalone page
      just wants #AGENTS_MAIN to sit in normal document flow. Must be linked AFTER
      site.css so the cascade lets it win. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Undo the SPA-panel positioning from the ground-truth fragment CSS for standalone flow. */
#AGENTS_MAIN { position: static; height: auto; overflow-y: visible; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 27, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2f4a7a, #86b4ff);
  display: grid; place-items: center; font-size: .82rem; color: #fff;
  flex-shrink: 0;
}
.brand span.light { color: var(--teal-2); }

.nav-links { display: flex; justify-content: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .93rem;
  font-weight: 600;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--teal-2); }

.nav-cta { justify-self: end; }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Footer ---------- */
.site-footer { background: #10141b; color: rgba(255,255,255,.62); padding: 3rem 0 1.6rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .82rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
}
