:root {
  --navy: #0A1F3D;
  --navy-light: #14315C;
  --brass: #9C7A2E;
  --brass-light: #D4AF6A;
  --cream: #F2EFE8;
  --white: #FFFFFF;
  --ink: #222222;
  --gray: #666666;
  --line: #E0DCD2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  margin: 0;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 22px;
  color: var(--brass-light);
  letter-spacing: 0.5px;
  text-decoration: none;
}
.brand span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  color: #9DB3CC;
  letter-spacing: 0.5px;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}
nav.main-nav a {
  color: #CBD8E8;
  text-decoration: none;
  font-size: 13px;
  margin-left: 18px;
  white-space: nowrap;
}
.brand { flex-shrink: 0; }
@media (min-width: 1080px) {
  nav.main-nav { flex-wrap: nowrap; }
}
nav.main-nav a:hover { color: var(--brass-light); }

/* Hero */
.hero {
  background: var(--cream);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 14ch;
}
.hero p.lede {
  font-size: 17px;
  color: var(--gray);
  max-width: 46ch;
  margin-top: 18px;
}
.hero .eyebrow {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--brass);
  font-weight: bold;
  margin-bottom: 10px;
}
.trust-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.trust-panel .stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.trust-panel .stat:last-child { border-bottom: none; }
.trust-panel .stat strong {
  color: var(--navy);
  font-size: 16px;
}

/* Category nav strip */
.cat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 10;
}
.cat-strip .wrap {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}
.cat-strip a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  color: var(--navy);
  font-weight: bold;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.cat-strip a:hover { border-bottom-color: var(--brass); }

/* Category sections */
.category {
  padding: 56px 0;
}
.category:nth-of-type(even) { background: var(--cream); }
.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 14px;
}
.category-head h2 { font-size: 26px; }
.category-head .tag {
  font-size: 13px;
  color: var(--gray);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.category:nth-of-type(even) .product-card { background: var(--white); }
.product-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}
.product-card h3 {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.product-card p.desc {
  font-size: 13.5px;
  color: var(--gray);
  flex-grow: 1;
  margin-bottom: 16px;
}
.buy-row {
  display: flex;
  gap: 10px;
}
.buy-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 0;
  border-radius: 3px;
}
.buy-btn.amazon {
  background: var(--navy);
  color: var(--brass-light);
}
.buy-btn.walmart {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line);
}
.buy-btn:hover { opacity: 0.88; }

/* CTA banner */
.install-cta {
  background: var(--navy);
  padding: 48px 0;
  text-align: center;
}
.install-cta h2 {
  color: var(--white);
  font-size: 26px;
  max-width: 28ch;
  margin: 0 auto 12px;
}
.install-cta p {
  color: #B9C7D9;
  max-width: 52ch;
  margin: 0 auto 24px;
  font-size: 15px;
}
.install-cta .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
}
.btn-primary { background: var(--brass-light); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid #3A537A; }

/* Disclosure */
.disclosure {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.disclosure p {
  font-size: 12.5px;
  color: var(--gray);
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
}

/* Footer */
footer.site-footer {
  background: var(--navy);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  color: var(--brass-light);
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-grid a {
  display: block;
  color: #B9C7D9;
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom {
  border-top: 1px solid #23355A;
  padding-top: 18px;
  font-size: 12px;
  color: #7E93B3;
  text-align: center;
}

/* Category head "view all" link */
.category-head .view-all {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--brass);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 16px;
}
.category-head .view-all:hover { color: var(--navy); }
.category-head-text { display:flex; align-items:baseline; gap: 12px; flex-wrap: wrap; }

/* Breadcrumb / page hero for category pages */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}
.page-hero .crumb {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
}
.page-hero .crumb a { color: var(--navy); text-decoration: none; font-weight: bold; }
.page-hero h1 { font-size: 32px; }
.page-hero p { color: var(--gray); max-width: 60ch; margin-top: 10px; font-size: 15px; }

/* Two-column layout for category pages */
.cat-layout {
  padding: 48px 0 8px;
}
.cat-layout .wrap {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.cat-layout .grid { grid-template-columns: repeat(2, 1fr); }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

/* --- Ad units (own-brand lead-gen, not affiliate) --- */
.ad-eyebrow {
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: bold;
  opacity: 0.85;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ad-icon { width: 34px; height: 34px; margin-bottom: 14px; }

/* Sidebar / rectangle ad card */
.ad-card {
  border-radius: 8px;
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.ad-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.ad-card p { font-size: 13.5px; margin: 0 0 20px; }
.ad-card .ad-btn {
  display: inline-block;
  font-size: 13.5px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}
.ad-card.giganet {
  background: linear-gradient(150deg, #0A1F3D 0%, #123055 65%, #17406F 100%);
  color: #DCE6F2;
}
.ad-card.giganet .ad-eyebrow { color: var(--brass-light); }
.ad-card.giganet h3 { color: var(--white); font-family: Georgia, serif; }
.ad-card.giganet .ad-btn { background: var(--brass-light); color: var(--navy); }

.ad-card.supertech {
  background: linear-gradient(150deg, #EADFC4 0%, #D4AF6A 70%, #C79A4B 100%);
  color: #3A2E14;
}
.ad-card.supertech .ad-eyebrow { color: #6B5220; }
.ad-card.supertech h3 { color: var(--navy); font-family: Georgia, serif; }
.ad-card.supertech .ad-btn { background: var(--navy); color: var(--brass-light); }

/* Full-width leaderboard ad (homepage inline placement) */
.ad-leaderboard {
  margin: 0 auto;
  border-radius: 8px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ad-leaderboard .ad-copy { display: flex; align-items: center; gap: 20px; }
.ad-leaderboard h3 { font-size: 20px; margin-bottom: 4px; }
.ad-leaderboard p { margin: 0; font-size: 13.5px; }
.ad-leaderboard .ad-eyebrow { margin-bottom: 4px; }
.ad-leaderboard-wrap { padding: 8px 0 8px; }
.ad-leaderboard-wrap.tight { padding-top: 0; }

/* Two-brand ad rail (replaces old plain install-cta banner) */
.partner-ads {
  padding: 56px 0;
  background: var(--white);
}
.partner-ads .lead {
  text-align: center;
  margin-bottom: 32px;
}
.partner-ads .lead h2 { font-size: 26px; }
.partner-ads .lead p { color: var(--gray); font-size: 15px; max-width: 56ch; margin: 10px auto 0; }
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.partner-grid .ad-card { padding: 36px; }
.partner-grid .ad-card h3 { font-size: 24px; }
.partner-grid .ad-card p { font-size: 14.5px; max-width: 40ch; }

@media (max-width: 860px) {
  .cat-layout .wrap { grid-template-columns: 1fr; }
  .cat-layout .grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; flex-direction: row; overflow-x: auto; }
  .sidebar .ad-card { min-width: 260px; }
  .partner-grid { grid-template-columns: 1fr; }
  .ad-leaderboard { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip { top: 0; position: static; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .cat-layout .grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .hero h1 { font-size: 30px; }
  .page-hero h1 { font-size: 26px; }
}
