/* ============================================================
   Layout for the Rodent Pest Control page only.

   Loaded through $page_css from that single file, so nothing
   here can reach any other page. Every class is prefixed "rd-"
   and lives inside .rd-page.

   Brand colours reused: #D32F2F red, #F7941D orange,
   #553216 brown, #FAF3ED cream, #2B2D42 navy.
   ============================================================ */

.rd-page {
  --rd-red: #D32F2F;
  --rd-orange: #F7941D;
  --rd-brown: #553216;
  --rd-cream: #FAF3ED;
  --rd-navy: #2B2D42;
  --rd-line: #e7ded5;
  --rd-body: #5b5954;
}

.rd-page p { color: var(--rd-body); line-height: 1.85; }

/* ---------- Hero ---------- */
.rd-hero { position: relative; background: var(--rd-navy); overflow: hidden; }
.rd-hero__media { position: absolute; inset: 0; }
.rd-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.rd-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* Flat wash first, then a gradient on top. The banner artwork has its own
     headline printed on it, and a gradient alone left it faintly readable
     behind our H1. */
  background:
    linear-gradient(95deg, rgba(30, 32, 48, .96) 0%, rgba(30, 32, 48, .82) 55%, rgba(30, 32, 48, .35) 100%),
    rgba(26, 28, 42, .62);
}
.rd-hero__inner { position: relative; z-index: 2; padding: 66px 0 70px; }
.rd-hero__crumb {
  font-size: 13px; color: #b9c0d2; margin-bottom: 16px;
}
.rd-hero__crumb a { color: #dfe4f0; text-decoration: none; }
.rd-hero__crumb a:hover { color: var(--rd-orange); }
.rd-hero h1 {
  color: #fff; font-size: 42px; font-weight: 700; line-height: 1.18; margin: 0 0 22px;
}
.rd-hero h1 .color-1 { color: var(--rd-orange); }
.rd-hero p {
  color: #dfe3ee; font-size: 16px; line-height: 1.85; max-width: 660px;
}
.rd-hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px;
}
.rd-hero__badges {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.rd-hero__badges span {
  color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px;
}
.rd-hero__badges span::before {
  content: ""; width: 19px; height: 19px; flex: none; border-radius: 50%;
  background: var(--rd-orange) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 11px 11px;
}

/* Service picture sitting beside the heading */
.rd-hero__card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
  backdrop-filter: blur(2px);
}
.rd-hero__card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}

/* ---------- Buttons ---------- */
.rd-page a.rd-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rd-red); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.rd-page a.rd-btn:hover { background: #b02525; color: #fff; transform: translateY(-2px); }
.rd-page a.rd-btn--ghost {
  background: transparent; border: 2px solid rgba(255, 255, 255, .55); color: #fff; padding: 12px 26px;
}
.rd-page a.rd-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.rd-page a.rd-btn--orange { background: var(--rd-orange); }
.rd-page a.rd-btn--orange:hover { background: #dd820f; }
.rd-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- Section headings ---------- */
.rd-sec { padding: 74px 0; }
.rd-sec--cream { background: var(--rd-cream); }
.rd-sec--tight { padding: 56px 0; }
.rd-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.rd-head--left { margin-left: 0; text-align: left; }
.rd-head h2, .rd-head h3 {
  font-size: 29px; font-weight: 700; color: var(--rd-brown); margin: 0 0 14px; line-height: 1.3;
}
.rd-head h3 { font-size: 27px; }
.rd-head .color-1 { color: var(--rd-red); }
.rd-rule { width: 66px; height: 3px; background: var(--rd-orange); border-radius: 2px; margin: 0 auto 20px; }
.rd-head--left .rd-rule { margin-left: 0; }
.rd-head p { margin: 0; font-size: 15.5px; }

/* ---------- Intro two-column ---------- */
.rd-intro__lead { font-size: 17px; line-height: 1.9; color: #4a4842; }
.rd-alert {
  background: #fff; border-left: 4px solid var(--rd-red);
  border-radius: 0 10px 10px 0; padding: 26px 28px; margin-top: 26px;
  box-shadow: 0 2px 14px rgba(85, 50, 22, .07);
}
.rd-alert h2, .rd-alert h3 {
  font-size: 21px; font-weight: 700; color: var(--rd-navy); margin: 0 0 12px;
}
.rd-alert p:last-child { margin-bottom: 0; }
.rd-alert + .rd-alert { border-left-color: var(--rd-orange); }

/* ---------- Numbered process timeline ---------- */
.rd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.rd-steps::before {
  content: ""; position: absolute; top: 32px; left: 12%; right: 12%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--rd-orange) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.rd-step { position: relative; z-index: 1; padding: 0 16px; text-align: center; }
.rd-step__n {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: #fff; border: 3px solid var(--rd-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--rd-brown);
  box-shadow: 0 4px 14px rgba(85, 50, 22, .12);
}
.rd-step:hover .rd-step__n { background: var(--rd-orange); color: #fff; }
.rd-step h4 { font-size: 18px; font-weight: 700; color: var(--rd-navy); margin: 0 0 10px; }
.rd-step p { font-size: 14.5px; margin: 0; }

/* ---------- Prevention checklist ---------- */
.rd-check { list-style: none; padding: 0; margin: 22px 0 0; }
.rd-check li {
  position: relative; padding: 13px 0 13px 40px; font-size: 15.5px;
  color: #4a4842; border-bottom: 1px dashed var(--rd-line);
}
.rd-check li:last-child { border-bottom: 0; }
.rd-check li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--rd-cream) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D32F2F'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
  border: 1px solid var(--rd-line);
}
.rd-figure { position: relative; padding: 0 16px 16px 0; }
.rd-figure::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%;
  border: 3px solid var(--rd-orange); border-radius: 10px; z-index: 0;
}
.rd-figure img {
  position: relative; z-index: 1; width: 100%; height: auto;
  border-radius: 10px; box-shadow: 0 12px 30px rgba(85, 50, 22, .16);
}

/* ---------- Book / Pay / Relax ---------- */
.rd-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rd-flow__card {
  background: #fff; border: 1px solid var(--rd-line); border-radius: 12px;
  padding: 34px 26px 30px; text-align: center; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rd-flow__card:hover {
  transform: translateY(-5px); border-color: transparent;
  box-shadow: 0 16px 34px rgba(85, 50, 22, .14);
}
.rd-flow__icon {
  width: 118px; height: 118px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--rd-cream); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rd-flow__icon img { width: 104px; height: auto; }
.rd-flow__card h4 {
  font-size: 17px; font-weight: 800; letter-spacing: .1em; color: var(--rd-red); margin: 0 0 12px;
}
.rd-flow__card p { font-size: 14.5px; margin: 0; }
.rd-flow__card::after {
  content: ""; position: absolute; top: 74px; right: -19px;
  width: 26px; height: 26px; z-index: 2;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F7941D'%3E%3Cpath d='M12 4l-1.4 1.4L16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rd-flow__card:last-child::after { display: none; }

/* ---------- Certificates ---------- */
.rd-certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.rd-cert {
  background: #fff; border: 1px solid var(--rd-line); border-radius: 12px;
  padding: 16px; box-shadow: 0 4px 18px rgba(85, 50, 22, .07);
  transition: box-shadow .2s ease;
}
.rd-cert:hover { box-shadow: 0 14px 32px rgba(85, 50, 22, .15); }
.rd-cert img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* ---------- Client logos ---------- */
.rd-clients {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center;
}
.rd-client {
  background: #fff; border: 1px solid var(--rd-line); border-radius: 10px;
  padding: 14px 12px; display: flex; align-items: center; justify-content: center;
  min-height: 96px; transition: box-shadow .2s ease, transform .2s ease;
}
.rd-client:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(85, 50, 22, .12); }
.rd-client img {
  max-width: 100%; height: auto; filter: grayscale(1); opacity: .72; transition: .22s ease;
}
.rd-client:hover img { filter: none; opacity: 1; }

/* ---------- Closing call to action ---------- */
.rd-cta {
  background: var(--rd-brown); color: #fff; padding: 70px 0; position: relative; overflow: hidden;
}
.rd-cta::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(247, 148, 29, .12);
}
.rd-cta__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.rd-cta h3 { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 16px; line-height: 1.35; }
.rd-cta p { color: #f1e8de; font-size: 15.5px; line-height: 1.9; margin: 0; }
.rd-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .rd-steps { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
  .rd-steps::before { display: none; }
  .rd-flow { grid-template-columns: 1fr; }
  .rd-flow__card::after { display: none; }
  .rd-clients { grid-template-columns: repeat(3, 1fr); }
  .rd-hero h1 { font-size: 32px; }
  .rd-hero__inner { padding: 48px 0 52px; }
  .rd-figure { margin-top: 30px; }
  .rd-hero__card { margin-top: 34px; max-width: 520px; }
}
@media (max-width: 575px) {
  .rd-steps { grid-template-columns: 1fr; }
  .rd-certs { grid-template-columns: 1fr; }
  .rd-clients { grid-template-columns: repeat(2, 1fr); }
  .rd-hero h1 { font-size: 26px; }
  .rd-head h2, .rd-head h3, .rd-cta h3 { font-size: 22px; }
  .rd-sec { padding: 48px 0; }
  .rd-cta { padding: 50px 0; }
  .rd-page a.rd-btn { width: 100%; justify-content: center; }
}
