/* ==========================================================================
   site-chrome.css — Unified header + footer for ALL pages.
   Self-contained and fully scoped under .site-header / .site-footer with
   literal light values, so it renders identically regardless of a page's own
   theme (landing.css, styles.css, subpage.css, or SnapV inline styles).
   Load this LAST in <head>. Behavior (mobile toggle + logo long-press) is in
   js/site-chrome.js.
   ========================================================================== */

/* ---- Shared font for the chrome (matches the landing page) ---- */
.site-header,
.site-header *,
.site-footer,
.site-footer * {
  font-family: "Inter", "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header — glass, sticky
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #DCE6FA;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 16px;
}

.site-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-header .nav-logo__img { height: 32px; width: auto; display: block; }
.site-header .nav-logo__text { font-weight: 800; color: #10145F; font-size: 1.15rem; }

.site-header .site-nav { margin-left: auto; }

.site-header .nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav-link {
  color: #10145F;
  font-weight: 600;
  text-decoration: none;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: #377CFB; }

/* Header CTA button (matches landing .btn--primary) */
.site-header .site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #F8FAFE;
  background: linear-gradient(135deg, #377CFB, #2345BD);
  box-shadow: 0 12px 32px rgba(55, 124, 251, 0.12);
  transition: box-shadow 200ms ease;
}
.site-header .site-header__cta:hover { box-shadow: 0 0 40px rgba(55, 124, 251, 0.45); }

/* Hamburger toggle */
.site-header .nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #DCE6FA;
  background: none;
  cursor: pointer;
}
.site-header .nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #10145F;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #F8FAFE;
  border-top: 1px solid #DCE6FA;
  padding-block: 64px;
}

.site-footer .footer__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.site-footer .footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer .footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer .nav-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.site-footer .nav-logo__img { height: 32px; width: auto; display: block; }
.site-footer .nav-logo__text { font-weight: 800; color: #10145F; font-size: 1.15rem; }
.site-footer .footer__desc { color: #7B86A8; margin: 0; line-height: 1.6; }

.site-footer .footer__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer .footer__title { font-size: 1rem; color: #10145F; margin: 0 0 4px; }
.site-footer .footer__link { color: #7B86A8; text-decoration: none; }
.site-footer .footer__link:hover,
.site-footer .footer__link:focus { color: #377CFB; }

.site-footer .footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #DCE6FA;
}
.site-footer .footer__copy { color: #7B86A8; margin: 0; }
.site-footer .footer__social { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer .footer__social-link { color: #7B86A8; text-decoration: none; }
.site-footer .footer__social-link:hover { color: #377CFB; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .site-footer .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-header .nav-toggle { display: inline-flex; margin-left: auto; order: 2; }
  .site-header .site-header__cta { display: none; }
  .site-header .site-nav { order: 3; width: 100%; margin-left: 0; }
  .site-header .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding-top: 16px;
  }
  .site-header .nav-list.is-open { display: flex; }

  .site-footer .footer__grid { grid-template-columns: 1fr; }
  .site-footer .footer__bottom { justify-content: flex-start; }
}
