/* =========================================================
   BLUE SINGULARITY — Enterprise Website
   Custom styles layered on top of the Lana theme
   ========================================================= */

/* ---- No-JS fallback: never block the page behind the loader ---- */
html:not(.js) body > div.loader {
  display: none !important;
}
html:not(.js) body {
  overflow: auto;
}
html:not(.js) .ln-section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex !important;
  align-items: center;
}

/* ---- Brand color (deep singularity blue) ---- */
:root {
  --brand: #2b4bd8;
  --brand-dark: #1f3ab5;
  --brand-darker: #152a86;
  --brand-ink: #0d1b52;
}

/* Global background: photo slideshow + light blue overlay */
.bg-lightblue-overlay {
  background-color: rgba(96, 128, 248, 0.78);
}

.bg-primary {
  background-color: #2b4bd8 !important;
}
a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover, button.bg-primary:focus {
  background-color: #1f3ab5 !important;
}
.text-primary {
  color: #2b4bd8 !important;
}
a.text-primary:hover, a.text-primary:focus {
  color: #1f3ab5 !important;
}
.bg-soft-primary {
  background-color: rgba(43, 75, 216, 0.08) !important;
}
.btn-primary {
  background-color: #2b4bd8 !important;
  border-color: #2b4bd8 !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: #1f3ab5 !important;
  border-color: #1f3ab5 !important;
}
.text-soft-primary { color: #8fa3f5 !important; }

/* ---- Typography ---- */
body {
  font-family: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .form-control,
.ln-copyright, .ln-social-icons, .site-navbar .nav-link {
  font-family: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

/* ---- Logo ---- */
.brand-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-logo .brand-accent {
  color: #9db1ff;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.navbar-brand { padding-top: 0.25rem; padding-bottom: 0.25rem; }

/* Navbar brand logo — white text over the blue site; dark text when navbar turns light (mobile menu) */
.site-navbar .navbar-brand-img {
  filter: none !important;
  max-height: 2rem;
  width: auto;
}
.site-navbar .navbar-brand-img.logo-nav-dark { display: none; }
.site-navbar.navbar-light .navbar-brand-img.logo-nav-light { display: none; }
.site-navbar.navbar-light .navbar-brand-img.logo-nav-dark { display: inline-block; }

/* Hero logo lockup */
.logo-lockup {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  letter-spacing: 0.18em;
  line-height: 1.15;
  text-transform: uppercase;
}
.logo-lockup .brand-accent {
  color: #9db1ff;
  font-weight: 300;
  letter-spacing: 0.08em;
  display: block;
}

/* ---- Section helpers ---- */
.section-overline {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}
.section-index {
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.55;
}
.lead-soft { opacity: 0.92; }

/* Service / support feature cards */
.feature-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  height: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px);
}
.feature-card .icon-5x { color: #c7d2ff; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.feature-card p { font-size: 0.92rem; opacity: 0.9; }

/* Step list (process / robot workflow) */
.step-item {
  position: relative;
  padding-left: 3.4rem;
  padding-bottom: 1.6rem;
}
.step-item:last-child { padding-bottom: 0; }
.step-item .step-num {
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.35rem;
  height: 2.35rem;
  line-height: 2.35rem;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.step-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-item p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0; }

/* Process ribbon: Design -> Install -> Assess -> Deliver -> Maintain */
.process-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.process-ribbon .pr-item {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: #fff;
}
.process-ribbon .pr-item i {
  font-style: normal;
  color: #9db1ff;
  font-size: 0.7rem;
}

/* Big stats */
.stat-number {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: #fff;
}
.stat-number em {
  font-style: normal;
  font-weight: 300;
  font-size: 0.55em;
  margin-left: 0.15em;
  color: #9db1ff;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Case slider media height (default portfolio media is 70vh) */
.cases-slider .portfolio-item .item-media .media-container {
  height: 38vh;
}
@media (min-width: 992px) {
  .cases-slider .portfolio-item .item-media .media-container {
    height: 46vh;
  }
}

/* Case slider dots */
.slider.dots-light .slick-dots li button:before { color: #fff !important; }
.slider .slick-arrow { z-index: 5; }
.slider .slick-prev { left: -1.25rem; }
.slider .slick-next { right: -1.25rem; }

/* Case card */
.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2rem;
  color: #fff;
}
.case-meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Media card */
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.media-card img {
  width: 100%;
  display: block;
}
.media-card .media-overlay-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
}

/* Contact form on dark background */
.contact-form .form-control,
.subscribe-form .form-control {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.contact-form .form-control::placeholder,
.subscribe-form .form-control::placeholder { color: rgba(255, 255, 255, 0.65); }
.contact-form .form-control:focus,
.subscribe-form .form-control:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

/* Mobile tune-ups */
@media (max-width: 991.98px) {
  .brand-logo { font-size: 1.15rem; }
  .slider .slick-prev { left: -0.25rem; }
  .slider .slick-next { right: -0.25rem; }
}

/* Delivery services compact cards - keep delivery & contact on one screen */
.support-cards .feature-card {
  padding: 1.3rem 1.2rem 1.1rem;
}
.support-cards h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.support-cards p {
  font-size: 0.85rem;
}

/* Delivery photo gallery */
.delivery-grid .delivery-thumb {
  display: block;
  height: 160px;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.delivery-grid .delivery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.delivery-grid a:hover .delivery-thumb img {
  transform: scale(1.06);
}
@media (min-width: 992px) {
  .delivery-grid .delivery-thumb { height: 175px; }
}

/* Contact section reduced padding - keep delivery & contact on one screen */
.ln-section[data-anchor="contact"] {
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
}

/* =========================================================
   Modern enterprise style enhancements
   ========================================================= */

/* ---- Navbar glass effect (neutral dark glass, no blue tint) ---- */
.site-navbar {
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* Override the theme forced transparency: neutral dark glass base for the top navbar */
.site-navbar.site-navbar-transparent:not(.scrolled):not(.navbar-toggled-show) {
  background: rgba(22, 22, 22, 0.95) !important;
  box-shadow: none !important;
}

/* Keep the dark theme in all states (mobile scrolled/expanded menu no longer turns white) */
.site-navbar.navbar-light {
  background-color: rgba(22, 22, 22, 0.97) !important;
}
.site-navbar.navbar-light #navigation .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}
.site-navbar.navbar-light #navigation .nav-item.active > .nav-link,
.site-navbar.navbar-light #navigation .nav-link:hover {
  color: #ffffff !important;
}
.site-navbar.navbar-light .navbar-brand-img.logo-nav-light { display: inline-block !important; }
.site-navbar.navbar-light .navbar-brand-img.logo-nav-dark { display: none !important; }
.site-navbar.navbar-light .navbar-toggler-alternative-icon,
.site-navbar.navbar-light .navbar-toggler-alternative-icon::before,
.site-navbar.navbar-light .navbar-toggler-alternative-icon::after {
  background-color: #ffffff !important;
}

/* ---- Nav active item: use the theme's single underline (custom gradient line removed to avoid double lines) ---- */
.site-navbar #navigation .nav-link {
  position: relative;
}

/* ---- Section titles: gradient accent bar ---- */
.ln-section h2 {
  position: relative;
  padding-bottom: 0.9rem;
}
.ln-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.2rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffffff, #9db1ff, rgba(255, 255, 255, 0.05));
}

/* ---- Hero scroll indicator ---- */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  z-index: 2;
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: background 0.3s ease;
}
.scroll-down:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- Card hover: icon scale/rotate + lift ---- */
.feature-card .icon-5x i {
  display: inline-block;
  transition: transform 0.45s ease;
}
.feature-card:hover .icon-5x i {
  transform: scale(1.18) rotate(-6deg);
}
.feature-card {
  box-shadow: 0 6px 24px rgba(13, 27, 82, 0.12);
}
.feature-card:hover {
  box-shadow: 0 18px 44px rgba(13, 27, 82, 0.32);
}

/* ---- Stat numbers: gradient text accent ---- */
.stat-number em {
  background: linear-gradient(120deg, #9db1ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Delivery gallery: glowing border on hover ---- */
.delivery-grid a:hover .delivery-thumb {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px rgba(13, 27, 82, 0.35);
}

/* ---- Mobile menu: selected item text highlight (no full-width line) ---- */
@media (max-width: 991.98px) {
  .site-navbar #navigation .nav-item.active > .nav-link {
    color: #ffffff !important;
    font-weight: 700;
  }
  .site-navbar #navigation .nav-item:not(.active) > .nav-link:hover {
    color: rgba(255, 255, 255, 0.75) !important;
  }
  .site-navbar #navigation .nav-link {
    padding-left: 0.25rem;
  }
  .site-navbar #navigation .nav-item.active > .nav-link {
    border-left: 3px solid #9db1ff;
    padding-left: 0.85rem;
  }
}

/* ---- Language switch (modern sliding capsule) ---- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.22rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 27, 82, 0.2);
}
.lang-switch .lang-opt {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 2.5rem;
  text-align: center;
  padding: 0.42rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 2rem;
  transition: color 0.3s ease;
}
.lang-switch .lang-opt:hover {
  color: #ffffff;
}
.lang-switch .lang-opt.active {
  color: #2b4bd8;
}
.lang-switch .lang-slider {
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: 0.22rem;
  width: 2.5rem;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 27, 82, 0.4);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.lang-switch .lang-slider.lang-slide-right {
  transform: translateX(100%);
}
@media (max-width: 991.98px) {
  .lang-switch {
    margin-left: 0.25rem;
  }
}
