/* =========================================================
   Essential Pest Control - Pest & Suburb Page Additions
   Extends style.css. Uses the same design tokens
   (--forest, --amber, --cream, --ink, etc.) - include
   this file AFTER style.css on every pest/suburb page.
========================================================= */

/* =============== BREADCRUMB =============== */
.breadcrumb {
  font-size: .82rem;
  color: #fff;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--amber);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* =============== PAGE HERO =============== */
.page-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  grid-template-rows: 500px;
  width: min(calc(100% - 64px), 1500px);
  height: 500px;
  margin: 20px auto 0;
  padding: 0;
  overflow: hidden;
  background: var(--forest);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 61, 73, .12);
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px clamp(38px, 4vw, 60px);
}

.page-hero .eyebrow {
  color: var(--amber);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 2.65vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.page-hero-sub {
  max-width: 590px;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
}

.page-hero .hero-actions {
  position: absolute;
  left: clamp(38px, 4vw, 60px);
  bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}

.hero-image-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  border-left: 4px solid var(--amber);
}

.hero-image-outer {
  position: absolute;
  inset: 0;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =============== GENERIC CONTENT BAND =============== */
.content-band {
  padding: 80px 24px;
  background: var(--cream);
}

.content-band-alt {
  background-color: var(--forest);
  background-image: url("images/16_9Shield.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.content-band-alt .eyebrow {
  color: var(--amber);
}

.content-band-alt h2 {
  color: #fff;
}

.content-narrow {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.content-narrow h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
}

.content-narrow p {
  font-size: 1.02rem;
}

/* =============== SIGNS GRID =============== */
.signs-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sign-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.sign-card h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.sign-card p {
  font-size: .9rem;
  margin-bottom: 0;
}

/* =============== PROCESS STEPS =============== */
.process-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 24px;
}

.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

.process-step h3 {
  color: var(--ink);
  font-size: 1.02rem;
}

.process-step p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 0;
}

/* =============== FAQ =============== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.faq-item h3 {
  font-size: 1.02rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
  font-size: .95rem;
}

/* =============== RELATED PESTS / AREAS LINK CARDS =============== */
.related-pests {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pest-link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: #fff;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pest-link-card:hover {
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

.pest-link-card-alt {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.pest-link-card-alt:hover {
  background: var(--amber);
  color: #fff;
}

/* =============== FINAL CTA BAND =============== */
.cta-band {
  background-color: var(--forest);
  background-image: url("images/16_9Shield.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 8px;
  color: rgba(220, 239, 242, 0.9);
}

.cta-band-actions {
  justify-content: center;
  margin-top: 24px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {

  .signs-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    width: min(calc(100% - 36px), var(--container));
    height: 480px;
    grid-template-rows: 480px;
    margin-top: 18px;
  }

  .hero-text {
    width: 55%;
    padding: 26px 34px;
  }

  .hero-image-container {
    width: 45%;
  }

  .hero-text .breadcrumb {
    margin-bottom: 14px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  }

  .page-hero-sub {
    font-size: .98rem;
  }

  .page-hero .hero-actions {
    left: 34px;
    bottom: 26px;
    gap: 10px;
    margin-top: 0;
  }

  .page-hero .hero-actions .btn {
    padding: 12px 18px;
    font-size: .86rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 16px;
  }

  .hero-text {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    padding: 24px 20px 26px;
  }

  .hero-text .breadcrumb {
    margin-bottom: 10px;
    font-size: .76rem;
  }

  .page-hero .eyebrow {
    max-width: 30ch;
    margin-bottom: 9px;
    font-size: .7rem;
    line-height: 1.45;
  }

  .page-hero h1 {
    max-width: 18ch;
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 7.2vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .page-hero-sub {
    max-width: 34ch;
    margin-bottom: 0;
    font-size: .93rem;
    line-height: 1.5;
  }

  .page-hero .hero-actions {
    position: static;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 18px;
  }

  .page-hero .hero-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin-top: 0;
    padding: 10px 8px;
    font-size: clamp(.72rem, 3.4vw, .86rem);
    align-self: stretch;
  }

  .page-hero .hero-actions .btn-whatsapp {
    gap: 5px;
  }

  .page-hero .hero-actions .btn-whatsapp svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
  }

  .hero-image-container {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-top: 3px solid var(--amber);
    border-left: 0;
  }
}

@media (max-width: 600px) {

  .signs-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .content-band,
  .cta-band {
    padding: 40px 16px;
  }

  .hero-text {
    padding: 24px 20px 26px;
  }
}

@media (max-width: 380px) {
  .page-hero {
    width: calc(100% - 12px);
    border-radius: 14px;
  }

  .hero-text {
    padding-inline: 17px;
  }

  .page-hero h1 {
    font-size: 1.62rem;
  }
}
