/* =====================================================================
   WP THEME LAYER
   Loaded after style.css. Restyles the site as a classic WordPress
   review theme: white sticky header, flat cards, Poppins/Open Sans,
   content + sidebar on long-form pages.
   ===================================================================== */

:root {
  --font-display: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, 'Segoe UI', sans-serif;

  --wp-ink: #1c2b39;
  --wp-text: #333;
  --wp-muted: #5a6875;
  --wp-meta: #6b7883;
  --wp-line: #e2e6ea;
  --wp-soft: #f6f8f9;
  --wp-accent: #0b7268;
  --wp-accent-dark: #085a52;
  --wp-accent-soft: #eef8f6;
  --wp-buy: #c2410c;
  --wp-buy-dark: #9a3412;

  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 4px 14px rgba(0, 0, 0, 0.08);

  --radius-lg: 8px;
  --radius: 6px;
  --radius-sm: 4px;
  --maxw: 1140px;
}

html { font-size: 17px; }

body {
  color: var(--wp-text);
  line-height: 1.75;
  -webkit-font-smoothing: auto;
}

::selection { background: #cdeee9; color: var(--wp-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--wp-ink);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.45rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.22rem; letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { color: var(--wp-text); }

.section-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wp-accent);
}
.section-label::before { display: none; }

/* Section eyebrows ("Methodology", "The Ranking", ...) are a landing-page
   pattern, not a blog one. */
.section-header .section-label,
.section-header .section-label:first-child { display: none; }

.section-header { margin-bottom: 32px; }
.section-title { margin-bottom: 10px; }
.section-subtitle {
  font-size: 1.02rem;
  color: var(--wp-muted);
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: none !important; }

.btn-primary { background: var(--wp-accent); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--wp-accent-dark); box-shadow: none; }

.btn-outline { color: var(--wp-ink); border: 1px solid #c9d1d8; }
.btn-outline:hover { border-color: var(--wp-ink); background: #fff; }

.btn-white { color: var(--wp-ink); box-shadow: none; }
.btn-white:hover { background: #eef1f3; box-shadow: none; }

/* ---------- Header / navigation ---------- */
.navbar {
  position: sticky;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid #e8ebee;
}
.navbar.scrolled { background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); }

.nav-inner { height: 84px; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wp-ink);
  gap: 12px;
}
.nav-logo img { width: 40px; height: 40px; }

.nav-links { gap: 26px; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--wp-ink);
}
.nav-links a::after { display: none; }
.nav-links a:hover,
.nav-links a.active { color: var(--wp-accent); }

.nav-links .nav-cta a {
  background: var(--wp-accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
}
.nav-links .nav-cta a:hover { background: var(--wp-accent-dark); color: #fff; }

.nav-dropdown-menu {
  border-radius: 4px;
  border-color: var(--wp-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  gap: 0;
}
.nav-dropdown-menu a {
  border-radius: 0;
  padding: 9px 18px;
  font-weight: 500;
  color: var(--wp-text);
}
.nav-dropdown-menu a:hover { background: var(--wp-soft); color: var(--wp-accent); }

/* ---------- Kill decorative motion ---------- */
.hero-content, .hero-badge, .hero h1, .hero p, .hero-buttons, .hero-visual, .hero-card,
.page-header h1, .page-header p, .page-header > .container > .section-label {
  animation: none !important;
}
.hero::before, .page-header::before, .cta-section::before,
.feature-card::before, .ranked-item::before, .hero-card::before,
.review-card-image::after { display: none; }

/* ---------- Home (install-your-own) hero ---------- */
.hero {
  padding: 72px 0;
  background: var(--wp-soft);
  border-bottom: 1px solid #e8ebee;
}
.hero h1 span { color: var(--wp-accent); }
.hero h1 span::after { display: none; }
.hero-badge {
  border-radius: 4px;
  box-shadow: none;
  border-color: var(--wp-line);
  color: var(--wp-accent);
}
.hero-card { border-radius: 6px; box-shadow: none; border-color: var(--wp-line); }
.hero-card-icon { background: var(--wp-accent); box-shadow: none; border-radius: 6px; }
.hero-stat { border-radius: 4px; }
.hero-stat:hover { transform: none; }
.hero-stat .number { color: var(--wp-ink); letter-spacing: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt-bg {
  background: var(--wp-soft);
  border-top: 0;
  border-bottom: 0;
}

/* ---------- Page header (title area) ---------- */
.page-header {
  padding: 48px 0 44px;
  background: var(--wp-soft);
  border-bottom: 1px solid #e8ebee;
  text-align: left;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.05rem; color: #444; margin: 0; }
.page-header > .container > .section-label {
  font-weight: 400;
  color: var(--wp-meta);
  margin-bottom: 8px;
}

.featured-img {
  max-width: 100%;
  margin: 26px 0 0;
  border-radius: 6px;
  border: 0;
  box-shadow: none;
}
.featured-img.square { max-width: 640px; }

.hero-answer { max-width: none; margin: 26px 0 0; }
.hero-cta { justify-content: flex-start; }
.hero-cta-lead { margin: 24px 0 0; max-width: none; }

.page-header .disclosure-inline {
  max-width: none;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-style: italic;
  color: var(--wp-meta);
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--wp-accent-soft);
  border: 0;
  border-radius: 6px;
  padding: 22px 26px;
}
.callout-label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp-ink);
}
.callout-label svg { color: var(--wp-accent); }
.callout p { color: var(--wp-text); }

.verdict-line { border-left: 0 !important; border-radius: 6px !important; background: var(--wp-accent-soft) !important; }

.solution { border-radius: 4px; background: var(--wp-soft); border-color: var(--wp-line); }
.solution strong { color: var(--wp-accent); }

.prose a, .callout a, .solution a, .feature-card p a, .about-content a, .checklist-item a {
  color: var(--wp-accent);
  text-decoration-thickness: 1px;
}

/* ---------- Cards ---------- */
.feature-card, .guide-card, .review-card, .value-card, .ranked-item {
  border-radius: 6px;
  border-color: var(--wp-line);
  box-shadow: none;
}
.feature-card:hover, .guide-card:hover, .review-card:hover, .value-card:hover, .ranked-item:hover {
  transform: none;
  box-shadow: none;
  border-color: #c9d1d8;
}
.feature-icon, .value-icon {
  border-radius: 50%;
  background: #e3f5f2;
  border: 0;
  color: var(--wp-accent);
}
.feature-card:hover .feature-icon, .value-card:hover .value-icon {
  background: #e3f5f2;
  color: var(--wp-accent);
  transform: none;
}
.feature-card p, .guide-card p, .value-card p, .review-card-body p { color: #4a5763; }

.guide-number {
  font-size: 1.5rem;
  margin-bottom: 10px;
  background: none;
  -webkit-text-fill-color: var(--wp-accent);
  color: var(--wp-accent);
}
.guide-card .read-more { color: var(--wp-accent); }

.review-card-image { background: var(--wp-ink); }
.review-card-badge { border-radius: 3px; box-shadow: none; }

.rank-badge {
  border-radius: 4px;
  box-shadow: none !important;
  background: var(--wp-ink);
}
.rank-badge.gold { background: var(--wp-buy); }
.rank-badge.silver { background: #5f6b76; }
.rank-badge.bronze { background: #8a5a2b; }

.star { color: #e8a317; }
.star.half::before { color: #e8a317; }

.tag { border-radius: 3px; }

.rating-bar .bar { border-radius: 2px; }
.rating-bar .bar-fill { background: var(--wp-accent); border-radius: 2px; }
.rating-bar .score { color: var(--wp-ink); }

.checklist-item { border-radius: 4px; border-color: var(--wp-line); }
.checklist-item:hover { transform: none; background: #fff; border-color: var(--wp-line); }
.checklist-item svg { color: var(--wp-accent); }

/* ---------- Tables ---------- */
.comparison-table {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--wp-line);
}
.comparison-table thead { background: #f1f4f6; color: var(--wp-ink); }
.comparison-table th {
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--wp-line);
}
.comparison-table td { color: var(--wp-text); border-bottom-color: var(--wp-line); }
.comparison-table tbody tr:first-child { background: none; }
.comparison-table tbody tr:nth-child(even) { background: #fafbfc; }
.comparison-table tbody tr:hover { background: var(--wp-accent-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-radius: 4px; border-color: var(--wp-line); }
.faq-item.open { border-color: #c9d1d8; box-shadow: none; }
.faq-question { letter-spacing: 0; font-size: 1rem; }
.faq-question:hover, .faq-question svg { color: var(--wp-accent); }
.faq-answer-inner { color: #4a5763; }

/* ---------- Forms ---------- */
.contact-form { border-radius: 6px; box-shadow: none; border-color: var(--wp-line); }
.form-group input, .form-group textarea, .form-group select {
  border-radius: 4px;
  border-width: 1px;
  background: #fff;
}
.contact-details a { color: var(--wp-accent); }

/* ---------- CTA band ---------- */
.cta-section { background: #0a2138; padding: 64px 0; }
.cta-section p { color: rgba(255, 255, 255, 0.8); }
.cta-section p a { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #0a2138; padding: 56px 0 24px; }
.footer h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
}
.footer-brand .nav-logo img { width: 32px; height: 32px; }
.footer-links a:hover { padding-left: 0; color: #fff; }
.footer-contact a:hover { color: #fff; }
.footer-brand p, .footer-contact, .footer-links a { color: #c9d4de; }
.footer-bottom, .footer-disclosure { color: rgba(255, 255, 255, 0.55); }

/* =====================================================================
   CONTENT + SIDEBAR LAYOUT (long-form pages)
   ===================================================================== */
.wp-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.wp-main > section,
.wp-main > section.alt-bg,
.wp-main > .page-header {
  padding: 0 0 44px;
  background: none;
  border: 0;
}
.wp-main > section > .container,
.wp-main > .page-header > .container {
  max-width: none;
  padding: 0;
}
.wp-main .section-header,
.wp-main .section-header .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
.wp-main .section-header { margin-bottom: 20px; }
.wp-main .section-subtitle { margin-bottom: 20px; max-width: none; }
.wp-main p { max-width: none; }
.wp-main .prose, .wp-main .faq-list, .wp-main .pros-cons-grid { max-width: none; margin-left: 0; margin-right: 0; }
.wp-main .guides-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.wp-main .guide-card { padding: 24px; }
.wp-main .features-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wp-main .ranked-item .review-card-body { padding: 30px; }
.wp-main .comparison-table th,
.wp-main .comparison-table td { padding: 11px 12px; font-size: 0.84rem; }
.wp-main > .page-header h1 { font-size: clamp(1.85rem, 3.2vw, 2.4rem); }

/* Author box at the end of the post */
.wp-main > section.wp-author {
  border-top: 1px solid var(--wp-line);
  padding-top: 32px;
}
.wp-author .about-grid {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 24px !important;
  align-items: start !important;
}
.wp-author .feature-icon { margin: 0; background: #d9e3ea; color: var(--wp-ink); }
.wp-author .section-header { margin-bottom: 16px; }

/* Breadcrumbs */
.wp-breadcrumbs {
  font-size: 0.82rem;
  color: var(--wp-meta);
  margin: 0 0 14px;
}
.wp-breadcrumbs a { color: var(--wp-meta); }
.wp-breadcrumbs a:hover { color: var(--wp-accent); text-decoration: underline; }
.wp-breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* Sidebar */
.wp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--wp-ink);
  margin: 0 0 14px;
  letter-spacing: 0;
  line-height: 1.3;
}
.widget-author {
  background: var(--wp-soft);
  border-radius: 6px;
  padding: 26px 24px;
  text-align: center;
}
.widget-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #d9e3ea;
  color: var(--wp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.widget-author-name { font-family: var(--font-display); font-weight: 700; color: var(--wp-ink); font-size: 1.05rem; }
.widget-author-role { font-size: 0.85rem; color: var(--wp-meta); margin-bottom: 10px; }
.widget-author p { font-size: 0.88rem; line-height: 1.65; color: #4a5763; margin: 0 auto 12px; }
.widget-author a { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--wp-accent); }

.widget-picks { display: flex; flex-direction: column; gap: 14px; }
.widget-picks a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--wp-ink);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
}
.widget-picks a:hover { color: var(--wp-accent); }
.widget-picks img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.widget-list li { border-bottom: 1px solid #eef1f3; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a {
  display: block;
  padding: 9px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--wp-text);
}
.widget-list a:hover { color: var(--wp-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 1024px) {
  .wp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .wp-sidebar { border-top: 1px solid var(--wp-line); padding-top: 32px; }
}

@media (max-width: 768px) {
  .nav-inner { height: 64px; }
  .nav-links {
    top: 64px;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }
  .nav-links .nav-cta { width: 100%; }
  .nav-links .nav-cta a { display: block; text-align: center; }
  .nav-logo { font-size: 1rem; }
  .nav-logo img { width: 34px; height: 34px; }

  .hero { padding: 48px 0; }
  .page-header { padding: 32px 0 32px; }
  .has-banner .page-header { padding-top: 32px; }
  section { padding: 48px 0; }

  .wp-layout { padding: 22px 16px 8px; }
  .wp-main > section, .wp-main > section.alt-bg, .wp-main > .page-header { padding-bottom: 36px; }
  .wp-main .ranked-item .review-card-body { padding: 22px; }
  .wp-author .about-grid { grid-template-columns: 64px minmax(0, 1fr) !important; gap: 16px !important; }
  .wp-author .feature-icon { width: 64px !important; height: 64px !important; }
  .wp-author .feature-icon svg { width: 30px; height: 30px; }
}
