/* =====================================================================
   Benedict Group — BGISite brand stylesheet
   Brand tokens ported from the Release design system (index.css).
   Plain CSS + Bootstrap 5.3 theme overrides. No Tailwind, no other libs.
   ===================================================================== */

:root {
  /* HSL triplets — identical values to the React app's design tokens */
  --bg-background:           220 20% 97%;
  --bg-foreground:           220 30% 15%;
  --bg-card:                 0 0% 100%;
  --bg-primary:              220 50% 45%;
  --bg-primary-light:        220 50% 55%;
  --bg-primary-dark:         220 50% 35%;
  --bg-secondary:            220 15% 92%;
  --bg-secondary-foreground: 220 30% 20%;
  --bg-muted:                220 15% 94%;
  --bg-muted-foreground:     220 10% 45%;
  --bg-accent:               175 60% 40%;
  --bg-accent-dark:          175 60% 35%;
  --bg-border:               220 15% 88%;
  --brand-radius:            0.625rem;

  /* Map Bootstrap's theme variables onto the brand */
  --bs-primary:          hsl(var(--bg-primary));
  --bs-primary-rgb:      57, 96, 172;
  --bs-body-color:       hsl(var(--bg-foreground));
  --bs-body-color-rgb:   33, 43, 59;
  --bs-body-bg:          hsl(var(--bg-background));
  --bs-border-color:     hsl(var(--bg-border));
  --bs-link-color:       hsl(var(--bg-primary));
  --bs-link-color-rgb:   57, 96, 172;
  --bs-link-hover-color: hsl(var(--bg-primary-dark));
  --bs-border-radius:    var(--brand-radius);
  --bs-border-radius-lg: 0.75rem;
  --bs-font-sans-serif:  Aptos, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  color: hsl(var(--bg-foreground));
  background-color: hsl(var(--bg-background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Aptos Display", Aptos, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---- Brand color helpers ------------------------------------------- */
.text-primary       { color: hsl(var(--bg-primary)) !important; }
.text-accent        { color: hsl(var(--bg-accent)) !important; }
.text-muted-2       { color: hsl(var(--bg-muted-foreground)) !important; }
.bg-primary         { background-color: hsl(var(--bg-primary)) !important; }
.bg-section         { background-color: hsl(var(--bg-background)) !important; }
.bg-section-card    { background-color: hsl(var(--bg-card)) !important; }
.border-brand       { border-color: hsl(var(--bg-border)) !important; }

/* ---- text-bg-* utilities (backport — bundled Bootstrap is 5.1, these
        contextual color helpers only ship from 5.2). Restores readable
        badges/labels across the CRM & admin views. ---------------------- */
.text-bg-primary   { color: #fff !important; background-color: #0d6efd !important; }
.text-bg-secondary { color: #fff !important; background-color: #6c757d !important; }
.text-bg-success   { color: #fff !important; background-color: #198754 !important; }
.text-bg-danger    { color: #fff !important; background-color: #dc3545 !important; }
.text-bg-warning   { color: #000 !important; background-color: #ffc107 !important; }
.text-bg-info      { color: #000 !important; background-color: #0dcaf0 !important; }
.text-bg-light     { color: #000 !important; background-color: #f8f9fa !important; }
.text-bg-dark      { color: #fff !important; background-color: #212529 !important; }

/* ---- Buttons (Bootstrap 5.3 component CSS variables) --------------- */
.btn-primary {
  --bs-btn-bg:                 hsl(var(--bg-primary));
  --bs-btn-border-color:       hsl(var(--bg-primary));
  --bs-btn-hover-bg:           hsl(var(--bg-primary-dark));
  --bs-btn-hover-border-color: hsl(var(--bg-primary-dark));
  --bs-btn-active-bg:          hsl(var(--bg-primary-dark));
  --bs-btn-active-border-color:hsl(var(--bg-primary-dark));
  --bs-btn-disabled-bg:        hsl(var(--bg-primary));
  --bs-btn-disabled-border-color: hsl(var(--bg-primary));
}
.btn-accent {
  --bs-btn-color:#fff;
  --bs-btn-bg:                 hsl(var(--bg-accent));
  --bs-btn-border-color:       hsl(var(--bg-accent));
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:           hsl(var(--bg-accent-dark));
  --bs-btn-hover-border-color: hsl(var(--bg-accent-dark));
  --bs-btn-active-color:#fff;
  --bs-btn-active-bg:          hsl(var(--bg-accent-dark));
}
.btn-secondary {
  --bs-btn-color:              hsl(var(--bg-secondary-foreground));
  --bs-btn-bg:                 hsl(var(--bg-secondary));
  --bs-btn-border-color:       hsl(var(--bg-secondary));
  --bs-btn-hover-color:        hsl(var(--bg-secondary-foreground));
  --bs-btn-hover-bg:           hsl(220 15% 86%);
  --bs-btn-hover-border-color: hsl(220 15% 86%);
}
.btn-lg { --bs-btn-padding-y:.75rem; --bs-btn-padding-x:1.5rem; --bs-btn-font-size:1rem; }
.btn { font-weight:600; }
.btn-lift { transition: transform .2s ease, box-shadow .2s ease; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px hsl(220 30% 15% / .1); }

/* ---- Gradients, shadows, utilities (ported custom tokens) ---------- */
.gradient-hero {
  background: linear-gradient(135deg, hsl(220 50% 45%) 0%, hsl(220 50% 35%) 50%, hsl(220 40% 25%) 100%);
}
.gradient-hero-wash {
  background: linear-gradient(135deg, hsl(220 50% 45%) 0%, hsl(220 50% 35%) 50%, hsl(220 40% 25%) 100%);
  opacity: .03;
}
.shadow-card { box-shadow: 0 1px 3px 0 hsl(220 30% 15% / .05), 0 1px 2px -1px hsl(220 30% 15% / .05); }
.shadow-soft { box-shadow: 0 10px 15px -3px hsl(220 30% 15% / .08), 0 4px 6px -4px hsl(220 30% 15% / .05); }
.hover-card { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.hover-card:hover { border-color: hsl(220 50% 45% / .3) !important; box-shadow: 0 10px 40px -10px hsl(220 50% 45% / .15); }

.rounded-xl { border-radius: .75rem !important; }
.text-balance { text-wrap: balance; }

/* ---- Iconography tiles & badges ----------------------------------- */
.icon-tile {
  width: 3rem; height: 3rem; border-radius: .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(220 50% 45% / .1); color: hsl(var(--bg-primary));
  font-size: 1.35rem; flex-shrink: 0;
}
.icon-tile-sm { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
.icon-tile-accent { background: hsl(175 60% 40% / .1); color: hsl(var(--bg-accent)); }
.icon-tile-round { border-radius: 50rem; }

.brand-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .85rem; border-radius: 50rem;
  background: hsl(220 50% 45% / .1); color: hsl(var(--bg-primary));
  font-size: .875rem; font-weight: 500;
}

.step-number {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--bg-primary));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

/* ---- Icon lists (shared with home.css's .release-list look) -------- */
.release-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.release-list li { display: flex; gap: 1rem; align-items: flex-start; }
.release-list .bi {
  flex-shrink: 0;
  width: 2.6rem; height: 2.6rem; border-radius: .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(220 50% 45% / .1); color: hsl(var(--bg-primary));
  font-size: 1.2rem;
}
.release-list b { display: block; margin-bottom: .1rem; }
.release-list span { font-size: .92rem; color: hsl(var(--bg-muted-foreground)); }

/* ---- Market spectrum (home "where Benedict sits" section) ---------- */
.spectrum-track {
  position: relative;
  height: .75rem; border-radius: 50rem;
  background: linear-gradient(90deg,
    hsl(220 15% 82%) 0%,
    hsl(220 20% 70%) 45%,
    hsl(220 30% 45%) 100%);
}
.spectrum-marker {
  position: absolute; top: 50%; left: 52%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.spectrum-marker .dot {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: hsl(var(--bg-accent));
  border: 3px solid #fff;
  box-shadow: 0 2px 10px hsl(220 30% 15% / .25);
}
.spectrum-marker .tag {
  position: absolute; bottom: 1.6rem; white-space: nowrap;
  background: hsl(var(--bg-accent)); color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 50rem;
}
.spectrum-ends {
  display: flex; justify-content: space-between;
  margin-top: .6rem; font-size: .82rem;
  color: hsl(var(--bg-muted-foreground));
}

/* ---- Pricing surfaces ---------------------------------------------- */
.price-card {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--bg-border));
  border-radius: var(--brand-radius);
  padding: 1.5rem;
}
.price-card--featured { border: 2px solid hsl(var(--bg-primary)); }
.price-figure { font-size: 2.25rem; font-weight: 700; color: hsl(var(--bg-primary)); line-height: 1.1; }
.price-meta { font-size: .875rem; color: hsl(var(--bg-muted-foreground)); }

/* ---- Section rhythm ------------------------------------------------ */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* ---- Feature / industry cards ------------------------------------- */
.feature-card {
  background: hsl(var(--bg-background));
  border: 1px solid hsl(var(--bg-border));
  border-radius: .75rem;
}

/* ---- Site navbar --------------------------------------------------- */
.site-nav {
  background: hsl(0 0% 100% / .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(var(--bg-border));
}
.site-nav .navbar-brand img { height: 4.25rem; width: auto; }
.site-nav .nav-link {
  color: hsl(var(--bg-muted-foreground));
  font-weight: 500; font-size: .9rem;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: hsl(var(--bg-foreground)); }
.site-nav .dropdown-menu {
  border-color: hsl(var(--bg-border));
  border-radius: .6rem;
  box-shadow: 0 10px 15px -3px hsl(220 30% 15% / .08), 0 4px 6px -4px hsl(220 30% 15% / .05);
  font-size: .9rem;
}
.site-nav .dropdown-item { color: hsl(var(--bg-muted-foreground)); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus {
  color: hsl(var(--bg-foreground)); background: hsl(var(--bg-muted));
}
.site-nav .dropdown-header {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; color: hsl(var(--bg-muted-foreground));
}

/* ---- Site footer --------------------------------------------------- */
.site-footer { background: hsl(var(--bg-foreground)); color: #fff; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 600; }
.site-footer .footer-dim { color: rgba(255,255,255,.5); }
.site-footer .footer-rule { border-top: 1px solid rgba(255,255,255,.1); }
/* Bottom bar links: dimmer than the column links, never link-blue */
.site-footer .footer-rule a { color: rgba(255,255,255,.55); }
.site-footer .footer-rule a:hover { color: #fff; }

/* ---- Animations ---------------------------------------------------- */
@keyframes fadeUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }
