/* Nitro Tech Media: site utilities (Tailwind handles most layout) */

/* Hide scrollbar but keep overflow scroll (e.g. portfolio category chips) */
.ntm-scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ntm-scroll-hide::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.glass-nav {
  background: rgba(255, 248, 247, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nitro-gradient {
  background: linear-gradient(135deg, #ab2123 0%, #ce3b38 100%);
}

/* Legacy alias from extracted templates */
.nitro-gradient-cta {
  background: linear-gradient(135deg, #ab2123 0%, #ce3b38 100%);
}

/* Alias used by service landing templates */
.kinetic-gradient {
  background: linear-gradient(135deg, #ab2123 0%, #ce3b38 100%);
}

.kinetic-shadow {
  box-shadow: 0 12px 40px -10px rgba(171, 33, 35, 0.08);
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(171, 33, 35, 0.1) !important;
}

.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: "Courier New", Courier, monospace;
}

/* Home hero code panel: subtle scrollbar on dark background */
.hero-code-snippet {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hero-code-snippet::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.hero-code-snippet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Testimonial carousel dots (JS toggles --active / --inactive; .tc--inverse adjusts colors) */
.testimonial-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.testimonial-carousel-dot--inactive {
  background-color: rgba(34, 25, 26, 0.22);
}
.testimonial-carousel-dot--inactive:hover {
  background-color: rgba(34, 25, 26, 0.38);
}
.testimonial-carousel-dot--active {
  background-color: #ab2123;
  transform: scale(1.35);
}
.tc--inverse .testimonial-carousel-dot--inactive {
  background-color: rgba(255, 255, 255, 0.28);
}
.tc--inverse .testimonial-carousel-dot--inactive:hover {
  background-color: rgba(255, 255, 255, 0.45);
}
.tc--inverse .testimonial-carousel-dot--active {
  background-color: #ffffff;
  transform: scale(1.35);
}

/* Cookie banner (above bubble while visible); contact FAB bottom-right after consent */
#ntm-cookie-banner {
  z-index: 10050;
}
#ntm-contact-bubble {
  z-index: 10000;
}

.ntm-contact-bubble-wrap {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Home: trusted client logos infinite carousel (marquee) */
.ntm-trusted-logos-marquee {
  overflow: hidden;
  margin-inline: auto;
  max-width: min(100%, 80rem);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ntm-trusted-logos-track {
  display: flex;
  width: max-content;
  animation: ntm-trusted-logos-marquee 50s linear infinite;
}

.ntm-trusted-logos-marquee:hover .ntm-trusted-logos-track {
  animation-play-state: paused;
}

.ntm-trusted-logos-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.ntm-trusted-logos-cell {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: clamp(5rem, 12vw, 7.5rem);
  min-width: 7rem;
  padding-inline: 0.5rem;
}

.ntm-trusted-logos-cell img {
  height: clamp(3.25rem, 8vw, 5.5rem);
  width: auto;
  max-width: min(14rem, 28vw);
  object-fit: contain;
  object-position: center;
}

@keyframes ntm-trusted-logos-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ntm-trusted-logos-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 72rem;
    justify-content: center;
    margin-inline: auto;
  }

  .ntm-trusted-logos-set:last-child {
    display: none;
  }

  .ntm-trusted-logos-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
