/* Mobile refinements.
   Loaded last so these rules win over the desktop-first stylesheets above.
   Everything here is scoped to a max-width query — desktop is untouched. */

@media (max-width: 767px) {

  /* The hero heading was inheriting the desktop 3.2em (~51px on a 375px
     screen), which wrapped "Hatha Yoga is a game-changer" onto four lines
     and pushed the Get Started button off the slide. */
  #intro h2 {
    font-size: 2em;
    margin-bottom: 0.4em;
  }

  #intro p {
    width: 92%;
    font-size: 0.95em;
  }

  /* Give the slide text a little breathing room from the screen edges. */
  #intro .carousel-content {
    padding: 0 0.75em;
  }

  /* Contact form: 35px-tall inputs are below the ~44px comfortable touch
     target, and sub-16px font triggers auto-zoom on iOS when focused.
     Selector mirrors the #footer .footer-top .form rule in css/style.css so
     it wins on specificity rather than needing !important. */
  #footer .footer-top .form input,
  #footer .footer-top .form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  #footer .footer-top .form textarea {
    min-height: 120px;
  }

  #footer .footer-top .form button[type="submit"] {
    min-height: 44px;
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  /* Teacher social icons were 30x34 tap targets sitting side by side.
     Pad them out to 44x44 without moving the layout around. */
  #team .member-info-content h3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-left: 0 !important;
  }

  #team .member-info-content h3 a i {
    padding-left: 0 !important;
  }

  /* Topbar: address and phone are now real links, so make them comfortably
     tappable rather than 20px slivers. */
  #topbar .social-links a.address,
  #topbar .social-links a.phone {
    display: inline-block;
    padding: 6px 0;
  }
}
