/* ============================================================
   Blog / Article Styles — pestcontrolscarsdale.com
   Loaded on all /blog/, /pest-control/ and service-area article pages
   ============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────── */
.article-breadcrumb {
  font-size: .8rem;
  color: #666;
  margin-bottom: 1.2rem;
}
.article-breadcrumb a { color: #2E7D32; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 .4rem; color: #aaa; }

/* ── Article wrapper ────────────────────────────────────── */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Header block ───────────────────────────────────────── */
.article-header { margin-bottom: 32px; }

.article-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2E7D32;
  background: #e8f5e9;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.blog-article h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.article-meta {
  font-size: .82rem;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.article-meta strong { color: #444; }

.article-disclaimer {
  background: #fffbea;
  border-left: 4px solid #f5a623;
  padding: 10px 14px;
  font-size: .85rem;
  color: #555;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
}

/* ── Hero images ────────────────────────────────────────── */
.article-hero {
  margin: 24px 0 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f5e9;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero figcaption {
  font-size: .75rem;
  color: #888;
  padding: 6px 12px;
  background: #f8f8f8;
}

.article-img-mid {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f5e9;
}
.article-img-mid img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Prose ──────────────────────────────────────────────── */
.article-body h2 {
  font-size: 1.35rem;
  color: #1B5E20;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8f5e9;
}

.article-body h3 {
  font-size: 1.1rem;
  color: #2E7D32;
  margin: 24px 0 10px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 18px;
  max-width: 70ch;
}

.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 6px;
}

.article-body strong { color: #1a1a1a; }

/* ── Callout boxes ──────────────────────────────────────── */
.callout {
  background: #f0f7f0;
  border-left: 4px solid #2E7D32;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
  font-size: .93rem;
  color: #333;
}
.callout strong { color: #1B5E20; }

.callout-warn {
  background: #fff8e1;
  border-left-color: #f5a623;
}

/* ── Glossary term links ────────────────────────────────── */
.glossary-term {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #2E7D32;
  color: inherit;
  cursor: help;
}
.glossary-term:hover {
  background: #f0f7f0;
  border-radius: 2px;
}

/* ── CTA blocks ─────────────────────────────────────────── */
.cta-mid {
  background: #1B5E20;
  border-left: 4px solid #76c442;
  border-radius: 6px;
  padding: 24px 28px;
  margin: 36px 0;
  color: #fff;
}
.cta-mid .cta-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a5d6a7;
  margin: 0 0 8px;
}
.cta-mid .cta-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.cta-mid .cta-sub {
  font-size: .88rem;
  color: #c8e6c9;
  margin: 0 0 16px;
}
.cta-mid .cta-btn {
  display: inline-block;
  background: #76c442;
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: .95rem;
  transition: background .2s;
}
.cta-mid .cta-btn:hover { background: #5da832; }

.cta-bottom {
  background: #f5f9f5;
  border: 2px solid #2E7D32;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 48px 0 32px;
  text-align: center;
}
.cta-bottom .cta-headline {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1B5E20;
  margin: 0 0 10px;
}
.cta-bottom .cta-sub {
  font-size: .85rem;
  color: #666;
  margin: 0 0 18px;
}
.cta-bottom .cta-sub a { color: #2E7D32; }
.cta-bottom .cta-btn {
  display: inline-block;
  background: #2E7D32;
  color: #fff;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s;
}
.cta-bottom .cta-btn:hover { background: #1B5E20; }

/* ── Sources & disclaimers ──────────────────────────────── */
.article-sources {
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding-top: 20px;
}
.article-sources h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #777;
  margin-bottom: 12px;
}
.article-sources ol {
  font-size: .82rem;
  color: #666;
  padding-left: 1.2rem;
}
.article-sources li { margin-bottom: 6px; }
.article-sources a { color: #2E7D32; word-break: break-word; }

.article-legal {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 28px;
  font-size: .78rem;
  color: #666;
  line-height: 1.6;
}
.article-legal p { margin: 0 0 6px; }
.article-legal p:last-child { margin: 0; }
.article-legal strong { color: #444; }

/* ── Interactive components ─────────────────────────────── */
.interactive-widget {
  background: #f8fdf8;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}
.interactive-widget h3 {
  color: #1B5E20;
  margin: 0 0 16px;
  font-size: 1.1rem;
}
.widget-disclaimer {
  font-size: .75rem;
  color: #888;
  margin-top: 12px;
  font-style: italic;
}

/* Checklist widget */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8f5e9;
  font-size: .93rem;
  color: #333;
  cursor: pointer;
}
.check-list li:last-child { border-bottom: none; }
.check-list li input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2E7D32;
  cursor: pointer;
}
.check-list li label { cursor: pointer; line-height: 1.5; }
.check-list li.checked label { text-decoration: line-through; color: #999; }

/* Timeline widget */
.timeline-widget {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 16px 0;
}
.timeline-month {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}
.timeline-month .month-label {
  font-size: .7rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-month .month-bar {
  height: 32px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: #fff;
  font-weight: 700;
}
.level-none { background: #e0e0e0; }
.level-low { background: #a5d6a7; color: #1B5E20 !important; }
.level-medium { background: #ff9800; }
.level-high { background: #d32f2f; }
.level-peak { background: #b71c1c; }
.timeline-month .month-note {
  font-size: .62rem;
  color: #777;
  line-height: 1.3;
}

/* Decision tree widget */
.dtree-node { display: none; }
.dtree-node.active { display: block; }
.dtree-question {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  font-size: .97rem;
}
.dtree-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dtree-btn {
  padding: 9px 18px;
  border: 2px solid #2E7D32;
  background: #fff;
  color: #2E7D32;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.dtree-btn:hover { background: #2E7D32; color: #fff; }
.dtree-result {
  padding: 16px;
  border-radius: 6px;
  font-size: .92rem;
  line-height: 1.6;
}
.dtree-result.good { background: #e8f5e9; border-left: 4px solid #2E7D32; }
.dtree-result.caution { background: #fff8e1; border-left: 4px solid #f5a623; }
.dtree-result.urgent { background: #fce4ec; border-left: 4px solid #d32f2f; }
.dtree-reset {
  margin-top: 12px;
  background: none;
  border: 1px solid #ccc;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .82rem;
  color: #666;
}
.dtree-reset:hover { border-color: #2E7D32; color: #2E7D32; }

/* Cost calculator */
.calc-row { margin: 16px 0; }
.calc-row label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.calc-row select, .calc-row input[type="range"] {
  width: 100%;
  font-size: .9rem;
}
.calc-row select {
  padding: 8px 10px;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  background: #fff;
}
.calc-display {
  font-size: .85rem;
  color: #2E7D32;
  font-weight: 700;
  margin-top: 4px;
}
.calc-result {
  background: #1B5E20;
  color: #fff;
  border-radius: 6px;
  padding: 18px;
  margin-top: 18px;
}
.calc-result .result-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a5d6a7;
  margin: 4px 0;
}
.calc-result p { color: #c8e6c9; font-size: .83rem; margin: 4px 0 0; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 16px 0;
}
.comparison-table th {
  background: #1B5E20;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
}
.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8f5e9;
  vertical-align: top;
}
.comparison-table tr:nth-child(even) td { background: #f5faf5; }
.comparison-table tr:hover td { background: #e8f5e9; }
.tag-good { color: #2E7D32; font-weight: 700; }
.tag-bad { color: #c62828; font-weight: 700; }
.tag-warn { color: #f57c00; font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { margin: 0; }
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  color: #1B5E20;
  margin: 0 0 8px;
  font-size: .97rem;
}
.faq-a {
  font-size: .92rem;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-article { padding: 24px 16px 48px; }
  .blog-article h1 { font-size: 1.4rem; }
  .article-body h2 { font-size: 1.18rem; }
  .cta-mid, .cta-bottom { padding: 20px 18px; }
  .timeline-month { width: 56px; }
}
