/* ===================================================================
   Preemptive Pest Control — Main Stylesheet
   =================================================================== */

/* ===== Variables ===== */
:root {
  --navy:        #1b2b4b;
  --navy-dark:   #111d33;
  --navy-light:  #26407a;
  --orange:      #e8890c;
  --orange-dark: #c97208;
  --green:       #2d7a3a;
  --green-light: #e8f5ec;
  --blue-accent: #2e86ab;
  --gray-50:     #f8f9fb;
  --gray-100:    #f0f2f5;
  --gray-200:    #e2e6ed;
  --gray-300:    #cdd3dc;
  --gray-500:    #8c97a6;
  --gray-600:    #5f6b7a;
  --gray-700:    #3d4a58;
  --gray-900:    #1a1a1a;
  --white:       #ffffff;
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.07);
  --shadow-sm:   0 2px 6px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.13);
  --radius:      8px;
  --radius-lg:   14px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  color: var(--gray-900);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); transition: color .15s; }
a:hover { color: var(--orange); }

/* ===== Site Header ===== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 66px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.logo-wordmark { line-height: 1; }
.logo-wordmark strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo-wordmark span {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  user-select: none;
}
.nav-link:hover,
.nav-item:hover > .nav-link { background: rgba(255,255,255,.12); color: var(--white); }
.nav-link .chev {
  width: 11px; height: 11px; opacity: .6;
  transition: transform .2s;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-item:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 0.4rem 0;
  z-index: 300;
  border: 1px solid var(--gray-200);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.48rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .1s, color .1s;
}
.dropdown a:hover { background: var(--gray-50); color: var(--navy); }
.dd-section {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  padding: 0.6rem 1rem 0.2rem;
  pointer-events: none;
  border-top: 1px solid var(--gray-200);
  margin-top: 0.25rem;
}
.dd-section:first-child { border-top: none; margin-top: 0; }

/* Nav CTA */
.nav-cta-wrap { margin-left: auto; flex-shrink: 0; }
.nav-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  margin-left: auto;
  color: var(--white);
  border-radius: 6px;
  transition: background .15s;
  align-items: center;
}
.hamburger:hover { background: rgba(255,255,255,.12); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0.75rem 1.25rem 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .12s;
}
.mobile-nav a:hover { color: var(--white); }
.mob-section {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
  padding: 1rem 0 0.25rem;
  pointer-events: none;
}
.site-header.nav-open .mobile-nav { display: block; }

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.55rem 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.bc-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.breadcrumb-bar a { color: var(--gray-600); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--navy); }
.bc-sep { color: var(--gray-300); margin: 0 0.15rem; }

/* ===== Disclosure ===== */
.disclosure {
  background: #fffbf0;
  border-left: 4px solid var(--orange);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  border-radius: 0 5px 5px 0;
  margin-bottom: 1.5rem;
}

/* ===== Container ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

/* ===== Typography ===== */
h1 {
  font-size: 2.05rem;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gray-200);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.12rem;
  color: #243318;
  margin: 1.5rem 0 0.45rem;
  font-weight: 700;
}
h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 1.2rem 0 0.35rem;
  font-weight: 600;
}
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--navy); font-weight: 600; }
blockquote {
  border-left: 4px solid var(--orange);
  background: var(--gray-50);
  padding: 0.9rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--gray-700);
  font-style: italic;
}

/* ===== Article Meta ===== */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.83rem;
  color: var(--gray-600);
}
.article-meta .tag {
  background: var(--green-light);
  color: var(--green);
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th {
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}
td {
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-50); }
tbody tr:hover td { background: #eef2ff; }

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 2rem 2rem 2.25rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -70px; right: -60px;
  pointer-events: none;
}
.cta-box h3 { color: var(--white); font-size: 1.4rem; margin: 0 0 0.5rem; }
.cta-box p  { color: rgba(255,255,255,.82); margin-bottom: 1.35rem; font-size: 0.97rem; }
.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.8rem 2.1rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  transition: background .15s, transform .1s;
}
.cta-btn:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.cta-btn-outline {
  display: inline-block;
  color: rgba(255,255,255,.9);
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.35);
  margin-left: 0.85rem;
  transition: border-color .15s;
  font-size: 0.95rem;
}
.cta-btn-outline:hover { border-color: rgba(255,255,255,.75); color: var(--white); }

/* ===== Callout Boxes ===== */
.info-box {
  background: #e8f4fb;
  border-left: 4px solid var(--blue-accent);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box strong { color: #1a6080; }
.tip-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--green); }
.warning-box {
  background: #fff4e5;
  border-left: 4px solid #f57c00;
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.warning-box strong { color: #b05a00; }

/* ===== Product Cards ===== */
.product-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.product-card h3 { margin-top: 0.1rem; }
.stars { color: #f59e0b; letter-spacing: .1em; font-size: 0.95rem; }
.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ff9900;
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  transition: background .15s;
}
.amazon-btn:hover { background: #e68900; color: var(--white); }

/* ===== Checklist ===== */
.checklist { list-style: none; padding: 0; margin-bottom: 1rem; }
.checklist li {
  position: relative;
  padding: 0.45rem 0.5rem 0.45rem 1.9rem;
  border-bottom: 1px solid var(--gray-200);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0.2rem; color: var(--green); font-weight: 700; }

/* ===== Pillar Cards ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.1rem;
  margin: 1.75rem 0;
}
.pillar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy); color: inherit; }
.pillar-icon { font-size: 1.75rem; line-height: 1; margin-bottom: 0.15rem; }
.pillar-card strong { color: var(--navy); font-size: 0.97rem; font-weight: 700; display: block; }
.pillar-card p { font-size: 0.83rem; color: var(--gray-600); margin: 0; }

/* ===== Hero ===== */
.site-hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1e4480 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.site-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  max-width: 680px;
  margin: 0 auto 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.site-hero .hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto 1.75rem;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  transition: background .15s, transform .1s;
}
.hero-btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.hero-btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.28);
  transition: background .15s, border-color .15s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.18); color: var(--white); border-color: rgba(255,255,255,.6); }
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
}
.hero-trust span::before { content: '✓ '; color: #6ee78a; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}
.stat-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--orange); }
.stat-item span { font-size: 0.8rem; color: rgba(255,255,255,.55); }

/* ===== Site Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.55);
  margin-top: 4rem;
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin: 0.75rem 0 0; max-width: 270px; }
.brand-name { display: block; color: var(--white); font-size: 1.05rem; font-weight: 800; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin-bottom: 0; }
.footer-col li { margin-bottom: 0.38rem; }
.footer-col a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 0.875rem; transition: color .12s; }
.footer-col a:hover { color: var(--white); }
.footer-spacer { margin-top: 1.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.79rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom p + p { margin-top: 0.35rem; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .site-nav, .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  .site-hero h1 { font-size: 1.75rem; }
  .site-hero .hero-sub { font-size: 1rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .container { padding: 1.5rem 1rem 2.5rem; }
  .cta-box { padding: 1.5rem; }
  .stats-inner { gap: 1.5rem 2.5rem; }
}
@media print {
  .site-header, .site-footer, .cta-box { display: none; }
}
