/* Bucklelink design system — layered on top of Bootstrap 5.3 (loaded
   first in page_head). Bootstrap's grid/components/JS stay as-is per
   project decision; this file overrides visual tokens only. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Variable.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ink/paper: warm off-black and off-white, not pure #000/#fff */
  --bl-ink: #161a1f;
  --bl-paper: #f6f7f5;
  --bl-surface: #ffffff;
  --bl-muted: #5b6470;
  --bl-border: #e2e5e2;

  /* Accent pulled from the fiber-optic/server photography (deep petrol
     teal-blue) — deliberately NOT Bootstrap's default #0d6efd and NOT
     the generic indigo/violet AI-tool default. */
  --bl-accent: #0a6e8c;
  --bl-accent-dark: #084f64;
  --bl-accent-soft: #e6f1f4;

  --bl-font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --bl-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

/* ---- Base overrides ------------------------------------------------ */

body {
  font-family: var(--bl-font-sans);
  color: var(--bl-ink);
  background-color: var(--bl-paper);
  font-feature-settings: "cv05", "cv10";
}

h1, h2, h3, h4, .display-5, .display-6 {
  font-family: var(--bl-font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bl-ink);
}
/* Bootstrap's .text-white utility must win over the default ink color
   above — bumped into this on the CTA section's H2 (dark text on the
   teal background, real contrast bug, caught via visual check). */
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4 {
  color: #ffffff !important;
}

.text-secondary { color: var(--bl-muted) !important; }

a { color: var(--bl-accent); }
a:hover { color: var(--bl-accent-dark); }

/* Bootstrap primary-color overrides (buttons, badges, borders) */
.btn-primary {
  background-color: var(--bl-accent);
  border-color: var(--bl-accent);
  font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--bl-accent-dark);
  border-color: var(--bl-accent-dark);
}
.btn-outline-secondary {
  color: var(--bl-ink);
  border-color: var(--bl-border);
}
.btn-outline-secondary:hover {
  background-color: var(--bl-ink);
  border-color: var(--bl-ink);
}
.btn-outline-primary {
  color: var(--bl-accent);
  border-color: var(--bl-accent);
}
.btn-outline-primary:hover {
  background-color: var(--bl-accent);
  border-color: var(--bl-accent);
}
.btn {
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
}
.btn-lg { padding: 0.85rem 2rem; }

.bg-primary { background-color: var(--bl-accent) !important; }
.text-primary { color: var(--bl-accent) !important; }
.border-primary { border-color: var(--bl-accent) !important; }

.bg-dark { background-color: var(--bl-ink) !important; }
.bg-body-tertiary { background-color: var(--bl-surface) !important; }

.card {
  border-color: var(--bl-border);
  border-radius: 6px;
}

/* Monospace technical accents: nav, badges, prices, step numerals —
   used deliberately, not everywhere, to read as "precise/technical"
   without going full terminal-aesthetic. */
.navbar-brand, .card-title .display-6, .step-num {
  font-family: var(--bl-font-mono);
}

/* ---- Navbar ---------------------------------------------------------
   Sticky top bar stays dark/high-contrast; only token colors changed. */
.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.navbar-dark .nav-link.active,
.navbar-dark .nav-link:hover {
  color: #ffffff;
}

/* ---- Hero -------------------------------------------------------------
   Full-bleed photo hero with a left-weighted text block, replacing the
   old centered-text-on-white treatment. Photo: self-hosted, CC-licensed
   (Pexels License — see static/img/stock/LICENSE.md), no visible
   brand/logo in frame, no identifiable faces. */
.bl-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-color: var(--bl-ink);
  background-image:
    linear-gradient(100deg, rgba(15, 19, 24, 0.94) 0%, rgba(15, 19, 24, 0.80) 42%, rgba(15, 19, 24, 0.45) 75%, rgba(15, 19, 24, 0.20) 100%),
    var(--bl-hero-img);
  background-size: cover;
  background-position: center right;
  color: #ffffff;
}
.bl-hero .container { position: relative; z-index: 1; }
.bl-hero-eyebrow {
  font-family: var(--bl-font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fc4d9;
  margin-bottom: 1rem;
}
.bl-hero h1 {
  color: #ffffff;
}
.bl-hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}
.bl-hero-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  z-index: 1;
}
.bl-hero-credit a { color: rgba(255, 255, 255, 0.6); }

.bl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .bl-hero h1, .bl-hero p.lead, .bl-hero .bl-hero-cta {
    animation: bl-fade-up 0.6s ease-out both;
  }
  .bl-hero p.lead { animation-delay: 0.08s; }
  .bl-hero-cta { animation-delay: 0.16s; }
}
@keyframes bl-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Pain points: numbered list, not a 3-card grid --------------------
   Breaks the repeated equal-weight-card pattern the approach section
   also used. Large mono numerals carry the hierarchy instead of icons. */
.bl-pain-list {
  max-width: 46rem;
}
.bl-pain-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--bl-border);
}
.bl-pain-item:first-child { padding-top: 0; }
.bl-pain-item:last-child { border-bottom: none; }
.bl-pain-num {
  font-family: var(--bl-font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bl-accent);
  flex-shrink: 0;
  width: 2.5ch;
}
.bl-pain-item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.bl-pain-item p { margin-bottom: 0; }

/* ---- Approach: connected horizontal steps, visually distinct from
   the pain-points list above (same page, must not read as "another
   3-thing grid"). A through-line connects the step markers. */
.bl-steps {
  position: relative;
}
.bl-steps::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--bl-border);
  display: none;
}
@media (min-width: 768px) {
  .bl-steps::before { display: block; }
}
.bl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bl-ink);
  color: #ffffff;
  font-family: var(--bl-font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* ---- Honesty section: editorial pull-quote treatment, not another
   centered paragraph block — a left accent rule + larger measure. */
.bl-editorial {
  border-left: 3px solid var(--bl-accent);
  padding-left: 1.75rem;
}
.bl-editorial h2 { margin-bottom: 1rem; }
.bl-editorial p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Supporting photo band (approach section) ------------------------ */
.bl-photo-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 26, 31, 0.08), 0 8px 24px rgba(22, 26, 31, 0.10);
}
.bl-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Pricing cards: keep Bootstrap card mechanics, restyle tokens --- */
.card.bl-price-highlight {
  border: 1.5px solid var(--bl-accent);
  box-shadow: 0 1px 3px rgba(22, 26, 31, 0.06), 0 12px 28px rgba(10, 110, 140, 0.10);
}
.bl-price {
  font-family: var(--bl-font-mono);
  font-weight: 500;
}

/* ---- Footer ---------------------------------------------------------- */
footer a.link-light {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
}
footer a.link-light:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* ---- Reduced motion: disable the fade-up entrance entirely ---------- */
@media (prefers-reduced-motion: reduce) {
  .bl-hero h1, .bl-hero p.lead, .bl-hero-cta {
    animation: none;
  }
}

/* ---- Contact form honeypot (spam trap, see leads.py) ---------------- */
/* Off-screen rather than display:none: some bots skip hidden fields. */
.bl-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
