/* =====================================================
   SMART AGENT — BLOG SHARED STYLESHEET
   White Professional Theme | Fully Responsive
   ===================================================== */

/* ── 1. THEME COLOR VARIABLES ─────────────────────── */
:root {
  --navy:   #1e3a8a;
  --blue:   #1d4ed8;
  --cyan:   #3b82f6;
  --gold:   #1d4ed8;
  --green:  #1d4ed8;
  --violet: #1d4ed8;
  --white:  #ffffff;
  --gray:   #f8fafc;
  --text:   #1e293b;
  --muted:  #64748b;
  --border: #e2e8f0;
}

/* ── 2. BODY & BASE ───────────────────────────────── */
body {
  background: #ffffff;
  color: #1e293b;
}

/* ── 3. NAV — white, clean, professional ─────────── */
nav {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06) !important;
}
.nav-logo {
  color: #1e3a8a !important;
}
.nav-logo span {
  color: #1d4ed8 !important;
}
.nav-links a {
  color: #374151 !important;
}
.nav-links a:hover {
  color: #1d4ed8 !important;
}
.nav-cta {
  background: #1d4ed8 !important;
  color: #fff !important;
}
.nav-demo {
  border-color: #1d4ed8 !important;
  color: #1d4ed8 !important;
  background: transparent !important;
}
.nav-demo:hover {
  background: #eff6ff !important;
}

/* ── 4. HAMBURGER BUTTON ─────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 11px;
  font-size: 1.2rem;
  line-height: 1;
  color: #1d4ed8;
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 10001;
  position: relative;
}
.nav-hamburger:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
}

/* ── 5. HERO — professional deep blue gradient ────── */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
}
.hero::before {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%) !important;
}

/* Hero title — clean, simple, readable */
h1.hero-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}
h1.hero-title em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #93c5fd !important;
}
.hero-desc {
  font-size: 0.93rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}
.hero-badge {
  background: rgba(147, 197, 253, 0.15) !important;
  border-color: rgba(147, 197, 253, 0.3) !important;
  color: #bfdbfe !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

/* Hero visual cards — frosted glass on blue */
.comm-visual, .lead-visual, .income-visual, .growth-visual,
[class$="-visual"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.cv-title, .lv-title, .iv-title, .gv-title {
  color: rgba(255, 255, 255, 0.55) !important;
}
.comm-total, .income-total {
  background: linear-gradient(135deg, rgba(147,197,253,0.18), rgba(147,197,253,0.07)) !important;
  border-color: rgba(147, 197, 253, 0.28) !important;
}
.comm-total-num, .income-total-num,
.ir-amount, .cr-amount, .gc-count, .gv-bar-val {
  color: #93c5fd !important;
}
.income-tip {
  background: rgba(147, 197, 253, 0.1) !important;
  border-color: rgba(147, 197, 253, 0.2) !important;
}
.comm-bar-fill, .ir-bar-fill {
  background: linear-gradient(90deg, #93c5fd, #60a5fa) !important;
}
.gc-bar {
  background: linear-gradient(90deg, #93c5fd, #bfdbfe) !important;
}
.gv-bar {
  background: linear-gradient(180deg, #93c5fd, #60a5fa) !important;
}

/* ── 6. SECTIONS — white & near-white ───────────── */
.section { background: #ffffff; }
.section-alt { background: #f8fafc !important; }
.faq-section { background: #f8fafc !important; }

/* ── 7. SECTION TAG & TITLES ─────────────────────── */
.sec-tag {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #dbeafe !important;
}
.sec-title em { color: #1d4ed8 !important; }

/* ── 8. CONTENT BODY ─────────────────────────────── */
.content-body a { color: #1d4ed8 !important; }

/* ── 9. FEATURE CARDS ────────────────────────────── */
.feat-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.feat-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.08) !important;
  transform: translateY(-2px);
}

/* ── 10. STAT STRIP ──────────────────────────────── */
.stat-strip { margin: 28px 0; }
.stat-box {
  background: #ffffff !important;
  border: 1.5px solid #dbeafe !important;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.05) !important;
}
.stat-num { color: #1d4ed8 !important; }

/* ── 11. HIGHLIGHT BOXES ─────────────────────────── */
.hl-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.hl-box-title { color: #1d4ed8 !important; }
.gold-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.gold-box-title { color: #1e40af !important; }
.green-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.green-box-title { color: #1d4ed8 !important; }
.info-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.info-box-title { color: #1d4ed8 !important; }

/* ── 12. TABLES ──────────────────────────────────── */
.comm-table th { background: #1e3a8a !important; }
.comm-table tr:nth-child(even) td { background: #f8fafc !important; }
.comm-pct { color: #1d4ed8 !important; }

/* ── 13. INCOME TIER CARDS ───────────────────────── */
.tier-growing {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.tier-top {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}
.badge-growing, .badge-top {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}
.tier-income { color: #1d4ed8 !important; }

/* ── 14. STRATEGY CARDS ──────────────────────────── */
.strategy-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.strategy-card::before {
  background: linear-gradient(180deg, #1d4ed8, #3b82f6) !important;
}
.strategy-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.09) !important;
}
.sc-num { color: rgba(29, 78, 216, 0.08) !important; }
.sc-tip {
  background: #eff6ff !important;
  border-color: #dbeafe !important;
}
.sc-tip strong { color: #1d4ed8 !important; }

/* ── 15. SIDEBAR ─────────────────────────────────── */
.sb-cta {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
}
.btn-sb {
  background: #2563eb !important;
}
.btn-sb:hover { background: #1d4ed8 !important; }
.btn-sb-demo {
  color: #bfdbfe !important;
  border-color: rgba(191, 219, 254, 0.5) !important;
}
.btn-sb-demo:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.sb-links a { color: #1d4ed8 !important; }
.sb-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* ── 16. FAQ ──────────────────────────────────────── */
.faq-arr { color: #1d4ed8 !important; }
.faq-q:hover { background: #f8fafc !important; }
.faq-item { border-color: #e2e8f0 !important; }

/* ── 17. BUTTONS ─────────────────────────────────── */
.btn-primary {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
.btn-primary:hover {
  background: #1e40af !important;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.3) !important;
}
.btn-demo {
  border-color: rgba(191, 219, 254, 0.5) !important;
}
.btn-demo:hover {
  background: rgba(191, 219, 254, 0.12) !important;
  border-color: #93c5fd !important;
  color: #93c5fd !important;
}

/* ── 18. CTA STRIP ───────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
}

/* ── 19. FOOTER ──────────────────────────────────── */
footer { background: #1e3a8a !important; }
.footer-logo { color: #fff !important; }
.footer-logo span { color: #93c5fd !important; }
footer .footer-col ul li a:hover { color: #93c5fd !important; }
footer .footer-bottom a { color: #93c5fd !important; }
footer .foot-links a:hover { color: #93c5fd !important; }

/* ── 20. CHECKLIST ───────────────────────────────── */
.checklist li::before { color: #1d4ed8 !important; }

/* ── OLD TEMPLATE OVERRIDES ──────────────────────── */
.blog-post-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
}
.cta-sidebar {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
}
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
}
.callout {
  background: #eff6ff !important;
  border-left-color: #1d4ed8 !important;
}
.callout p { color: #1e40af !important; }
.post-content a { color: #1d4ed8 !important; }
.toc-list li a:hover { color: #1d4ed8 !important; }
.toc-list li a::before { color: #1d4ed8 !important; }
.related-post a:hover { color: #1d4ed8 !important; }
.related-icon { background: #eff6ff !important; }

/* ── 21. MOBILE HAMBURGER & RESPONSIVE NAV ────────── */
@media (max-width: 960px) {

  /* Show hamburger button */
  .nav-hamburger {
    display: flex !important;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    flex-direction: column !important;
    padding: 8px 0 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border-top: 2px solid #dbeafe !important;
    z-index: 99999 !important;
    gap: 0 !important;
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
  }

  /* Show when .open class is added by JS */
  .nav-links.open {
    display: flex !important;
  }

  /* Nav link items */
  .nav-links li {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .nav-links li:last-child {
    border-bottom: none !important;
  }
  .nav-links a {
    display: block !important;
    padding: 13px 24px !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    transition: background 0.15s !important;
  }
  .nav-links a:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
  }
  .nav-cta {
    margin: 10px 16px 4px !important;
    border-radius: 8px !important;
    text-align: center !important;
    display: block !important;
    padding: 12px 24px !important;
  }
  .nav-demo {
    margin: 0 16px 4px !important;
    border-radius: 8px !important;
    text-align: center !important;
    display: block !important;
    padding: 11px 24px !important;
  }
}

/* ── 22. LAYOUT RESPONSIVE ────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .sidebar { position: static !important; }
  .stat-strip { grid-template-columns: 1fr 1fr !important; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .tier-grid { grid-template-columns: 1fr !important; }
  .stages-grid { grid-template-columns: 1fr 1fr !important; }
  /* Hide hero visual dashboards on tablet/mobile */
  .comm-visual, .lead-visual, .income-visual, .growth-visual,
  [class$="-visual"] { display: none !important; }
}

@media (max-width: 600px) {
  .stat-strip   { grid-template-columns: 1fr 1fr !important; }
  .stages-grid  { grid-template-columns: 1fr !important; }
  .footer-grid  { grid-template-columns: 1fr !important; }
  .cta-btns     { flex-direction: column !important; align-items: center !important; }
  .hero-btns    { flex-direction: column !important; }
  .hero-btns a  { text-align: center !important; }
  .hero-stats   { gap: 16px !important; flex-wrap: wrap !important; }
  h1.hero-title { font-size: 1.45rem !important; line-height: 1.35 !important; }
  .content-body h2 { font-size: 1.2rem !important; }
  .tier-grid    { grid-template-columns: 1fr !important; }
  .nav-hamburger { display: flex !important; }
}
