/* ═══════════════════════════════════════════════════════════════════
   STERLING NORTH — Global Design System
   Version: 1.0
   
   CUSTOMIZATION:
   - All colors, fonts, and spacing are CSS variables below
   - Change a variable here → updates across every page
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors — Brand */
  --color-navy:       #0F1923;
  --color-navy-light: #1A2836;
  --color-accent:     #2B5CE6;
  --color-accent-dark:#1B3FA0;
  --color-accent-ghost: rgba(43, 92, 230, 0.04);
  --color-accent-light: rgba(43, 92, 230, 0.08);

  /* Colors — Neutral */
  --color-white:      #FFFFFF;
  --color-bg:         #FFFFFF;
  --color-tint:       rgba(15, 25, 35, 0.018);
  --color-tint-warm:  rgba(15, 25, 35, 0.028);
  --color-text:       #191919;
  --color-text-mid:   #555555;
  --color-text-muted: #999999;
  --color-border:     #E5E2DC;
  --color-rule:       #E5E2DC;

  /* Colors — Semantic */
  --color-green:      #1A8750;
  --color-green-bg:   #EDFAF2;
  --color-orange:     #D95E2B;
  --color-orange-bg:  #FEF3EE;

  /* Typography */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Merriweather', Georgia, serif;
  /* FONTS: Montserrat for headings, Merriweather for body text.
     Google Fonts <link> must be in each page's <head>.
     Already included in the pillar page template. */

  /* Spacing */
  --section-padding:    80px 0;
  --section-padding-sm: 48px 0;
  --content-max-width:  960px;
  --content-padding:    0 24px;

  /* Borders & Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  /* Shadows */
  --shadow-btn: 0 2px 8px rgba(43, 92, 230, 0.12);
  --shadow-btn-hover: 0 6px 20px rgba(43, 92, 230, 0.25);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-accent-dark);
}

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.sn-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

.sn-section {
  padding: var(--section-padding);
}

.sn-section--tint {
  background: var(--color-tint);
}

.sn-section--tint-warm {
  background: var(--color-tint-warm);
}

.sn-section--dark {
  background: var(--color-navy);
  color: #fff;
}

.sn-section--ruled {
  border-top: 1px solid var(--color-rule);
}

.sn-grid {
  display: grid;
  gap: 32px;
}

.sn-grid--2 { grid-template-columns: 1fr 1fr; }
.sn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sn-grid--2-1 { grid-template-columns: 2fr 1fr; }
.sn-grid--1-2 { grid-template-columns: 1fr 2fr; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
.sn-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.sn-heading-xl {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.sn-heading-lg {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sn-heading-md {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sn-heading-sm {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sn-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.78;
  color: var(--color-text-mid);
}

.sn-body--sm {
  font-size: 13px;
}

.sn-body strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.sn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.sn-btn--primary {
  background: #002b5b;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.sn-btn--primary:hover {
  background: #001f45;
  color: #fff;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.sn-btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.sn-btn--secondary:hover {
  background: var(--color-tint);
}

.sn-btn--secondary-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.sn-btn--secondary-light:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sn-btn--sm {
  padding: 10px 22px;
  font-size: 13px;
}

.sn-btn--navy {
  background: var(--color-navy);
  color: #fff;
  border: none;
}
.sn-btn--navy:hover {
  background: var(--color-navy-light);
  color: #fff;
}

/* ─── CARDS ─────────────────────────────────────────────────────── */
.sn-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 28px;
}

.sn-card--flat {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ─── STAT ──────────────────────────────────────────────────────── */
.sn-stat__number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
}

.sn-stat__number--xl {
  font-size: 42px;
}

.sn-stat__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.sn-stat__source {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* ─── TABLE ─────────────────────────────────────────────────────── */
.sn-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.sn-table th {
  background: var(--color-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 20px;
}

.sn-table td {
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.sn-table tr:nth-child(even) td {
  background: var(--color-tint);
}

.sn-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 140px;
}

.sn-table td:last-child {
  color: var(--color-accent);
  font-weight: 500;
}

.sn-table td:nth-child(2) {
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
}

.sn-table td:first-child {
  border-right: 1px solid var(--color-border);
}

/* ─── TAGS ──────────────────────────────────────────────────────── */
.sn-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-ghost);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.sn-tag--pill {
  border-radius: var(--radius-xl);
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── CALLOUT BOX ───────────────────────────────────────────────── */
.sn-callout {
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.sn-callout--warm {
  background: var(--color-tint-warm);
  border: 1px solid var(--color-border);
}

.sn-callout--orange {
  background: var(--color-orange-bg);
  border: 1px solid rgba(217, 94, 43, 0.12);
}

.sn-callout--green {
  background: var(--color-green-bg);
  padding: 14px 18px;
  border-radius: 8px;
}

/* ─── PLACEHOLDER (for wireframe images — remove in production) ── */
.sn-placeholder {
  background: #F0EDE7;
  border-radius: var(--radius-md);
  border: 1.5px dashed #CBC7BE;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ─── HEADER ────────────────────────────────────────────────────── */
.sn-header {
  background: var(--color-navy);
  position: relative;
  z-index: 100;
}

.sn-header__utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.sn-header__utility a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.sn-header__utility a:hover {
  color: #fff;
}

.sn-header__utility-left {
  display: flex;
  gap: 20px;
}

.sn-header__utility-right {
  display: flex;
  gap: 16px;
}

.sn-header__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.sn-header__logo {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  text-decoration: none;
}

.sn-header__logo span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.6;
  margin-top: 2px;
}

.sn-header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sn-header__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-size: 16px;
}
.sn-header__icon:hover {
  color: #fff;
}

/* ─── STICKY NAV ────────────────────────────────────────────────── */
.sn-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 25, 35, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sn-sticky--visible {
  transform: translateY(0);
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.sn-footer {
  background: var(--color-navy);
  color: #fff;
  padding: 48px 0 32px;
}

.sn-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sn-footer__nav {
  display: flex;
  gap: 40px;
}

.sn-footer__nav-group h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}

.sn-footer__nav-group a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.sn-footer__nav-group a:hover {
  color: #fff;
}

.sn-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sn-heading-xl { font-size: 32px; }
  .sn-heading-lg { font-size: 26px; }
  .sn-heading-md { font-size: 22px; }

  .sn-grid--2,
  .sn-grid--3,
  .sn-grid--2-1,
  .sn-grid--1-2 {
    grid-template-columns: 1fr;
  }

  .sn-section {
    padding: 48px 0;
  }

  .sn-header__utility {
    display: none;
  }

  .sn-footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .sn-footer__nav {
    flex-direction: column;
    gap: 24px;
  }

  .sn-table {
    font-size: 12px;
  }

  .sn-table th,
  .sn-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .sn-heading-xl { font-size: 28px; }
  .sn-btn { padding: 12px 20px; font-size: 14px; }
}
