/*
 * Techufy site styles.
 * Small additions on top of the stock Silicon theme (assets/css/theme.min.css).
 */

/* ---- Page preloader ---- */
.page-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all .4s .2s ease-in-out;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}
.page-loading.active {
  opacity: 1;
  visibility: visible;
}
.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  transition: opacity .2s ease-in-out;
  opacity: 0;
}
.page-loading.active > .page-loading-inner {
  opacity: 1;
}
.page-loading-inner > span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #9397ad;
}
.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .75rem;
  vertical-align: text-bottom;
  border: .15em solid #b4b7c9;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner .75s linear infinite;
}
@keyframes spinner {
  100% { transform: rotate(360deg); }
}

/* ---- Utilities missing from the theme ---- */
.min-vh-40 { min-height: 40vh; }
.h-40 { height: 40%; }

/* ---- Layout helpers ---- */

/* Full-width parallax cover used at the top of inner pages. */
.hero-cover {
  height: 550px;
}
@media (min-width: 1400px) {
  .hero-cover {
    height: 700px;
  }
}

/* A tinted band whose last section is pulled up over the band's bottom edge. */
.band-overlap {
  padding-bottom: 228px;
}
.band-overlap-pull {
  margin-top: -228px;
}

/* Tag-line under an inner page title. */
.page-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--si-gray-700, #585c7b);
}

/* Inline step lists: keep the number column from shrinking on narrow screens. */
.steps-sm .step-number {
  flex-shrink: 0;
}

/* Contact form card in dark mode stays readable. */
.dark-mode .contact-card {
  background-color: var(--si-dark, #131022);
}

/* Keep top-level menu labels on one line. */
.header .navbar-nav > .nav-item > .nav-link {
  white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header .navbar-nav > .nav-item > .nav-link {
    padding-left: .5rem;
    padding-right: .5rem;
  }
}

/* Horizontal step lists: the theme draws every connector 100% wide, so the last step's line
   runs past the container edge and causes a horizontal scrollbar. Hide it. */
@media (min-width: 768px) {
  .steps-horizontal-md .step:last-child::after {
    display: none;
  }
}

/* Safety net against stray horizontal scrollbars. Applied to html so it propagates to the
   viewport and does not interfere with position: sticky descendants. */
html {
  overflow-x: hidden;
}
