/*
Theme Name: BeforeMechanic
Theme URI: https://beforemechanic.com/
Author: BeforeMechanic
Author URI: https://beforemechanic.com/
Description: A modern, AI/SaaS-style WordPress theme built for BeforeMechanic.com — an AI-powered car problem report service. Tech-product feel with automotive trust cues. No page builder required.
Version: 1.1.4
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beforemechanic
Tags: business, technology, saas, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   FONTS
   Display: "Sora" (geometric, techy) — Body: "Inter Tight"-free,
   we use "Manrope" for body for warmth. Loaded via wp_enqueue.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bm-bg: #0a0e1a;
  --bm-bg-soft: #0f1525;
  --bm-surface: #141b2e;
  --bm-surface-2: #1a2238;
  --bm-border: #243049;
  --bm-border-soft: #1c2740;

  --bm-text: #eaf0fb;
  --bm-text-soft: #aab6cf;
  --bm-text-dim: #6c7a98;

  --bm-accent: #2bd9b4;       /* signal teal */
  --bm-accent-2: #4d8cff;     /* electric blue */
  --bm-accent-warm: #ffb547;  /* warning amber */
  --bm-danger: #ff5a6e;

  --bm-glow: 0 0 0 1px rgba(43,217,180,.18), 0 18px 50px -18px rgba(43,217,180,.45);
  --bm-card-shadow: 0 24px 60px -28px rgba(0,0,0,.7);

  --bm-radius: 18px;
  --bm-radius-sm: 12px;
  --bm-radius-lg: 28px;

  --bm-maxw: 1200px;
  --bm-font-display: "Sora", system-ui, sans-serif;
  --bm-font-body: "Manrope", system-ui, sans-serif;

  --bm-ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bm-font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(77,140,255,.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(43,217,180,.10), transparent 55%),
    var(--bm-bg);
  color: var(--bm-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--bm-font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; color: var(--bm-text-soft); }

a { color: var(--bm-accent); text-decoration: none; transition: color .2s var(--bm-ease); }
a:hover { color: var(--bm-accent-2); }

img { max-width: 100%; height: auto; display: block; }

ul { color: var(--bm-text-soft); }

.bm-container {
  width: 100%;
  max-width: var(--bm-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.bm-narrow { max-width: 820px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.bm-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--bm-font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease), background .25s var(--bm-ease), color .2s;
  white-space: nowrap;
  line-height: 1;
}
.bm-btn-primary {
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2));
  color: #04121a;
  box-shadow: var(--bm-glow);
}
.bm-btn-primary:hover { transform: translateY(-2px); color: #04121a; box-shadow: 0 0 0 1px rgba(43,217,180,.3), 0 26px 60px -20px rgba(43,217,180,.6); }
.bm-btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--bm-border);
  color: var(--bm-text);
}
.bm-btn-ghost:hover { border-color: var(--bm-accent); color: var(--bm-text); transform: translateY(-2px); }
.bm-btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.bm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,14,26,.72);
  border-bottom: 1px solid var(--bm-border-soft);
}
.bm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.bm-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--bm-font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--bm-text);
  letter-spacing: -.02em;
}
.bm-brand:hover { color: var(--bm-text); }
.bm-brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--bm-accent), var(--bm-accent-2));
  box-shadow: var(--bm-glow);
  flex-shrink: 0;
}
.bm-brand-mark svg { width: 22px; height: 22px; }
.bm-brand b { color: var(--bm-accent); font-weight: 700; }

.bm-nav { display: flex; align-items: center; gap: 6px; }
.bm-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bm-nav a {
  display: block;
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--bm-text-soft);
  font-weight: 600;
  font-size: .96rem;
  transition: color .2s, background .2s;
}
.bm-nav a:hover, .bm-nav .current-menu-item > a { color: var(--bm-text); background: rgba(255,255,255,.05); }
.bm-header-cta { display: flex; align-items: center; gap: 12px; }

.bm-burger {
  display: none;
  background: none; border: 1px solid var(--bm-border);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--bm-text);
  align-items: center; justify-content: center;
}
.bm-burger svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .bm-nav, .bm-header-cta .bm-btn { display: none; }
  .bm-burger { display: inline-flex; }
  .bm-nav.is-open {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bm-bg-soft);
    border-bottom: 1px solid var(--bm-border);
    padding: 14px 24px 22px;
  }
  .bm-nav.is-open ul { flex-direction: column; gap: 2px; }
  .bm-nav.is-open a { padding: 13px 12px; font-size: 1.05rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.bm-hero { position: relative; padding: 96px 0 70px; overflow: hidden; }
.bm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.bm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--bm-font-display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bm-accent);
  background: rgba(43,217,180,.08);
  border: 1px solid rgba(43,217,180,.22);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.bm-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bm-accent); box-shadow: 0 0 12px var(--bm-accent); animation: bm-pulse 1.8s infinite; }
@keyframes bm-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.bm-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  margin-bottom: 22px;
}
.bm-hero h1 .grad {
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bm-hero-lead { font-size: 1.18rem; max-width: 540px; margin-bottom: 30px; }
.bm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.bm-hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--bm-text-dim); }
.bm-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.bm-hero-trust svg { width: 16px; height: 16px; color: var(--bm-accent); }

/* Dashboard mock card */
.bm-hero-visual { position: relative; }
.bm-mock {
  background: linear-gradient(180deg, var(--bm-surface), var(--bm-bg-soft));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 22px;
  box-shadow: var(--bm-card-shadow);
  position: relative;
  overflow: hidden;
}
.bm-mock::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(77,140,255,.15), transparent 70%);
  pointer-events: none;
}
.bm-mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bm-mock-dots { display: flex; gap: 6px; }
.bm-mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bm-border); display: block; }
.bm-mock-tag { font-family: var(--bm-font-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-accent); }
.bm-mock-code {
  display: inline-block;
  font-family: var(--bm-font-display);
  background: rgba(255,90,110,.1);
  color: var(--bm-danger);
  border: 1px solid rgba(255,90,110,.28);
  padding: 4px 12px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  margin-bottom: 14px;
}
.bm-mock h4 { font-size: 1.12rem; margin-bottom: 14px; }
.bm-mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--bm-border-soft);
  border-radius: 12px;
  margin-bottom: 10px;
}
.bm-mock-row .num {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px; font-size: .8rem; font-weight: 700;
  font-family: var(--bm-font-display);
  background: rgba(43,217,180,.12); color: var(--bm-accent);
}
.bm-mock-row span { font-size: .92rem; color: var(--bm-text); }
.bm-mock-row small { display: block; color: var(--bm-text-dim); font-size: .8rem; }
.bm-mock-bar { height: 6px; border-radius: 6px; background: var(--bm-border); overflow: hidden; margin-top: 6px; }
.bm-mock-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--bm-accent), var(--bm-accent-2)); }

.bm-mock-float {
  position: absolute; bottom: -18px; right: -14px;
  background: var(--bm-surface-2);
  border: 1px solid var(--bm-border);
  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--bm-card-shadow);
  font-size: .85rem;
}
.bm-mock-float .ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(43,217,180,.14); color: var(--bm-accent); }
.bm-mock-float b { font-family: var(--bm-font-display); color: var(--bm-text); }

@media (max-width: 900px) {
  .bm-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .bm-hero { padding: 60px 0 40px; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.bm-section { padding: 84px 0; }
.bm-section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.bm-section-head .bm-eyebrow { margin-bottom: 16px; }
.bm-section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.65rem); }
.bm-section-head p { font-size: 1.08rem; }
.bm-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--bm-border), transparent); border: 0; margin: 0; }

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.bm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bm-step {
  position: relative;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 30px 26px;
  transition: transform .3s var(--bm-ease), border-color .3s;
}
.bm-step:hover { transform: translateY(-5px); border-color: rgba(43,217,180,.4); }
.bm-step-num {
  font-family: var(--bm-font-display);
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px; display: block;
}
.bm-step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.bm-step p { margin: 0; font-size: .96rem; }
@media (max-width: 820px){ .bm-steps { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURE / REPORT INCLUDES GRID
   ============================================================ */
.bm-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bm-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border-soft);
  border-radius: var(--bm-radius-sm);
  padding: 18px 20px;
  transition: border-color .25s, background .25s;
}
.bm-feature:hover { border-color: rgba(43,217,180,.35); background: var(--bm-surface-2); }
.bm-feature .ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 11px;
  background: rgba(43,217,180,.1); color: var(--bm-accent);
}
.bm-feature .ic svg { width: 20px; height: 20px; }
.bm-feature h4 { font-size: 1.02rem; margin: 2px 0 4px; }
.bm-feature p { margin: 0; font-size: .9rem; }
@media (max-width: 760px){ .bm-feature-grid { grid-template-columns: 1fr; } }

/* Symptom chips */
.bm-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.bm-chip {
  font-family: var(--bm-font-display);
  font-weight: 500; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  color: var(--bm-text-soft);
  transition: all .25s var(--bm-ease);
}
.bm-chip:hover { border-color: var(--bm-accent); color: var(--bm-text); transform: translateY(-2px); }

/* ============================================================
   WHY / 2x2 BENEFIT
   ============================================================ */
.bm-why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.bm-why {
  background: linear-gradient(180deg, var(--bm-surface), var(--bm-bg-soft));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 28px;
}
.bm-why h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bm-why h3 .ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(77,140,255,.12); color: var(--bm-accent-2); flex-shrink: 0; }
.bm-why h3 .ic svg { width: 18px; height: 18px; }
.bm-why p { margin: 0; font-size: .96rem; }
@media (max-width: 760px){ .bm-why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DISCLAIMER / SAFETY CALLOUT
   ============================================================ */
.bm-callout {
  border-radius: var(--bm-radius);
  padding: 28px 30px;
  border: 1px solid rgba(255,181,71,.3);
  background: linear-gradient(120deg, rgba(255,181,71,.08), rgba(255,90,110,.05));
  display: flex; gap: 18px; align-items: flex-start;
}
.bm-callout .ic { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(255,181,71,.16); color: var(--bm-accent-warm); }
.bm-callout .ic svg { width: 24px; height: 24px; }
.bm-callout h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--bm-text); }
.bm-callout p { margin: 0; font-size: .95rem; }
.bm-callout.is-danger { border-color: rgba(255,90,110,.35); background: linear-gradient(120deg, rgba(255,90,110,.1), rgba(255,90,110,.03)); }
.bm-callout.is-danger .ic { background: rgba(255,90,110,.16); color: var(--bm-danger); }

/* ============================================================
   PRICING
   ============================================================ */
.bm-pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.bm-plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 32px 28px;
  transition: transform .3s var(--bm-ease), border-color .3s;
}
.bm-plan:hover { transform: translateY(-6px); }
.bm-plan.is-featured {
  border-color: rgba(43,217,180,.5);
  background: linear-gradient(180deg, rgba(43,217,180,.06), var(--bm-surface));
  box-shadow: var(--bm-glow);
}
.bm-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--bm-font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2));
  color: #04121a; padding: 6px 16px; border-radius: 999px;
}
.bm-plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.bm-plan .desc { font-size: .92rem; color: var(--bm-text-soft); min-height: 44px; margin-bottom: 18px; }
.bm-plan .price { font-family: var(--bm-font-display); font-size: 2.6rem; font-weight: 800; color: var(--bm-text); line-height: 1; margin-bottom: 2px; }
.bm-plan .price span { font-size: 1rem; font-weight: 500; color: var(--bm-text-dim); }
.bm-plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.bm-plan li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--bm-text-soft); }
.bm-plan li svg { width: 18px; height: 18px; color: var(--bm-accent); flex-shrink: 0; margin-top: 2px; }
.bm-plan .bm-btn { width: 100%; justify-content: center; }
.bm-plan .best { font-size: .82rem; color: var(--bm-text-dim); margin-top: 14px; text-align: center; }
@media (max-width: 880px){ .bm-pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ============================================================
   DIAGNOSE FORM
   ============================================================ */
.bm-form-wrap {
  background: linear-gradient(180deg, var(--bm-surface), var(--bm-bg-soft));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 38px;
  box-shadow: var(--bm-card-shadow);
}
.bm-form-section-title {
  font-family: var(--bm-font-display);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bm-accent);
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 18px;
}
.bm-form-section-title:first-child { margin-top: 0; }
.bm-form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--bm-border); }
.bm-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.bm-field { display: flex; flex-direction: column; gap: 7px; }
.bm-field.is-full { grid-column: 1 / -1; }
.bm-field label { font-size: .88rem; font-weight: 600; color: var(--bm-text); }
.bm-field label .hint { font-weight: 400; color: var(--bm-text-dim); font-size: .82rem; }
.bm-field input, .bm-field select, .bm-field textarea {
  font-family: var(--bm-font-body); font-size: .96rem;
  background: var(--bm-bg); color: var(--bm-text);
  border: 1px solid var(--bm-border); border-radius: 11px;
  padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.bm-field input:focus, .bm-field select:focus, .bm-field textarea:focus {
  outline: none; border-color: var(--bm-accent);
  box-shadow: 0 0 0 3px rgba(43,217,180,.16);
}
.bm-field textarea { resize: vertical; min-height: 120px; }
.bm-field input::placeholder, .bm-field textarea::placeholder { color: var(--bm-text-dim); }
.bm-form-actions { margin-top: 28px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bm-form-note { font-size: .85rem; color: var(--bm-text-dim); }
@media (max-width: 700px){ .bm-form-wrap { padding: 24px; } .bm-form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SAMPLE REPORT
   ============================================================ */
.bm-report {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  box-shadow: var(--bm-card-shadow);
}
.bm-report-head {
  background: linear-gradient(120deg, rgba(43,217,180,.1), rgba(77,140,255,.08));
  border-bottom: 1px solid var(--bm-border);
  padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.bm-report-head h3 { margin: 0; font-size: 1.3rem; }
.bm-report-head .tag { font-family: var(--bm-font-display); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--bm-accent); background: rgba(43,217,180,.1); border: 1px solid rgba(43,217,180,.25); padding: 6px 13px; border-radius: 999px; }
.bm-report-body { padding: 32px; }
.bm-report-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
.bm-report-meta .cell { background: var(--bm-bg); border: 1px solid var(--bm-border-soft); border-radius: 12px; padding: 14px 16px; }
.bm-report-meta .cell small { display: block; color: var(--bm-text-dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.bm-report-meta .cell b { font-family: var(--bm-font-display); color: var(--bm-text); font-size: 1rem; }
.bm-report-block { margin-bottom: 26px; }
.bm-report-block h4 { font-size: 1.1rem; color: var(--bm-text); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.bm-report-block h4 .n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(43,217,180,.12); color: var(--bm-accent); font-size: .82rem; font-family: var(--bm-font-display); font-weight: 700; }
.bm-cause { background: var(--bm-bg); border: 1px solid var(--bm-border-soft); border-left: 3px solid var(--bm-accent); border-radius: 0 12px 12px 0; padding: 14px 18px; margin-bottom: 10px; }
.bm-cause b { font-family: var(--bm-font-display); color: var(--bm-text); }
.bm-cause p { margin: 4px 0 0; font-size: .92rem; }
.bm-report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.bm-report-list li { display: flex; gap: 11px; font-size: .95rem; color: var(--bm-text-soft); }
.bm-report-list li svg { width: 18px; height: 18px; color: var(--bm-accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px){ .bm-report-meta { grid-template-columns: 1fr; } .bm-report-body { padding: 22px; } }

/* ============================================================
   CTA STRIP
   ============================================================ */
.bm-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(43,217,180,.14), rgba(77,140,255,.12));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-lg);
  padding: 56px 40px; text-align: center;
}
.bm-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -40%, rgba(43,217,180,.2), transparent 70%); }
.bm-cta > * { position: relative; }
.bm-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.bm-cta p { font-size: 1.1rem; max-width: 540px; margin: 0 auto 28px; }

/* ============================================================
   PAGE / SINGLE CONTENT
   ============================================================ */
.bm-page-hero { padding: 70px 0 30px; text-align: center; }
.bm-page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.bm-page-hero p { font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.bm-content { padding: 30px 0 80px; }
.bm-prose { font-size: 1.04rem; }
.bm-prose h2 { font-size: 1.7rem; margin: 1.6em 0 .6em; }
.bm-prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.bm-prose h4 { font-size: 1.1rem; margin: 1.2em 0 .4em; color: var(--bm-text); }
.bm-prose ul, .bm-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.bm-prose li { margin-bottom: .5em; }
.bm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.bm-prose blockquote { border-left: 3px solid var(--bm-accent); margin: 1.4em 0; padding: 4px 0 4px 20px; color: var(--bm-text); font-style: italic; }
.bm-prose img { border-radius: var(--bm-radius); margin: 1.4em 0; }
.bm-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.bm-prose th, .bm-prose td { border: 1px solid var(--bm-border); padding: 11px 14px; text-align: left; }
.bm-prose th { background: var(--bm-surface); font-family: var(--bm-font-display); color: var(--bm-text); }

/* ============================================================
   FAQ (details/summary)
   ============================================================ */
.bm-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.bm-faq details {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-sm);
  padding: 4px 22px;
  transition: border-color .25s;
}
.bm-faq details[open] { border-color: rgba(43,217,180,.4); }
.bm-faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--bm-font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--bm-text);
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.bm-faq summary::-webkit-details-marker { display: none; }
.bm-faq summary .pm { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.bm-faq summary .pm::before, .bm-faq summary .pm::after { content: ""; position: absolute; background: var(--bm-accent); border-radius: 2px; transition: transform .25s; }
.bm-faq summary .pm::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.bm-faq summary .pm::after { width: 2px; height: 14px; top: 5px; left: 11px; }
.bm-faq details[open] summary .pm::after { transform: rotate(90deg); opacity: 0; }
.bm-faq .ans { padding: 0 0 18px; color: var(--bm-text-soft); font-size: .98rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.bm-footer { border-top: 1px solid var(--bm-border-soft); background: var(--bm-bg-soft); padding: 56px 0 30px; margin-top: 40px; }
.bm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.bm-footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.bm-footer-about { font-size: .94rem; max-width: 360px; }
.bm-footer h5 { font-family: var(--bm-font-display); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--bm-text-dim); margin-bottom: 16px; }
.bm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bm-footer ul a { color: var(--bm-text-soft); font-size: .95rem; font-weight: 500; }
.bm-footer ul a:hover { color: var(--bm-accent); }
.bm-footer-bottom { border-top: 1px solid var(--bm-border-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--bm-text-dim); }
@media (max-width: 760px){ .bm-footer-grid { grid-template-columns: 1fr 1fr; } .bm-footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.bm-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--bm-ease), transform .7s var(--bm-ease); }
.bm-reveal.is-visible { opacity: 1; transform: none; }

/* WP core alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* WP admin bar fix */
body.admin-bar .bm-header { top: 32px; }
@media (max-width: 782px){ body.admin-bar .bm-header { top: 46px; } }

/* ============================================================
   THEME PANEL EXTRAS / FOOTER BRANDING
   ============================================================ */
.bm-brand .bm-brand-text{font-family:var(--bm-font-display);font-weight:800;letter-spacing:-.03em;color:var(--bm-text)}
.bm-footer-about-col{min-width:0}.bm-footer-logo{max-width:210px;height:auto;display:block}.bm-footer-brand-text{font-family:var(--bm-font-display);font-weight:800;font-size:1.2rem;letter-spacing:-.03em;color:var(--bm-text)}.bm-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.bm-socials a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bm-border);background:var(--bm-surface);border-radius:999px;padding:7px 11px;font-size:.82rem;font-weight:700;color:var(--bm-text-soft)}.bm-socials a:hover{color:var(--bm-accent);border-color:rgba(43,217,180,.45)}@media (max-width:760px){.bm-footer-grid{grid-template-columns:1fr}.bm-footer-about-col{grid-column:1/-1}}

/* ============================================================
   BEFOREMECHANIC AI REPORTS PLUGIN PRICING COMPATIBILITY
   Keeps plugin-generated [bm_pricing] cards consistent with the theme.
   ============================================================ */
.bmar-pricing {
  margin: 0 !important;
}
.bmar-pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
}
.bmar-price-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: var(--bm-surface) !important;
  border: 1px solid var(--bm-border) !important;
  border-radius: var(--bm-radius-lg) !important;
  padding: 32px 28px !important;
  box-shadow: none !important;
  color: var(--bm-text-soft) !important;
  transition: transform .3s var(--bm-ease), border-color .3s !important;
}
.bmar-price-card:hover { transform: translateY(-6px) !important; }
.bmar-price-card.is-featured {
  border-color: rgba(43,217,180,.5) !important;
  background: linear-gradient(180deg, rgba(43,217,180,.06), var(--bm-surface)) !important;
  box-shadow: var(--bm-glow) !important;
}
.bmar-price-tag {
  display: inline-flex !important;
  align-self: flex-start !important;
  border-radius: 999px !important;
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2)) !important;
  color: #04121a !important;
  font-family: var(--bm-font-display) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  padding: 6px 13px !important;
  margin-bottom: 16px !important;
}
.bmar-price-card h3 {
  color: var(--bm-text) !important;
  font-family: var(--bm-font-display) !important;
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
}
.bmar-price-amount {
  color: var(--bm-text) !important;
  font-family: var(--bm-font-display) !important;
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
  line-height: 1 !important;
  margin: 0 0 22px !important;
}
.bmar-price-amount span {
  color: var(--bm-text-dim) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.bmar-price-best {
  color: var(--bm-text-soft) !important;
  font-size: .94rem !important;
  line-height: 1.65 !important;
  min-height: 58px !important;
  margin: 0 0 22px !important;
}
.bmar-price-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 26px !important;
  display: grid !important;
  gap: 11px !important;
  color: var(--bm-text-soft) !important;
  flex: 1 !important;
}
.bmar-price-card li {
  position: relative !important;
  margin: 0 !important;
  padding-left: 29px !important;
  color: var(--bm-text-soft) !important;
  font-size: .94rem !important;
  line-height: 1.45 !important;
}
.bmar-price-card li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  top: .02em !important;
  width: 18px !important;
  height: 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(43,217,180,.12) !important;
  color: var(--bm-accent) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.bmar-price-card .bm-btn {
  width: 100% !important;
  justify-content: center !important;
  margin-top: auto !important;
}
.bmar-pricing-note {
  color: var(--bm-text-dim) !important;
  margin: 22px 0 0 !important;
  font-size: .9rem !important;
}
@media (max-width: 880px) {
  .bmar-pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
}

/* ============================================================
   BLOG / CATEGORIES / SINGLE POST
   ============================================================ */
.bm-blog-hero .bm-page-lead { max-width: 820px; font-size: 1.08rem; }
.bm-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bm-text-dim);
  font-size: .9rem;
}
.bm-breadcrumbs a { color: var(--bm-text-soft); }
.bm-breadcrumbs a:hover { color: var(--bm-accent); }
.bm-breadcrumbs span { color: var(--bm-text-dim); }

.bm-blog-filters {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--bm-border-soft);
  border-radius: var(--bm-radius);
  background: rgba(255,255,255,.025);
}
.bm-blog-filter-title {
  margin: 0 0 12px;
  color: var(--bm-text);
  font-family: var(--bm-font-display);
  font-weight: 700;
  font-size: .92rem;
}
.bm-blog-filter-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bm-border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--bm-text-soft);
  background: rgba(255,255,255,.03);
  font-weight: 700;
  font-size: .88rem;
}
.bm-filter-chip:hover,
.bm-filter-chip.is-active {
  border-color: rgba(43,217,180,.45);
  background: rgba(43,217,180,.1);
  color: var(--bm-text);
}

.bm-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.bm-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bm-post-card {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bm-surface), var(--bm-bg-soft));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
  transition: transform .25s var(--bm-ease), border-color .25s var(--bm-ease);
}
.bm-post-card:hover { transform: translateY(-4px); border-color: rgba(43,217,180,.35); }
.bm-post-thumb {
  display: grid;
  min-height: 170px;
  background: radial-gradient(360px 180px at 80% 0%, rgba(77,140,255,.25), transparent 65%), linear-gradient(135deg, rgba(43,217,180,.14), rgba(77,140,255,.12));
  border-bottom: 1px solid var(--bm-border-soft);
  overflow: hidden;
}
.bm-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bm-post-thumb-placeholder { place-items: center; }
.bm-post-thumb-placeholder span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--bm-accent), var(--bm-accent-2));
  color: #04121a;
  font-family: var(--bm-font-display);
  font-weight: 800;
  font-size: 2rem;
}
.bm-post-card-body { padding: 22px; }
.bm-post-card h2 { font-size: 1.18rem; margin: 8px 0; }
.bm-post-card h2 a { color: var(--bm-text); }
.bm-post-card h2 a:hover { color: var(--bm-accent); }
.bm-post-card p { font-size: .94rem; }
.bm-post-meta { color: var(--bm-text-dim) !important; font-size: .88rem !important; margin-bottom: 12px !important; }
.bm-post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bm-post-cats a {
  display: inline-flex;
  border: 1px solid rgba(43,217,180,.25);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(43,217,180,.08);
  color: var(--bm-accent);
  font-size: .76rem;
  font-family: var(--bm-font-display);
  font-weight: 700;
}
.bm-read-more {
  display: inline-flex;
  margin-top: 6px;
  color: var(--bm-accent);
  font-family: var(--bm-font-display);
  font-weight: 700;
}
.bm-pagination { margin-top: 34px; text-align: center; }
.bm-pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--bm-border);
  color: var(--bm-text-soft);
  margin: 0 3px;
  padding: 0 10px;
}
.bm-pagination .page-numbers.current,
.bm-pagination .page-numbers:hover { border-color: var(--bm-accent); color: var(--bm-text); background: rgba(43,217,180,.08); }

.bm-blog-sidebar { display: grid; gap: 18px; position: sticky; top: 96px; }
.bm-side-card,
.bm-blog-cta,
.bm-inline-cta {
  background: linear-gradient(180deg, var(--bm-surface), var(--bm-bg-soft));
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 22px;
  box-shadow: var(--bm-card-shadow);
}
.bm-side-card h3,
.bm-blog-cta h3,
.bm-inline-cta h3 { font-size: 1.08rem; margin-bottom: 12px; }
.bm-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bm-side-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--bm-border-soft);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--bm-text-soft);
  background: rgba(255,255,255,.02);
}
.bm-side-list a:hover { border-color: rgba(43,217,180,.35); color: var(--bm-text); }
.bm-side-list em {
  font-style: normal;
  color: var(--bm-text-dim);
  font-size: .82rem;
}
.bm-obd-list { display: grid; gap: 9px; }
.bm-obd-list a {
  display: block;
  border: 1px solid var(--bm-border-soft);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255,255,255,.02);
}
.bm-obd-list strong { display: block; color: var(--bm-accent); font-family: var(--bm-font-display); font-size: .92rem; }
.bm-obd-list span { display: block; color: var(--bm-text-soft); font-size: .84rem; margin-top: 2px; }
.bm-blog-cta {
  background: linear-gradient(135deg, rgba(43,217,180,.12), rgba(77,140,255,.08)), var(--bm-surface);
  border-color: rgba(43,217,180,.28);
}
.bm-blog-cta p { font-size: .94rem; }
.bm-blog-cta .bm-btn { width: 100%; justify-content: center; }
.bm-blog-cta:not(.is-sidebar) { margin-top: 32px; }
.bm-inline-cta { margin: 28px 0; }
.bm-inline-cta .bm-btn { margin-top: 8px; }

.bm-single-thumb {
  overflow: hidden;
  border-radius: var(--bm-radius-lg);
  border: 1px solid var(--bm-border);
  margin-bottom: 28px;
  box-shadow: var(--bm-card-shadow);
  aspect-ratio: 16 / 7;
  background: var(--bm-bg-soft);
}
.bm-single-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
}
/* Keep oversized generated/blog featured images from pushing article text far below the fold. */
.bm-single-content .bm-blog-main { min-width: 0; }
.bm-prose h2,
.bm-prose h3 { margin-top: 1.35em; }
.bm-prose ul,
.bm-prose ol { color: var(--bm-text-soft); }
.bm-empty {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 34px;
  text-align: center;
}

@media (max-width: 980px) {
  .bm-blog-layout { grid-template-columns: 1fr; }
  .bm-blog-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bm-blog-cta.is-sidebar { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .bm-post-grid { grid-template-columns: 1fr; }
  .bm-blog-sidebar { grid-template-columns: 1fr; }
  .bm-blog-filters { padding: 14px; }
  .bm-filter-chip { font-size: .82rem; padding: 8px 11px; }
  .bm-single-content { padding-top: 14px !important; }
  .bm-single-thumb { aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: 18px; }
}


/* ============================================================
   SINGLE POST VISIBILITY HOTFIX v1.1.4
   Disable reveal hiding on blog article content. Some mobile/
   cache/optimizer setups delay IntersectionObserver, causing the
   article body to remain invisible until far below the image.
   ============================================================ */
body.single-post .bm-reveal,
body.single .bm-single-content .bm-reveal,
body.single-post .bm-single-thumb,
body.single-post .bm-prose {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}
body.single-post .bm-single-content {
  display: block !important;
  padding-top: 18px !important;
}
body.single-post .bm-blog-main {
  display: block !important;
}
body.single-post .bm-prose {
  display: block !important;
  clear: both !important;
}
body.single-post .bm-single-thumb {
  max-height: 430px !important;
}
body.single-post .bm-single-thumb img {
  max-height: 430px !important;
}
@media (max-width: 720px) {
  body.single-post .bm-single-content { padding-top: 10px !important; }
  body.single-post .bm-single-thumb {
    aspect-ratio: 16 / 9 !important;
    max-height: 230px !important;
    margin-bottom: 18px !important;
  }
  body.single-post .bm-single-thumb img { max-height: 230px !important; }
  body.single-post .bm-blog-layout,
  body.single-post .bm-blog-main,
  body.single-post .bm-prose {
    width: 100% !important;
    min-width: 0 !important;
  }
}
