/*
Theme Name:        BudgetHeadphone
Theme URI:         https://budgetheadphone.com
Author:            BudgetHeadphone Team
Author URI:        https://budgetheadphone.com
Description:       A custom WordPress theme for BudgetHeadphone.com — AI-scored headphone reviews, affiliate-ready, SEO-optimized, light/dark mode.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           Private
Text Domain:       budgetheadphone
Tags:              blog, affiliate, reviews, custom-colors, custom-logo, dark-mode, full-width-template
*/

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --bg:        #f5f6fa;
  --bg-2:      #eceef5;
  --bg-3:      #e2e5f0;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,0.07);
  --border-h:  rgba(0,0,0,0.14);
  --text:      #0f1117;
  --text-2:    #374151;
  --text-m:    #6b7280;
  --text-d:    #9ca3af;
  --accent:    #2563eb;
  --accent-g:  rgba(37,99,235,0.1);
  --accent-2:  #0891b2;
  --green:     #059669;
  --green-g:   rgba(5,150,105,0.1);
  --red:       #dc2626;
  --red-g:     rgba(220,38,38,0.1);
  --amber:     #d97706;
  --amber-g:   rgba(217,119,6,0.1);
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --r:  10px;
  --r2: 16px;
  --font-d: 'Bebas Neue', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --font-m: 'DM Mono', monospace;
}

[data-theme="dark"] {
  --bg:       #080c14;
  --bg-2:     #0d1120;
  --bg-3:     #141826;
  --bg-card:  #111928;
  --border:   rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.13);
  --text:     #f0f2f8;
  --text-2:   #cbd5e1;
  --text-m:   #8892a4;
  --text-d:   #4b5563;
  --shadow:   0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.6);
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-d);
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: 22px; }
p  { margin-bottom: 1rem; color: var(--text-2); }

/* WordPress core classes */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { text-align: center; display: block; margin: 0 auto 1rem; }
.wp-block-image { margin-bottom: 1.5rem; }
.wp-block-image img { border-radius: var(--r); }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container      { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm   { width: 100%; max-width: 820px;  margin: 0 auto; padding: 0 20px; }
.container-xs   { width: 100%; max-width: 640px;  margin: 0 auto; padding: 0 20px; }

.site-wrapper   { display: flex; flex-direction: column; min-height: 100vh; }
.site-main      { flex: 1; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,250,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
[data-theme="dark"] .site-nav { background: rgba(8,12,20,0.9); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 28px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 17px; height: 17px; color: #fff; }
.nav-logo-name {
  font-family: var(--font-d);
  font-size: 21px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.nav-logo-name:hover { text-decoration: none; }

.nav-menu {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-m);
  transition: all 0.15s;
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a { color: var(--text); background: var(--bg-3); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-m);
  background: transparent;
  transition: all 0.15s;
}
.theme-toggle:hover { border-color: var(--border-h); color: var(--text); }

.nav-search-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  font-size: 13px;
  color: var(--text-m);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-search-btn:hover { border-color: var(--border-h); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: transparent;
  border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all 0.3s; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 16px; font-size: 18px; font-weight: 600; color: var(--text-m); border-radius: var(--r); display: block; }
.mobile-nav a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }

/* ═══════════════════════════════════════
   BUTTONS & UI ELEMENTS
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); text-decoration: none; color: #fff; }
.btn-outline  { border: 1px solid var(--border-h); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.badge-blue  { background: var(--accent-g); color: var(--accent); border: 1px solid rgba(37,99,235,.2); }
.badge-green { background: var(--green-g);  color: var(--green);  border: 1px solid rgba(5,150,105,.2); }
.badge-red   { background: var(--red-g);    color: var(--red);    border: 1px solid rgba(220,38,38,.2); }
.badge-amber { background: var(--amber-g);  color: var(--amber);  border: 1px solid rgba(217,119,6,.2); }

.eyebrow {
  font-family: var(--font-m);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; transition: all 0.2s; }
.card:hover { border-color: var(--border-h); box-shadow: var(--shadow); }

/* Progress bars */
.prog-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.prog-label { font-size: 13px; color: var(--text-m); width: 120px; flex-shrink: 0; }
.prog-track { flex: 1; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.prog-fill  { height: 100%; border-radius: 3px; background: var(--accent); transition: width 1s cubic-bezier(.16,1,.3,1); }
.prog-val   { font-family: var(--font-m); font-size: 12px; color: var(--text-m); width: 36px; text-align: right; }

/* ═══════════════════════════════════════
   AFFILIATE ELEMENTS
═══════════════════════════════════════ */
.aff-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--accent); color: #fff;
  border-radius: var(--r);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  border: none; cursor: pointer;
}
.aff-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); color: #fff; text-decoration: none; }

.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-2); border-radius: var(--r); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.price-amount { font-family: var(--font-d); font-size: 24px; color: var(--accent); }

/* Affiliate disclosure */
.aff-disclosure {
  background: var(--amber-g); border: 1px solid rgba(217,119,6,.2);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: var(--text-m); line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════
   HERO (homepage)
═══════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 60px 0;
  width: 100%;
}
.hero-headline { font-family: var(--font-d); font-size: clamp(52px, 8vw, 96px); line-height: 0.95; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--text-m); max-width: 440px; margin-bottom: 32px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-d); font-size: 30px; line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--text-m); margin-top: 2px; }

/* ═══════════════════════════════════════
   REVIEW CARD (used in loops)
═══════════════════════════════════════ */
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: all 0.25s; cursor: pointer; position: relative;
}
.review-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review-card-img {
  height: 200px; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.review-card-score {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 6px 10px; text-align: center;
}
.review-card-score-num { font-family: var(--font-d); font-size: 22px; line-height: 1; color: #60a5fa; }
.review-card-score-label { font-size: 9px; font-family: var(--font-m); color: rgba(255,255,255,0.6); }
.review-card-body { padding: 16px 18px 18px; }
.review-card-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-m); margin-bottom: 3px; }
.review-card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.review-card-excerpt { font-size: 13px; color: var(--text-m); line-height: 1.5; margin-bottom: 12px; }
.review-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); gap: 8px; }
.review-card-aff {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 7px 14px; background: var(--accent-g); border: 1px solid rgba(37,99,235,.2);
  border-radius: 8px; transition: all 0.15s; text-decoration: none;
}
.review-card-aff:hover { background: rgba(37,99,235,.18); text-decoration: none; }

/* ═══════════════════════════════════════
   SINGLE REVIEW (single.php)
═══════════════════════════════════════ */
.review-hero-section {
  background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 40px 0 0;
}
.review-hero-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.review-img-sticky { position: sticky; top: 80px; }
.review-feat-img {
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r2);
  height: 280px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 12px;
}
.review-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.review-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-m); margin-bottom: 14px; font-family: var(--font-m); }
.review-breadcrumb a { color: var(--accent); text-decoration: none; }
.review-title-display { font-family: var(--font-d); font-size: clamp(32px, 4vw, 52px); line-height: 1; margin-bottom: 10px; }

.review-meta-bar {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 20px; align-items: center; font-size: 13px; color: var(--text-m);
}

.verdict-box {
  background: var(--accent-g); border: 1px solid rgba(37,99,235,.15);
  border-left: 4px solid var(--accent); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; color: var(--text-2);
}

.buy-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px; }
.buy-box-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-m); margin-bottom: 12px; font-family: var(--font-m); }

/* Review body layout */
.review-body-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 32px; padding: 40px 0 80px; }
.review-article {}
.review-article h2 { font-family: var(--font-d); font-size: 28px; margin-bottom: 14px; margin-top: 40px; scroll-margin-top: 80px; }
.review-article h3 { font-size: 20px; margin-bottom: 10px; margin-top: 28px; }
.review-article p  { font-size: 15px; line-height: 1.8; color: var(--text-2); }
.review-article ul, .review-article ol { padding-left: 1.5rem; color: var(--text-2); font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.review-article li { margin-bottom: 0.4rem; }
.review-article blockquote {
  border-left: 4px solid var(--accent); padding: 12px 20px;
  background: var(--accent-g); border-radius: 0 var(--r) var(--r) 0; margin: 1.5rem 0; color: var(--text-2);
}

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.5rem 0; }
.pros-block, .cons-block { border-radius: var(--r); padding: 16px; }
.pros-block { background: var(--green-g); border: 1px solid rgba(5,150,105,.2); }
.cons-block { background: var(--red-g);   border: 1px solid rgba(220,38,38,.2); }
.pc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.pros-block .pc-title { color: var(--green); }
.cons-block .pc-title { color: var(--red); }
.pc-list { list-style: none; padding: 0; }
.pc-list li { font-size: 13px; color: var(--text-2); padding: 4px 0; display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.pros-block .pc-list li::before { content: '✓'; color: var(--green); flex-shrink: 0; }
.cons-block .pc-list li::before { content: '✗'; color: var(--red); flex-shrink: 0; }

/* Spec table */
.spec-table-wrap { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin: 1.5rem 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { background: var(--bg-3); padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-m); font-family: var(--font-m); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.spec-table td:first-child { font-weight: 600; color: var(--text); width: 180px; }
.spec-table tr:last-child td { border-bottom: none; }

/* TOC */
.toc-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); padding: 18px; margin-bottom: 20px; }
.toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--text-m); }
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-list a { font-size: 13px; color: var(--text-m); padding: 5px 8px; border-radius: 6px; display: block; text-decoration: none; transition: all .15s; }
.toc-list a:hover { color: var(--accent); background: var(--accent-g); text-decoration: none; }
.toc-list a::before { content: '#'; font-family: var(--font-m); font-size: 10px; color: var(--text-d); margin-right: 6px; }

/* Sidebar */
.review-sidebar {}
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); padding: 18px; margin-bottom: 16px; }
.sidebar-widget-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-m); margin-bottom: 14px; }

/* Sticky buy bar */
.sticky-buy {
  position: fixed; bottom: -80px; left: 0; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 88; transition: bottom .3s; box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}
.sticky-buy.visible { bottom: 0; }

/* ═══════════════════════════════════════
   CATEGORY / ARCHIVE PAGE
═══════════════════════════════════════ */
.archive-hero { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 48px 0; }
.archive-title { font-family: var(--font-d); font-size: clamp(36px, 5vw, 60px); line-height: 1; margin-top: 6px; }
.archive-desc { font-size: 15px; color: var(--text-m); max-width: 520px; margin-top: 8px; }

.filters-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 62px; z-index: 89; }
.filters-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; color: var(--text-m); cursor: pointer; transition: all .15s; background: transparent; font-weight: 500; }
.filter-chip:hover { border-color: var(--border-h); color: var(--text); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-rank-badge { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: var(--font-m); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0; }
.pagination .page-numbers { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; transition: all .15s; color: var(--text-m); text-decoration: none; }
.pagination .page-numbers:hover { border-color: var(--border-h); color: var(--text); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ═══════════════════════════════════════
   COMPARE PAGE
═══════════════════════════════════════ */
.compare-section-title { font-family: var(--font-d); font-size: 22px; padding: 14px 0; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.compare-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.compare-cell { text-align: center; font-size: 14px; font-weight: 500; color: var(--text-2); }
.compare-cell.best { color: var(--green); font-weight: 700; }
.compare-cell.worst { color: var(--red); }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card, .team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); padding: 24px; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; }

/* ═══════════════════════════════════════
   CONTACT / FORMS
═══════════════════════════════════════ */
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-m); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); font-size: 14px; color: var(--text);
  font-family: var(--font-b); outline: none; transition: border-color .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-row { margin-bottom: 16px; }

/* WordPress comment form override */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); font-size: 14px; color: var(--text); font-family: var(--font-b);
}
.comment-form input[type="submit"] { background: var(--accent); color: #fff; border: none; padding: 11px 24px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; }
.comment-form input[type="submit"]:hover { background: #1d4ed8; }

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 14px 0; }
.marquee-track { display: flex; gap: 48px; animation: marquee 20s linear infinite; width: max-content; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-d); white-space: nowrap; }

/* ═══════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════ */
.section      { padding: 64px 0; }
.section-sm   { padding: 40px 0; }
.section-header { margin-bottom: 28px; }
.section-title  { font-family: var(--font-d); font-size: clamp(28px, 3vw, 42px); margin-top: 6px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-all { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); font-weight: 500; white-space: nowrap; text-decoration: none; }
.view-all:hover { text-decoration: underline; }
.hr { height: 1px; background: var(--border); margin: 48px 0; }

/* ═══════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════ */
.newsletter-block {
  background: linear-gradient(135deg, var(--accent-g), rgba(8,145,178,0.06));
  border: 1px solid rgba(37,99,235,.15); border-radius: var(--r2);
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.email-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.email-form input { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); font-size: 14px; color: var(--text); outline: none; }
.email-form input:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-d); font-size: 22px; letter-spacing: .05em; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: var(--text-m); line-height: 1.6; max-width: 240px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-m); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--text-m); transition: color .15s; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-d); flex-wrap: wrap; gap: 10px; }

/* ═══════════════════════════════════════
   SEARCH
═══════════════════════════════════════ */
.search-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 999; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; display: none; }
.search-modal.open { display: flex; }
.search-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.search-input { width: 100%; padding: 14px 16px; font-size: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); font-family: var(--font-b); outline: none; }
.search-input:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════
   FAQ ACCORDION (Review pages)
═══════════════════════════════════════ */
.faq-section {
  margin: 48px 0;
}
.faq-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.faq-section-title {
  font-family: var(--font-d);
  font-size: 28px;
  line-height: 1;
  margin: 0;
}
.faq-section-sub {
  font-size: 13px;
  color: var(--text-m);
  margin-bottom: 20px;
}
.faq-schema-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--green-g);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: 100px;
  font-size: 10px;
  font-family: var(--font-m);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open {
  border-color: var(--accent);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background .15s;
  font-family: var(--font-b);
}
.faq-question:hover {
  background: var(--bg-2);
}
.faq-item.open .faq-question {
  background: var(--accent-g);
  border-bottom: 1px solid rgba(37,99,235,.12);
}
.faq-q-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq-q-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-g);
  border: 1px solid rgba(37,99,235,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-item.open .faq-q-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-d);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.16,1,.3,1);
}
.faq-answer-inner {
  padding: 16px 18px 18px 52px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.faq-answer-inner p { margin-bottom: .5rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner a { color: var(--accent); }
.faq-answer-inner strong { color: var(--text); }

/* ═══════════════════════════════════════
   BLOG Q&A QUESTION SECTIONS
   Used in blog posts / guides
═══════════════════════════════════════ */

/* Styled question heading block */
.bh-question-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 32px 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  scroll-margin-top: 80px;
}
.bh-question-block-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}
.bh-question-block-text {
  font-family: var(--font-d);
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

/* Answer block — appears directly after a question block */
.bh-answer-block {
  padding: 0 0 0 44px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  border-left: 2px solid var(--border);
  margin-left: 14px;
  padding-left: 28px;
}
.bh-answer-block p:last-child { margin-bottom: 0; }

/* Quick Answer callout — summary box at top of answer */
.bh-quick-answer {
  background: var(--green-g);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bh-quick-answer::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* "People also ask" style box inside blog posts */
.bh-paa-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 22px;
  margin: 32px 0;
}
.bh-paa-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-m);
  font-family: var(--font-m);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bh-paa-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bh-paa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.bh-paa-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-g);
  text-decoration: none;
}
.bh-paa-item::before {
  content: '?';
  width: 20px;
  height: 20px;
  background: var(--accent-g);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   BLOG POST TEMPLATE (single-post.php)
═══════════════════════════════════════ */
.blog-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 0;
}
.blog-hero-inner { max-width: 820px; }
.blog-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-g);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 100px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  text-decoration: none;
}
.blog-title { font-family: var(--font-d); font-size: clamp(32px,5vw,58px); line-height: 1; margin-bottom: 16px; }
.blog-excerpt { font-size: 17px; color: var(--text-m); line-height: 1.65; margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-m); flex-wrap: wrap; }
.blog-meta-author { display: flex; align-items: center; gap: 8px; }
.blog-meta-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.blog-feat-img { margin-top: 32px; border-radius: var(--r2) var(--r2) 0 0; overflow: hidden; max-height: 420px; }
.blog-feat-img img { width: 100%; height: 420px; object-fit: cover; }

.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 40px 0 80px; max-width: 1100px; margin: 0 auto; }
.blog-article { min-width: 0; }
.blog-article h2 { font-family: var(--font-d); font-size: 28px; margin: 40px 0 14px; scroll-margin-top: 80px; }
.blog-article h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.blog-article p  { font-size: 15px; line-height: 1.8; color: var(--text-2); margin-bottom: 1rem; }
.blog-article ul, .blog-article ol { padding-left: 1.5rem; color: var(--text-2); font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.blog-article li { margin-bottom: .5rem; }
.blog-article blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; background: var(--accent-g); border-radius: 0 var(--r) var(--r) 0; margin: 1.5rem 0; color: var(--text-2); font-style: italic; }
.blog-article img { border-radius: var(--r); margin: 1rem 0; }
.blog-article a { color: var(--accent); }

/* Blog sidebar */
.blog-sidebar {}
.blog-sidebar .sidebar-widget { position: sticky; top: 80px; }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  #blogGrid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 900px) {
  .review-hero-grid { grid-template-columns: 1fr; }
  .review-img-sticky { position: static; }
  .review-body-wrap { grid-template-columns: 1fr; }
  .review-sidebar { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu, .nav-search-btn { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  #blogGrid { grid-template-columns: 1fr !important; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 120px 1fr 1fr; }
}
@media (max-width: 520px) {
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .newsletter-block { padding: 32px 20px; }
}

/* ═══════════════════════════════════════
   GOOGLE ADSENSE AD SLOTS
═══════════════════════════════════════ */
.bh-ad {
  width: 100%;
  overflow: hidden;
}
.bh-ad-top {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: var(--bg-2);
}
.bh-ad-mid {
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--bg-2);
}
.bh-ad-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
@media (max-width: 768px) {
  .bh-ad-top { display: none; } /* hide leaderboard on mobile, too wide */
}
