/* HeliSense - shared site chrome: tokens, reset, header/nav/burger, footer.
   Linked by the home page and all non-legal pages. The legal pages
   (privacy/terms) use a wider container and keep their own inline styles. */

:root {
  --primary-color: #0b5cad;
  --primary-hover: #094a8c;
  --brand-band: #054d94;
  --text-dark: #0a0a0a;
  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --text-light: #737373;
  --bg-page: #ffffff;
  --bg-light: #f5f7fa;
  --bg-tint: #eef3f9;
  --surface: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 34px rgba(6, 32, 64, 0.10);
  --shadow-shot: 0 22px 48px rgba(6, 32, 64, 0.22);
  --radius-lg: 1.25rem;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background-color: var(--bg-page); scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: var(--primary-color); }

main { flex: 1 0 auto; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #054d94;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.brand-link:hover { transform: translateY(-1px); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: #ffffff; }

.site-nav a[aria-current="page"] { color: #ffffff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.site-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px; }

@media (max-width: 560px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.92rem; }
}

/* Logo is a baked banner (blue->white fade, no transparency) for a light backdrop. */
.site-logo {
  height: 3rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo { height: 5.0rem; }
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  padding: 2.75rem 0;
}

.site-footer .container { text-align: center; }

.footer-links { margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 600; }

.footer-links a { color: var(--text-primary); text-decoration: none; }

.footer-links a:hover { color: var(--primary-color); text-decoration: underline; }

.footer-links span { margin: 0 0.6rem; color: var(--text-light); }

.footer-legal-links { margin: 0 0 0.75rem; font-size: 0.9375rem; }

.footer-legal-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }

.footer-legal-links a:hover { color: var(--primary-color); text-decoration: underline; }

.footer-legal-links span { margin: 0 0.625rem; color: var(--text-light); }

.footer-copyright { margin: 0 0 0.4rem; font-size: 0.875rem; color: var(--text-light); }

.footer-fine { margin: 0; font-size: 0.8rem; color: var(--text-light); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: #fff; cursor: pointer; }

.nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.nav-toggle svg { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.nav-toggle .icon-close { display: none; }

.site-header.nav-open .nav-toggle .icon-open { display: none; }

.site-header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.35rem 0 0.6rem; background: #054d94; border-top: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.20); display: none; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 1.5rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { text-decoration: none; background: rgba(255, 255, 255, 0.10); }
}
