/* ==========================================================================
   Affirmative Technologies — shared site stylesheet
   Global chrome: reset, base typography, navigation, dropdowns, mobile menu, footer.
   Loaded before each page's inline <style>; page-specific rules override as needed.
   Edit shared nav/footer/base styles HERE (single source of truth).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'DM Sans', sans-serif; letter-spacing: -0.02em; }
a { text-decoration: none; }
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--muted-on-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { background: rgba(255,255,255,0.10); color: #fff; }
.nav-links > li.open > a { background: rgba(255,255,255,0.12); color: #fff; }
.nav-links > li.open .nav-dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1f232f;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}
.dropdown-item:hover { background: #fafafa; padding: 10px 8px; margin: 0 -8px; }
.dropdown-icon {
  width: 40px; height: 40px;
  background: #d6f0ff;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dropdown-icon svg { width: 20px; height: 20px; fill: none; stroke: #004aad; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropdown-item-name { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: #1f232f; margin-bottom: 2px; }
.dropdown-item-desc { font-size: 12px; color: #888; line-height: 1.4; }
.nav-cta:hover { background: var(--accent-hover); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.12); color: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #dddddd;
  margin-bottom: 32px;
}
.footer-col h4 { font-family: 'DM Sans', sans-serif; color: #1f232f; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #6b7280; transition: color 0.15s; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.footer-col a:hover { color: #004aad; }
.footer-email-form label { font-family: 'DM Sans', sans-serif; display: block; font-size: 14px; font-weight: 500; color: #1f232f; margin-bottom: 10px; }
.footer-hs-form { display: flex; flex-direction: column; }
.footer-hs-input-wrap { position: relative; margin-bottom: 12px; }
.footer-hs-submit:hover { color: #004aad; }
.footer-hs-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.footer-hs-msg { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
.footer-hs-msg.hs-success { color: #16a34a; }
.footer-hs-msg.hs-error { color: #dc2626; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright { color: #9ca3af; font-size: 12px; line-height: 1.6; max-width: 700px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a:hover { border-color: #004aad; color: #004aad; }
.hamburger:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.ham-line {
  display: block;
  width: 18px;
  height: 1.8px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), opacity 0.2s, width 0.2s;
}
.menu-open .ham-line:nth-child(2) { opacity: 0; width: 0; }
.menu-open .ham-line:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
.mobile-menu.menu-open {
  transform: translateX(0);
}
.mobile-menu-inner {
  padding: 112px 24px 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.mobile-nav-list {
  list-style: none;
  flex: 1;
}
.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.mobile-chevron {
  color: rgba(255,255,255,0.45);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
}
.mobile-nav-item.sub-open .mobile-chevron { transform: rotate(180deg); }
.mobile-nav-item.sub-open .mobile-sub {
  max-height: 600px;
}
.mobile-sub-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0 14px 4px;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.12s;
}
.mobile-sub-icon {
  width: 36px;
  height: 36px;
  background: #d6f0ff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-sub-icon svg { width: 17px; height: 17px; }
.mobile-sub-name {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.mobile-sub-desc {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.mobile-menu-footer {
  padding-top: 32px;
}
.solution-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,74,173,0.13); }
.sc-compliant { background: linear-gradient(140deg, #d6f0ff 0%, #e8f7ff 60%, #f2fbff 100%); }
.sc-revenue { background: linear-gradient(140deg, #eef3ff 0%, #ddeaff 60%, #e6f0ff 100%); }
.solution-card-label {
  padding: 14px 18px 16px;
  background: #fff;
  border-top: 1px solid #f0f4f8;
}
.solution-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1f232f;
  margin-bottom: 3px;
}
.solution-card-desc {
  font-size: 12px;
  color: #7a8aa0;
  line-height: 1.4;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1); }
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.solution-card-graphic {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav-pill {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-logo { display: flex; align-items: center; }
.mobile-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  font-family: 'DM Sans', sans-serif; background: #ffa959; color: #1f232f;
  font-size: 16px; font-weight: 700; padding: 15px 28px; border-radius: 100px;
  text-decoration: none; transition: background 0.15s;
}
.arrow-bare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-open .ham-line:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: #1f232f; overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.mobile-cta:hover { background: #e8944a; }
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
