/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



@font-face {
  font-family: 'Gotham-Bold'; 
  src: url('fonts/Gotham-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Gotham-black", Arial, sans-serif;
}

html,body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Topbar */
.topbar {
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .left {
  display: flex;
  gap: 20px;
}
.topbar .right a {
  margin-left: 15px;
  text-decoration: none;
  color: #e5e7eb;
}
.topbar .right a:hover {
  color: white;
}

/* =========================================================
   NAVBAR BASE
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 9999 !important;
}

.navbar-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */
.logo img {
  height: 50px;
  object-fit: contain;
}

/* =========================================================
   NAV LINKS
========================================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a,
.nav-links button {
  text-decoration: none;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #CB0100;
}

/* =========================================================
   DROPDOWN BASE
========================================================= */
.dropdown,
.vmi-collective,
.account-dropdown {
  position: relative;
}

/* Chevron animation */
.dropdown i,
.vmi-collective i,
.account-trigger i {
  transition: transform 0.3s ease;
}
.dropdown:hover .chevron-icon,
.vmi-collective:hover .chevron-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* =========================================================
   STANDARD DROPDOWN
========================================================= */
.dropdown-content {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000 !important;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: #333;
}

.dropdown-content a:hover {
  background: #f8f9fa;
  color: #CB0100;
}

/* =========================================================
   SERVICES MEGA MENU
========================================================= */
.vmi-collective {
  position: static;
}

.vmi-collective .mega-menu {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 100%;
  
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s ease;
  z-index: 10000 !important;
}

.vmi-collective:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Quick services row */
.simple-services {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}

.menu-title {
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: #CB0100;
}

.simple-services a {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.simple-services a:hover {
  background: #f8f9fa;
  color: #CB0100;
  transform: translateY(-2px);
}

/* Divider */
.menu-divider {
  height: 1px;
  background: #e9ecef;
  margin: 20px 0;
}

/* =========================================================
   MEGA GRID
========================================================= */
.mega-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.mega-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: #CB0100;
  border-bottom: 2px solid #CB0100;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.mega-column a {
  font-size: 13px;
  padding: 6px 0;
  color: #555;
}

.mega-column a:hover {
  color: #CB0100;
  padding-left: 8px;
}

/* Highlight column */
.mega-column-highlight {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #CB0100;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #CB0100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.social-links a:hover {
  background: #CB0100;
  color: #fff;
}

/* =========================================================
   CTA BUTTON
========================================================= */
.btn-primary {
  padding: 10px 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #CB0100, #a80000);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(203,1,0,0.3);
}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */
.account-trigger {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.account-menu {
  position: absolute;
  right: 0;
  top: 120%;
  width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 10000 !important;
}

.account-dropdown.open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu a,
.account-menu button {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
  background: #f8f9fa;
  color: #CB0100;
}

/* =========================================================
   HAMBURGER MENU BUTTON
========================================================= */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: #CB0100;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: #CB0100;
}

/* =========================================================
   MOBILE MENU
========================================================= */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: calc(100vh - 70px);
  background: #fff;
  box-shadow: -3px 0 15px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9998;
  overflow-y: auto;
  padding-bottom: 20px;
}

.mobile-menu.show {
  right: 0;
}

/* Direct links in mobile menu */
.mobile-menu > a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-menu > a:hover {
  background: #f8f9fa;
  color: #CB0100;
  padding-left: 25px;
}

/* =========================================================
   MOBILE DROPDOWN
========================================================= */
.mobile-dropdown {
  border-bottom: 1px solid #eee;
}

.mobile-dropdown-toggle {
  width: 100%;
  padding: 15px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
  background: #f8f9fa;
  color: #CB0100;
}

.mobile-dropdown-toggle i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

/* Mobile dropdown content */
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 2000px;
}

.mobile-dropdown-content > a {
  display: block;
  padding: 12px 20px 12px 35px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.mobile-dropdown-content > a:hover {
  background: #fff;
  color: #CB0100;
  padding-left: 40px;
}

/* =========================================================
   MOBILE SUBMENU (for services categories)
========================================================= */
.mobile-submenu {
  margin: 10px 0;
  padding: 10px 20px;
  background: #fff;
  border-left: 3px solid #CB0100;
}

.mobile-submenu-title {
  font-weight: 700;
  font-size: 13px;
  color: #CB0100;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e9ecef;
}

.mobile-submenu a {
  display: block;
  padding: 8px 0 8px 10px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-submenu a:hover {
  color: #CB0100;
  padding-left: 15px;
}

.mobile-submenu a i {
  margin-right: 6px;
  font-size: 12px;
}

/* Highlighted submenu (resources) */
.mobile-submenu-highlight {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
}

/* =========================================================
   MOBILE AUTH LINKS
========================================================= */
#mobileAuthLinks {
  margin: 10px 0;
  padding: 10px 0;
  border-top: 2px solid #e9ecef;
  border-bottom: 2px solid #e9ecef;
}

#mobileAuthLinks a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

#mobileAuthLinks a:hover {
  background: #f8f9fa;
  color: #CB0100;
}

.mobile-btn-primary {
  background: linear-gradient(135deg, #CB0100, #a80000) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin: 10px 20px;
  padding: 12px 20px !important;
  border-radius: 8px;
  text-align: center;
}

.mobile-logout-btn {
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  text-align: left;
  color: #CB0100;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.mobile-logout-btn:hover {
  background: #f8f9fa;
}

/* =========================================================
   MOBILE SOCIAL LINKS
========================================================= */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  margin-top: 10px;
}

.mobile-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #CB0100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.mobile-social a:hover {
  background: #CB0100;
  color: #fff;
  transform: scale(1.1);
}

/* =========================================================
   MOBILE CONTACT INFO
========================================================= */
.mobile-contact {
  padding: 15px 20px;
  background: #f8f9fa;
  margin: 10px 0;
}

.mobile-contact a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.mobile-contact a i {
  margin-right: 10px;
  color: #CB0100;
  width: 20px;
}

.mobile-contact a:hover {
  color: #CB0100;
}

/* =========================================================
   OVERLAY
========================================================= */
.overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9997;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   AUTH LINKS FIX
========================================================= */
#authLinks {
  display: flex;
  align-items: center;
  gap: 14px;
}

#authLinks a {
  white-space: nowrap;
}

#authLinks .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #CB0100 !important;
  color: #ffffff !important;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 1024px) {
  .mega-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: flex;
  }

  .navbar-container {
    padding: 0 15px;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 100%;
    max-width: 100vw;
  }

  .logo img {
    height: 35px;
  }
}

