/* ============================================================
   components.css — shared UI vocabulary, extracted from the mockup +
   design system. Every value references a token, so admin theme overrides
   (theme.css) re-skin all of it live. Screen-specific components (hero
   carousel, opportunity cards, gauges) ship with their screens in Phase 1.
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: 15px;
  padding: 11px 20px; border-radius: var(--r-pill); cursor: pointer; border: none;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-spring),
              color var(--dur-fast), border-color var(--dur-fast);
}
.btn-solid { background: var(--crimson); color: var(--crimson-ink); box-shadow: var(--shadow-sm); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--emerald); }
.btn-out { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-out:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Cards ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-int { transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base); cursor: pointer; }
.card-int:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---- Pills & badges ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.i-high { background: var(--danger-tint); color: var(--crimson); }
.pill.i-medium { background: var(--warning-tint); color: var(--gold-ink); }
.pill.i-low { background: var(--success-tint); color: var(--teal); }
.pill.i-none { background: rgba(122,136,127,.12); color: var(--ink-faint); }
.pill.s-success { background: var(--success-tint); color: var(--success); }
.badge { display: inline-block; background: var(--crimson); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 16px; border-radius: var(--r-pill); }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.label { display: block; font-size: var(--fs-sm); font-weight: var(--weight-semibold); margin-bottom: 8px; color: var(--ink); }
.help { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 4px; }
.input, .select, textarea.input {
  width: 100%; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
}
.input::placeholder, textarea.input::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--emerald); box-shadow: var(--focus-ring); }

/* ---- Top nav / brand ---- */
.topnav { position: sticky; top: 0; z-index: 40; height: 72px; display: flex; align-items: center;
  background: rgba(250,248,242,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topnav .row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600;
  font-size: 21px; letter-spacing: -.02em; cursor: pointer; color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.brand img { height: 50px; width: auto; }
.navlinks { display: flex; gap: 28px; }
.navlinks a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.navlinks a:hover { color: var(--emerald); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---- Footer ---- */
footer.site { background: var(--emerald-deep); color: rgba(234,246,240,.7); padding: 56px 0 28px; }
footer.site .brand { color: #fff; }
footer.site a { display: block; padding: 5px 0; color: rgba(234,246,240,.7); }
footer.site a:hover { color: #fff; }
footer.site h5 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 13px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 28px; font-size: 12.5px; color: rgba(234,246,240,.5); }

/* ---- Flash / toast ---- */
.flash { padding: 11px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); margin-bottom: 18px; }
.flash.err { background: var(--danger-tint); color: var(--crimson); }
.flash.ok { background: var(--success-tint); color: var(--teal); }

/* ---- Tables ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }

/* ---- Entrance reveal (honors reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); animation: rise var(--dur-slow) var(--ease-out) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
