/* ==========================================================================
   SITE HEADER & NAVIGATION BAR
   ========================================================================== */

.top-bar {
  background: rgba(6, 18, 36, 0.96);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.7rem 0;
  font-size: 0.9rem;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar__contacts,
.top-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-bg);
}

.brand__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-bg);
  font-weight: 600;
  position: relative;
}

.nav-list .mega-parent>a::before,
.nav-list a.active::before {
  content: "▾";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.mega-parent:hover>a::before,
.mega-parent:focus-within>a::before,
.mega-parent.open>a::before,
.nav-list a.active::before {
  transform: rotate(-180deg);
}

.nav-list a.active,
.nav-list a:hover,
.nav-list .mega-parent:hover > a {
  color: var(--color-primary);
}

.nav-list a.active::after,
.nav-list a:hover::after,
.nav-list .mega-parent:hover > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
}

.nav-actions {
  display: flex;
  gap: 0.7rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg);
  margin: 4px 0;
}

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 80px 1rem auto 1rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions {
    margin-top: 0.7rem;
  }

  .nav-actions .btn {
    justify-content: center;
  }
}

/* ==========================================================================
   MEGA MENU - PREMIUM ODOO STYLE
   ========================================================================== */

.mega-parent {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 1180px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 999;
  padding: 0;
  overflow: hidden;
}

/* Hover triggers showing the menu */
.mega-parent:hover .mega-menu,
.mega-parent:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mega menu inner grid layout */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 2.5rem 3rem;
}

/* Column styles */
.mega-column {
  display: flex;
  flex-direction: column;
}

.mega-column h3 {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.mega-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-column li {
  margin: 0;
}

/* List Item Links with Icons */
.mega-column li a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mega-column li a:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

/* Icon Wrapper Styles */
.mega-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.mega-column li a:hover .mega-icon-wrapper {
  transform: scale(1.1);
}

/* Text and Titles inside links */
.mega-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mega-text-wrapper strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.25s ease;
}

.mega-column li a:hover strong {
  color: var(--color-primary);
}

.mega-text-wrapper span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* Color Coding for Category Icons */
.mega-icon-wrapper.text-blue { background: rgba(37, 99, 235, 0.07); color: #2563eb; }
.mega-icon-wrapper.text-indigo { background: rgba(79, 70, 229, 0.07); color: #4f46e5; }
.mega-icon-wrapper.text-purple { background: rgba(147, 51, 234, 0.07); color: #9333ea; }
.mega-icon-wrapper.text-violet { background: rgba(124, 58, 237, 0.07); color: #7c3aed; }
.mega-icon-wrapper.text-green { background: rgba(22, 163, 74, 0.07); color: #16a34a; }
.mega-icon-wrapper.text-teal { background: rgba(13, 148, 136, 0.07); color: #0d9488; }
.mega-icon-wrapper.text-emerald { background: rgba(5, 150, 105, 0.07); color: #059669; }
.mega-icon-wrapper.text-rose { background: rgba(225, 29, 72, 0.07); color: #e11d48; }
.mega-icon-wrapper.text-sky { background: rgba(2, 132, 199, 0.07); color: #0284c7; }
.mega-icon-wrapper.text-red { background: rgba(220, 38, 38, 0.07); color: #dc2626; }
.mega-icon-wrapper.text-cyan { background: rgba(8, 145, 178, 0.07); color: #0891b2; }
.mega-icon-wrapper.text-amber { background: rgba(217, 119, 6, 0.07); color: #d97706; }
.mega-icon-wrapper.text-orange { background: rgba(234, 88, 12, 0.07); color: #ea580c; }
.mega-icon-wrapper.text-yellow { background: rgba(202, 138, 4, 0.07); color: #ca8a04; }
.mega-icon-wrapper.text-pink { background: rgba(219, 39, 119, 0.07); color: #db2777; }
.mega-icon-wrapper.text-fuchsia { background: rgba(192, 38, 211, 0.07); color: #c026d3; }

/* Megamenu Bottom Footer Bar */
.mega-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.mega-footer-left {
  display: flex;
  gap: 2rem;
}

.mega-footer-left a {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.mega-footer-left a:hover {
  color: var(--color-primary);
}

.mega-footer-right span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-footer-right span i {
  color: var(--color-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE LAYOUT)
   ========================================================================== */

@media(max-width: 992px) {
  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 12px;
    background: #f8fafc;
    margin-top: 0.5rem;
  }

  .mega-parent.open .mega-menu {
    display: block;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.5rem;
  }

  .mega-column h3 {
    margin-bottom: 1rem;
    font-size: 0.72rem;
  }

  .mega-column ul {
    gap: 0.6rem;
  }

  .mega-column li a {
    padding: 0.4rem 0.5rem;
  }

  .mega-column li a:hover {
    background: #e2e8f0;
    transform: none;
  }

  .mega-text-wrapper strong {
    font-size: 0.88rem;
  }

  .mega-text-wrapper span {
    font-size: 0.72rem;
  }

  .mega-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: #e2e8f0;
  }

  .mega-footer-left {
    flex-direction: column;
    gap: 0.8rem;
  }
}
/* =========================================================
   BLAGWEB HEADER LOGO
   SAME POSITION + SAME VISUAL SIZE AS CURRENT HEADER
   ========================================================= */

.header__inner {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 145px;
  height: 52px;

  flex-shrink: 0;

  margin: 0;
  padding: 0;

  text-decoration: none;
}

.header-logo {
  display: block;

  width: 145px;
  height: 52px;

  max-width: 145px;
  max-height: 52px;

  object-fit: contain;
  object-position: left center;

  margin: 0;
  padding: 0;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

  .brand {
    width: 145px;
    height: 52px;
  }

  .header-logo {
    width: 145px;
    height: 80px;
    max-width: 145px;
    max-height: 80px;
  }

}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (min-width: 1025px) and (max-width: 1199px) {

  .brand {
    width: 140px;
    height: 50px;
  }

  .header-logo {
    width: 140px;
    height: 50px;
    max-width: 140px;
    max-height: 50px;
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

  .brand {
    width: 135px;
    height: 48px;
  }

  .header-logo {
    width: 135px;
    height: 48px;
    max-width: 135px;
    max-height: 48px;
  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (min-width: 577px) and (max-width: 768px) {

  .brand {
    width: 130px;
    height: 46px;
  }

  .header-logo {
    width: 130px;
    height: 46px;
    max-width: 130px;
    max-height: 46px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

  .brand {
    width: 125px;
    height: 44px;
  }

  .header-logo {
    width: 125px;
    height: 44px;
    max-width: 125px;
    max-height: 44px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

  .brand {
    width: 115px;
    height: 42px;
  }

  .header-logo {
    width: 115px;
    height: 42px;
    max-width: 115px;
    max-height: 42px;
  }

}