/* ==========================================================================
   Vijas Instrutech — Light Glassmorphism Skin (site-wide)
   Loaded LAST on inner pages. Scoped to body.glass-light
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

body.glass-light {
  --ink: #0f1b3d;
  --ink-soft: #47536e;
  --line: rgba(15, 27, 61, 0.10);
  --brand: #1e3a5f;
  --brand-2: #3b6fa0;
  --accent: #c9a84c;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --radius: 20px;
  --shadow: 0 18px 50px -22px rgba(15, 27, 61, 0.35);

  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  color: var(--ink) !important;
  background: #eef2f8 !important;
  position: relative;
  overflow-x: hidden;
}

/* soft ambient light behind the glass */
body.glass-light::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 8% -5%, rgba(59, 111, 160, 0.28), transparent 60%),
    radial-gradient(760px 560px at 96% 8%, rgba(201, 168, 76, 0.20), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(30, 58, 95, 0.22), transparent 62%),
    linear-gradient(165deg, #f7f9fc 0%, #e9eff7 48%, #eaf0f6 100%);
}

body.glass-light h1,
body.glass-light h2,
body.glass-light h3,
body.glass-light h4,
body.glass-light h5,
body.glass-light .navbar-brand,
body.glass-light .logo {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

body.glass-light p,
body.glass-light li,
body.glass-light span,
body.glass-light td {
  color: var(--ink-soft);
}

body.glass-light a { color: var(--brand); }
body.glass-light a:hover { color: var(--brand-2); }

/* --------------------------------------------------------- navigation --- */
body.glass-light .topnav,
body.glass-light .top-navbar,
body.glass-light .top-navbar .navbar,
body.glass-light .header_section,
body.glass-light .header_bottom,
body.glass-light .s-header {
  background: var(--glass-strong) !important;
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(15, 27, 61, 0.45);
}

body.glass-light .topnav a,
body.glass-light .navbar .nav-link,
body.glass-light .navbar-nav .nav-link,
body.glass-light .s-header__menu-links a {
  color: var(--ink) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

body.glass-light .topnav a:hover,
body.glass-light .navbar .nav-link:hover,
body.glass-light .s-header__menu-links a:hover {
  background: rgba(30, 58, 95, 0.08) !important;
  color: var(--brand) !important;
}

body.glass-light .topnav a.active,
body.glass-light .nav-item.active .nav-link,
body.glass-light .s-header__menu-links li.current a {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #fff !important;
}

/* -------------------------------------------------------------- hero --- */
body.glass-light .home .content,
body.glass-light .all-page-title,
body.glass-light .slider_section .detail-box,
body.glass-light .s-intro__content-inner {
  background: var(--glass) !important;
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem !important;
  color: var(--ink) !important;
}

body.glass-light .home::after,
body.glass-light .home .video-slide + .content::before { content: none; }

/* soften dark video heroes so they read as light glass */
body.glass-light .home video,
body.glass-light .video-slide {
  filter: brightness(1.25) saturate(1.05);
}

body.glass-light .all-page-title {
  margin: 2rem auto;
  max-width: 1100px;
}

/* -------------------------------------------------------- glass cards --- */
body.glass-light .filter-item,
body.glass-light .gallery-single,
body.glass-light .service_section .box,
body.glass-light .about_section .detail-box,
body.glass-light .card,
body.glass-light .why-text {
  background: var(--glass) !important;
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

body.glass-light .why-text {
  border: 0;
  box-shadow: none;
  background: transparent !important;
  backdrop-filter: none;
  padding: 1.25rem 1.35rem 1.6rem;
}

body.glass-light .filter-item:hover,
body.glass-light .gallery-single:hover,
body.glass-light .service_section .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -24px rgba(15, 27, 61, 0.45);
  border-color: rgba(59, 111, 160, 0.45);
}

body.glass-light .filter-item .item-img img,
body.glass-light .gallery-single img,
body.glass-light .service_section .box .img-box img {
  border-radius: 14px;
}

body.glass-light .filter-item .item-info h3,
body.glass-light .why-text h4,
body.glass-light .service_section .box .detail-box h5 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: .55rem;
}

/* --------------------------------------------------------- buttons ------ */
body.glass-light .filter-btn,
body.glass-light .filter-button-group button,
body.glass-light .btn,
body.glass-light .btn-box a,
body.glass-light button.seeMore {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600;
  border-radius: 999px !important;
  border: 1px solid rgba(30, 58, 95, 0.22) !important;
  background: var(--glass-strong) !important;
  backdrop-filter: blur(14px);
  color: var(--ink) !important;
  padding: .6rem 1.35rem !important;
  box-shadow: 0 8px 22px -14px rgba(15, 27, 61, .6);
  transition: all .22s ease;
}

body.glass-light .filter-btn:hover,
body.glass-light .filter-button-group button:hover,
body.glass-light .filter-button-group button.active,
body.glass-light .btn:hover,
body.glass-light .btn-box a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------- sections ----- */
body.glass-light .menu-box,
body.glass-light .service_section,
body.glass-light .about_section,
body.glass-light #wrapper,
body.glass-light .wrapper,
body.glass-light .s-content,
body.glass-light section {
  background-color: transparent !important;
}

body.glass-light .category-filter .title h1,
body.glass-light .heading-title h1,
body.glass-light .heading_container h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

body.glass-light .category-filter .title h1::after,
body.glass-light .heading-title h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ----------------------------------------------------------- footer ----- */
body.glass-light .footer,
body.glass-light #pagef,
body.glass-light .footer_section,
body.glass-light .info_section,
body.glass-light .s-footer {
  background: var(--glass-strong) !important;
  backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
}

body.glass-light .footer h4,
body.glass-light .footer h3,
body.glass-light .footer a,
body.glass-light .footer p,
body.glass-light .footer li {
  color: var(--ink-soft) !important;
}
body.glass-light .footer a:hover { color: var(--brand) !important; }

/* --------------------------------------------------------- misc fixes --- */
body.glass-light img { max-width: 100%; }

@media (max-width: 768px) {
  body.glass-light .home .content,
  body.glass-light .all-page-title,
  body.glass-light .s-intro__content-inner { padding: 1.5rem !important; }
}

/* -------------------------------------------------- page hero banner --- */
body.glass-light .home {
  position: relative;
  height: 62vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.glass-light .home video,
body.glass-light .home .video-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.35) saturate(1.05);
}

body.glass-light .home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 252, .72), rgba(233, 239, 247, .82));
}

body.glass-light .home .content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: min(90%, 780px);
  text-align: center;
  margin: 0 auto;
}

body.glass-light .home .content h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 0 0 1rem;
}

body.glass-light .home .content a,
body.glass-light .home .content p {
  display: block;
  background: none !important;
  color: var(--ink-soft) !important;
  font-size: 1.02rem;
  line-height: 1.7;
  text-decoration: none;
  padding: 0 !important;
}

/* ------------------------------------------- manufacturers page fixes --- */
body.glass-light .all-page-title {
  background: var(--glass) !important;
  background-image: none !important;
  padding: 3.2rem 1.5rem !important;
  border-radius: var(--radius);
}
body.glass-light .all-page-title::before,
body.glass-light .all-page-title::after { display: none !important; }
body.glass-light .all-page-title h1,
body.glass-light .all-page-title p { color: var(--ink) !important; }
body.glass-light .all-page-title p { color: var(--ink-soft) !important; }

body.glass-light .gallery-single {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
  box-shadow: var(--shadow) !important;
}
body.glass-light .gallery-single img {
  height: 240px;
  object-fit: contain;
  padding: 1.4rem 1.4rem 0;
  background: rgba(255, 255, 255, .55);
}
body.glass-light .gallery-single .why-text {
  position: static !important;
  height: auto !important;
  background: transparent !important;
  padding: 1.1rem 1.4rem 1.6rem !important;
}
body.glass-light .why-text h4 { color: var(--ink) !important; font-size: 1.15rem !important; font-weight: 600 !important; }
body.glass-light .why-text p {
  color: var(--ink-soft) !important;
  font-size: .95rem !important;
  border: 0 !important;
  margin: .5rem 0 0 !important;
  padding: 0 !important;
}
body.glass-light .special-list { align-items: stretch; }
body.glass-light .special-grid { display: flex; }

/* keep content clear of the sticky header */
body.glass-light .top-navbar { position: sticky; top: 0; z-index: 999; }
body.glass-light .menu-box { padding-top: 1rem; }

body.glass-light .all-page-title { margin-top: 120px; }
body.glass-light .special-list {
  display: flex !important;
  flex-wrap: wrap;
  height: auto !important;
}
body.glass-light .special-list .special-grid {
  position: static !important;
  transform: none !important;
  margin-bottom: 0;
}

/* ------------------------------------------------- services page hero --- */
body.glass-light .slider_section {
  min-height: 0 !important;
  height: 66vh;
  position: relative;
  display: flex;
  align-items: center;
}
body.glass-light .slider_section .carousel-item,
body.glass-light .slider_section .carousel-inner,
body.glass-light .slider_section .carousel { height: 100%; }
body.glass-light .slider_section .carousel-item {
  background-blend-mode: lighten;
  background-color: rgba(245, 248, 252, .55) !important;
}
body.glass-light .slider_section .detail-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
body.glass-light .slider_section .detail-box h1,
body.glass-light .slider_section .detail-box h2 { color: var(--ink) !important; }
body.glass-light .slider_section .btn-box { justify-content: center; display: flex; gap: .75rem; }
body.glass-light .carousel-indicators li,
body.glass-light .carousel-indicators .active { background: var(--brand) !important; }
body.glass-light .hero_area { min-height: 0 !important; }

/* --------------------------------------------------- about page fixes --- */
body.glass-light .s-intro {
  min-height: 78vh !important;
  height: auto !important;
  display: flex;
  align-items: center;
}
body.glass-light .s-intro__content-bg { opacity: .25 !important; }
body.glass-light .s-intro__content-inner { text-align: left; }
body.glass-light .s-intro__content-title,
body.glass-light .s-intro__content-title a,
body.glass-light .s-intro__content-inner p,
body.glass-light .s-intro__scroll-down a { color: var(--ink) !important; }
body.glass-light .s-intro__content-title { font-size: clamp(1.9rem, 3.8vw, 3rem) !important; }
body.glass-light .btn--stroke {
  color: var(--ink) !important;
  border-color: rgba(30, 58, 95, .3) !important;
}
body.glass-light .btn--stroke:hover { color: #fff !important; }
body.glass-light .section-header__pretitle,
body.glass-light .text-pretitle { color: var(--brand-2) !important; }
body.glass-light .light-on-dark,
body.glass-light .s-folio,
body.glass-light .s-about { color: var(--ink) !important; }
body.glass-light .s-footer { background: var(--glass-strong) !important; }

/* ensure hero copy is always visible even if the preloader script stalls */
body.glass-light .s-intro__content-title,
body.glass-light .s-intro__content-buttons,
body.glass-light .s-intro__content-bg,
body.glass-light .s-intro__bg,
body.glass-light .s-header__inner,
body.glass-light .s-intro__scroll-down {
  opacity: 1 !important;
  transform: none !important;
}
body.glass-light .s-intro__scroll-down { bottom: 24px !important; }
body.glass-light #preloader { display: none !important; }

body.glass-light .s-intro { height: 78vh !important; }
body.glass-light .s-intro__bg { filter: brightness(1.45) saturate(.6); opacity: .55 !important; }

body.glass-light .hero_area,
body.glass-light .slider_section,
body.glass-light .slider_section .carousel,
body.glass-light .slider_section .carousel-inner,
body.glass-light .slider_section .carousel-item {
  height: 66vh !important;
  min-height: 420px !important;
  background-size: cover !important;
  background-position: center !important;
}
body.glass-light .slider_section .carousel-item .container,
body.glass-light .slider_section .row { height: 100%; align-items: center; }

/* products / generic video hero sizing */
body.glass-light section.home {
  min-height: 0 !important;
  height: 62vh !important;
  max-height: 620px;
  overflow: hidden;
}
body.glass-light section.home video { height: 100% !important; }
body.glass-light section.home .content { max-width: 820px; margin: 0 auto; }

/* products grid: even rows instead of staggered columns */
body.glass-light .filter-items {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  column-count: auto !important;
  padding: 0 1.5rem;
}
body.glass-light .filter-items .filter-item {
  break-inside: avoid;
  margin: 0 !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
}
body.glass-light .filter-items .filter-item img { aspect-ratio: 1/1; object-fit: contain; width: 100%; }
@media (max-width: 1024px) { body.glass-light .filter-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { body.glass-light .filter-items { grid-template-columns: 1fr; } }
body.glass-light section.home {
  background: linear-gradient(135deg, #dbe7f3, #eef3f9 55%, #e3ecf6);
}
body.glass-light .filter-items .filter-item * { overflow-wrap: anywhere; }
