/*
Theme Name: BizBee
Theme URI: https://bizbeebusinesscredit.com
Author: BizBee
Description: BizBee Business Credit — YMYL finance authority theme. Navy + honey on cream, Fraunces + Inter, honeycomb motif. Shared responsive foundation baked in once; every page inherits.
Version: 1.2.0
License: GPL-2.0-or-later
Text Domain: bizbee
*/

/* ============================================================= TOKENS */
:root{
  --ink:#13293D; --honey:#F5B731; --honey-ink:#3D2A00; --amber:#8F5C00;
  --green:#1E7A52; --red:#C0392B; --cream:#FBF8F1; --white:#FFFFFF;
  --slate:#5B6B7A; --border:#E7E2D6;
  --font-display:"Fraunces",Georgia,serif;
  --font-body:"Inter",system-ui,-apple-system,sans-serif;
  --maxw:1100px; --measure:720px; --gutter:24px; --radius:8px; --radius-card:12px;
  --space-1:8px; --space-2:12px; --space-3:16px; --space-4:24px; --space-5:40px; --space-6:64px;
  --fs-h1:clamp(28px,5.2vw,40px); --fs-h2:clamp(22px,3.4vw,28px);
  --fs-h3:clamp(18px,2.2vw,20px); --fs-body:clamp(16px,1.4vw,18px); --fs-stat:clamp(30px,5vw,44px);
}

/* ============================================================= RESET / BASE (mobile-first) */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--font-body); font-size:var(--fs-body); line-height:1.7;
  color:var(--ink); background:var(--cream); font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}
img,svg,video,table{ max-width:100%; height:auto; }
a{ color:var(--amber); text-underline-offset:2px; }
a:hover{ color:var(--ink); }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:500; line-height:1.2; color:var(--ink); }
h1{ font-size:var(--fs-h1); line-height:1.15; }
h2{ font-size:var(--fs-h2); line-height:1.25; margin-top:1.6em; }
h3{ font-size:var(--fs-h3); line-height:1.3; margin-top:1.4em; }
p,li{ font-size:var(--fs-body); }
:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* ============================================================= LAYOUT */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:16px; }
@media (min-width:768px){ .container{ padding-inline:24px; } }
.measure{ max-width:var(--measure); margin-inline:auto; }
.section{ padding-block:var(--space-5); }
@media (min-width:768px){ .section{ padding-block:var(--space-6); } }
.grid{ display:grid; gap:var(--gutter); }
.cards{ display:grid; gap:var(--gutter); grid-template-columns:1fr; }
@media (min-width:768px){ .cards{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); } }
.cols-2,.cols-3{ display:grid; gap:var(--gutter); grid-template-columns:1fr; }
@media (min-width:768px){ .cols-2{ grid-template-columns:1fr 1fr; } .cols-3{ grid-template-columns:repeat(3,1fr); } }
.eyebrow{ font:500 11.5px/1 var(--font-body); letter-spacing:.13em; text-transform:uppercase; color:var(--amber); }

/* ============================================================= HEADER / NAV */
.site-header{ position:sticky; top:0; z-index:50; background:var(--white); border-bottom:1px solid var(--border); }
.site-header .bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-family:var(--font-display); font-weight:600; font-size:22px; }
.brand .hex{ width:26px; height:26px; flex:0 0 auto; }
.brand .hex polygon{ fill:var(--honey); }
.nav-toggle{ display:inline-flex; align-items:center; gap:8px; background:none; border:1px solid var(--border); border-radius:var(--radius); padding:8px 12px; font:500 14px var(--font-body); color:var(--ink); cursor:pointer; }
.primary-nav{ display:none; }
.primary-nav ul{ list-style:none; display:flex; gap:22px; margin:0; padding:0; }
.primary-nav a{ color:var(--ink); text-decoration:none; font:500 15px var(--font-body); padding:8px 0; }
.primary-nav a:hover{ color:var(--amber); }
.header-cta{ display:none; }
@media (min-width:1024px){
  .nav-toggle{ display:none; }
  .primary-nav{ display:block; }
  .header-cta{ display:inline-block; }
}
/* mobile drawer */
.mobile-nav{ border-top:1px solid var(--border); background:var(--white); }
.mobile-nav[hidden]{ display:none; }
.mobile-nav ul{ list-style:none; margin:0; padding:8px 0; }
.mobile-nav a{ display:block; padding:12px 16px; color:var(--ink); text-decoration:none; min-height:44px; }
.mobile-nav a:hover{ background:var(--cream); }

/* ============================================================= BUTTONS */
.cta,.btn-primary{ display:inline-block; background:var(--honey); color:var(--honey-ink); font-weight:600; padding:12px 20px; border-radius:var(--radius); text-decoration:none; border:0; cursor:pointer; line-height:1.2; }
.cta:hover,.btn-primary:hover{ color:var(--honey-ink); filter:brightness(.96); }
@media (min-width:768px){ .cta,.btn-primary{ padding:14px 26px; } }
.btn-ghost{ display:inline-block; padding:12px 20px; border:1.5px solid var(--amber); color:var(--amber); border-radius:var(--radius); text-decoration:none; font-weight:600; }
.btn-on-navy{ display:inline-block; padding:12px 20px; border:1.5px solid rgba(255,255,255,.55); color:#fff; border-radius:var(--radius); text-decoration:none; font-weight:600; }

/* ============================================================= HERO */
.hero{ background:var(--ink); color:#fff; }
.hero h1,.hero h2{ color:#fff; }
.hero .eyebrow{ color:var(--honey); }
.hero p{ color:#cfd8e0; }
.hero-inner{ padding-block:var(--space-6); }

/* ============================================================= ARTICLE / CONTENT */
.page-main{ padding-block:var(--space-5); }
.article-body{ max-width:var(--measure); margin-inline:auto; }
.article-body > *{ margin-block:1rem; }
.article-body h2,.article-body h3{ margin-top:1.8em; }

/* breadcrumbs */
.breadcrumbs{ font-size:14px; color:var(--slate); padding-block:12px; }
.breadcrumbs a{ color:var(--slate); }
.breadcrumbs a:hover{ color:var(--amber); }

/* trust bar (E-E-A-T) */
.trust-bar{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; padding:12px 0; border-block:1px solid var(--border); font-size:14px; color:var(--slate); }
.trust-bar .avatar{ width:40px; height:40px; border-radius:50%; background:var(--cream); border:2px solid var(--honey); object-fit:cover; }
.trust-bar strong{ color:var(--ink); }

/* advertiser disclosure */
.disclosure{ background:#fffaf0; border:1px solid var(--border); border-left:3px solid var(--honey); border-radius:var(--radius); padding:10px 14px; font-size:13.5px; color:var(--slate); margin-block:18px; }

/* cards */
.card{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-card); padding:20px; }
.card h3{ margin-top:0; }
.lender-card{ position:relative; }
.lender-card.featured{ border:2px solid var(--honey); }
.badge-best{ display:inline-block; background:var(--green); color:#fff; font:600 11.5px/1 var(--font-body); letter-spacing:.06em; text-transform:uppercase; padding:5px 9px; border-radius:6px; }
.pros li{ color:var(--green); }
.cons li{ color:var(--red); }

/* scorecard */
.scorecard{ background:var(--ink); color:#fff; border-radius:var(--radius-card); padding:20px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (min-width:560px){ .scorecard{ grid-template-columns:repeat(4,1fr); } }
.scorecard .k{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#9fb0bd; }
.scorecard .v{ font-family:var(--font-display); font-size:clamp(20px,4vw,26px); }

/* stat */
.stat .num{ font-family:var(--font-display); font-size:var(--fs-stat); color:var(--ink); line-height:1; }
.stat .lbl{ font-size:14px; color:var(--slate); }

/* callout / warning */
.callout{ border:1px solid var(--border); border-left:4px solid var(--honey); background:var(--white); border-radius:var(--radius); padding:16px 18px; margin-block:20px; }
.callout.warn{ border-left-color:var(--red); }
.callout.warn strong{ color:var(--red); }

/* footnote */
.footnote,.footnotes{ font-size:13px; color:var(--slate); }
.flag{ color:var(--amber); }

/* ============================================================= COMPARISON TABLE → cards on mobile */
.cmp{ width:100%; border-collapse:collapse; background:var(--white); border-radius:var(--radius-card); overflow:hidden; font-size:15px; }
.cmp caption{ caption-side:top; text-align:left; font-size:13px; color:var(--slate); padding-bottom:8px; }
.cmp th{ background:var(--ink); color:#fff; }
.cmp tbody tr:nth-child(odd){ background:var(--cream); }
.cmp th,.cmp td{ padding:12px 14px; border:1px solid var(--border); text-align:left; vertical-align:top; }
.cmp .tag{ color:var(--amber); font-weight:600; }
@media (max-width:767px){
  .cmp,.cmp tbody,.cmp tr,.cmp td{ display:block; width:100%; }
  .cmp thead{ display:none; }
  .cmp caption{ padding-inline:2px; }
  .cmp tr{ margin-bottom:16px; border:1px solid var(--border); border-radius:var(--radius-card); overflow:hidden; background:var(--white); }
  .cmp tbody tr:nth-child(odd){ background:var(--white); }
  .cmp td{ display:flex; justify-content:space-between; gap:16px; border:0; border-bottom:1px solid var(--border); }
  .cmp td:last-child{ border-bottom:0; }
  .cmp td::before{ content:attr(data-label); font-weight:600; color:var(--slate); flex:0 0 45%; }
}

/* FAQ */
.faq details{ border:1px solid var(--border); border-radius:var(--radius); background:var(--white); padding:4px 16px; margin-block:10px; }
.faq summary{ cursor:pointer; font-weight:600; padding:12px 0; }

/* glossary tooltip */
.gloss{ border-bottom:1px dotted var(--amber); cursor:help; }

/* reserved ad slot — prevents CLS */
.adslot{ min-height:90px; display:flex; align-items:center; justify-content:center; color:var(--slate); font-size:12px; border:1px dashed var(--border); border-radius:var(--radius); margin-block:24px; }

/* ============================================================= FOOTER */
.site-footer{ background:var(--ink); color:#cfd8e0; margin-top:var(--space-6); }
.site-footer a{ color:#cfd8e0; text-decoration:none; }
.site-footer a:hover{ color:var(--honey); }
.footer-top{ padding-block:var(--space-5); display:grid; gap:28px; grid-template-columns:1fr; }
@media (min-width:640px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (min-width:960px){ .footer-top{ grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr; } }
.site-footer .footer-col-title{ color:#fff; font-family:var(--font-body); font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; margin:0 0 12px; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-block:7px; font-size:14.5px; }
.footer-brand .hex{ width:24px; height:24px; }
.footer-brand .hex polygon{ fill:var(--honey); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-block:18px; font-size:13px; color:#9fb0bd; display:flex; flex-wrap:wrap; gap:10px 18px; justify-content:space-between; }
.badges{ display:flex; gap:10px; align-items:center; }
.badges span{ border:1px solid rgba(255,255,255,.25); border-radius:6px; padding:4px 8px; font-size:11px; }

/* utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.pill{ display:inline-block; background:var(--cream); border:1px solid var(--border); border-radius:999px; padding:6px 12px; font-size:13px; margin:3px; text-decoration:none; color:var(--ink); }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:8px; top:8px; background:#fff; padding:8px 12px; z-index:100; border-radius:6px; }

/* ============================================================= CONVERSION LAYER */
html{ scroll-behavior:smooth; }

/* reveal-on-scroll (JS adds .is-in) */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* hover-lift on cards */
.card{ transition:transform .18s ease, box-shadow .18s ease; }
.card:hover{ transform:translateY(-4px); box-shadow:0 10px 28px rgba(19,41,61,.10); }
a.card{ color:inherit; }

/* honest proof band */
.proof-band{ background:var(--ink); color:#cfd8e0; }
.proof-band .grid4{ display:grid; grid-template-columns:1fr 1fr; gap:20px 16px; }
@media (min-width:760px){ .proof-band .grid4{ grid-template-columns:repeat(4,1fr); } }
.proof-band .num{ font-family:var(--font-display); font-size:var(--fs-stat); color:#fff; line-height:1; }
.proof-band .lbl{ font-size:13.5px; color:#9fb0bd; margin-top:4px; }

/* problem-awareness "you're tired of" */
.pains{ display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:680px){ .pains{ grid-template-columns:1fr 1fr; } }
.pain{ display:flex; gap:12px; align-items:flex-start; background:var(--white); border:1px solid var(--border); border-left:3px solid var(--red); border-radius:var(--radius); padding:14px 16px; }
.pain .hx{ width:22px; height:22px; flex:0 0 auto; margin-top:2px; }
.pain .hx polygon{ fill:none; stroke:var(--red); stroke-width:3; }
.pain b{ color:var(--ink); }

/* named method — numbered timeline */
.method{ display:grid; gap:16px; grid-template-columns:1fr; counter-reset:step; }
@media (min-width:760px){ .method{ grid-template-columns:repeat(4,1fr); } }
.method .step{ position:relative; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-card); padding:20px 18px; }
.method .step::before{ counter-increment:step; content:counter(step); display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--honey); color:var(--honey-ink); font-family:var(--font-display); font-weight:600; margin-bottom:10px; }
.method .step h3{ margin:.2em 0; }
.method .step p{ font-size:14.5px; color:var(--slate); margin:0; }

/* evidence "what good looks like" */
.evidence{ display:grid; gap:20px; grid-template-columns:1fr; align-items:stretch; }
@media (min-width:820px){ .evidence{ grid-template-columns:1.3fr 1fr; } }
.evidence .ledger{ width:100%; border-collapse:collapse; font-size:15px; }
.evidence .ledger td{ padding:10px 12px; border-bottom:1px solid var(--border); }
.evidence .ledger .good{ color:var(--green); font-weight:600; }
.evidence .ledger .bad{ color:var(--red); font-weight:600; }

/* hero visual snapshot card */
.hero-snap{ background:var(--white); color:var(--ink); border-radius:var(--radius-card); padding:18px; box-shadow:0 18px 50px rgba(0,0,0,.28); }
.hero-snap .row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:14.5px; }
.hero-snap .row:last-child{ border-bottom:0; }
.hero-snap .row b{ font-family:var(--font-display); }
.hero-grid{ display:grid; gap:28px; grid-template-columns:1fr; align-items:center; }
@media (min-width:900px){ .hero-grid{ grid-template-columns:1.25fr .75fr; } }

/* sticky mobile CTA bar */
.sticky-cta{ position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; gap:10px; align-items:center; justify-content:space-between;
  background:var(--ink); color:#fff; padding:10px 14px; box-shadow:0 -6px 20px rgba(0,0,0,.18);
  transform:translateY(120%); transition:transform .3s ease; }
.sticky-cta.show{ transform:none; }
.sticky-cta .lbl{ font-size:13.5px; color:#cfd8e0; line-height:1.3; }
.sticky-cta .cta{ padding:11px 16px; white-space:nowrap; }
@media (min-width:1024px){ .sticky-cta{ display:none !important; } }
body{ /* room so sticky bar never covers footer content on mobile */ }
@media (max-width:1023px){ .site-footer{ padding-bottom:64px; } }

/* hover-lift must win over .reveal.is-in{transform:none} (specificity) */
.card.reveal.is-in:hover{ transform:translateY(-4px); }

/* ============================================================= SILO DESIGN SYSTEM */
/* Reading typography — scoped to the article reading column so cards/tables/scorecards are untouched */
article .measure > p:first-of-type{ font-size:clamp(18px,1.6vw,20px); color:var(--ink); }
article .measure h2{ position:relative; padding-left:26px; }
article .measure h2::before{
  content:""; position:absolute; left:0; top:.32em; width:15px; height:17px;
  background:var(--honey);
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
/* hex bullets for prose lists only — leave semantic pros/cons + component lists alone */
article .measure ul:not(.pros):not(.cons){ list-style:none; padding-left:0; }
article .measure ul:not(.pros):not(.cons) > li{ position:relative; padding-left:24px; margin-block:8px; }
article .measure ul:not(.pros):not(.cons) > li::before{
  content:""; position:absolute; left:0; top:.62em; width:9px; height:10px; background:var(--amber);
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
article .measure ol{ padding-left:1.2em; }
article .measure blockquote{
  margin:22px 0; padding:14px 20px; border-left:4px solid var(--honey);
  background:var(--white); border-radius:0 var(--radius) var(--radius) 0; color:var(--ink);
  font-size:clamp(17px,1.6vw,19px);
}
article .measure a{ color:var(--amber); text-decoration:underline; text-decoration-color:rgba(143,92,0,.45); }
article .measure a:hover{ color:var(--ink); text-decoration-color:var(--ink); }
article hr{ border:0; height:14px; margin:34px auto; max-width:120px;
  background:radial-gradient(circle at 6px 7px, var(--border) 2.4px, transparent 2.6px);
  background-size:14px 14px; }

/* Silo hub header band */
.silo-head{ background:var(--ink); color:#fff; border-radius:var(--radius-card); padding:26px 24px; margin-bottom:8px; }
.silo-head .eyebrow{ color:var(--honey); }
.silo-head h1,.silo-head h2{ color:#fff; margin:.2em 0 .3em; }
.silo-head p{ color:#cfd8e0; margin:0; max-width:60ch; }

/* Silo-cluster nav (auto-appended to spokes) */
.silo-nav{ margin:44px auto 0; max-width:var(--maxw); background:var(--white); border:1px solid var(--border);
  border-top:3px solid var(--honey); border-radius:var(--radius-card); padding:22px 22px 8px; }
.silo-nav .sn-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.silo-nav .sn-eyebrow{ font:500 11.5px/1 var(--font-body); letter-spacing:.13em; text-transform:uppercase; color:var(--amber); }
.silo-nav h2{ font-size:clamp(19px,2.4vw,23px); margin:.2em 0 0; padding-left:0; }
.silo-nav h2::before{ content:none; }
.silo-nav .sn-hub{ font-weight:600; white-space:nowrap; }
.silo-nav .sn-grid{ display:grid; gap:10px; grid-template-columns:1fr; margin:16px 0 14px; }
@media (min-width:620px){ .silo-nav .sn-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:920px){ .silo-nav .sn-grid{ grid-template-columns:1fr 1fr 1fr; } }
.silo-nav .sn-item{ display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--border);
  border-radius:var(--radius); text-decoration:none; color:var(--ink); font-size:14.5px; font-weight:500;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; background:var(--cream); }
.silo-nav .sn-item:hover{ border-color:var(--honey); transform:translateY(-2px); box-shadow:0 6px 16px rgba(19,41,61,.07); color:var(--ink); }
.silo-nav .sn-item.current{ border-color:var(--honey); background:#fffaf0; color:var(--slate); pointer-events:none; }
.silo-nav .sn-item .hx{ width:14px; height:16px; flex:0 0 auto; }
.silo-nav .sn-item .hx polygon{ fill:var(--honey); }
.silo-nav .sn-item.current .hx polygon{ fill:var(--slate); }

/* ============================================================= IN-ARTICLE STICKY TOC */
.article-shell{ display:block; }
.toc{ margin:0 0 26px; }
.toc-inner{ background:var(--white); border:1px solid var(--border); border-left:3px solid var(--honey);
  border-radius:var(--radius); padding:14px 16px; }
.toc-title{ font:600 12px/1 var(--font-body); letter-spacing:.1em; text-transform:uppercase; color:var(--slate); margin:0 0 10px; }
.toc nav{ display:flex; flex-direction:column; gap:1px; }
.toc a{ font-size:13.5px; color:var(--slate); text-decoration:none; padding:6px 9px; border-radius:6px;
  line-height:1.35; border-left:2px solid transparent; }
.toc a:hover{ color:var(--ink); background:var(--cream); }
.toc a.active{ color:var(--ink); font-weight:600; border-left-color:var(--honey); background:#fffaf0; }
@media (min-width:1040px){
  .article-shell{ display:grid; grid-template-columns:210px minmax(0,720px); gap:36px; justify-content:center; align-items:start; }
  .article-shell .measure{ max-width:none; margin:0; }
  .toc{ margin:0; }
  .toc-inner{ position:sticky; top:88px; max-height:calc(100vh - 112px); overflow:auto; }
}

/* ============================================================= FEATURED IMAGE BANNER */
.featured-banner{ margin:10px auto 6px; }
.featured-banner img{ display:block; width:100%; height:clamp(150px,26vw,300px);
  object-fit:cover; border-radius:var(--radius-card); border:1px solid var(--border); }
