/* ==========================================================================
   DEDETIZADORA CASA LIVRE - PÁGINA DE PRAGAS (ESCORPIÃO & OUTROS)
   Layout Alternado (Desktop: Img Esquerda/Texto Direita x Img Direita/Texto Esquerda)
   Layout Mobile Rigoroso: Subtítulo -> Imagem -> Texto
   ========================================================================== */

/* --- Breadcrumb Bar --- */
.pest-breadcrumb-bar {
  background: var(--green-bg-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.pest-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--neutral-600);
  flex-wrap: wrap;
}

.pest-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pest-breadcrumb a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.pest-breadcrumb .separator {
  color: var(--neutral-400);
  font-size: 0.75rem;
}

.pest-breadcrumb .current {
  color: var(--neutral-800);
  font-weight: 600;
}

/* --- Hero Banner Customizations for Pest Page --- */
.pest-hero-section {
  position: relative;
  background: linear-gradient(135deg, #072a1e 0%, #0d5c3a 50%, #143324 100%);
  padding: 60px 0 70px 0;
  color: var(--white);
  overflow: hidden;
}

.pest-hero-section .hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.pest-hero-section .hero-bg-shapes .shape-1 {
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: #22c55e;
}

.pest-hero-section .hero-bg-shapes .shape-2 {
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: #16a34a;
}

.pest-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pest-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.pest-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.pest-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.pest-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: #d1fae5;
  margin-bottom: 28px;
  max-width: 620px;
}

.pest-hero-subtitle strong {
  color: #86efac;
  font-weight: 600;
}

.pest-hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 580px;
}

.pest-hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pest-hero-feature i {
  color: #4ade80;
  font-size: 1.05rem;
}

.pest-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-hero-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 15px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
}

.pest-hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pest-hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 460px;
}

.pest-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.5s ease;
}

.pest-hero-card:hover .pest-hero-img {
  transform: scale(1.03);
}

.pest-hero-badge-floating {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: rgba(7, 42, 30, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.5);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pest-hero-badge-floating .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pest-hero-badge-floating .badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
}

.pest-hero-badge-floating .badge-text span {
  font-size: 0.775rem;
  color: #a7f3d0;
}

/* --- Section Container Structure --- */
.pest-main-article {
  padding: 60px 0 40px 0;
}

.pest-article-intro-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 36px;
  border-left: 5px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.pest-article-intro-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.pest-article-intro-text p {
  color: var(--neutral-600);
  font-size: 1.025rem;
  line-height: 1.6;
}

/* --- Content Block Cards (Alternating Layout) --- */
.pest-content-section {
  margin-bottom: 40px;
}

.pest-section-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 10px 32px rgba(7, 42, 30, 0.05);
  border: 1px solid rgba(13, 92, 58, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pest-section-card:hover {
  box-shadow: 0 16px 40px rgba(7, 42, 30, 0.09);
  border-color: rgba(13, 92, 58, 0.15);
}

/* Subtítulo Sempre Acima */
.pest-section-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--green-bg-light);
  position: relative;
}

.pest-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.pest-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--green-bg-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.pest-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Corpo com Imagem e Texto */
.pest-section-body {
  display: flex;
  align-items: center;
  gap: 44px;
}

/* Configuração Desktop Alternada */
/* 1. Imagem na Esquerda, Texto na Direita */
.section-img-left .pest-section-body {
  flex-direction: row;
}

/* 2. Imagem na Direita, Texto na Esquerda */
.section-img-right .pest-section-body {
  flex-direction: row-reverse;
}

.pest-media-col {
  flex: 0 0 44%;
  max-width: 44%;
}

.pest-text-col {
  flex: 1 1 56%;
}

/* Moldura e Estilo de Imagem */
.pest-img-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(7, 42, 30, 0.1);
  border: 1px solid rgba(13, 92, 58, 0.12);
  background: #f8fafc;
}

.pest-feature-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pest-img-frame:hover .pest-feature-img {
  transform: scale(1.04);
}

/* Tipografia e Listas nos Textos */
.pest-text-col p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e3a2b;
  margin-bottom: 18px;
}

.pest-text-col p:last-child {
  margin-bottom: 0;
}

.pest-text-col p strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.pest-text-col em {
  font-style: italic;
  color: var(--neutral-600);
}

/* Listas com Marcadores Personalizados */
.pest-bullet-list {
  margin: 16px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pest-bullet-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.025rem;
  line-height: 1.65;
  color: #1e3a2b;
}

.pest-bullet-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-light);
  font-size: 0.9rem;
}

/* Alertas & Destaques Especiais */
.pest-highlight-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  color: #991b1b;
  font-size: 0.975rem;
  line-height: 1.6;
}

.pest-highlight-box.warning-yellow {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.pest-highlight-box.info-green {
  background: var(--green-card-bg);
  border-left-color: var(--primary-light);
  color: var(--primary-dark);
}

/* --- Banner Intermediário de CTA Rápido --- */
.pest-cta-banner {
  background: linear-gradient(135deg, #072a1e 0%, #0d5c3a 100%);
  border-radius: 24px;
  padding: 44px 48px;
  margin: 50px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pest-cta-banner-content {
  flex: 1;
}

.pest-cta-banner-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.pest-cta-banner-desc {
  font-size: 1.05rem;
  color: #d1fae5;
  line-height: 1.6;
}

.pest-cta-banner-btn {
  flex-shrink: 0;
}

/* --- Seção de Palavras Mais Buscadas (SEO Cloud) --- */
.pest-seo-keywords-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

.pest-seo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pest-keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.pest-keyword-tag {
  background: var(--green-bg-light);
  color: var(--primary);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-200);
  transition: var(--transition);
  font-weight: 500;
}

.pest-keyword-tag:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   REGRAS RESPONSIVAS & MOBILE
   Exigência Estrita: Na versão mobile SEMPRE subtítulo -> imagem -> texto
   ========================================================================== */
@media (max-width: 992px) {
  .pest-hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pest-hero-title {
    font-size: 2.3rem;
  }

  .pest-hero-image-wrapper {
    order: -1;
  }

  .pest-hero-card {
    max-width: 400px;
  }

  .pest-hero-img {
    height: 300px;
  }

  .pest-section-body {
    gap: 32px;
  }

  .pest-media-col {
    flex: 0 0 46%;
    max-width: 46%;
  }

  .pest-text-col {
    flex: 1 1 54%;
  }

  .pest-feature-img {
    height: 280px;
  }
}

/* Versão Mobile (< 768px): Padronização Estrita */
@media (max-width: 768px) {
  .pest-hero-section {
    padding: 40px 0 50px 0;
  }

  .pest-hero-title {
    font-size: 1.85rem;
  }

  .pest-hero-subtitle {
    font-size: 1rem;
  }

  .pest-hero-features {
    grid-template-columns: 1fr;
  }

  .pest-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-whatsapp, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .pest-section-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .pest-section-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .pest-section-title {
    font-size: 1.35rem;
  }

  /* REGRA CRUCIAL: Mobile sempre Subtítulo (Header) -> Imagem (Media Col) -> Texto (Text Col) */
  .pest-section-body,
  .section-img-left .pest-section-body,
  .section-img-right .pest-section-body {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .pest-media-col,
  .section-img-left .pest-media-col,
  .section-img-right .pest-media-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 1 !important;
  }

  .pest-text-col,
  .section-img-left .pest-text-col,
  .section-img-right .pest-text-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2 !important;
  }

  .pest-feature-img {
    height: 220px;
  }

  .pest-text-col p {
    font-size: 0.975rem;
    line-height: 1.7;
  }

  .pest-bullet-list li {
    font-size: 0.95rem;
  }

  .pest-cta-banner {
    flex-direction: column;
    padding: 30px 24px;
    text-align: center;
  }

  .pest-cta-banner-title {
    font-size: 1.45rem;
  }

  .pest-cta-banner-btn {
    width: 100%;
  }

  .pest-cta-banner-btn .btn-hero-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
