/* ANCOR_MOBILE_STABILITY_V1
   Mobile accessibility and stability layer. Loaded last on every public page. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 760px) {
  /* iOS must see 16px controls to avoid automatic page zoom on focus. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .ancor-lead-form input,
  .ancor-lead-form select,
  .ancor-lead-form textarea {
    min-height: 48px !important;
    line-height: 1.35 !important;
  }

  .contact-form textarea,
  .ancor-lead-form textarea {
    min-height: 120px !important;
  }

  .contact-form button,
  .ancor-lead-form button {
    min-height: 48px !important;
  }

  /* Keep hero controls comfortably tappable without touching content flow. */
  #heroSlider.ancor-home-hero-v3 .hero-btn {
    min-height: 44px !important;
    height: 44px !important;
  }

  #heroSlider.ancor-home-hero-v3 .nav-arrow {
    width: 44px !important;
    height: 44px !important;
    bottom: 92px !important;
  }

  #heroSlider.ancor-home-hero-v3 .nav-arrow.prev {
    left: 14px !important;
  }

  #heroSlider.ancor-home-hero-v3 .nav-arrow.next {
    left: 68px !important;
  }

  .ahpc-arrow {
    width: 44px !important;
    height: 44px !important;
  }

  .whatsapp-float {
    right: max(14px, calc(14px + env(safe-area-inset-right, 0px))) !important;
    width: 52px !important;
    height: 52px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heroSlider.ancor-home-hero-v3 .slide,
  .ahpc-track,
  .ahpc-card,
  .ahpc-card-media img {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ANCOR_MOBILE_SAFETY_V1_START */
html, body { max-width:100%; }
a.whatsapp-float[href*="96800000000"] { display:none !important; }
#sideMenu, body > nav.side-menu { display:none !important; }
@media (max-width:760px) {
  main, section, header, footer, nav, form { min-width:0; }
  img, video, iframe, svg { max-width:100%; }
}
/* ANCOR_MOBILE_SAFETY_V1_END */

/* ANCOR_MOBILE_CLEANUP_V2_START */
@media (max-width: 860px) {
  body, main, section, article, aside, form, fieldset,
  [class*="grid"], [class*="layout"], [class*="content"] { min-width: 0; }
  h1, h2, h3, p, a, span, strong, small, label { overflow-wrap: break-word; }
  input, select, textarea, button { max-width: 100%; }
  .whatsapp-float { bottom: max(16px, env(safe-area-inset-bottom)) !important; }
}
/* ANCOR_MOBILE_CLEANUP_V2_END */
