/* Probus Technologies — light theme utilities */

:root {
  /* Height of the frozen white navigation bar */
  --nav-h: 4.5rem;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets land just below the fixed navbar */
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

.scroll-target,
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

/* Push all page content below the frozen navbar */
.site-shell {
  padding-top: var(--nav-h);
}

.brand-logo {
  display: block;
}

/* Frozen white navigation bar (always solid, never overlaps content) */
#site-header {
  min-height: var(--nav-h);
  background-color: #ffffff;
  border-bottom: 1px solid rgb(226 232 240);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#site-header .nav-link,
#site-header .brand-title {
  color: rgb(30 41 59);
}

#site-header .brand-tagline {
  color: rgb(100 116 139);
}

#site-header .nav-link:hover {
  color: rgb(37 99 235);
}

#site-header .nav-link.font-semibold.text-blue-800 {
  color: rgb(30 64 175);
}

#site-header #menu-btn {
  color: rgb(30 41 59);
}

#site-header .nav-cta {
  background: rgb(30 58 138);
}

#site-header .nav-cta:hover {
  background: rgb(23 37 84);
}

/* Dropdown navigation */
.nav-dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Service feature cards */
.service-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.service-card__image {
  min-height: 220px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .service-card__image {
    min-height: 100%;
  }
}

/* FAQ */
.faq-list details summary {
  list-style: none;
}

.faq-list details summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary svg {
  transform: rotate(180deg);
}

/* Hero background video */
.hero-video-wrap {
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.68) 45%,
    rgba(30, 58, 138, 0.55) 100%
  );
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Hero soft blob — unused when video hero active */
.hero-blob {
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(99, 102, 241, 0.08), transparent 50%);
}

/* NMS screenshot carousel */
.nms-carousel {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.nms-carousel-viewport {
  position: relative;
  height: min(78vh, 860px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.nms-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.nms-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.nms-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.nms-carousel-slide img {
  flex: 1;
  width: 100%;
  height: calc(100% - 3.25rem);
  object-fit: contain;
  object-position: center top;
  padding: 0.75rem 0.75rem 0;
  background: #f8fafc;
}

.nms-carousel-slide figcaption {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(30 41 59);
  border-top: 1px solid rgb(241 245 249);
  background: #fff;
  text-align: center;
}

.nms-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: rgb(30 58 138);
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nms-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.nms-carousel-btn--prev {
  left: 1rem;
}

.nms-carousel-btn--next {
  right: 1rem;
}

.nms-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nms-carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  border: none;
  background: rgb(203 213 225);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nms-carousel-dot.is-active {
  background: rgb(30 58 138);
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .nms-carousel-viewport {
    height: min(62vh, 520px);
    min-height: 320px;
  }

  .nms-carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
  }
}
