/* ===================================================================
   B-Digital Mark — interior service pages.
   Deliberately light: no WebGL/GSAP/Compound. Brand tokens mirror
   homepage.css (navy base, orange accent, blue depth). Priorities:
   speed, readability, crawlability, conversion, E-E-A-T, no overflow.
   =================================================================== */

:root {
  --bg-deep: #050810;
  --bg: #0a0f1f;
  --bg2: #0d1426;
  --surface: #10182e;
  --surface-raised: #161f3a;
  --white: #F0EDE8;
  --muted: rgba(240, 237, 232, 0.62);
  --dim: rgba(240, 237, 232, 0.42);
  --orange: #FF8C00;
  --orange2: #FFA500;
  --blue: #2E8BFF;
  --cyan: #58C9FF;
  --line: rgba(150, 180, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --container: min(1080px, calc(100vw - 40px));
  --container-wide: min(1240px, calc(100vw - 40px));
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

body.bdm-interior-page {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 139, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(255, 140, 0, 0.06), transparent 55%),
    var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 17px);
  overflow-x: hidden;
}

/* :not() exclusions so this generic link color never outranks the shared
   button component's own color (same specificity as a bare class -- a
   confirmed defect: it silently overrode .btn-ghost's amber text). */
.bdm-interior-page a:not(.btn-primary):not(.btn-ghost):not(.nav-cta) { color: var(--cyan); text-decoration: none; }
.bdm-interior-page a:not(.btn-primary):not(.btn-ghost):not(.nav-cta):hover { color: var(--white); }
.bdm-interior-page :focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; }

/* ---------- Nav ----------
   #nav / .nav-links / .nav-dropdown* / .nav-cta / .nav-toggle / .nav-logo*
   now live in ONE place: assets/css/shared-ui.css, copied verbatim from
   production and loaded before this file (see bdm_sp_enqueue_assets()).
   No approximate duplicate here anymore -- this was the actual cause of
   the interior "Start Now" button differing from production.

   Header-overlap fix, interior pages only: shared-ui.css's #nav is
   transparent until nav.js adds .stuck at scrollY>80 -- production's own
   behavior, left completely untouched (this file never loads on the
   homepage; bdm_sp_enqueue_assets() only runs for interior slugs). But
   on an interior page, the first ~80px of scroll had a fully transparent
   fixed header with page copy visible right up to, and through, its
   bottom edge. Interior pages have no hero image for that transparency
   to serve, so give #nav here an opaque background unconditionally,
   rather than lowering the shared stuck threshold (which would also
   change the homepage's scroll feel).

   Solid color, not shared-ui.css's own .stuck rgba(...,.92): confirmed
   via live screenshot that .92 alpha still let a faint ghost of
   scrolled-under text show through (visible, not just theoretical) --
   this fix needs zero bleed-through, so it uses full opacity instead of
   matching that alpha value. */
body.bdm-interior-page #nav {
  background: #050507;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border, rgba(255,140,0,0.12));
}

/* ---------- Main + hero ---------- */
.bdmp-main { display: block; }
.bdmp-hero {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(46, 139, 255, 0.06), transparent 70%);
}
/* padding-top compensates for #nav being position:fixed (out of flow) */
.bdmp-hero-inner { width: var(--container); margin: 0 auto; padding: clamp(6.5rem, 14vh, 9rem) 0 clamp(24px, 4vw, 48px); }
@media (max-width: 900px) {
  .bdmp-hero-inner { padding-top: clamp(5.5rem, 22vw, 7rem); }
}
.bdmp-crumb { font-size: 0.82rem; color: var(--dim); margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bdmp-crumb a { color: var(--muted); }
.bdmp-crumb span[aria-current] { color: var(--white); }
.bdmp-hero-kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; color: var(--orange); margin: 0 0 14px;
}
.bdmp-hero-h1 {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0; max-width: 20ch;
}

/* ---------- Prose sections ---------- */
.bdmp-section { width: var(--container); margin: 0 auto; padding: clamp(28px, 4.5vw, 52px) 0; border-bottom: 1px solid var(--line-soft); }
.bdmp-section:last-of-type { border-bottom: 0; }
.bdmp-section > h2 {
  font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.bdmp-section > .bdmp-lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; max-width: 68ch; }
.bdmp-section p { color: rgba(240, 237, 232, 0.82); max-width: 68ch; }
.bdmp-section strong { color: var(--white); font-weight: 500; }

.bdmp-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.6;
  color: rgba(240, 237, 232, 0.9); max-width: 62ch; font-weight: 300;
}

/* Feature/deliverable grids */
.bdmp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.bdmp-card {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.bdmp-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--white); }
.bdmp-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Ordered process list */
.bdmp-steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.bdmp-steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.bdmp-steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.85rem; color: #12100a;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
}
.bdmp-steps li strong { display: block; margin-bottom: 2px; }

/* Simple checklists */
.bdmp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.bdmp-list li { position: relative; padding-left: 28px; color: rgba(240, 237, 232, 0.85); max-width: 66ch; }
.bdmp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* Stat row (reuses only verified proof metrics) */
.bdmp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.bdmp-stat { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 14px; }
.bdmp-stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--orange); line-height: 1; }
.bdmp-stat span { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

/* Expectations / honesty callout */
.bdmp-note { background: rgba(46, 139, 255, 0.06); border: 1px solid rgba(46, 139, 255, 0.22); border-left: 3px solid var(--blue); border-radius: 12px; padding: 18px 20px; margin-top: 22px; }
.bdmp-note p { margin: 0; color: rgba(240, 237, 232, 0.85); }

/* ---------- Related services ---------- */
.bdmp-related { width: var(--container); margin: 0 auto; padding: clamp(28px, 4.5vw, 48px) 0; border-top: 1px solid var(--line-soft); }
.bdmp-related > h2 { font-size: 1.2rem; margin: 0 0 18px; font-weight: 600; }
.bdmp-related-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bdmp-related-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bdmp-related-card:hover { border-color: rgba(255, 140, 0, 0.4); }
.bdmp-related-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.bdmp-related-anchor { color: var(--white); font-weight: 500; }

/* ---------- CTA ---------- */
.bdmp-cta { background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.05)); border-top: 1px solid var(--line-soft); }
.bdmp-cta-inner { width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 76px) 0; text-align: center; }
.bdmp-cta-inner h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 600; margin: 0 0 12px; max-width: 22ch; margin-inline: auto; }
.bdmp-cta-inner p { color: var(--muted); margin: 0 auto 26px; max-width: 52ch; }
.bdmp-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bdmp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #12100a !important;
}
.bdmp-btn:hover { filter: brightness(1.08); color: #12100a !important; }
.bdmp-btn--ghost { background: transparent; color: var(--white) !important; border: 1px solid var(--line); }
.bdmp-btn--ghost:hover { border-color: var(--orange); color: var(--white) !important; }

/* ---------- Footer ---------- */
.bdmp-footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.bdmp-footer-inner { width: var(--container-wide); margin: 0 auto; padding: clamp(36px, 5vw, 60px) 0 28px; display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.bdmp-footer-logo { font-weight: 600; font-size: 1.1rem; }
.bdmp-footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.bdmp-footer-note { color: var(--dim) !important; }
.bdmp-footer-col h2 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--dim); margin: 0 0 14px; font-weight: 400; }
.bdmp-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bdmp-footer-col a { color: var(--muted); font-size: 0.94rem; }
.bdmp-footer-col a:hover { color: var(--white); }
.bdmp-footer-legal { width: var(--container-wide); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .bdmp-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bdmp-footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
