
/* ============================================================
   SWAASTHCARE CROSS-BROWSER COMPATIBILITY OVERRIDES
   Target: current Chrome, Edge, Firefox, Safari, iOS Safari,
           Android Chrome; desktop/tablet/mobile.
   Keeps the existing visual design intact.
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

img {
  height: auto;
  -ms-interpolation-mode: bicubic;
}

button, input, select, textarea {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button, a, input[type="button"], input[type="submit"], input[type="reset"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Avoid iOS automatic zoom when a form control receives focus. */
@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* More reliable viewport height on mobile browsers. */
@supports (min-height: 100dvh) {
  .preventa-full-height,
  .full-height-mobile {
    min-height: 100dvh;
  }
}

/* Respect device safe areas without changing desktop layout. */
@supports (padding: max(0px)) {
  #navigation {
    padding-top: max(0px, env(safe-area-inset-top));
  }

@supports (padding: env(safe-area-inset-top)) {
  body { padding-left: env(safe-area-inset-left); 
  padding-right: env(safe-area-inset-right); }
  }

  #mobile-navigation {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Keep fixed/sticky UI above iOS browser chrome and overlays. */
#navigation,
#mobile-navigation,
.preventa-video-lightbox,
#popup-form-overlay {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Keyboard focus remains visible in every browser. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Prevent very long words/URLs from creating horizontal scrolling. */
p, li, td, th, a, label, .text-break {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
