/* Pest Ease footer: deep forest callout, charcoal details and restrained red actions. */
.site-footer.reference-footer {
  --footer-surface: var(--ink);
  --footer-copy: #c9d1d5;
  --footer-line: #ffffff18;
  position: relative;
  padding: 24px 0 26px;
  border: 0;
  background: var(--footer-surface);
  color: #fff;
  scroll-margin-top: 18px;
}
.reference-footer .footer-callout-wrap { width: min(100% - 48px, 1280px); margin: 0 auto 60px; }
.reference-footer .footer-callout {
  position: relative;
  isolation: isolate;
  padding: 47px 32px 46px;
  border: 1px solid #ffffff15;
  border-radius: 20px;
  background: var(--forest, #123C2D);
  text-align: center;
  overflow: hidden;
}

.reference-footer .footer-callout h2 { max-width: 760px; margin: 0 auto; color: #fff; font-size: clamp(29px, 3vw, 39px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.reference-footer .footer-callout h2 span { color: #fff; }
.reference-footer .footer-callout > p { max-width: 520px; margin: 17px auto 0; color: #fff; font-size: 14px; line-height: 1.75; }
.reference-footer .footer-callout-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; margin-top: 25px; }
.reference-footer .footer-callout-actions .button { min-height: 50px; min-width: 222px; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.reference-footer .footer-callout-actions .footer-call-button { border-color: #fff; background: #fff; color: var(--ink); box-shadow: none; }
.reference-footer .footer-call-button > .ui-icon { color: var(--green); }
.reference-footer .footer-callout-actions .footer-call-button:hover { background: #edf6f1; border-color: #edf6f1; }
.reference-footer .footer-callout-actions .whatsapp-button { border-color: var(--red); background: var(--red); color: #fff; }
.reference-footer .footer-callout-actions .whatsapp-button:hover { border-color: var(--red-dark); background: var(--red-dark); }
.reference-footer .footer-callout :is(a,button):focus-visible { outline-color: #fff; }

.reference-footer .reference-footer-grid { display: grid; grid-template-columns: 1.05fr .72fr .85fr 1.45fr; align-items: start; gap: 30px; padding-bottom: 22px; }
.reference-footer .reference-footer-grid > div { min-width: 0; grid-column: auto; }
.reference-footer .footer-brand .brand { width: 96px; padding: 10px; border-radius: 10px; background: #fff; }
.reference-footer .footer-brand .brand img { display: block; width: 76px; height: auto; object-fit: contain; }
.reference-footer .footer-brand > p { max-width: 255px; margin: 20px 0 16px; color: var(--footer-copy); font-size: 13px; line-height: 1.85; }
.reference-footer .canadian-label { display: inline-flex; align-items: center; gap: 8px; color: #e8edef; font-size: 11px; line-height: 1.6; }

.reference-footer .footer-contact-links { display: grid; justify-items: start; gap: 6px; margin-top: 23px; }
.reference-footer .footer-contact-links a { color: var(--footer-copy); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.reference-footer .footer-contact-links a:first-child { color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.reference-footer .reference-footer-grid h2 { margin: 5px 0 17px; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.reference-footer .footer-link-column h2 { position: relative; }

.reference-footer .reference-footer-grid .footer-subheading { margin-top: 29px; }
.reference-footer .reference-footer-grid > .footer-link-column > a { display: block; width: fit-content; max-width: 100%; margin-bottom: 9px; padding-block: 3px; color: var(--footer-copy); font-size: 13px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.reference-footer .reference-footer-grid a:hover { color: #fff; text-decoration-color: var(--red); }
.reference-footer .footer-connect { margin-top: 23px; }
.reference-footer .footer-connect > span { display: block; font-size: 11px; color: var(--footer-copy); }
.reference-footer .footer-icon-links { display: flex; gap: 9px; margin-top: 10px; }
.reference-footer .footer-icon-links > a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff20; border-radius: 50%; background: #2c363c; color: #fff; transition: background .2s ease,border-color .2s ease; }
.reference-footer .footer-icon-links > a:hover { border-color: var(--red); background: var(--red); text-decoration: none; }
.reference-footer .footer-icon-links .ui-icon { width: 18px; height: 18px; }
.reference-footer .footer-icon-links .whatsapp-icon { width: 24px; height: 24px; }

.reference-footer .footer-enquiry { padding: 23px; border: 1px solid var(--green); border-radius: 14px; background: #263137; box-shadow: inset 0 2px 0 var(--green); }
.reference-footer .reference-footer-grid .footer-enquiry h2 { margin: 0 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.reference-footer .footer-enquiry > .footer-form-intro { margin: 0 0 21px; color: var(--footer-copy); font-size: 12px; line-height: 1.65; }
.reference-footer #footer-enquiry-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.reference-footer #footer-enquiry-form label { color: #e8edef; font-size: 11px; font-weight: 500; line-height: 1.5; }
.reference-footer #footer-enquiry-form label:not(:first-child) { margin-top: 5px; }
.reference-footer #footer-enquiry-form :is(input,textarea) { display: block; width: 100%; min-width: 0; margin: 0; padding: 11px 12px; border: 1px solid #52616a; border-radius: 6px; background: #303a40; color: #fff; font-size: 14px; line-height: 1.5; transition: border-color .2s,background .2s; color-scheme: dark; scroll-margin-block: 160px 100px; }
.reference-footer #footer-enquiry-form input { min-height: 44px; }
.reference-footer #footer-enquiry-form textarea { min-height: 98px; resize: vertical; }
.reference-footer #footer-enquiry-form :is(input,textarea)::placeholder { color: #b7c2c8; opacity: 1; }
.reference-footer #footer-enquiry-form :is(input,textarea):focus { background: #344047; border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.reference-footer #footer-enquiry-form .footer-submit { width: 100%; min-height: 46px; margin-top: 9px; padding: 11px 18px; border: 1px solid var(--red); border-radius: 6px; background: var(--red); color: #fff; font-size: 13px; font-weight: 500; box-shadow: none; }
.reference-footer #footer-enquiry-form .footer-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.reference-footer .footer-form-note { margin: 5px 0 0; color: #b7c2c8; font-size: 10px; line-height: 1.7; text-align: center; }
.reference-footer .footer-enquiry noscript a { display: inline-block; color: #fff; font-size: 14px; text-decoration: underline; }
.reference-footer .footer-wordmark { width: 100%; height: clamp(80px,14vw,200px); margin-top: 24px; overflow: hidden; color: #344047; font-size: clamp(100px,19.7vw,320px); font-weight: 600; line-height: 1; letter-spacing: -.075em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none; }
.reference-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 0; padding-top: 19px; border-color: var(--footer-line); color: #b7c2c8; font-size: 11px; line-height: 1.7; }
.reference-footer .footer-bottom a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: #e8edef; }
.reference-footer .footer-bottom > a:last-child { margin-left: auto; }
.reference-footer .footer-bottom .ui-icon { width: 15px; height: 15px; rotate: 180deg; }
.reference-footer :is(a,button):focus-visible { outline-color: #fff; }
.reference-footer .footer-callout :is(a,button):focus-visible { outline-color: #fff; }
/* Keep the chat shortcut visible, with space beside the enquiry card. */
body.footer-in-view .whatsapp-prompt { visibility: hidden; }
@media (min-width: 701px) {
  .reference-footer .reference-footer-grid { padding-right: 112px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .reference-footer .reference-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .reference-footer .reference-footer-grid > .footer-enquiry { grid-column: 1/-1; width: min(100%,650px); justify-self: center; }
}
@media (max-width: 700px) {
  .site-footer.reference-footer { padding: 16px 0 112px; scroll-margin-top: 8px; }
  .reference-footer .footer-callout-wrap { width: calc(100% - 32px); margin-bottom: 38px; }
  .reference-footer .footer-callout { padding: 33px 22px 32px; border-radius: 14px; }

  .reference-footer .footer-callout h2 { font-size: 28px; line-height: 1.25; }
  .reference-footer .footer-callout > p { font-size: 13px; margin-top: 15px; }
  .reference-footer .footer-callout-actions { margin-top: 23px; display: grid; grid-template-columns: 1fr; max-width: 310px; margin-inline: auto; gap: 10px; }
  .reference-footer .footer-callout-actions .button { width: 100%; min-width: 0; min-height: 49px; padding-inline: 14px; font-size: 13px; }
  .reference-footer .reference-footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px 22px; padding-bottom: 6px; }
  .reference-footer .reference-footer-grid > .footer-brand { grid-column: 1/-1; }
  .reference-footer .footer-brand { display: grid; grid-template-columns: 90px 1fr; gap: 0 18px; align-items: start; }
  .reference-footer .footer-brand .brand { grid-row: 1/3; width: 90px; padding: 10px; }
  .reference-footer .footer-brand .brand img { width: 70px; }
  .reference-footer .footer-brand > p { margin: 0 0 10px; max-width: none; font-size: 12px; }
  .reference-footer .canadian-label { font-size: 10px; }
  .reference-footer .footer-contact-links { grid-column: 1/-1; margin-top: 21px; }
  .reference-footer .footer-connect { grid-column: 1/-1; margin-top: 17px; }
  .reference-footer .footer-icon-links > a { width: 42px; height: 42px; }
  .reference-footer .reference-footer-grid > .footer-link-column > a { font-size: 13px; margin-bottom: 7px; padding-block: 5px; }
  .reference-footer .reference-footer-grid > .footer-enquiry { grid-column: 1/-1; padding: 21px; }
  .reference-footer #footer-enquiry-form :is(input,textarea) { font-size: 16px; scroll-margin-block: 115px 100px; }
  .reference-footer #footer-enquiry-form label { font-size: 12px; }
  .reference-footer #footer-enquiry-form input { min-height: 48px; }
  .reference-footer #footer-enquiry-form textarea { min-height: 105px; }
  .reference-footer #footer-enquiry-form .footer-submit { min-height: 48px; font-size: 14px; }
  .reference-footer .footer-form-note { font-size: 11px; }
  .reference-footer .footer-wordmark { height: 15vw; min-height: 55px; margin-top: 28px; font-size: 20.5vw; }
  .reference-footer .footer-bottom { font-size: 10px; gap: 10px; padding-top: 14px; }
}
@media (max-width: 370px) {
  .reference-footer .footer-callout { padding-inline: 18px; }
  .reference-footer .footer-callout h2 { font-size: 26px; }
  .reference-footer .reference-footer-grid > .footer-enquiry { padding: 17px; }
  .reference-footer .footer-brand { grid-template-columns: 80px 1fr; gap: 0 14px; }
  .reference-footer .footer-brand .brand { width: 80px; padding: 8px; }
  .reference-footer .footer-brand .brand img { width: 64px; }
  .reference-footer .footer-bottom > a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .reference-footer :is(a,button,input,textarea) { transition: none; } }
