/* =====================================================
   HEADER
===================================================== */

.main-header {
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.main-header.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   NAV WRAPPER
===================================================== */

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

/* =====================================================
   NAV LINKS
===================================================== */

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: #111;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

/* underline hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e4002b;
  transition: width 0.3s ease;
}

.nav-links li:hover > a::after {
  width: 100%;
}

.nav-links a:hover {
  color: #e4002b;
}

/* =====================================================
   CTA
===================================================== */

.nav-cta {
  background: #e4002b;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
}

.nav-cta:hover {
  background: #c80025;
  transform: translateY(-1px);
}

/* =====================================================
   MEGA MENU
===================================================== */

.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 25px);
  width: min(1120px, 96vw);
  background: #ffffff;
  padding: 55px 60px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 998;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* hover gap */
.has-mega::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 30px;
}

/* =====================================================
   GRID
===================================================== */

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 50px;
}

/* =====================================================
   TITLES
===================================================== */

.mega-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mega-title h4 {
  font-size: 17px;
  font-weight: 700;
}

.mega-title i {
  font-size: 26px;
  color: #e4002b;
}

/* =====================================================
   LINKS
===================================================== */

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col ul li {
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  color: #333;
  transition: 0.25s ease;
}

.mega-col ul li:hover {
  color: #e4002b;
  padding-left: 6px;
}

/* =====================================================
   INDUSTRIES / ABOUT
===================================================== */

.industries-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.industry-item,
.about-item {
  padding: 26px;
  border-radius: 16px;
  transition: 0.3s ease;
  cursor: pointer;
}

.industry-item:hover,
.about-item:hover {
  background: #f8f8f8;
  transform: translateY(-4px);
}

.industry-item i,
.about-item i {
  font-size: 28px;
  color: #e4002b;
  margin-bottom: 12px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
  .mega-menu {
    padding: 45px 40px;
  }
}

@media (max-width: 991px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
}
