/* =========================
   responsive.css
   Responsive tweaks for #tm_topbar
========================= */

/* Tablet: stack search bar narrower */
@media (max-width: 991.98px) {
  #tm_topbar .search-inner {
    flex-wrap: wrap;
    padding: 6px 10px;
  }

  #tm_topbar .search-inner .form-control {
    min-width: 200px;
    flex: 1;
    margin-top: 6px;
  }

  #tm_topbar .actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
  }

.tm_hero_slider__btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.tm_service_home_page h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #343a40;
}

}

/* Mobile: collapse actions into a toggle */
@media (max-width: 767.98px) {
  #tm_topbar {
    padding: 6px 0;
  }

  /* Brand centered */
  #tm_topbar .brand {
    justify-content: center;
  }

  /* Search full width */
  #tm_topbar .search-wrap {
    margin: 10px 0;
  }
  #tm_topbar .search-inner {
    flex: 1;
    width: 100%;
  }
  #tm_topbar .search-inner .form-control {
    min-width: 100%;
  }

  /* Hide actions by default */
  #tm_topbar .actions {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  /* Toggle button */
  #tm_topbar .actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-purple);
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
  }

  /* Show actions when active */
  #tm_topbar .actions.show {
    display: flex;
  }
}






/* overlay (behind menu) */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 1045;
}

/* off-canvas menu defaults (hidden to the right) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(6,10,18,0.12);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.2,.9,.2,1);
  z-index: 1050;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  border-left: 1px solid rgba(0,0,0,0.04);
}

/* menu open state */
.mobile-menu.open {
  transform: translateX(0);
}

/* show overlay when menu open */
.mobile-overlay.visible {
  display: block;
  opacity: 1;
}

/* mobile header */
.tm-topbar-mobile {
  background: linear-gradient(90deg, #EFEEDD 0%, #E0E7F1 100%);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
  z-index: 1030;
}

/* brand (image + text) */
.tm-topbar-mobile .brand img {
  height: 36px;
}
.tm-topbar-mobile .brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #011C1A;
  margin-left: 8px;
}

/* mobile control icons */
.tm-topbar-mobile .mobile-controls a {
  color: #011C1A;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 6px;
}
.tm-topbar-mobile .mobile-controls a:hover {
  background: rgba(0,0,0,0.04);
}

/* search-inner in mobile menu */
.mobile-menu .search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9fb;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}
.mobile-menu .search-inner .form-control {
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 0.95rem;
  flex: 1;
}

/* mobile-register / login — reuse desktop classes but make full width */
.mobile-menu .mobile-actions .btn-register,
.mobile-menu .mobile-actions .btn-login {
  display: block;
  width: 100%;
  text-align: center;
}

/* nav-links */
.mobile-menu .mobile-nav .nav-link {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: #fafafa;
  color: #222;
  text-decoration: none;
  font-weight: 600;
}