/* Approved layout only. Original wording and form data contract preserved. */
body #main #contact-form { scroll-margin-top: 145px; }
body #main .es-pest-page [id$="-assessment"] { scroll-margin-top: 145px; }
body #main .esux-food-link { margin-top: 16px !important; font-size: 16px !important; line-height: 1.5 !important; }
body #main .contact-grid { align-items: start; }
body #main .form-panel:focus { outline: 2px solid #444d9b; outline-offset: 4px; }
@media(max-width:900px) {
  body #main .entry-content :is(.hero,.es-pest-hero) {
    display:flex !important; flex-direction:column !important; align-items:stretch !important;
    min-height:0 !important; height:auto !important; padding:0 !important; background:#f4f7fb !important;
    overflow:hidden !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero)::before,
  body #main .entry-content :is(.hero,.es-pest-hero)::after { display:none !important; }
  body #main .entry-content :is(.hero,.es-pest-hero)>img {
    position:relative !important; inset:auto !important; order:2; display:block !important;
    width:100% !important; height:clamp(220px,62vw,360px) !important;
    object-fit:cover !important; object-position:center 40% !important;
    opacity:1 !important; filter:none !important; margin:0 !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero)>.inner {
    order:1; width:100% !important; max-width:720px !important;
    padding:28px 24px !important; margin:0 auto !important;
  }
  body #main .entry-content .hero .hero-content {
    width:100% !important; max-width:none !important; margin:0 !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero,.es-services-hero) h1 {
    font-size:clamp(28px,7.8vw,38px) !important; line-height:1.12 !important;
    max-width:100% !important; margin:0 0 18px !important;
    text-shadow:none !important; word-break:normal !important; overflow-wrap:normal !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero,.es-services-hero) p {
    max-width:100% !important; font-size:17px !important; line-height:1.5 !important;
    text-shadow:none !important; margin-bottom:18px !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero,.es-services-hero) :is(.eyebrow,.es-eyebrow) {
    font-size:12px !important; line-height:1.4 !important; margin:0 0 12px !important;
  }
  body #main .entry-content :is(.hero,.es-pest-hero) :is(.actions,.es-actions) { gap:10px !important; margin-top:20px !important; }
  body #main .entry-content :is(.hero,.es-pest-hero) :is(.actions,.es-actions)>a {
    min-height:48px; font-size:14px !important; line-height:1.35 !important;
    padding:14px 16px !important; text-align:center; border-radius:6px;
  }
  body #main .contact-service-page>.hero>img { display:none !important; }
  body #main .contact-grid { display:flex !important; flex-direction:column !important; gap:24px !important; }
  body #main .contact-grid>:is(.detail-panel,.form-panel) { width:100% !important; padding:24px !important; }
  body #main .contact-service-page #contact-details { padding:24px 0 !important; }
  body #main .contact-service-page #contact-details>.inner { width:calc(100% - 32px) !important; }
  body #main .es-services-hero { display:block !important; padding:0 !important; min-height:0 !important; background:#f4f7fb !important; }
  body #main .es-services-hero .es-services-wrap { margin:0 auto !important; padding:28px 24px !important; width:100% !important; max-width:720px !important; }
  body #main .es-services-hero::after {
    content:""; display:block; width:100%; height:clamp(220px,62vw,360px);
    background:url('https://enviro-safe.co.za/wp-content/uploads/2026/05/29-website-hero-banner-primary-1400.webp') 85% 38% / cover no-repeat;
  }
}
