/* Noah Tech — site-wide UI overrides */

/* Cross-browser text rendering */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* Faster preloader fade-out */
.preloader {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.preloader.preloader-deactivate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader.preloader-deactivate {
    transition: none;
  }

  .preloader.preloader-deactivate {
    display: none;
  }
}

/* Mobile nav — MCI Tools dropdown */
@media (max-width: 991px) {
  .nav.menu li.has-dropdown .dropdown-menu-custom {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    background: transparent;
  }

  .nav.menu li.has-dropdown.open .dropdown-menu-custom {
    display: block;
  }

  .nav.menu li.has-dropdown .dropdown-menu-custom li a {
    padding: 8px 18px 8px 28px;
    font-size: 13px;
    color: #555;
  }

  .nav.menu li.has-dropdown > a::after {
    transition: transform 0.2s ease;
  }

  .nav.menu li.has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  /* Slicknav nested submenu */
  .slicknav_nav ul {
    margin: 0;
    padding-left: 12px;
  }

  .slicknav_nav .slicknav_parent-link a,
  .slicknav_nav ul li a {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* Footer — consistent spacing and wrapping */
.footer .copyright {
  padding: 22px 0;
}

.footer .copyright-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  word-wrap: break-word;
}

.footer .copyright-content a {
  text-decoration: none;
}

.footer .copyright-content a:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .footer .copyright-content p {
    font-size: 13px;
    padding: 0 8px;
  }
}

/* Schedule — equal-height four cards */
.schedule {
  height: auto !important;
  padding-bottom: 2rem;
}

.schedule .schedule-inner {
  transform: none;
  margin-top: -3.5rem;
}

@media (min-width: 992px) {
  .schedule .schedule-inner {
    margin-top: -4.5rem;
  }
}

.schedule .row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: stretch;
  align-items: stretch;
}

.schedule .row > [class*="col-"] {
  display: -webkit-flex;
  display: flex;
  margin-bottom: 1rem;
}

.schedule .single-schedule {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  height: 100%;
}

.schedule .single-schedule .inner {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.schedule .single-schedule .single-content {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1;
  flex: 1;
}

.schedule .single-schedule p {
  -webkit-flex: 1;
  flex: 1;
  margin-bottom: 0;
}

.schedule .single-schedule a {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .get-quote .btn,
  .slicknav_btn {
    min-height: 44px;
  }
}

/* Prevent horizontal overflow on small screens */
body {
  overflow-x: hidden;
}