/* Mobiele verbeteringen bovenop het originele Hestia-thema.
   Alles staat binnen @media (max-width: 767px), zodat tablet en desktop er
   exact hetzelfde uitzien als voorheen. Wordt als laatste stylesheet geladen. */
@media (max-width: 767px) {
  /* Geen horizontaal schuiven: de inschuif-animaties (AOS) van het thema
     staken net buiten het scherm, waardoor de pagina op telefoons zijwaarts
     kon bewegen. */
  .main,
  .hestia-contact {
    overflow-x: clip;
  }

  /* Menuknop (hamburger) groot genoeg om met een duim te raken. */
  .navbar .navbar-header .navbar-toggle-wrapper {
    flex-shrink: 0;
  }
  .navbar .navbar-header .navbar-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin: 0 -6px 0 0;
    padding: 0 12px;
  }

  /* Uitgeklapt menu: grotere tekst en ruime tikvlakken. */
  .navbar .navbar-nav > li > a,
  .navbar .navbar-nav .dropdown-menu > li > a {
    font-size: 15px;
    line-height: 24px;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .navbar .navbar-nav .dropdown-menu > li > a {
    padding-left: 30px;
  }
  /* Pijltje om het submenu open te klappen: 44x44 in plaats van 32x32. */
  .navbar .navbar-nav .dropdown a .caret-wrap .caret {
    width: 42px;
    height: 42px;
    top: 2px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Grote foto bovenaan: niet langer hoger dan het scherm, zodat meteen
     duidelijk is dat er nog inhoud volgt. */
  .home .carousel .page-header .container {
    height: auto !important;
    padding-top: 190px !important;
    padding-bottom: 110px;
  }
  /* Het thema zet via JavaScript een min-height gelijk aan de schermhoogte. */
  .home .carousel .page-header {
    min-height: 0 !important;
    height: auto;
  }
  .page-header.header-small {
    min-height: 0;
    height: auto;
  }
  .page-header.header-small .container {
    height: auto !important;
    padding-top: 160px !important;
    padding-bottom: 90px;
  }
  .page-header .hestia-title {
    font-size: 30px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  /* Foto's en ingesloten inhoud nooit breder dan het scherm. */
  .main img,
  .main video {
    max-width: 100%;
    height: auto;
  }
  .main iframe {
    max-width: 100%;
  }

  /* Ledenlijst en projecten: beter leesbaar (groter en meer contrast). */
  .hestia-features .description,
  .hestia-testimonials-title-area .description {
    color: #555;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
  }
  .hestia-testimonials .card-testimonial {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .hestia-testimonials .card-description {
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
  }
  .hestia-testimonials .card-description a {
    text-decoration: underline;
  }

  /* Contact: sociale-media-icoontjes groter en verder uit elkaar. */
  .hestia-contact .hestia-info .description img {
    width: 36px;
    height: 36px;
    margin: 6px 10px 6px 0;
  }

  /* Contactformulier: velden onder elkaar en 16px tekst, zodat iPhones
     niet inzoomen bij het typen. */
  div.wpforms-container-full .wpforms-form .wpforms-one-half {
    float: none;
    width: 100%;
    margin-left: 0;
  }
  #wpforms-41 .wpforms-form input.form-control,
  #wpforms-41 .wpforms-form textarea.form-control {
    font-size: 16px;
    min-height: 44px;
  }
  .hestia-contact .card-contact {
    margin-top: 30px;
  }
  .hestia-contact .card-contact .wpforms-submit {
    width: 100%;
  }

  /* Tekstpagina's: wat meer regelafstand. */
  .page-content-wrap p,
  .page-content-wrap li {
    line-height: 1.65;
  }
}
