/* Site-wide mobile and touch-friendly adjustments */

html {
  scroll-padding-top: 52px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
}

.map-responsive {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-responsive iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: 0;
}

#home .hero-inner {
  white-space: normal;
  width: 92%;
  max-width: 560px;
  padding: 72px 16px 24px;
  box-sizing: border-box;
}

#home .hero-logo {
  display: block;
  width: 100%;
  max-width: 532px;
  height: auto;
  margin: 0 auto;
}

.contact-form .w3-input,
.contact-form textarea {
  font-size: 16px;
}

.contact-form button[type="submit"] {
  min-height: 44px;
}

@media (max-width: 600px) {
  p {
    font-size: 16px;
  }

  .w3-padding-64 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .w3-wide {
    letter-spacing: 2px;
  }

  .w3-nowrap {
    white-space: normal;
  }

  .bgimg-1 {
    min-height: 70vh;
  }

  .bgimg-2,
  .bgimg-3,
  .bgimg-4 {
    min-height: 280px;
  }

  .w3-bar .w3-bar-item {
    padding: 12px 14px;
  }

  .contact-form .w3-row-padding > .w3-half {
    margin-bottom: 8px;
  }

  .contact-form button[type="submit"] {
    float: none;
    width: 100%;
    margin-top: 8px;
  }

  .map-responsive {
    margin-bottom: 24px;
  }

  #contact .w3-col.m8.w3-panel {
    padding: 0;
  }
}

@media (max-width: 992px), (prefers-reduced-motion: reduce) {
  .bgimg-1,
  .bgimg-2,
  .bgimg-3,
  .bgimg-4 {
    background-attachment: scroll;
  }
}
