/* ================= HEADER ================= */

/* Header layout */
.main-head {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 40px;
  flex-wrap: nowrap !important;
}

/* CTA (PHONE + EMAIL INLINE) */
.main-head .cta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
  width: auto !important;
  max-width: none !important;
}

/* Each item */
.main-head .cta .line {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
}

/* Remove any breaks */
.main-head .cta br {
  display: none !important;
}

/* ===== BUTTON STYLING ===== */
.main-head .cta .line a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Phone button */
.main-head .cta .phone a {
  background: #0a2540;
  color: #fff;
  border: 1px solid #0a2540;
}

.main-head .cta .phone a:hover {
  background: #163a5f;
  border-color: #163a5f;
}

/* Email button */
.main-head .cta .line.-label a {
  background: #f5f7fa;
  color: #0a2540;
  border: 1px solid #dcdfe3;
}

.main-head .cta .line.-label a:hover {
  background: #e9edf2;
  border-color: #cfd6dd;
}

/* Hide CTA on mobile */
@media (max-width: 768px) {
  .main-head .cta {
    display: none !important;
  }
}

/* ================= NAV BAR ================= */

.new-nav {
  background: #0a2540;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Full width */
.nav-container {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;   /* slightly reduced from 40px */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Menu */
.nav-menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  list-style: none;
}

/* Items */
.nav-menu li {
  position: relative;
}

/* Links */
.nav-menu a {
  color: #fff;
  text-decoration: none;
    padding: 10px 10px;   /* was 18px 20px */
  font-size: 15px;      /* slightly smaller */
  font-weight: 600;
  display: block;
  transition: all 0.25s ease;
  border-radius: 6px;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.12);
}

/* ================= DROPDOWN ================= */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  display: none;
  min-width: 260px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  padding: 6px 0;
  z-index: 9999;
}

/* Dropdown links */
.submenu li a {
  color: #333;
  padding: 12px 16px;
  font-size: 14px;
}

.submenu li a:hover {
  background: #f5f7fa;
}

/* Show dropdown */
.has-sub:hover .submenu {
  display: block;
}

/* Fix flicker */
.has-sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

/* CTA button */
.nav-menu .cta a {
  background: #ffcc00;
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  
}

.nav-menu .cta a:hover {
  background: #e6b800;
}

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

.nav-toggle {
  display: none;
  font-size: 26px;
  background: #ffcc00;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
}

/* Mobile layout */
@media (max-width: 768px) {

  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0a2540;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Mobile submenu */
  .submenu {
    position: static;
    display: none;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .submenu a {
    color: #000;
    padding-left: 20px;
  }

  .submenu a:hover {
    background: #f2f2f2;
  }

  .has-sub.open .submenu {
    display: block;
  }

  /* Contact button */
  .nav-menu .cta {
    display: block;
  }

  .nav-menu .cta a {
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    text-align: center;
  }
}