/* Stratus Financial — shared header, footer and theme (2026 redesign) */
:root {
  --st-ink: #12192B;
  --st-ink-2: #2B3A5E;
  --st-muted: #4B5368;
  --st-subtle: #5A6278;
  --st-line: #E6E8EE;
  --st-soft: #F6F7F9;
  --st-white: #FFFFFF;
  --st-gold: #D8B55E;
  --st-gold-ink: #8A6A1F;
  --st-gold-tint: #F7F1E3;
  --st-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --st-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --st-header-h: 76px;
}

/* ---------- Header ---------- */
.st-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--st-line);
  font-family: var(--st-body);
}
.st-header-in {
  max-width: 1200px; margin: 0 auto; height: var(--st-header-h);
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.st-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--st-ink); }
.st-brand { gap: 10px; }
.st-mark { width: 34px; height: 40px; flex: none; display: block; }
.st-word { font-family: var(--st-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--st-ink); white-space: nowrap; }
.st-nav { display: flex; align-items: center; gap: 24px; }
.st-nav a { color: #3A4258; text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1; }
.st-nav a:hover { color: var(--st-ink); }
.st-nav a.st-portal { color: var(--st-ink); padding: 11px 16px; border: 1px solid #CBD0DB; border-radius: 999px; }
.st-nav a.st-portal:hover { border-color: var(--st-ink); }
.st-nav a.st-cta { color: var(--st-white); background: var(--st-ink); padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.st-nav a.st-cta:hover { background: var(--st-ink-2); color: var(--st-white); }
.st-nav a:focus-visible, .st-menu-btn:focus-visible, .st-brand:focus-visible { outline: 2px solid var(--st-gold-ink); outline-offset: 3px; }
.st-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.st-menu-btn span { display: block; width: 20px; height: 2px; background: var(--st-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.st-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.st-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.st-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .st-menu-btn { display: flex; }
  .st-nav {
    display: none; position: absolute; top: var(--st-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--st-white); border-bottom: 1px solid var(--st-line);
    padding: 12px 20px 20px; box-shadow: 0 12px 24px rgba(18, 25, 43, 0.08);
  }
  .st-nav.open { display: flex; }
  .st-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--st-soft); }
  .st-nav a.st-portal, .st-nav a.st-cta { text-align: center; margin-top: 8px; padding: 15px 20px; border-bottom: 0; }
  .st-nav a.st-portal { border: 1px solid #CBD0DB; }
}
@media (max-width: 400px) { .st-word { font-size: 18px; } .st-mark { width: 29px; height: 34px; } }

/* ---------- Footer ---------- */
footer.st-footer {
  background: var(--st-soft); color: var(--st-muted); border-top: 1px solid var(--st-line);
  font-family: var(--st-body); text-align: left; padding: 0; margin: 0;
}
.st-footer-in { max-width: 1200px; margin: 0 auto; padding: 56px 24px 28px; display: flex; flex-direction: column; gap: 36px; }
.st-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 32px; }
@media (max-width: 900px) { .st-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .st-footer-grid { grid-template-columns: minmax(0, 1fr); } }
.st-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.st-footer-col h2 { margin: 0 0 2px; font-family: var(--st-body); font-size: 14px; font-weight: 600; color: var(--st-ink); letter-spacing: 0; }
.st-footer .st-footer-col a { color: var(--st-muted); text-decoration: none; }
.st-footer .st-footer-col a:hover { color: var(--st-ink); text-decoration: underline; }
.st-footer-brand { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--st-muted); max-width: 320px; }
.st-footer-brand .st-word { font-size: 20px; }
footer.st-footer .st-tagline { margin: 4px 0 0; padding: 0; font-family: var(--st-body); font-size: 15px; line-height: 1.6; color: var(--st-ink-2); max-width: 34ch; text-align: left; }
footer.st-footer .st-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer.st-footer .st-meta li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; color: var(--st-muted); }
footer.st-footer .st-meta svg { flex: none; color: var(--st-gold-ink); }
footer.st-footer .st-meta a { color: var(--st-muted); text-decoration: none; }
footer.st-footer .st-meta a:hover { color: var(--st-ink); text-decoration: underline; }
.st-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #E0E3EA; font-size: 13px; color: var(--st-subtle); }
.st-footer .st-footer-bottom a { color: var(--st-ink); }
.st-footer-bottom nav, .st-footer-bottom .st-legal { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  .st-menu-btn span { transition: none; }
}

/* Blog article heroes: one consistent brand look */
header.article-hero { background: #12192B !important; }
header.article-hero h1, header.article-hero .article-meta, header.article-hero .breadcrumb, header.article-hero .breadcrumb a { color: #FFFFFF; }
header.article-hero .breadcrumb a { color: #E3C77E; }
