/* ============================================================
   VANGUARD DESIGN SYSTEM — saplicensingexperts.com
   Shared chrome (nav, footer, buttons, progress) for ALL pages.
   Chrome classes are v- prefixed to avoid collision with legacy
   per-page styles. Tokens mirror the vanguard template palette.
   ============================================================ */
:root {
  --v-orange: #FF5A2D;
  --v-orange-deep: #E2451B;
  --v-ink: #16161A;
  --v-paper: #FFFFFF;
  --v-soft: #F6F5F3;
  --v-line: #E7E5E1;
  --v-muted: #6B6B70;
  --v-display: 'Bricolage Grotesque', sans-serif;
  --v-body: 'Instrument Sans', -apple-system, sans-serif;
}

::selection { background: rgba(255,90,45,.25); }

/* ---------- Reading progress bar ---------- */
#vProgress { position: fixed; top: 0; left: 0; height: 4px; background: var(--v-orange); width: 0; z-index: 200; transition: width .1s linear; }

/* ---------- Header / Nav ---------- */
.v-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v-line);
}
.v-nav { display: flex; align-items: stretch; justify-content: space-between; height: 72px; max-width: 1440px; margin: 0 auto; }
.v-nav-left { display: flex; align-items: center; padding-left: 40px; }
.v-logo { text-decoration: none; color: var(--v-ink); font-family: var(--v-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.v-logo span { color: var(--v-orange); }
.v-links { display: flex; list-style: none; align-items: stretch; margin: 0; padding: 0; }
.v-links li { display: flex; }
.v-links > li > a {
  display: flex; align-items: center; padding: 0 20px; text-decoration: none;
  color: var(--v-ink); font-family: var(--v-body); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border-left: 1px solid var(--v-line); transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.v-links > li > a:hover { background: var(--v-soft); color: var(--v-ink); }
.v-links a.v-cta { background: var(--v-ink); color: #fff !important; padding: 0 30px; }
.v-links a.v-cta:hover { background: var(--v-orange); color: #fff !important; }

/* ---------- Dropdowns ---------- */
.v-links li.v-drop-li { position: relative; }
.v-drop-li > a .v-caret {
  display: inline-block; margin-left: 8px; font-size: 9px; line-height: 1;
  transition: transform .3s cubic-bezier(.2,.6,.2,1); color: var(--v-orange);
}
.v-drop-li:hover > a .v-caret, .v-drop-li.open > a .v-caret { transform: rotate(180deg); }
.v-drop-li:hover > a, .v-drop-li.open > a { background: var(--v-soft); }
.v-drop {
  position: absolute; top: 100%; left: -2px; min-width: 320px; z-index: 1100;
  background: var(--v-paper); border: 2px solid var(--v-ink);
  box-shadow: 10px 10px 0 rgba(22,22,26,.07);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .32s cubic-bezier(.2,.6,.2,1), visibility 0s linear .25s;
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.v-drop.right { left: auto; right: -2px; }
.v-drop-li:hover .v-drop, .v-drop-li.open .v-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s ease, transform .32s cubic-bezier(.2,.6,.2,1), visibility 0s;
}
.v-drop a {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  text-decoration: none; color: var(--v-ink); font-family: var(--v-body); font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--v-line); white-space: nowrap;
  transition: background .2s ease, padding-left .25s cubic-bezier(.2,.6,.2,1);
}
.v-drop a:hover { background: var(--v-soft); padding-left: 28px; color: var(--v-ink); }
.v-drop .v-dno {
  font-family: var(--v-display); font-weight: 700; font-size: 11px;
  letter-spacing: .08em; color: var(--v-muted); transition: color .2s ease; min-width: 20px;
}
.v-drop a:hover .v-dno { color: var(--v-orange); }
.v-drop a.v-drop-foot {
  background: var(--v-ink); color: #fff; border-bottom: none;
  justify-content: space-between; font-family: var(--v-display); letter-spacing: .02em;
}
.v-drop a.v-drop-foot:hover { background: var(--v-orange); padding-left: 20px; color: #fff; }

/* ---------- Burger / mobile panel ---------- */
.v-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 0 24px;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.v-burger span { display: block; width: 24px; height: 2px; background: var(--v-ink); transition: all .3s ease; }
.v-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v-burger.active span:nth-child(2) { opacity: 0; }
.v-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.v-overlay { display: none; }

@media (max-width: 1100px) {
  .v-nav-left { padding-left: 20px; }
  .v-burger { display: flex; }
  .v-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 1050;
    background: var(--v-paper); flex-direction: column; align-items: stretch;
    overflow-y: auto; padding: 12px 0 60px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .3s ease, visibility 0s linear .25s;
  }
  .v-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s ease, visibility 0s; }
  .v-links li { flex-direction: column; }
  .v-links > li > a { border-left: none; border-bottom: 1px solid var(--v-line); padding: 18px 28px; font-size: 16px; justify-content: space-between; }
  .v-links a.v-cta { justify-content: center; margin: 18px 24px 0; border-radius: 100px; padding: 16px 0; }
  .v-drop {
    position: static; min-width: 0; border: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none; max-height: none;
    background: var(--v-soft);
  }
  .v-drop-li.open .v-drop { display: block; }
  .v-drop a { white-space: normal; padding-left: 44px; }
  .v-drop a.v-drop-foot { padding-left: 44px; }
}

/* ---------- Buttons (shared) ---------- */
.v-btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--v-display);
  font-size: 16px; font-weight: 700; letter-spacing: .01em; padding: 17px 32px;
  text-decoration: none; cursor: pointer; border: 2px solid var(--v-ink); border-radius: 100px;
  transition: all .25s cubic-bezier(.2,.6,.2,1);
}
.v-btn-fill { background: var(--v-ink); color: #fff; }
.v-btn-fill:hover { background: var(--v-orange); border-color: var(--v-orange); color: #fff; transform: translateY(-2px); }
.v-btn-line { background: transparent; color: var(--v-ink); }
.v-btn-line:hover { background: var(--v-ink); color: #fff; }
.v-btn-white { background: #fff; color: var(--v-ink); border-color: #fff; }
.v-btn-white:hover { background: var(--v-ink); color: #fff; border-color: var(--v-ink); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.v-foot { padding: 72px 0 44px; background: var(--v-ink); color: #fff; font-family: var(--v-body); }
.v-foot .v-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.v-foot-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 56px; flex-wrap: wrap; }
.v-foot-logo { font-family: var(--v-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.v-foot-logo span { color: var(--v-orange); }
.v-foot-desc { color: rgba(255,255,255,.5); font-size: 14.5px; margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.v-foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.v-foot-links h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 16px; font-family: var(--v-body); font-weight: 700; }
.v-foot-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.v-foot-links a { color: #fff; text-decoration: none; font-size: 14px; transition: color .2s ease; }
.v-foot-links a:hover { color: var(--v-orange); }
.v-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px;
  color: rgba(255,255,255,.45); flex-wrap: wrap;
}
.v-foot-bottom a { color: rgba(255,255,255,.65); text-decoration: none; }
.v-foot-bottom a:hover { color: var(--v-orange); }
@media (max-width: 1024px) {
  .v-foot .v-wrap { padding: 0 24px; }
  .v-foot-links { gap: 36px; }
}

/* ---------- Legacy compatibility shims ----------
   Migrated pages keep their own (re-themed) content styles.
   These shims smooth the most common legacy components on the
   light vanguard palette without overriding page layout. */
body { background: var(--v-paper); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible, .fade-in.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}
