/*
Theme Name: BrowserQuote
Theme URI: https://browserquote.com
Author: BrowserQuote
Description: Marketing and SEO theme for BrowserQuote — independent, data-driven home improvement cost estimates. Ports the BrowserQuote design system (Geist type, brand blue #0072E5, trust green, soft cards). Includes Cost Guide and City Page custom post types with FAQ schema.
Version: 1.8.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: browserquote
*/

/* ============================================================
   Design tokens — ported verbatim from the BrowserQuote design system
   (tokens/colors.css, effects.css, spacing.css). Do not invent new values.
   ============================================================ */
:root {
  --white: #ffffff;
  --black: #111827;

  --blue-50:#eef6ff; --blue-100:#d9ecff; --blue-200:#b6d9ff; --blue-300:#83bfff;
  --blue-400:#479dff; --blue-500:#0072e5; --blue-600:#005cc4; --blue-700:#0049a0;
  --blue-800:#063f83; --blue-900:#0b366c;

  --green-50:#f2fce4; --green-100:#e2f7c8; --green-200:#c8ef97; --green-300:#a6e35f;
  --green-400:#85d635; --green-500:#6ad61f; --green-600:#52a916; --green-700:#3f8112;
  --green-800:#33660f; --green-900:#23470b;

  --gray-25:#fbfcfe; --gray-50:#f5f7fa; --gray-100:#eef1f6; --gray-200:#e3e8ef;
  --gray-300:#cdd5e0; --gray-400:#9aa4b2; --gray-500:#697586; --gray-600:#4b5565;
  --gray-700:#364152; --gray-800:#202939; --gray-900:#111827;

  --amber-50:#fff7e6; --amber-100:#fdecc4; --amber-500:#f5a623; --amber-600:#c97e12; --amber-700:#9a5e0a;
  --red-50:#fef2f2; --red-100:#fde3e3; --red-500:#e5484d; --red-600:#c62a2f; --red-700:#a11d22;

  --surface-page:var(--gray-50); --surface-card:var(--white); --surface-raised:var(--white);
  --surface-sunken:var(--gray-50); --surface-inverse:var(--gray-900);
  --surface-hover:var(--gray-50); --surface-active:var(--gray-100);

  --text-strong:var(--gray-900); --text-body:var(--gray-700); --text-muted:var(--gray-500);
  --text-subtle:var(--gray-400); --text-inverse:var(--white); --text-brand:var(--blue-600);
  --text-link:var(--blue-600); --text-success:var(--green-600); --text-warning:var(--amber-700); --text-danger:var(--red-600);

  --brand:var(--blue-500); --brand-hover:var(--blue-600); --brand-active:var(--blue-700);
  --brand-subtle:var(--blue-50); --brand-subtle-hover:var(--blue-100); --on-brand:var(--white);

  --accent:var(--green-500); --accent-strong:var(--green-600); --accent-subtle:var(--green-50); --on-accent:var(--gray-900);

  --border-subtle:var(--gray-200); --border-default:var(--gray-300); --border-strong:var(--gray-400);
  --border-brand:var(--blue-500); --border-focus:var(--blue-500);

  --success:var(--green-600); --success-subtle:var(--green-50);
  --warning:var(--amber-500); --warning-subtle:var(--amber-50);
  --danger:var(--red-500); --danger-subtle:var(--red-50);
  --info:var(--blue-500); --info-subtle:var(--blue-50);

  --ring:0 0 0 3px rgba(0,114,229,0.35);
  --ring-danger:0 0 0 3px rgba(229,72,77,0.32);

  --radius-xs:4px; --radius-sm:6px; --radius-md:8px; --radius-lg:12px;
  --radius-xl:16px; --radius-2xl:20px; --radius-3xl:28px; --radius-pill:999px;

  --shadow-xs:0 1px 2px rgba(16,24,40,0.05);
  --shadow-sm:0 1px 3px rgba(16,24,40,0.08), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md:0 4px 8px -2px rgba(16,24,40,0.08), 0 2px 4px -2px rgba(16,24,40,0.05);
  --shadow-lg:0 12px 24px -6px rgba(16,24,40,0.10), 0 4px 8px -4px rgba(16,24,40,0.05);
  --shadow-xl:0 24px 48px -12px rgba(16,24,40,0.16), 0 8px 16px -8px rgba(16,24,40,0.06);
  --shadow-2xl:0 40px 72px -18px rgba(16,24,40,0.22);
  --shadow-brand:0 8px 20px -6px rgba(0,114,229,0.40);

  --font-sans:'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container:1180px;
}

/* ============================================================
   Base
   ============================================================ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--surface-page);color:var(--text-strong);font-family:var(--font-sans);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{margin:0;letter-spacing:-0.02em;font-weight:800}
p{margin:0}
.bq-nums{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-0.01em}
.bq-container{width:100%;max-width:var(--container);margin:0 auto;padding:0 24px}
.bq-eyebrow{font-size:12px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--brand)}
.bq-skip{position:absolute;left:-9999px}
.bq-skip:focus{left:16px;top:16px;z-index:100;background:#fff;padding:10px 16px;border-radius:var(--radius-md);box-shadow:var(--shadow-lg)}

/* ============================================================
   Buttons
   ============================================================ */
.bq-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:var(--radius-md);font-size:15px;font-weight:600;font-family:var(--font-sans);cursor:pointer;border:1px solid transparent;transition:background 140ms ease,box-shadow 140ms ease,transform 80ms ease;white-space:nowrap}
.bq-btn:active{transform:translateY(1px)}
.bq-btn-primary{background:var(--brand);color:#fff;box-shadow:var(--shadow-brand)}
.bq-btn-primary:hover{background:var(--brand-hover)}
.bq-btn-secondary{background:var(--surface-card);color:var(--text-strong);border-color:var(--border-default)}
.bq-btn-secondary:hover{background:var(--surface-hover)}
.bq-btn-ghost-inverse{background:transparent;color:#fff;border-color:rgba(255,255,255,0.24)}
.bq-btn-ghost-inverse:hover{background:rgba(255,255,255,0.08)}
.bq-btn-sm{height:38px;padding:0 16px;font-size:14px}
.bq-btn-lg{height:50px;padding:0 26px;font-size:16px}

/* ============================================================
   Header / nav
   ============================================================ */
.bq-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,0.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border-subtle)}
/* keep the sticky header below the WP admin bar when logged in */
.admin-bar .bq-header{top:32px}
@media (max-width:782px){ .admin-bar .bq-header{top:46px} }
.bq-header-inner{display:flex;align-items:center;justify-content:space-between;height:90px}
.bq-brand{display:inline-flex;align-items:center;gap:12px}
.bq-brand img{width:44px;height:44px}
.bq-brand-word{font-weight:700;font-size:28px;letter-spacing:-0.025em;color:var(--text-strong)}
.bq-brand-word span{color:var(--brand)}
.bq-nav{display:flex;align-items:center;gap:38px}
.bq-nav-links{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.bq-nav-links li{list-style:none;margin:0}
.bq-nav-links a{font-size:14px;font-weight:500;color:var(--text-body)}
.bq-nav-links a:hover{color:var(--text-strong)}
.bq-header-cta{display:flex;align-items:center;gap:14px}
.bq-login{font-size:14px;font-weight:600;color:var(--text-strong)}
.bq-navtoggle{display:none;background:none;border:none;cursor:pointer;padding:8px;color:var(--text-strong)}

/* ============================================================
   Hero
   ============================================================ */
.bq-hero{background:linear-gradient(180deg,var(--blue-50) 0%,rgba(238,246,255,0) 72%);padding:64px 0 56px}
.bq-hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:52px;align-items:center}
.bq-hero-grid > *{min-width:0}
.bq-hero h1{font-size:52px;line-height:1.05;letter-spacing:-0.03em;font-weight:800;text-wrap:balance}
.bq-hero h1 .brand{color:var(--brand)}
.bq-lead{font-size:18.5px;line-height:1.55;color:var(--text-body);margin-top:20px;max-width:500px}
.bq-badge-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;background:var(--accent-subtle);color:var(--accent-strong);font-size:12.5px;font-weight:600;border-radius:var(--radius-pill)}
.bq-badge-pill .dot{width:7px;height:7px;border-radius:50%;background:var(--accent-strong)}
.bq-hero-meta{display:flex;gap:22px;margin-top:20px;color:var(--text-muted);font-size:13.5px;flex-wrap:wrap}
.bq-hero-meta span{display:inline-flex;gap:7px;align-items:center}

/* ============================================================
   Cards / sections
   ============================================================ */
.bq-section{padding:82px 0}
.bq-section-tint{background:var(--surface-card);border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.bq-section-head{max-width:640px;margin:0 auto 44px;text-align:center}
.bq-section-head h2{font-size:38px;letter-spacing:-0.03em;margin-top:12px;line-height:1.1}
.bq-section-head p{font-size:17px;color:var(--text-body);margin-top:14px;line-height:1.55}
.bq-card{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.bq-card-hover{transition:transform 140ms ease,box-shadow 140ms ease}
.bq-card-hover:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.bq-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bq-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.bq-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.bq-icon-tile{width:42px;height:42px;border-radius:var(--radius-md);background:var(--blue-50);display:flex;align-items:center;justify-content:center;color:var(--brand)}
.bq-icon-tile-green{background:var(--accent-subtle);color:var(--accent-strong)}
.bq-lucide{width:22px;height:22px;stroke-width:1.75}

/* trust stat bar */
.bq-statbar{background:var(--surface-card);border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);padding:30px 0}
.bq-stat{text-align:center}
.bq-stat .v{font-size:29px;font-weight:600;color:var(--text-strong)}
.bq-stat .l{font-size:13px;color:var(--text-muted);margin-top:3px}

/* estimate widget */
.bq-widget{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-md);padding:16px}
.bq-widget-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.bq-field-label{display:block;font-size:12.5px;font-weight:600;color:var(--text-muted);margin-bottom:6px}
.bq-field{width:100%;height:44px;padding:0 12px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);font-family:var(--font-sans);font-size:15px;color:var(--text-strong)}
.bq-field:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
select.bq-field{cursor:pointer}

/* quick-answer / estimate card */
.bq-estimate{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);overflow:hidden}
.bq-estimate-head{padding:18px 22px;border-bottom:1px solid var(--border-subtle);display:flex;justify-content:space-between;align-items:center}
.bq-estimate-body{padding:22px}
.bq-price{font-size:42px;font-weight:600;color:var(--text-strong)}

/* ============================================================
   Guide layout (sidebar + prose)
   ============================================================ */
.bq-guide-grid{display:grid;grid-template-columns:1fr 240px;gap:56px;align-items:start;padding-top:56px}
/* Grid children default to min-width:auto — a wide table or long price string
   would blow the track past the viewport (and get clipped by body overflow-x).
   min-width:0 lets the column shrink; wide tables scroll inside their own box. */
.bq-guide-grid > *{min-width:0}
.bq-prose{min-width:0}
.bq-prose table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bq-prose img{height:auto}
.bq-prose h2{font-size:29px;letter-spacing:-0.028em;font-weight:800;margin-bottom:6px;scroll-margin-top:86px}
.bq-prose p{font-size:16px;line-height:1.65;color:var(--text-body);margin-top:12px}
.bq-prose section{margin-top:48px}
.bq-shortanswer{background:var(--surface-card);border:1px solid var(--border-subtle);border-left:3px solid var(--brand);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:24px 26px}
.bq-sticky{position:sticky;top:86px}
.bq-toc{display:flex;flex-direction:column;gap:2px}
.bq-toc a{font-size:13.5px;color:var(--text-body);padding:6px 8px;border-radius:var(--radius-sm)}
.bq-toc a:hover{background:var(--surface-hover);color:var(--text-strong)}
.bq-side-cta{background:var(--gray-900);border-radius:var(--radius-lg);padding:20px;margin-top:16px}
.bq-side-cta .h{font-size:16px;font-weight:700;color:#fff;line-height:1.3}
.bq-side-cta p{font-size:13px;color:var(--gray-400);margin-top:8px;line-height:1.55}

/* data table */
.bq-table{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.bq-table-head,.bq-table-row{display:grid;gap:0;padding:15px 20px;align-items:center}
.bq-table-head{background:var(--surface-sunken);border-bottom:1px solid var(--border-subtle);font-size:12px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--text-muted)}
.bq-table-row{border-bottom:1px solid var(--border-subtle)}
.bq-table-note{padding:12px 20px;font-size:12.5px;color:var(--text-subtle)}
.bq-tag-green{padding:2px 8px;background:var(--accent-subtle);color:var(--accent-strong);font-size:11px;font-weight:600;border-radius:var(--radius-pill)}

/* breadcrumb */
.bq-crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);flex-wrap:wrap}
.bq-crumb a:hover{color:var(--brand)}
.bq-crumb .sep{width:14px;height:14px}

/* FAQ */
.bq-faq{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.bq-faq-item{border-bottom:1px solid var(--border-subtle)}
.bq-faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:transparent;border:none;cursor:pointer;text-align:left;font-family:var(--font-sans);font-size:16px;font-weight:600;color:var(--text-strong)}
.bq-faq-a{margin:0;padding:0 22px 20px;font-size:15px;line-height:1.65;color:var(--text-body);display:none}
.bq-faq-item.open .bq-faq-a{display:block}
.bq-faq-chevron{width:19px;height:19px;color:var(--text-muted);flex-shrink:0;transition:transform 160ms ease}
.bq-faq-item.open .bq-faq-chevron{transform:rotate(180deg)}

/* inline callout */
.bq-callout{padding:24px 26px;background:var(--brand-subtle);border-radius:var(--radius-xl);display:flex;gap:18px;align-items:center;flex-wrap:wrap}

/* CTA band */
.bq-ctaband{background:var(--gray-900);border-radius:var(--radius-3xl);padding:56px 48px;text-align:center;position:relative;overflow:hidden}
.bq-ctaband-glow{position:absolute;top:-40%;left:50%;transform:translateX(-50%);width:520px;height:520px;background:radial-gradient(circle,rgba(0,114,229,0.28) 0%,rgba(0,114,229,0) 68%);pointer-events:none}
.bq-ctaband h2{color:#fff;font-size:40px;letter-spacing:-0.03em;line-height:1.08;position:relative}
.bq-ctaband p{color:var(--gray-400);font-size:17px;margin:14px auto 0;max-width:460px;line-height:1.55;position:relative}

/* ============================================================
   Footer
   ============================================================ */
.bq-footer{background:var(--gray-900);color:var(--gray-400);padding:58px 0 34px}
.bq-foot-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px}
.bq-foot-word{font-weight:700;font-size:18px;letter-spacing:-0.025em;color:#fff}
.bq-foot-word span{color:#6AD61F}
.bq-foot-desc{font-size:13.5px;line-height:1.6;margin-top:16px;max-width:270px}
.bq-foot-social{display:flex;gap:9px;margin-top:18px}
.bq-foot-social a{width:32px;height:32px;border-radius:var(--radius-md);background:var(--gray-800);color:var(--gray-400);display:flex;align-items:center;justify-content:center;transition:background 140ms ease,color 140ms ease}
.bq-foot-social a:hover{background:var(--gray-700);color:#fff}
.bq-foot-h{font-size:12px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--gray-500);margin-bottom:14px}
.bq-foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.bq-foot-col a{font-size:13.5px;color:var(--gray-300)}
.bq-foot-col a:hover{color:#fff}
.bq-foot-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:46px;padding-top:24px;border-top:1px solid var(--gray-800);font-size:12.5px;flex-wrap:wrap;gap:10px}
.bq-foot-bottom .links{display:flex;gap:18px}
.bq-foot-bottom a:hover{color:#fff}

/* ============================================================
   Blog
   ============================================================ */
.bq-post-hero{height:260px;border-radius:var(--radius-xl);margin-top:30px;background:linear-gradient(135deg,var(--blue-500),var(--blue-700));display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.bq-article{width:100%;max-width:720px;margin:0 auto;padding:0 24px}
.bq-article h2{font-size:27px;letter-spacing:-0.026em;font-weight:800;margin:40px 0 0;line-height:1.2}
.bq-article p{font-size:17px;line-height:1.7;color:var(--text-body);margin:16px 0 0}
.bq-article ul,.bq-article ol{font-size:17px;line-height:1.7;color:var(--text-body);margin:16px 0 0}
.bq-postcard-thumb{height:130px;display:flex;align-items:center;justify-content:center;position:relative}

/* ============================================================
   Comments
   ============================================================ */
.bq-comments{margin-top:8px}
.bq-commentlist{list-style:none;margin:0 0 24px;padding:0}
.bq-commentlist ol{list-style:none}
.bq-commentlist .comment-body{padding:16px 0;border-bottom:1px solid var(--border-subtle)}
.bq-comments .comment-author .fn{font-weight:700;color:var(--text-strong)}
.bq-comments .comment-meta{font-size:12.5px;color:var(--text-muted)}
.bq-comments .comment-respond{margin-top:24px}
.bq-comments input[type=text],.bq-comments input[type=email],.bq-comments input[type=url],.bq-comments textarea{width:100%;max-width:520px;padding:10px 12px;border:1px solid var(--border-default);border-radius:var(--radius-md);font-family:var(--font-sans);font-size:15px;margin-top:6px}
.bq-comments input:focus,.bq-comments textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
.bq-comments .form-submit{margin-top:14px}

/* ============================================================
   Contact form fields
   ============================================================ */
.bq-field{width:100%;padding:11px 13px;border:1px solid var(--border-default);border-radius:var(--radius-md);font-family:var(--font-sans);font-size:15px;color:var(--text-strong);background:var(--surface-card);font-weight:400;transition:border-color 140ms ease,box-shadow 140ms ease}
.bq-field::placeholder{color:var(--text-subtle)}
.bq-field:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
@media (max-width:560px){.bq-contact-row{grid-template-columns:1fr !important}}

/* ============================================================
   Search form (core get_search_form)
   ============================================================ */
.search-form{display:flex;gap:8px}
.search-form label{flex:1}
.search-form .search-field{width:100%;height:44px;padding:0 14px;border:1px solid var(--border-default);border-radius:var(--radius-md);font-family:var(--font-sans);font-size:15px;background:var(--surface-card)}
.search-form .search-field:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
.search-form .search-submit{height:44px;padding:0 18px;background:var(--brand);color:#fff;font-weight:600;border:none;border-radius:var(--radius-md);cursor:pointer;font-family:var(--font-sans)}
.search-form .search-submit:hover{background:var(--brand-hover)}

/* ============================================================
   Pagination (the_posts_pagination)
   ============================================================ */
.pagination .nav-links,.navigation .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-card);color:var(--text-body);font-weight:600;font-size:14px}
.pagination .page-numbers.current{background:var(--brand);color:#fff;border-color:var(--brand)}
.pagination a.page-numbers:hover{background:var(--surface-hover);color:var(--text-strong)}

/* ============================================================
   Responsive
   Breakpoints: 1024 (tablet), 900 (nav → hamburger, stacks),
   560 (phone). Uses !important where templates set inline sizes.
   ============================================================ */

/* prevent accidental horizontal overflow site-wide.
   NOTE: use clip, not hidden — overflow:hidden on html/body creates a scroll
   container that breaks position:sticky on the header. clip does not. */
html,body{overflow-x:clip}
img,svg,video,table{max-width:100%}

/* Tablet — ease dense grids before the full stack */
@media (max-width:1024px){
  .bq-grid-4{grid-template-columns:repeat(2,1fr)}
  .bq-catgrid{grid-template-columns:repeat(3,1fr)!important}
  .bq-guide-grid{grid-template-columns:1fr 220px;gap:36px}
  .bq-hero h1{font-size:44px}
}

@media (max-width:900px){
  .bq-container{padding:0 20px}
  .bq-hero{padding:48px 0 44px}
  .bq-hero-grid{grid-template-columns:1fr;gap:34px}
  .bq-trust-grid{grid-template-columns:1fr!important;gap:34px!important}
  .bq-grid-2,.bq-grid-3,.bq-grid-4{grid-template-columns:1fr}
  /* trust stats stay horizontal on mobile — 4 across, sizes tuned to fit */
  .bq-statbar{padding:22px 0}
  .bq-statbar .bq-grid-4{grid-template-columns:repeat(4,1fr);gap:10px}
  .bq-statbar .bq-stat .v{font-size:19px}
  .bq-statbar .bq-stat .l{font-size:10.5px;margin-top:4px;line-height:1.25}
  .bq-catgrid{grid-template-columns:repeat(2,1fr)!important}
  .bq-guide-grid{grid-template-columns:1fr;padding-top:40px}
  .bq-sticky{position:static}
  .bq-nav-links,.bq-login{display:none}
  .bq-navtoggle{display:inline-flex}
  .bq-cta-desktop{display:none}
  .bq-foot-grid{grid-template-columns:1fr 1fr}
  .bq-hero h1{font-size:38px!important}
  .bq-section-head h2{font-size:30px}
  .bq-section{padding:56px 0}
  .bq-ctaband{padding:44px 28px}
  .bq-ctaband h2{font-size:30px}
  /* wide data tables scroll horizontally instead of squishing */
  .bq-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .bq-table-head,.bq-table-row{min-width:540px}
}
@media (min-width:901px){ .bq-drawer,.bq-drawer-backdrop{display:none} }

/* ============================================================
   Mobile slide-in drawer
   ============================================================ */
.bq-drawer-backdrop{position:fixed;inset:0;background:transparent;opacity:0;visibility:hidden;transition:opacity 180ms ease,visibility 180ms ease;z-index:60}
.bq-drawer-backdrop.open{opacity:1;visibility:visible}
.bq-drawer{position:fixed;top:0;right:0;height:100%;width:86%;max-width:360px;background:#fff;box-shadow:var(--shadow-2xl);transform:translateX(100%);transition:transform 220ms cubic-bezier(0.4,0,0.2,1);z-index:61;display:flex;flex-direction:column;padding:18px 20px 24px;overflow-y:auto}
.bq-drawer.open{transform:translateX(0)}
.bq-drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid var(--border-subtle)}
.bq-drawer-close{background:none;border:none;cursor:pointer;padding:8px;margin:-8px -8px -8px 0;color:var(--text-muted);display:inline-flex}
.bq-drawer-close:hover{color:var(--text-strong)}
.bq-drawer-links{display:flex;flex-direction:column;margin-top:6px}
.bq-drawer-links a{padding:15px 2px;font-size:16px;font-weight:500;color:var(--text-strong);border-bottom:1px solid var(--border-subtle);text-decoration:none}
.bq-drawer-links a:hover{color:var(--brand)}
.bq-drawer-links li{list-style:none;margin:0}
.bq-drawer-cta{width:100%;margin-top:22px}
body.bq-drawer-open{overflow:hidden}

@media (max-width:560px){
  .bq-container{padding:0 16px}
  .bq-grid-2,.bq-catgrid{grid-template-columns:1fr!important}
  .bq-foot-grid{grid-template-columns:1fr}
  .bq-hero{padding:36px 0 32px}
  .bq-hero h1,.bq-article h1{font-size:31px!important;line-height:1.12}
  .bq-lead{font-size:16.5px}
  .bq-section{padding:40px 0}
  .bq-section-head{margin-bottom:32px}
  .bq-section-head h2{font-size:26px}
  .bq-prose h2{font-size:23px}
  .bq-article h2{font-size:22px}
  .bq-price{font-size:34px}
  .bq-widget{padding:14px}
  .bq-widget-row .bq-btn{width:100%}
  .bq-crumb{font-size:12px}
  .bq-estimate-body{padding:18px}
  .bq-callout{padding:20px}
  .bq-ctaband{padding:34px 20px;border-radius:var(--radius-2xl)}
  .bq-ctaband h2{font-size:24px}
  .bq-ctaband p{font-size:15.5px}
  .bq-btn{min-height:46px}
  .bq-foot-bottom{flex-direction:column;align-items:flex-start}
  .bq-header-inner{height:74px}
  .bq-brand img{width:38px;height:38px}
  .bq-brand-word{font-size:24px}
  .bq-login{display:none}
}

@media (max-width:400px){
  .bq-statbar .bq-grid-4{gap:6px}
  .bq-statbar .bq-stat .v{font-size:16px}
  .bq-statbar .bq-stat .l{font-size:9.5px}
}

/* ============================================================
   BLOG SYSTEM — premium article + index
   ============================================================ */
.bq-blog-hero{background:linear-gradient(180deg,var(--blue-50) 0%,rgba(238,246,255,0) 92%);padding:40px 0 30px}
.bq-cat-pill{display:inline-block;margin-top:16px;padding:5px 13px;background:var(--brand-subtle);color:var(--brand);font-size:12.5px;font-weight:600;border-radius:var(--radius-pill);text-decoration:none}
.bq-blog-h1{font-size:44px;line-height:1.08;letter-spacing:-0.03em;font-weight:800;margin-top:16px;max-width:840px;text-wrap:balance}
.bq-blog-dek{font-size:19px;line-height:1.55;color:var(--text-body);margin-top:16px;max-width:680px}
.bq-blog-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;font-size:14px;color:var(--text-muted)}
.bq-blog-author{display:inline-flex;align-items:center;gap:9px}
.bq-blog-author strong{color:var(--text-strong);font-weight:600}
.bq-avatar{width:34px;height:34px;border-radius:50%;background:var(--brand-subtle);display:inline-flex;align-items:center;justify-content:center}
.bq-dot{color:var(--border-strong,#cbd5e1)}
.bq-updated{color:var(--text-success);font-weight:600}
.bq-share{display:inline-flex;gap:8px;margin-left:auto}
.bq-sharebtn{width:34px;height:34px;border-radius:var(--radius-md);border:1px solid var(--border-default);background:var(--surface-card);color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all 140ms ease;text-decoration:none}
.bq-sharebtn:hover{color:var(--brand);border-color:var(--brand);background:var(--brand-subtle)}

.bq-blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;align-items:start;padding:40px 0 8px}
.bq-blog-main{min-width:0}

.bq-featured-img{width:100%;height:400px;border-radius:var(--radius-xl);overflow:hidden;background:linear-gradient(135deg,var(--blue-500),var(--blue-700));display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
.bq-featured-img img{width:100%;height:100%;object-fit:cover}

.bq-quickfacts{margin-top:28px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);padding:22px 24px}
.bq-quickfacts-h{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--text-muted)}
.bq-quickfacts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 24px;margin-top:18px}
.bq-fact-label{font-size:12.5px;color:var(--text-muted)}
.bq-fact-value{font-size:20px;font-weight:600;color:var(--text-strong);margin-top:3px}

.bq-takeaways{margin-top:24px;background:var(--brand-subtle);border:1px solid color-mix(in srgb,var(--brand) 22%,transparent);border-radius:var(--radius-xl);padding:22px 26px}
.bq-takeaways-h{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;color:var(--text-strong)}
.bq-takeaways ul{margin:14px 0 0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:10px}
.bq-takeaways li{position:relative;padding-left:28px;font-size:15.5px;line-height:1.55;color:var(--text-body)}
.bq-takeaways li::before{content:"";position:absolute;left:0;top:7px;width:16px;height:16px;border-radius:50%;background:var(--brand);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat}

.bq-toc-mobile{margin-top:24px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);padding:6px 18px}
.bq-toc-mobile summary{cursor:pointer;font-weight:700;font-size:15px;color:var(--text-strong);padding:12px 0;list-style:none}
.bq-toc-mobile summary::-webkit-details-marker{display:none}
.bq-toc-mobile summary::after{content:"+";float:right;color:var(--text-muted);font-weight:400;font-size:20px;line-height:1}
.bq-toc-mobile[open] summary::after{content:"–"}

.bq-toc-list{display:flex;flex-direction:column;gap:2px;padding-bottom:12px}
.bq-toc-list a{font-size:14px;line-height:1.4;color:var(--text-body);text-decoration:none;padding:7px 10px;border-radius:var(--radius-sm);border-left:2px solid transparent}
.bq-toc-list a:hover{background:var(--surface-hover);color:var(--text-strong)}
.bq-toc-list a.active{color:var(--brand);border-left-color:var(--brand);background:var(--brand-subtle);font-weight:600}
.bq-toc-list a.lvl-3{padding-left:22px;font-size:13.5px}

/* author-written content */
.bq-post-content{margin-top:32px;font-size:17px;line-height:1.75;color:var(--text-body)}
.bq-post-content > *:first-child{margin-top:0}
.bq-post-content h2{font-size:28px;line-height:1.2;letter-spacing:-0.02em;font-weight:800;color:var(--text-strong);margin:44px 0 14px;scroll-margin-top:84px}
.bq-post-content h3{font-size:21px;line-height:1.3;font-weight:700;color:var(--text-strong);margin:30px 0 10px;scroll-margin-top:84px}
.bq-post-content p{margin:16px 0}
.bq-post-content a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.bq-post-content ul,.bq-post-content ol{margin:16px 0;padding-left:26px;display:flex;flex-direction:column;gap:9px}
.bq-post-content li{line-height:1.65}
.bq-post-content img{max-width:100%;height:auto;border-radius:var(--radius-lg);margin:24px 0}
.bq-post-content blockquote{margin:24px 0;padding:16px 22px;border-left:3px solid var(--brand);background:var(--surface-sunken);border-radius:0 var(--radius-md) var(--radius-md) 0;font-size:17px;color:var(--text-strong)}
.bq-post-content table{width:100%;border-collapse:collapse;margin:24px 0;font-size:15px;overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-lg)}
.bq-post-content th{background:var(--surface-sunken);text-align:left;font-size:12.5px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--text-muted);padding:12px 16px}
.bq-post-content td{padding:13px 16px;border-top:1px solid var(--border-subtle)}
.bq-post-content h2+p{margin-top:8px}
/* author helper cards (usable from the editor) */
.bq-tip,.bq-warning,.bq-expert{margin:24px 0;padding:18px 20px;border-radius:var(--radius-lg);display:flex;gap:13px;font-size:15.5px;line-height:1.6}
.bq-tip{background:var(--accent-subtle);border:1px solid color-mix(in srgb,var(--accent) 26%,transparent)}
.bq-warning{background:var(--amber-50,#fff7ed);border:1px solid #fed7aa}
.bq-expert{background:var(--brand-subtle);border:1px solid color-mix(in srgb,var(--brand) 22%,transparent)}

.bq-inline-cta{margin:40px 0;background:var(--gray-900);border-radius:var(--radius-2xl);padding:30px 32px;display:flex;align-items:center;gap:24px;flex-wrap:wrap;position:relative;overflow:hidden}
.bq-inline-cta::before{content:"";position:absolute;top:-50%;right:-5%;width:340px;height:340px;background:radial-gradient(circle,rgba(0,114,229,0.30) 0%,rgba(0,114,229,0) 68%);pointer-events:none}
.bq-inline-cta-body{position:relative;flex:1;min-width:240px}
.bq-inline-cta-title{font-size:21px;font-weight:800;color:#fff;line-height:1.2}
.bq-inline-cta-body p{margin-top:8px;font-size:15px;color:var(--gray-400);line-height:1.55}
.bq-inline-cta-actions{position:relative;display:flex;gap:10px;flex-wrap:wrap}
.bq-inline-cta .bq-btn-secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,0.24)}
.bq-inline-cta .bq-btn-secondary:hover{background:rgba(255,255,255,0.08)}

.bq-post-faq{margin-top:48px}
.bq-post-faq h2{font-size:28px;font-weight:800;letter-spacing:-0.02em;margin-bottom:20px}

.bq-related{margin-top:48px}
.bq-related h2{font-size:24px;font-weight:800;letter-spacing:-0.02em;margin-bottom:20px}
.bq-related-card{display:flex;flex-direction:column;gap:10px;padding:20px;text-decoration:none}
.bq-related-ico{width:42px;height:42px;border-radius:var(--radius-md);background:var(--blue-50);color:var(--brand);display:inline-flex;align-items:center;justify-content:center}
.bq-related-t{font-size:15.5px;font-weight:700;color:var(--text-strong);line-height:1.3}
.bq-related-r{font-size:13px;font-weight:600;color:var(--text-success)}

.bq-author-box{margin-top:48px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);padding:24px 26px;display:flex;gap:18px;align-items:flex-start}
.bq-author-avatar{width:54px;height:54px;flex-shrink:0;border-radius:50%;background:var(--brand-subtle);display:flex;align-items:center;justify-content:center}
.bq-author-name{font-size:17px;font-weight:700;color:var(--text-strong)}
.bq-author-box p{margin-top:5px;font-size:14.5px;color:var(--text-muted);line-height:1.6}
.bq-post-comments{margin-top:48px}

/* ---- sidebar ---- */
.bq-sidebar{position:sticky;top:84px;align-self:start;display:flex;flex-direction:column;gap:16px}
.bq-widget{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);padding:18px 20px}
.bq-widget-title{font-size:12.5px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--text-muted);margin-bottom:14px}
.bq-widget-note{font-size:13.5px;color:var(--text-muted);line-height:1.5;margin-bottom:12px}
.bq-widget-list{display:flex;flex-direction:column}
.bq-widget-link{display:flex;align-items:center;gap:11px;padding:11px 0;font-size:14.5px;font-weight:500;color:var(--text-strong);text-decoration:none;border-bottom:1px solid var(--border-subtle)}
.bq-widget-link:last-child{border-bottom:none}
.bq-widget-link:hover{color:var(--brand)}
.bq-widget-ico{width:32px;height:32px;flex-shrink:0;border-radius:var(--radius-md);background:var(--blue-50);color:var(--brand);display:inline-flex;align-items:center;justify-content:center}
.bq-widget-recent{display:flex;flex-direction:column;gap:3px;padding:11px 0;text-decoration:none;border-bottom:1px solid var(--border-subtle)}
.bq-widget-recent:last-child{border-bottom:none}
.bq-widget-recent-t{font-size:14.5px;font-weight:600;color:var(--text-strong);line-height:1.35}
.bq-widget-recent:hover .bq-widget-recent-t{color:var(--brand)}
.bq-widget-recent-d{font-size:12px;color:var(--text-muted)}
.bq-widget-cta{background:var(--gray-900);border-color:var(--gray-900)}
.bq-widget-cta-title{font-size:17px;font-weight:800;color:#fff;line-height:1.25}
.bq-widget-cta p{font-size:13.5px;color:var(--gray-400);line-height:1.55;margin:8px 0 14px}
.bq-chips{display:flex;flex-wrap:wrap;gap:8px}
.bq-chip{padding:7px 13px;background:var(--surface-sunken);border:1px solid var(--border-subtle);border-radius:var(--radius-pill);font-size:13px;font-weight:600;color:var(--text-body);text-decoration:none}
.bq-chip:hover{background:var(--brand-subtle);color:var(--brand);border-color:transparent}
.bq-news-input{width:100%;height:42px;padding:0 13px;border:1px solid var(--border-default);border-radius:var(--radius-md);font-family:var(--font-sans);font-size:14.5px;background:var(--surface-card)}
.bq-news-input:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}

/* ---- blog index ---- */
.bq-feature-card{display:grid;grid-template-columns:1.1fr 1fr;gap:0;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);overflow:hidden;text-decoration:none;transition:box-shadow 140ms ease;margin-bottom:32px}
.bq-feature-card:hover{box-shadow:var(--shadow-lg)}
.bq-feature-img{min-height:280px;background:linear-gradient(135deg,var(--blue-500),var(--blue-700));display:flex;align-items:center;justify-content:center}
.bq-feature-img img{width:100%;height:100%;object-fit:cover}
.bq-feature-body{padding:36px 34px;display:flex;flex-direction:column;justify-content:center}
.bq-feature-tag{font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--brand)}
.bq-feature-title{font-size:28px;font-weight:800;letter-spacing:-0.02em;line-height:1.18;color:var(--text-strong);margin-top:12px}
.bq-feature-dek{font-size:15.5px;color:var(--text-body);line-height:1.6;margin-top:12px}
.bq-feature-meta{font-size:13px;color:var(--text-muted);margin-top:18px}
.bq-post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.bq-postcard{overflow:hidden;display:flex;flex-direction:column;text-decoration:none}
.bq-postcard-thumb{height:150px;background:linear-gradient(135deg,var(--blue-500),var(--blue-700));display:flex;align-items:center;justify-content:center;overflow:hidden}
.bq-postcard-thumb img{width:100%;height:100%;object-fit:cover}
.bq-postcard-body{padding:20px;display:flex;flex-direction:column;flex:1}
.bq-postcard-cat{font-size:11.5px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--brand)}
.bq-postcard-title{font-size:17px;font-weight:700;color:var(--text-strong);margin-top:8px;line-height:1.3}
.bq-postcard-dek{font-size:14px;color:var(--text-body);margin-top:8px;line-height:1.5;flex:1}
.bq-postcard-meta{font-size:12.5px;color:var(--text-muted);margin-top:14px}
.bq-pagination-wrap{padding:36px 0 8px}

/* ---- sticky mobile estimate ---- */
.bq-mobile-estimate{display:none;position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:55;align-items:center;gap:8px;padding:0 22px;height:50px;background:var(--brand);color:#fff;font-size:15px;font-weight:600;border-radius:var(--radius-pill);box-shadow:var(--shadow-xl);text-decoration:none}
.bq-mobile-estimate:hover{background:var(--brand-hover)}

@media (min-width:901px){ .bq-toc-mobile{display:none!important} }
@media (max-width:900px){
  .bq-toc-widget{display:none!important}
  .bq-blog-layout{grid-template-columns:1fr;gap:36px}
  .bq-sidebar{position:static;margin-top:8px}
  .bq-featured-img{height:240px}
  .bq-quickfacts-grid{grid-template-columns:repeat(2,1fr)}
  .bq-feature-card{grid-template-columns:1fr}
  .bq-feature-img{min-height:200px}
  .bq-post-grid{grid-template-columns:1fr 1fr}
  .bq-blog-h1{font-size:34px}
  .bq-mobile-estimate{display:inline-flex}
  .bq-share{margin-left:0;width:100%;margin-top:4px}
}
@media (max-width:560px){
  .bq-quickfacts-grid{grid-template-columns:1fr 1fr}
  .bq-post-grid{grid-template-columns:1fr}
  .bq-post-content{font-size:16px}
  .bq-post-content h2{font-size:24px}
  .bq-inline-cta{padding:24px 22px}
  .bq-feature-title{font-size:23px}
}
