/* ============================================================
   TopoMapping — shared site chrome (header + footer)
   The luxury "brass & emerald" floating-pill header and dark
   footer, shared across all marketing/legal pages. Scoped to
   .ab-* selectors so it never clobbers page-specific styles.
   Pairs with site-chrome.js. Fonts (Poppins + IBM Plex Mono)
   are loaded per-page in <head>.
   ============================================================ */

:root {
  --ink: #0a2418;
  --green-900: #0c2e1e;
  --green-800: #0a2616;
  --green-700: #103c29;
  --green-600: #106c43;
  --green-500: #15512f;
  --gold: #fdbf2d;
  --gold-deep: #e2a017;
  --gold-bronze: #c8932f;
  --gold-amber: #a87b1f;
  --mint: #d5ffe2;
  --paper: #f6f2e9;
  --text-dark: #173f2c;
  --text-muted-light: #4c6a5a;
  --foot-text: #bcd4c4;
}

/* ---------------- grain texture (optional) ---------------- */
.ab-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- header (floating frosted pill) ---------------- */
.ab-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(253, 191, 45, 0.22);
  background: rgba(10, 38, 24, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .4s ease, box-shadow .4s ease;
  font-family: 'Poppins', sans-serif;
  /* defend against legacy `header {}` type-selector rules in page CSS */
  margin: 0;
  box-sizing: border-box;
}
.ab-header.scrolled { background: rgba(8, 32, 20, 0.97); }

.ab-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.ab-logo img { width: 30px; height: 30px; display: block; }
.ab-wordmark {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}
.ab-wordmark span { color: var(--gold); }

.ab-nav { display: flex; align-items: center; gap: 2px; }
.ab-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 15px;
  border-radius: 999px;
  transition: all .22s ease;
}
.ab-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ab-nav a.active {
  color: var(--gold);
  font-weight: 600;
  background: rgba(253, 191, 45, 0.1);
}

.ab-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #10331f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 22px -6px rgba(253, 191, 45, 0.7);
  transition: all .25s ease;
}
.ab-open:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -6px rgba(253, 191, 45, 0.85); }

.ab-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.ab-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto;
}

/* ---------------- mobile menu ---------------- */
.ab-mnav {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 999;
  flex-direction: column;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(253, 191, 45, 0.22);
  background: rgba(12, 46, 30, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  font-family: 'Poppins', sans-serif;
  animation: ab-fade .25s ease both;
}
.ab-mnav.open { display: flex; }
.ab-mnav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 14px;
}
.ab-mnav a:hover { background: rgba(255, 255, 255, 0.06); }
.ab-mnav a.active { color: var(--gold); font-weight: 600; background: rgba(253, 191, 45, 0.1); }
.ab-mnav .ab-mnav-cta {
  margin-top: 6px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #10331f;
  font-weight: 700;
}

/* ---------------- footer ---------------- */
.ab-footer {
  background: var(--ink);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}
.ab-footer-wrap { max-width: 1240px; margin: 0 auto; padding: 72px 48px 30px; }
.ab-footgrid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 48px;
}
.ab-foot-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.ab-foot-brand-row img { width: 32px; height: 32px; display: block; }
.ab-foot-brand-row span { font-size: 1.2rem; font-weight: 800; color: #fff; }
.ab-foot-brand-row span span { color: var(--gold); }
.ab-foot-tag { font-size: 0.92rem; line-height: 1.7; color: #8fae9c; max-width: 300px; margin: 0; }
.ab-foot-social { display: flex; gap: 12px; margin-top: 20px; }
.ab-foot-social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ab-foot-social a svg { width: 19px; height: 19px; display: block; }
.ab-foot-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.ab-foot-head {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.ab-foot-links { display: flex; flex-direction: column; gap: 12px; }
.ab-foot-links a {
  font-size: 0.92rem;
  color: var(--foot-text);
  text-decoration: none;
  transition: color .2s ease;
}
.ab-foot-links a:hover { color: var(--gold); }
.ab-foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.ab-foot-bottom span { font-size: 0.85rem; color: #7a9686; }

@keyframes ab-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- responsive (≤900px) ---------------- */
@media (max-width: 900px) {
  .ab-nav, .ab-open { display: none; }
  .ab-burger { display: flex; }

  .ab-footer-wrap { padding: 56px 24px 26px; }
  .ab-footgrid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ab-foot-brand { grid-column: 1 / -1; }
}
