/* ============================================================
   PestControlBasics.com — Shared Stylesheet
   Covers: reset, variables, nav (both patterns), breadcrumbs,
   hero, cards, tables, callouts, sidebar, FAQ, pest-grid,
   danger-box, footer. Pages may add small inline overrides.
   ============================================================ */

/* === VARIABLES & RESET === */
:root {
  --green: #2D5016;
  --green-mid: #4A7C2F;
  --green-light: #7FB069;
  --green-pale: #EAF2E3;
  --amber: #E8A020;
  --amber-light: #FFF3D6;
  --red: #C0392B;
  --cream: #FDFAF4;
  --brown: #5C3D1E;
  --text: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-soft: #888;
  --border: #E0DDD5;
  --gp: #EAF2E3;
  --shadow: 0 4px 24px rgba(45,80,22,.10);
  --shadow-lg: 0 12px 48px rgba(45,80,22,.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Fraunces", serif; line-height: 1.15; }
.serif { font-family: "Fraunces", serif; }

/* === NAV === */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  white-space: nowrap; gap: 12px;
}

/* Pattern A: .nav-logo / .nav-logo-text */
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-bug { font-size: 22px; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle {
  0%,100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-4deg); }
}
.nav-logo-text {
  font-family: "Fraunces", serif; font-size: 17px;
  font-weight: 700; color: #fff; letter-spacing: -.3px;
}
.nav-logo-text span { color: var(--amber); }

/* Pattern B: .nl (howto, small city, ES pages) */
.nl { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.nl span { font-family: "Fraunces", serif; font-size: 17px; font-weight: 700; color: #fff; }
.nl span b { color: var(--amber); }

/* Nav links (full nav pages) */
.nav-links {
  display: flex; gap: 2px; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: 6px;
  transition: .2s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Language toggle */
.lang-toggle, .lt {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 5px 12px;
  border-radius: 20px; font-size: 12px;
  cursor: pointer; font-weight: 600;
  text-decoration: none; flex-shrink: 0;
}

/* === BREADCRUMB === */
.bc {
  background: var(--green-pale);
  border-bottom: 1px solid #d6e8c8;
  padding: 10px 40px;
}
.bc ol {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 6px; font-size: 13px;
  list-style: none; flex-wrap: wrap; align-items: center;
}
.bc a { color: var(--green-mid); text-decoration: none; }

/* === HERO === */
.hero { padding: 52px 40px; color: #fff; }
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
@media(max-width:700px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(26px,4vw,52px); font-weight: 900; margin-bottom: 8px; }
.hero h1 span { color: var(--amber); }
.hero .sci { font-size: 14px; font-style: italic; opacity: .7; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .82; max-width: 580px; line-height: 1.7; }
.hero-sub { font-size: 16px; opacity: .82; margin-bottom: 20px; max-width: 580px; line-height: 1.7; }
.hero-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 600;
}
.hero-cta-box, .hero-cta {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 22px;
  text-align: center; min-width: 190px; flex-shrink: 0;
}
.hero-cta-box .big, .hero-cta .big {
  font-size: 38px; font-weight: 900;
  font-family: "Fraunces", serif; color: var(--amber);
}
.hero-cta-box .lbl { font-size: 12px; opacity: .75; margin-bottom: 14px; }
.hero-cta-box a {
  display: block; background: var(--amber); color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s;
}
.hero-cta-box a:hover { background: #d4911a; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  padding: 4px 12px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 700;
}

/* Danger box (pest profiles) */
.danger-box {
  background: #fde8e8; border: 2px solid var(--red);
  border-radius: 14px; padding: 16px 20px;
  text-align: center; min-width: 150px; flex-shrink: 0;
}
.danger-icon { font-size: 40px; margin-bottom: 6px; }
.danger-level {
  font-size: 12px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px;
}
.danger-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* === MAIN LAYOUT === */
.wrap { max-width: 1060px; margin: 0 auto; padding: 44px 24px 80px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
@media(max-width:780px) { .layout { grid-template-columns: 1fr; } }
.section-title { font-size: 22px; font-weight: 900; color: var(--green); margin-bottom: 16px; }

/* === CARD === */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(45,80,22,.05);
}
.card h2 { font-size: 20px; color: var(--green); margin-bottom: 14px; }
.card p { font-size: 15px; margin-bottom: 12px; line-height: 1.75; }
.card ul, .card ol { margin: 10px 0 12px 20px; }
.card li { font-size: 14px; line-height: 1.7; margin-bottom: 5px; color: var(--text-mid); }

/* === CALLOUTS === */
.warn {
  background: #fde8e8; border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0; padding: 13px 16px; margin: 13px 0; font-size: 14px;
}
.tip {
  background: var(--green-pale); border-left: 4px solid var(--green-mid);
  border-radius: 0 10px 10px 0; padding: 13px 16px; margin: 13px 0;
  font-size: 14px; color: #1a3a08;
}
.caution {
  background: var(--amber-light); border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0; padding: 13px 16px; margin: 13px 0;
  font-size: 14px; color: #6a3800;
}

/* === TABLE === */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
th { background: var(--green); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #fafaf8; }

/* === SIDEBAR === */
.sidebar-card, .sb-card, .sb {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; margin-bottom: 14px;
}
.sidebar-card h3, .sb-card h3 { font-size: 15px; color: var(--green); margin-bottom: 12px; }
.rel, .sb-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 13px; text-decoration: none; color: var(--text); transition: .2s;
}
.rel:last-child, .sb-link:last-child { border-bottom: none; }
.rel:hover, .sb-link:hover { color: var(--green); padding-left: 4px; }

/* === FAQ === */
.faq { border-bottom: 1px solid var(--border); padding: 13px 0; }
.faq:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 5px; }
.faq-a { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* === PEST GRID (city / state pages) === */
.pest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
@media(max-width:600px) { .pest-grid { grid-template-columns: 1fr 1fr; } }
.pest-card {
  background: var(--green-pale); border: 1px solid #c8ddb8;
  border-radius: 12px; padding: 14px; text-align: center; transition: .2s;
}
.pest-card:hover { border-color: var(--green-mid); box-shadow: 0 4px 14px rgba(45,80,22,.1); }
.pc-icon { font-size: 32px; margin-bottom: 6px; }
.pc-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; color: var(--text); }
.pc-cost { font-size: 12px; color: var(--text-mid); margin-bottom: 8px; }
.pc-cost span { font-size: 10px; display: block; color: #aaa; }
.pc-link { font-size: 12px; font-weight: 700; color: var(--green); text-decoration: none; }
.pc-link:hover { text-decoration: underline; }

/* CTA block */
.cta-block {
  background: linear-gradient(135deg,var(--green),#1a3a08);
  border-radius: 16px; padding: 28px; text-align: center;
  color: #fff; margin-top: 8px;
}

/* === FOOTER === */
footer {
  background: var(--green);
  color: rgba(255,255,255,.85);
  padding: 52px 24px 28px;
  margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 36px;
}
@media(max-width:768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media(max-width:480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-name {
  font-family: "Fraunces", serif; font-size: 20px;
  font-weight: 700; color: #fff; margin-bottom: 8px;
}
.footer-brand-name span { color: var(--amber); }
.footer-tagline { font-size: 13px; opacity: .7; line-height: 1.6; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,.5); margin-bottom: 12px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.8);
  text-decoration: none; font-size: 13px;
  padding: 3px 0; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* === RESPONSIVE UTILITIES === */
@media(max-width:480px) {
  .hero { padding: 36px 20px; }
  nav { padding: 0 16px; }
  .bc { padding: 10px 16px; }
}
