/* ============================================================
   VANGUARD BUDGET & ANALYTICS — SHARED STYLES
   vanguardbudgetanalytics.com  |  Light / Guidehouse Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --navy:     #0b2158;
  --navy-dk:  #071540;
  --navy-lt:  #1a3a7a;
  --teal:     #007b6c;
  --teal-lt:  #00a896;
  --amber:    #c97d10;
  --white:    #ffffff;
  --off:      #f5f6f9;
  --off2:     #eef0f5;
  --text:     #1a2240;
  --text-2:   #3d4a6b;
  --muted:    #6b7a9a;
  --border:   #dde2ee;
  --shadow:   0 2px 24px rgba(11,33,88,.09);
  --shadow-h: 0 8px 40px rgba(11,33,88,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy-dk);
  padding: 0 60px;
  display: flex; align-items: center; justify-content: flex-end;
  height: 36px; gap: 24px;
}
.topbar a {
  font-size: .72rem; color: rgba(255,255,255,.55);
  text-decoration: none; letter-spacing: .04em; transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar-div { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

/* ── NAV ── */
#nav {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-hex {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-lt));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
}
.logo-hex::after {
  content: 'V';
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: .95rem; color: #fff;
}
.logo-words { line-height: 1.2; }
.logo-words strong {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-weight: 700; font-size: .88rem; color: var(--navy); letter-spacing: .01em;
}
.logo-words span {
  display: block; font-size: .65rem; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 0 16px; height: 72px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy); border-bottom-color: var(--teal); }
.caret { font-size: .6rem; transition: transform .2s; }
.nav-links > li:hover > a .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-h);
  min-width: 240px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; z-index: 100;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 22px;
  font-size: .84rem; color: var(--text-2);
  text-decoration: none; transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--off); color: var(--navy); }
.nav-cta {
  font-size: .82rem; font-weight: 700;
  color: var(--white); background: var(--teal);
  border: none; padding: 10px 24px; cursor: pointer;
  text-decoration: none; letter-spacing: .01em;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-lt); transform: translateY(-1px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-lt) 60%, #1a4a8a 100%);
  padding: 140px 60px 90px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero::after {
  content: ''; position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,168,150,.15) 0%, transparent 65%);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 18px;
  border-left: 3px solid var(--teal-lt); padding-left: 12px;
}
.page-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: clamp(2.2rem,4vw,3.4rem);
  line-height: 1.12; color: #fff; margin-bottom: 18px;
}
.page-title em { font-style: italic; color: #ffd080; }
.page-sub {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,.72); line-height: 1.75; max-width: 560px;
}

/* ── SECTIONS ── */
.section { padding: 96px 60px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--teal); }
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: clamp(1.9rem,3.5vw,2.8rem);
  line-height: 1.12; color: var(--navy);
}
.section-sub {
  font-size: 1rem; color: var(--text-2);
  line-height: 1.75; max-width: 540px; margin-top: 14px;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); max-width: 1280px; margin: 0 auto; }

/* ── VIEW ALL ── */
.view-all {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 700; color: var(--teal);
  text-decoration: none; transition: gap .2s; white-space: nowrap;
}
.view-all:hover { gap: 12px; }
.view-all::after { content: '→'; }

/* ── BUTTONS ── */
.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700;
  color: var(--white); background: var(--navy);
  border: none; padding: 14px 34px; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.btn-navy:hover { background: var(--navy-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(11,33,88,.3); }
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700;
  color: var(--white); background: var(--teal);
  border: none; padding: 14px 34px; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.btn-teal:hover { background: var(--teal-lt); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700;
  color: var(--navy); background: transparent;
  border: 2px solid var(--navy); padding: 12px 32px;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--teal); padding: 96px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 16px;
}
.cta-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: clamp(2rem,4vw,2.9rem);
  color: #fff; line-height: 1.15; margin-bottom: 18px;
}
.cta-sub { font-size: .98rem; color: rgba(255,255,255,.78); line-height: 1.75; margin-bottom: 36px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 700;
  color: var(--teal); background: #fff;
  border: none; padding: 16px 40px; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.cta-btn:hover { background: #e8f0f8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dk);
  padding: 72px 60px 32px;
}
.footer-top {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: .84rem; color: rgba(255,255,255,.45);
  line-height: 1.75; max-width: 260px; margin-top: 16px;
}
.footer-col h4 {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .84rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
}
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.25); }
.footer-meta { font-size: .65rem; color: rgba(255,255,255,.2); letter-spacing: .04em; }

/* ── ENTITY BAR ── */
.entity-bar { background: var(--navy-dk); padding: 48px 60px; }
.entity-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5,1fr);
}
.eb-item {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.eb-item:first-child { padding-left: 0; }
.eb-item:last-child { border-right: none; }
.eb-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 8px;
}
.eb-val {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: 1.05rem; color: var(--white); line-height: 1.2;
}
.eb-sub { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ── AGENCIES ── */
.agencies-section { background: var(--off); padding: 64px 60px; }
.agencies-inner { max-width: 1280px; margin: 0 auto; }
.agencies-label {
  text-align: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 36px;
}
.agencies-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.agency-pill {
  font-size: .8rem; font-weight: 600;
  color: var(--text-2); background: var(--white);
  border: 1px solid var(--border); padding: 9px 20px;
  transition: all .2s; cursor: default;
}
.agency-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .topbar, #nav .nav-inner, .section, .page-hero,
  .agencies-section, .entity-bar, .cta-band, footer { padding-left: 28px; padding-right: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .entity-bar-inner { grid-template-columns: repeat(3,1fr); gap: 24px; }
}
@media (max-width: 768px) {
  .nav-links, .topbar { display: none; }
  .page-hero { padding: 120px 24px 72px; }
  .section { padding: 64px 24px; }
  .cta-band { padding: 72px 24px; }
  footer { padding: 56px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .entity-bar-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SHARED NAV FOOTER TEMPLATE ── */
.footer-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
