
/* ============================= */
/* Haio Navigation Menu Styles  */
/* ============================= */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ====================== */
/* NAVBAR STYLES          */
/* ====================== */

.navbar {
  height: 100px;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #fff;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1050;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.navbar-brand {
  height: 100px;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 100px !important;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

/* ====================== */
/* NAV LINKS              */
/* ====================== */

.navbar-nav {
  height: 100px;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  height: 100px;
  line-height: 100px;
  padding: 0 1rem;
  color: #fff;
  font-weight: 500;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: green;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

/* ====================== */
/* DROPDOWN MEGA MENU     */
/* ====================== */

.nav-item.dropdown {
  position: relative;
}

.dropdown-mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  padding: 3rem 2rem;
  background: #fff;
  display: none;
  z-index: 999;
  border-top: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-item.dropdown:hover .dropdown-mega {
  display: block;
}

/* ======================= */
/* MEGA MENU GRID LAYOUT   */
/* ======================= */
/* Mega Menu Inner Layout */
.mega-menu-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
  align-items: flex-start;
}

/* Left section (main link groups) */
.mega-menu-left {
  display: flex;
  flex: 3;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Individual section */
.mega-menu-section {
  flex: 1 1 200px;  /* Grow, shrink, min width */
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

/* Optional: Add consistent spacing */
.mega-menu-section h6 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

/* Wrap Transport Services into 2 columns */
.transport-section .transport-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 400px; /* Optional, controls wrap width */
}

.transport-section .mega-link {
  width: calc(50% - 0.75rem); /* Two columns */
}

/* ======================= */
/* MEGA MENU LINKS         */
/* ======================= */

.mega-menu-section {
  flex: 1;
}

.mega-menu-section h6 {
  font-size: 0.8rem;
  font-weight: bold;
  color: #888;
  text-transform: uppercase;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #111;
  text-decoration: none;
}


.mega-link:hover {
  color: GREEN;
}

.mega-link i {
  color: #555;
  transition: color 0.3s ease;
}

.mega-link:hover i {
  color: green;
}

.mega-link span {
  font-weight: 600;
  font-size: 0.95rem;
}

.mega-link small {
  display: block;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

/* Promo box */
.promo-box {
  background-color: #fdf9f5;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.85rem;
}

.promo-box h6 {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #444;
}

.promo-box p {
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.promo-box a {
  font-size: 0.85rem;
  color: #0056d2;
  text-decoration: none;
}

.promo-box a:hover {
  text-decoration: underline;
}

/* Default: Transparent Navbar */
.scroll-navbar {
  transition: background-color 0.3s ease;
  background-color: transparent;
}

/* When scrolled */
.scroll-navbar.scrolled {
    background: linear-gradient(to right, #2bb52b, #0aa954) !important;
}

.scroll-navbar.scrolled {
  background-color: #000 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ======================= */
/* RESPONSIVE FIXES        */
/* ======================= */

@media (max-width: 992px) {
  .dropdown-mega {
    position: static;
    width: 100%;
    padding: 2rem 1rem;
    box-shadow: none;
    border-top: none;
  }

  .navbar-brand img {
    height: 60px;
  }

  .navbar {
    height: auto;
    flex-wrap: wrap;
  }

  .navbar-nav .nav-link {
    height: auto;
    line-height: 1.5;
    padding: 0.75rem 1rem;
  }
}


/* Shared Mobile Header Style */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  height: 100px; /* Uniform height */
}

/* Mobile Logo */
.logo-mobile {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Slide-in mobile header styling */
#mobileMenu .mobile-header {
  border-bottom: 1px solid #e9ecef;
}

/* Adjust accordion spacing inside menu */
#mobileMenu .accordion-button {
  padding: 1rem;
  font-weight: 500;
}

/* Prevent overlap inside accordion toggle */
.accordion-button::after {
  margin-left: auto;
}

#mobileMenu .accordion-body {
  padding: 0 1rem 1rem 1rem;
}

/* Remove underline on mobile accordion links */
.accordion-body a {
  text-decoration: none !important;
  display: block;
  margin-bottom: 1rem; /* adds spacing between each item */
  color: #000; /* optional: ensure readable color */
  margin-top: 1rem;
}

.accordion-body small {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.accordion-body a:hover {
  color: #555;
}
