/* Site chrome: header, navigation, footer */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); border-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem;
}
.brand span.accent { color: var(--accent-dark); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.94rem; font-weight: 600; color: var(--text-muted); position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary-dark); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink-900); position: relative; transition: transform .2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  position: fixed; inset: 84px 0 auto 0; z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 24px;
  box-shadow: var(--shadow);
}
.mobile-nav a { display: block; padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--ink-100); }

.site-footer { background: var(--primary-dark); color: #cbd8ef; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { color: #9db3dc; margin-top: 14px; max-width: 280px; font-size: 0.92rem; }
.footer-heading { color: var(--white); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: #b7c6e8; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.82rem; color: #7f92bd; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
