/* ============================================
   SPIDER CONTROL PAGE — Page-Specific Styles
   Page: spider-control.html
============================================ */

/* --- HERO BANNER --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a2e1b;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,46,27,0.90) 40%, rgba(26,46,27,0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 80px 48px 80px 64px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #a8d5ab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero__title span { color: #a8d5ab; }
.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  font-weight: 600;
}
.hero__trust-item svg { color: #a8d5ab; flex-shrink: 0; }

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--green);
  padding: 18px 0;
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 28px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.trust-bar__item:last-child { border-right: none; }
.trust-bar__item svg { flex-shrink: 0; opacity: 0.9; }

/* --- INTRO SECTION --- */
.intro {
  padding: 72px 0 60px;
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.intro__text h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.intro__text h1 em {
  font-style: normal;
  color: var(--green);
}
.intro__text p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.intro__text p:last-of-type { margin-bottom: 28px; }
.intro__image-wrap {
  position: relative;
}
.intro__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.intro__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 130px;
}
.intro__badge-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.intro__badge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 4px;
}

/* --- SIGNS SECTION --- */
.signs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.sign-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sign-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.sign-card__icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.sign-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.signs__cta {
  margin-top: 40px;
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.signs__cta-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
}
.signs__cta-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

/* --- WHY IT MATTERS --- */
.matters__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.matters__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.matters__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.matters__content h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
}
.matters__content p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.threat-badge--high { background: #fde8e8; color: #b91c1c; }
.threat-badge--moderate { background: #fef3c7; color: #92400e; }
.threat-badge--low { background: #dcfce7; color: #166534; }

/* --- PROCESS STEPS --- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.process__step {
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}
.process__num {
  width: 56px;
  height: 56px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 16px;
}
.process__step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.process__step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- SPECIES CARDS --- */
.species__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.species-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.species-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.species-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.species-card__body {
  padding: 22px 22px 26px;
}
.species-card__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.species-card__sci {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 12px;
}
.species-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* --- PREVENTION TIPS --- */
.prevention__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1.5px solid var(--border);
}
.tip-card__num {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.tip-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- WHY CHOOSE US --- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}
.why__item-icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.why__item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.why__item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE — SPIDER CONTROL PAGE
============================================ */
@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__image-wrap { max-width: 560px; }
  .matters__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__content { padding: 48px 20px; }
  .trust-bar__item { padding: 8px 16px; font-size: 12px; }
  .process__step:not(:last-child)::after { display: none; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .signs__cta { flex-direction: column; text-align: center; }
  .hero__trust { gap: 14px; }
  .intro__badge { bottom: -16px; left: 16px; }
}

@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .trust-bar__inner { gap: 0; }
  .trust-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); width: 100%; justify-content: center; }
}

/* ============================================================
   GENERATED PAGE ADDITIONS (build-from-content.py classes)
   ============================================================ */

/* Species card image — img inside the div */
.species-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--off-white);
}
.species-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prevention items (generated pages use prevention__item) */
.prevention__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px solid var(--border);
}
.prevention__icon {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prevention__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ============================================================
   MOBILE FIXES (390px)
   ============================================================ */
@media (max-width: 600px) {
  /* Species grid — single column, smaller images */
  .species__grid {
    grid-template-columns: 1fr;
  }
  .species-card__img {
    height: 200px;
  }

  /* Prevention — single column */
  .prevention__grid {
    grid-template-columns: 1fr;
  }

  /* Hero content padding */
  .hero__content {
    padding: 48px 20px 48px 20px;
  }
  .hero__title { font-size: clamp(26px, 8vw, 38px); }
  .hero__subtitle { font-size: 15px; }

  /* Intro grid — stack */
  .intro__grid {
    grid-template-columns: 1fr;
  }
  .intro__image-wrap { display: none; }

  /* Process — single column */
  .process__steps { grid-template-columns: 1fr; }

  /* Signs grid — single column */
  .signs__grid { grid-template-columns: 1fr; }

  /* Why grid — single column */
  .why__grid { grid-template-columns: 1fr; }
  .why__image { display: none; }

  /* Trust bar — 2 per row */
  .trust-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Section padding */
  .section { padding: 48px 0; }
  .section__header { margin-bottom: 32px; }

  /* CTA banner */
  .cta-banner__title { font-size: 24px; }
  .cta-banner__actions { flex-direction: column; align-items: center; }

  /* Related grid — 2 col */
  .related__grid { grid-template-columns: 1fr 1fr; }

  /* FAQ */
  .faq__question { font-size: 14px; padding: 16px; }
}
