/* BuddyCoach & Co — mobiele correcties, juli 2026 */
html,
body {
  max-width: 100%;
}

.mobile-tabs {
  display: none;
}

@media (max-width: 1050px) {
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  header {
    z-index: 100;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  header .menu,
  header .language-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }

  header nav.open {
    position: fixed;
    inset: 68px 0 auto;
    width: 100%;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    margin: 0;
    padding: 12px 18px 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  }

  header nav.open > a,
  header nav.open > .nav-group > a {
    width: 100%;
    min-height: 50px;
    padding: 15px 8px !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e7e7e7 !important;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
  }

  header nav.open > a.active {
    color: #e30613;
    border-bottom-color: #e30613 !important;
  }

  header nav.open .nav-group {
    width: 100%;
  }

  header nav.open .nav-dropdown,
  header nav.open .nav-contact .nav-dropdown {
    margin: 0 0 8px;
    padding: 5px 0 5px 14px;
    border: 0;
    border-left: 3px solid #e30613;
    background: #f6f6f6;
  }

  header nav.open .nav-dropdown a,
  header nav.open .nav-career-group button,
  header nav.open .nav-career-menu a {
    min-height: 44px;
    padding: 11px 12px !important;
    display: flex !important;
    align-items: center;
    font-size: 12px;
  }

  header nav.open .nav-career-group {
    margin-top: 6px;
    border: 1px solid #dedede;
    background: #fafafa;
  }

  header nav.open .nav-career-group > button {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    justify-content: space-between;
    color: #111;
    background: #f0f0f0;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
  }

  header nav.open .nav-career-menu {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .mobile-tabs {
    display: none !important;
  }
}

@media (max-width: 650px) {
  body {
    overflow-x: clip;
  }

  .services a {
    grid-template-columns: minmax(42px, 60px) minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding-inline: 4px;
  }

  .services a b {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .services a i {
    flex: 0 0 auto;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  form button {
    min-height: 48px;
  }

  .check {
    min-height: 44px;
    align-items: center;
  }

  .check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .hero-carousel-dots button {
    min-width: 44px;
    min-height: 44px;
    position: relative;
  }

  .hero-carousel-dots button::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 20px;
    height: 4px;
    background: currentColor;
  }

  footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
