﻿/* Prevent horizontal panning and page-wide overflow on iOS/Safari */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    /* Allow only vertical browser panning; JS handles in-component gestures */
    touch-action: pan-y !important;
    overscroll-behavior-x: none; /* supported on newer Safari */
    -webkit-text-size-adjust: 100%; /* avoid unexpected text zoom */
}

/* Avoid iOS focus-zoom when tapping fields (<16px triggers zoom) */
input, select, textarea {
    font-size: 16px;
}

/* Defensive: stop any section from creating horizontal scroll */
section, .container {
    max-width: 100%;
}

/* Common wide/animated sections: hard-disable horizontal overflow */
.hero-dark,
.services-dark,
.ai-suite,
.compassionate-link,
.team-dark,
.excellence-dark,
.wellness-dark,
.testimonials-dark,
.testimonials-mobile {
    overflow-x: hidden;
}

/* Make sure the main form wrapper in Web Forms never widens */
#form1 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Small iOS-only nudge to reduce rubber-banding artifacts */
@supports (-webkit-touch-callout: none) {
    body {
        position: relative;
    }
}
