/*
Theme Name: HomeSec
Theme URI: https://www.homesystemssecurity.com/
Author: HomeSec Team
Author URI: https://www.homesystemssecurity.com/
Description: Expert Reviews, Buying Guides & Smart Home Protection Tips. Built for SEO authority, fast loading, and maximum conversion.
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homesec
Tags: home-security, reviews, affiliate, seo-optimized, responsive
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --clr-navy:        #0D1B2A;
  --clr-navy-mid:    #1A2E44;
  --clr-navy-light:  #243B55;
  --clr-teal:        #0FA070;
  --clr-teal-dark:   #0C7A55;
  --clr-teal-light:  #E6F7F1;
  --clr-amber:       #F59E0B;
  --clr-amber-light: #FFFBEB;
  --clr-red:         #DC2626;
  --clr-white:       #FFFFFF;
  --clr-off-white:   #F8FAFC;
  --clr-gray-50:     #F9FAFB;
  --clr-gray-100:    #F1F5F9;
  --clr-gray-200:    #E2E8F0;
  --clr-gray-300:    #CBD5E1;
  --clr-gray-500:    #64748B;
  --clr-gray-600:    #475569;
  --clr-gray-700:    #334155;
  --clr-gray-800:    #1E293B;
  --clr-gray-900:    #0F172A;
  --clr-text:        #1E293B;
  --clr-muted:       #64748B;

  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-teal: 0 4px 20px rgba(15,160,112,.25);

  --max-w: 1200px;
  --max-w-content: 820px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-teal-dark); }
ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--max-w-content); margin: 0 auto; padding: 0 24px; }
.section      { padding: 80px 0; }
.section--sm  { padding: 48px 0; }
.section--lg  { padding: 120px 0; }
.section--dark { background: var(--clr-navy); color: var(--clr-white); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--clr-white); }
.section--gray { background: var(--clr-gray-50); }
.section--teal-light { background: var(--clr-teal-light); }

.text-center { text-align: center; }
.text-muted  { color: var(--clr-muted); }
.text-white  { color: var(--clr-white) !important; }
.text-teal   { color: var(--clr-teal); }
.text-amber  { color: var(--clr-amber); }

.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.badge--teal   { background: var(--clr-teal-light); color: var(--clr-teal-dark); }
.badge--amber  { background: var(--clr-amber-light); color: #92400E; }
.badge--navy   { background: var(--clr-navy); color: var(--clr-white); }
.badge--red    { background: #FEE2E2; color: var(--clr-red); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 28px; border-radius: var(--radius-md);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-teal); color: var(--clr-white);
  border-color: var(--clr-teal);
}
.btn--primary:hover {
  background: var(--clr-teal-dark); border-color: var(--clr-teal-dark);
  color: var(--clr-white); transform: translateY(-2px); box-shadow: var(--shadow-teal);
}
.btn--secondary {
  background: transparent; color: var(--clr-navy);
  border-color: var(--clr-navy);
}
.btn--secondary:hover {
  background: var(--clr-navy); color: var(--clr-white);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent; color: var(--clr-teal);
  border-color: var(--clr-teal);
}
.btn--ghost:hover {
  background: var(--clr-teal); color: var(--clr-white);
}
.btn--white {
  background: var(--clr-white); color: var(--clr-navy);
  border-color: var(--clr-white);
}
.btn--white:hover {
  background: var(--clr-gray-100); color: var(--clr-navy);
}
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: .85rem; }

.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__body { padding: 24px; }
.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__img--sq { aspect-ratio: 1/1; }

.star-rating { display: inline-flex; gap: 2px; color: var(--clr-amber); font-size: 1rem; }
.star-rating__text { font-size: .85rem; color: var(--clr-muted); margin-left: 6px; font-weight: 500; }

.section-label {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--clr-teal); margin-bottom: 12px; display: block;
}
.section-header { margin-bottom: 48px; }
.section-header p { font-size: 1.1rem; color: var(--clr-muted); max-width: 620px; margin-top: 12px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
.site-logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--clr-white); line-height: 1.1; }
.site-logo__sub  { font-size: .68rem; color: rgba(255,255,255,.55); font-weight: 400; display: block; }

.primary-nav { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: flex; align-items: center; gap: 4px;
  font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.82);
  padding: 8px 14px; border-radius: var(--radius-md);
  transition: all var(--transition);
}
.primary-nav a:hover, .primary-nav li.current-menu-item > a {
  color: var(--clr-white); background: rgba(255,255,255,.1);
}
.primary-nav .nav-cta > a {
  background: var(--clr-teal); color: var(--clr-white); font-weight: 600;
}
.primary-nav .nav-cta > a:hover { background: var(--clr-teal-dark); }

/* Dropdown */
.has-dropdown > a::after {
  content: '▾'; font-size: .7rem; margin-left: 2px; opacity: .7;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--clr-white); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); z-index: 100;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  color: var(--clr-gray-700); font-size: .88rem; font-weight: 500;
  transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--clr-teal-light); color: var(--clr-teal-dark); }
.dropdown-menu .sep { height: 1px; background: var(--clr-gray-100); margin: 6px 0; }

/* Mobile nav */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--clr-white); border-radius: 2px;
  transition: all var(--transition);
}

/* Nav search */
.nav-search-btn {
  background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.7);
  padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer;
  font-size: 1rem; transition: all var(--transition); display: flex;
}
.nav-search-btn:hover { background: rgba(255,255,255,.18); color: var(--clr-white); }

/* ============================================================
   HERO - HOMEPAGE
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 50%, #0C3B52 100%);
  padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clr-teal); margin-bottom: 16px; }
.hero h1 { color: var(--clr-white); margin-bottom: 20px; }
.hero h1 span { color: var(--clr-teal); }
.hero__desc { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65); font-weight: 500; }
.hero__trust-item .icon { color: var(--clr-teal); font-size: 1.1rem; }
.hero__image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); position: relative; }
.hero__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(13,27,42,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero__image-badge .badge-stat { font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); color: var(--clr-teal); }
.hero__image-badge .badge-label { font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.3; }

/* ============================================================
   CATEGORY GRID (HOMEPAGE)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--clr-white); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); text-decoration: none;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--clr-teal); }
.cat-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat-card__body { padding: 20px; flex: 1; }
.cat-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.cat-card__title { font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); color: var(--clr-navy); margin-bottom: 6px; }
.cat-card__desc { font-size: .85rem; color: var(--clr-muted); line-height: 1.55; margin: 0; }
.cat-card__arrow { display: flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--clr-teal); padding: 12px 20px; border-top: 1px solid var(--clr-gray-100); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--clr-white); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: all var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__header { position: relative; }
.product-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card__badge { position: absolute; top: 14px; left: 14px; }
.product-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-teal); margin-bottom: 8px; }
.product-card__title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-display); color: var(--clr-navy); margin-bottom: 10px; line-height: 1.3; }
.product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.product-card__desc { font-size: .88rem; color: var(--clr-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-card__spec { font-size: .75rem; font-weight: 500; background: var(--clr-gray-100); color: var(--clr-gray-700); padding: 3px 10px; border-radius: var(--radius-full); }
.product-card__price { font-size: 1.2rem; font-weight: 800; font-family: var(--font-display); color: var(--clr-navy); margin-bottom: 14px; }
.product-card__price span { font-size: .85rem; font-weight: 400; color: var(--clr-muted); text-decoration: line-through; margin-left: 6px; }
.product-card__cta { display: flex; gap: 10px; }
.product-card__cta .btn { flex: 1; justify-content: center; font-size: .88rem; padding: 10px 16px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparison-table thead th {
  background: var(--clr-navy); color: var(--clr-white);
  font-family: var(--font-display); font-weight: 700;
  padding: 16px 20px; text-align: left; border: 1px solid rgba(255,255,255,.1);
}
.comparison-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.comparison-table thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
.comparison-table thead th.highlight { background: var(--clr-teal); }
.comparison-table tbody tr { border-bottom: 1px solid var(--clr-gray-100); transition: background var(--transition); }
.comparison-table tbody tr:hover { background: var(--clr-gray-50); }
.comparison-table tbody td { padding: 14px 20px; color: var(--clr-gray-700); border: 1px solid var(--clr-gray-100); }
.comparison-table tbody td.highlight { background: rgba(15,160,112,.04); border-color: rgba(15,160,112,.15); }
.comparison-table .check { color: var(--clr-teal); font-size: 1.1rem; font-weight: 700; }
.comparison-table .cross { color: var(--clr-red); font-size: 1.1rem; }
.comparison-table .feature-name { font-weight: 600; color: var(--clr-gray-800); }

/* ============================================================
   BLOG / ARTICLE CARDS
   ============================================================ */
.article-card {
  background: var(--clr-white); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: all var(--transition);
  text-decoration: none;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clr-gray-300); }
.article-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.article-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-teal); }
.article-card__date { font-size: .78rem; color: var(--clr-muted); }
.article-card__read-time { font-size: .78rem; color: var(--clr-muted); }
.article-card__title { font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); color: var(--clr-navy); margin-bottom: 10px; line-height: 1.35; flex: 1; }
.article-card__excerpt { font-size: .87rem; color: var(--clr-muted); line-height: 1.6; margin-bottom: 16px; }
.article-card__author { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--clr-muted); }
.article-card__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.article-card--featured { grid-column: 1 / -1; flex-direction: row; }
.article-card--featured .article-card__img { width: 50%; aspect-ratio: auto; min-height: 300px; flex-shrink: 0; }
.article-card--featured .article-card__body { padding: 36px; justify-content: center; }
.article-card--featured .article-card__title { font-size: 1.5rem; }

/* ============================================================
   BLOG SINGLE / ARTICLE
   ============================================================ */
.article-hero {
  background: var(--clr-navy);
  padding: 80px 0 60px;
}
.article-hero__breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 20px; flex-wrap: wrap; }
.article-hero__breadcrumb a { color: rgba(255,255,255,.55); }
.article-hero__breadcrumb a:hover { color: var(--clr-teal); }
.article-hero__breadcrumb span { color: rgba(255,255,255,.3); }
.article-hero h1 { color: var(--clr-white); max-width: 800px; margin-bottom: 20px; }
.article-hero__meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.article-hero__meta-item { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.6); }
.article-hero__meta-item strong { color: rgba(255,255,255,.9); }

.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

.article-content { min-width: 0; }
.article-content h2 { font-size: 1.65rem; margin: 2.5rem 0 1rem; color: var(--clr-navy); padding-bottom: .5rem; border-bottom: 2px solid var(--clr-teal-light); }
.article-content h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; color: var(--clr-navy); }
.article-content h4 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--clr-gray-800); }
.article-content p { font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { font-size: 1.02rem; line-height: 1.8; margin: 1rem 0 1.4rem; }
.article-content li { margin-bottom: .4rem; }
.article-content strong { color: var(--clr-navy); }
.article-content a { color: var(--clr-teal); text-decoration: underline; text-decoration-color: rgba(15,160,112,.35); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: var(--clr-teal); }
.article-content blockquote {
  border-left: 4px solid var(--clr-teal); background: var(--clr-teal-light);
  padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0; font-style: italic; color: var(--clr-gray-700);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .95rem; }
.article-content table th { background: var(--clr-navy); color: var(--clr-white); padding: 12px 16px; text-align: left; font-weight: 600; }
.article-content table td { padding: 11px 16px; border-bottom: 1px solid var(--clr-gray-100); }
.article-content table tr:hover td { background: var(--clr-gray-50); }

.article-toc {
  background: var(--clr-gray-50); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 36px;
}
.article-toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-muted); margin-bottom: 14px; }
.article-toc ol { padding-left: 1.2rem; }
.article-toc li { font-size: .9rem; line-height: 1.6; margin-bottom: 4px; }
.article-toc a { color: var(--clr-teal); text-decoration: none; font-weight: 500; }
.article-toc a:hover { text-decoration: underline; }

.article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--clr-white); border: 1px solid var(--clr-gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-widget__header { background: var(--clr-navy); padding: 14px 20px; }
.sidebar-widget__header h4 { color: var(--clr-white); font-size: .9rem; margin: 0; }
.sidebar-widget__body { padding: 20px; }

.sidebar-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--clr-gray-100); text-decoration: none; }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:hover .sidebar-post__title { color: var(--clr-teal); }
.sidebar-post__img { width: 72px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sidebar-post__title { font-size: .83rem; font-weight: 600; color: var(--clr-gray-800); line-height: 1.35; transition: color var(--transition); }
.sidebar-post__date  { font-size: .75rem; color: var(--clr-muted); margin-top: 4px; }

/* ============================================================
   INLINE CALLOUT / VERDICT BOX
   ============================================================ */
.callout {
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin: 2.5rem 0; border-left: 4px solid;
}
.callout--verdict   { background: var(--clr-teal-light); border-color: var(--clr-teal); }
.callout--warning   { background: #FFFBEB; border-color: var(--clr-amber); }
.callout--tip       { background: #EFF6FF; border-color: #2563EB; }
.callout--danger    { background: #FEF2F2; border-color: var(--clr-red); }
.callout__title { font-weight: 700; font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; color: var(--clr-navy); }
.callout p { font-size: .95rem; margin: 0; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--clr-white); border: 1px solid var(--clr-gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition); }
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-family: var(--font-display); font-size: 1rem; color: var(--clr-navy);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--clr-gray-50); }
.faq-q::after { content: '▾'; font-size: .8rem; flex-shrink: 0; transition: transform var(--transition); color: var(--clr-teal); }
.faq-a { padding: 0 24px 20px; font-size: .95rem; color: var(--clr-gray-700); line-height: 1.75; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--clr-white); border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-xl); padding: 36px 28px;
  display: flex; flex-direction: column; transition: all var(--transition); text-align: center;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card--featured { border-color: var(--clr-teal); position: relative; }
.pricing-card--featured::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--clr-teal); color: var(--clr-white);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 16px; border-radius: var(--radius-full);
}
.pricing-card__tier { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-muted); margin-bottom: 12px; }
.pricing-card__price { margin-bottom: 8px; }
.pricing-card__price .amount { font-size: 3rem; font-weight: 800; font-family: var(--font-display); color: var(--clr-navy); line-height: 1; }
.pricing-card__price .currency { font-size: 1.4rem; vertical-align: super; font-weight: 700; color: var(--clr-navy); }
.pricing-card__price .period { font-size: .9rem; color: var(--clr-muted); }
.pricing-card__desc { font-size: .88rem; color: var(--clr-muted); margin-bottom: 28px; }
.pricing-card__features { list-style: none; padding: 0; text-align: left; flex: 1; margin-bottom: 28px; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--clr-gray-700); padding: 6px 0; border-bottom: 1px solid var(--clr-gray-100); }
.pricing-card__features li::before { content: '✓'; color: var(--clr-teal); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.pricing-card__features li.miss { color: var(--clr-muted); }
.pricing-card__features li.miss::before { content: '✗'; color: var(--clr-gray-300); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  border-radius: var(--radius-xl); padding: 60px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,160,112,.2) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--clr-white); font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.7); margin: 0; }
.cta-banner__actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--clr-gray-50); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); padding: 28px; margin: 48px 0;
}
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-weight: 700; font-family: var(--font-display); color: var(--clr-navy); margin-bottom: 4px; }
.author-box__role { font-size: .8rem; color: var(--clr-teal); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.author-box p { font-size: .9rem; color: var(--clr-muted); margin: 0; line-height: 1.7; }

/* ============================================================
   CATEGORY HERO (INNER PAGES)
   ============================================================ */
.cat-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  padding: 80px 0 60px;
}
.cat-hero h1 { color: var(--clr-white); margin-bottom: 16px; }
.cat-hero__desc { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 680px; margin-bottom: 28px; }
.cat-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; }
.cat-hero__stat { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); font-weight: 500; }
.cat-hero__stat strong { color: var(--clr-teal); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--clr-white); border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg); padding: 16px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px; box-shadow: var(--shadow-sm);
}
.filter-bar__label { font-size: .82rem; font-weight: 700; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  font-size: .85rem; font-weight: 600; padding: 6px 16px;
  border: 1.5px solid var(--clr-gray-200); border-radius: var(--radius-full);
  cursor: pointer; transition: all var(--transition); background: var(--clr-white); color: var(--clr-gray-600);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--clr-teal); border-color: var(--clr-teal); color: var(--clr-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--clr-gray-900);
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .site-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 300px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--transition); text-decoration: none; font-size: .85rem;
}
.footer-social a:hover { background: var(--clr-teal); color: var(--clr-white); }
.footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--clr-white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .87rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-teal); }
.footer-newsletter { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 28px; }
.footer-newsletter h5 { font-family: var(--font-display); font-weight: 700; color: var(--clr-white); margin-bottom: 8px; }
.footer-newsletter p { font-size: .85rem; margin-bottom: 16px; }
.footer-newsletter__form { display: flex; gap: 8px; }
.footer-newsletter__form input {
  flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md); padding: 10px 14px; color: var(--clr-white); font-size: .88rem;
  font-family: var(--font-body); outline: none;
}
.footer-newsletter__form input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter__form input:focus { border-color: var(--clr-teal); }
.footer-newsletter__form button { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { font-size: .82rem; color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom__links a:hover { color: var(--clr-teal); }
.footer-bottom__copy { font-size: .82rem; color: rgba(255,255,255,.35); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; padding: 12px 0; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--clr-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--clr-teal); }
.breadcrumbs span { color: var(--clr-gray-400); }
.breadcrumbs .current { color: var(--clr-gray-600); font-weight: 500; }

/* ============================================================
   PAGE-SPECIFIC: ALARM SYSTEMS
   ============================================================ */
.alarm-hero { background: linear-gradient(135deg, #1A0A2E 0%, #0D1B2A 60%, #0C3B52 100%); }

/* ============================================================
   PAGE-SPECIFIC: VIDEO DOORBELLS
   ============================================================ */
.doorbell-hero { background: linear-gradient(135deg, #0A2218 0%, #0D1B2A 50%, #1A2E44 100%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid    { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero__grid  { grid-template-columns: 1fr; }
  .hero__image { display: none; }
}

@media (max-width: 768px) {
  :root { --max-w: 100%; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; padding: 40px 28px; text-align: center; }
  .cta-banner__actions { justify-content: center; }
  .article-card--featured { flex-direction: column; }
  .article-card--featured .article-card__img { width: 100%; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .primary-nav, .nav-search-btn { display: none; }
  .nav-toggle { display: flex; }
  .author-box { flex-direction: column; }
  .comparison-table { font-size: .8rem; }
  .comparison-table thead th, .comparison-table tbody td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .btn--lg { padding: 13px 22px; font-size: .95rem; }
  .hero { padding: 70px 0 50px; }
  h1 { font-size: 1.8rem; }
}
