/* Outsourcea Main Menu v1.7 - Slightly Smaller */
.osmm-header {
  --osmm-normal-bg: #000000;
  --osmm-normal-text: #ffffff;
  --osmm-scrolled-bg: rgba(255,255,255,0.96);
  --osmm-scrolled-text: #444444;
  --osmm-accent: #00A651;
  --osmm-width: 1280px;
  --osmm-scrolled-width: 1060px;
  --osmm-dropdown-width: 290px;

  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 999999;
  padding: 0 20px;
  pointer-events: none;
  transition: top .28s ease, padding .28s ease;
  font-family: inherit;
}

.admin-bar .osmm-header { top: 50px; }

.osmm-header.is-scrolled {
  top: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.admin-bar .osmm-header.is-scrolled { top: 32px; }

.osmm-header *,
.osmm-header *::before,
.osmm-header *::after {
  box-sizing: border-box;
}

.osmm-shell {
  max-width: var(--osmm-width);
  width: 100%;
  height: 72px;
  margin: 0 auto;
  padding: 0 16px 0 24px;
  border-radius: 999px;
  background: var(--osmm-normal-bg);
  color: var(--osmm-normal-text);
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  pointer-events: auto;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  transition: max-width .32s ease, background .25s ease, color .25s ease, height .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease, padding .25s ease;
}

.osmm-header.is-scrolled .osmm-shell {
  max-width: var(--osmm-scrolled-width);
  height: 68px;
  padding: 0 14px 0 22px;
  background: var(--osmm-scrolled-bg);
  color: var(--osmm-scrolled-text);
  border-color: rgba(0,0,0,.09);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0,0,0,.08);
}

.osmm-logo {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  text-decoration: none !important;
  color: currentColor !important;
}

.osmm-logo img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
  transition: max-width .25s ease, max-height .25s ease;
}

.osmm-header.is-scrolled .osmm-logo img {
  max-width: 178px;
  max-height: 40px;
}

.osmm-logo-scrolled { display: none !important; }
.osmm-header.is-scrolled .osmm-logo-normal { display: none !important; }
.osmm-header.is-scrolled .osmm-logo-scrolled { display: block !important; }

.osmm-logo-text {
  color: currentColor;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.osmm-logo-text span {
  color: var(--osmm-accent);
  font-style: italic;
}

.osmm-nav {
  min-width: 0;
}

.osmm-menu,
.osmm-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.osmm-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.35vw, 24px);
}

.osmm-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.osmm-menu a {
  color: currentColor !important;
  text-decoration: none !important;
}

.osmm-menu > li > a {
  font-size: clamp(14px, .92vw, 17px);
  line-height: 1;
  font-weight: 500;
  opacity: .88;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 26px 0;
  white-space: nowrap;
  transition: opacity .2s ease, color .2s ease, font-size .25s ease;
}

.osmm-header.is-scrolled .osmm-menu > li > a {
  font-size: clamp(14px, .9vw, 16px);
  opacity: .86;
}

.osmm-menu > li:hover > a,
.osmm-menu > li.current-menu-item > a,
.osmm-menu > li.current-menu-ancestor > a {
  opacity: 1;
  color: var(--osmm-accent) !important;
}

.osmm-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .72;
  transition: transform .2s ease;
}

.osmm-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg) translateY(-1px);
}

.osmm-menu .sub-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(14px) scale(.98);
  width: var(--osmm-dropdown-width);
  padding: 11px !important;
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  color: #191919;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.osmm-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
}

.osmm-menu li:hover > .sub-menu,
.osmm-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.osmm-menu .sub-menu li {
  position: relative;
}

.osmm-menu .sub-menu a {
  display: grid;
  grid-template-columns: 9px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #202020 !important;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.osmm-menu .sub-menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--osmm-accent);
  opacity: .7;
}

.osmm-menu .sub-menu a:hover,
.osmm-menu .sub-menu .current-menu-item > a {
  background: rgba(0,166,81,.09);
  color: var(--osmm-accent) !important;
  transform: translateX(2px);
}

.osmm-menu .sub-menu .sub-menu {
  left: 100%;
  top: 0;
  transform: translateX(10px) scale(.98);
}

.osmm-menu .sub-menu li:hover > .sub-menu,
.osmm-menu .sub-menu li:focus-within > .sub-menu {
  transform: translateX(0) scale(1);
}

.osmm-hide-home-desktop .osmm-menu > li:first-child {
  display: none;
}

.osmm-cta {
  min-width: 136px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--osmm-accent);
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, .92vw, 17px);
  line-height: 1;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, height .25s ease, min-width .25s ease;
  white-space: nowrap;
}

.osmm-header.is-scrolled .osmm-cta {
  height: 48px;
  min-width: 128px;
}

.osmm-cta:hover {
  transform: translateY(-2px);
  background: #009747;
}

.osmm-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: currentColor;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.osmm-header.is-scrolled .osmm-toggle {
  background: rgba(0,0,0,.06);
}

.osmm-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

.osmm-header.menu-open .osmm-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.osmm-header.menu-open .osmm-toggle span:nth-child(2) { opacity: 0; }
.osmm-header.menu-open .osmm-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) {
  .osmm-shell {
    max-width: calc(100vw - 52px);
  }

  .osmm-logo {
    min-width: 175px;
  }

  .osmm-logo img {
    max-width: 175px;
  }

  .osmm-menu {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .osmm-header {
    top: 12px;
    padding: 0 16px;
  }

  .admin-bar .osmm-header { top: 58px; }

  .osmm-header.is-scrolled {
    top: 8px;
    padding: 0 12px;
  }

  .admin-bar .osmm-header.is-scrolled { top: 52px; }

  .osmm-shell,
  .osmm-header.is-scrolled .osmm-shell {
    height: 66px;
    max-width: 100%;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 14px 0 22px;
    gap: 16px;
  }

  .osmm-logo { min-width: 0; }

  .osmm-logo img,
  .osmm-header.is-scrolled .osmm-logo img {
    max-width: 175px;
    max-height: 42px;
  }

  .osmm-toggle { display: inline-flex; }

  .osmm-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: var(--osmm-scrolled-bg);
    color: var(--osmm-scrolled-text);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 18px;
    display: none;
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    max-height: calc(100vh - 115px);
    overflow-y: auto;
  }

  .osmm-header.menu-open .osmm-nav { display: block; }

  .osmm-menu {
    display: block;
  }

  .osmm-menu > li,
  .osmm-menu li {
    display: block;
    width: 100%;
  }

  .osmm-menu > li > a,
  .osmm-header.is-scrolled .osmm-menu > li > a {
    color: var(--osmm-scrolled-text) !important;
    font-size: 18px;
    padding: 15px 6px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    justify-content: space-between;
    width: 100%;
  }

  .osmm-menu > li:hover > a,
  .osmm-menu > li.current-menu-item > a,
  .osmm-menu > li.current-menu-ancestor > a {
    color: var(--osmm-accent) !important;
  }

  .osmm-menu > li.menu-item-has-children > a::after,
  .osmm-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(45deg);
  }

  .osmm-menu .sub-menu,
  .osmm-menu .sub-menu .sub-menu {
    position: static;
    transform: none;
    width: 100%;
    padding: 6px 0 10px 14px !important;
    border-radius: 0;
    background: transparent;
    color: var(--osmm-scrolled-text);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .osmm-menu .sub-menu::before { display: none; }

  .osmm-menu .sub-menu a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 15px;
    color: var(--osmm-scrolled-text) !important;
    opacity: .86;
    grid-template-columns: 7px 1fr;
  }

  .osmm-menu .sub-menu a:hover,
  .osmm-menu .sub-menu .current-menu-item > a {
    background: rgba(0,166,81,.09);
    color: var(--osmm-accent) !important;
    transform: none;
  }

  .osmm-hide-home-desktop .osmm-menu > li:first-child {
    display: block;
  }

  .osmm-cta { display: none; }
}

@media (max-width: 520px) {
  .osmm-header { padding: 0 12px; }
  .osmm-logo img,
  .osmm-header.is-scrolled .osmm-logo img {
    max-width: 150px;
  }
}


/* =====================================================
   v1.6 Reference size tuning
   Matches the larger rounded menu style in the screenshot
===================================================== */

.osmm-header {
  top: 16px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.admin-bar .osmm-header {
  top: 48px !important;
}

.osmm-shell {
  max-width: min(var(--osmm-width), calc(100vw - 56px)) !important;
  height: 90px !important;
  padding: 0 20px 0 30px !important;
  gap: 34px !important;
  border-radius: 999px !important;
}

.osmm-logo {
  min-width: 230px !important;
}

.osmm-logo img {
  max-width: 225px !important;
  max-height: 56px !important;
}

.osmm-menu {
  gap: clamp(24px, 2.1vw, 42px) !important;
}

.osmm-menu > li > a {
  font-size: clamp(18px, 1.12vw, 22px) !important;
  padding-top: 35px !important;
  padding-bottom: 35px !important;
  letter-spacing: -0.2px;
}

.osmm-cta {
  min-width: 150px !important;
  height: 58px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  font-size: clamp(16px, 1vw, 18px) !important;
}

/* Scrolled state remains compact and clean */
.osmm-header.is-scrolled {
  top: 8px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.admin-bar .osmm-header.is-scrolled {
  top: 40px !important;
}

.osmm-header.is-scrolled .osmm-shell {
  max-width: min(var(--osmm-scrolled-width), calc(100vw - 48px)) !important;
  height: 76px !important;
  padding: 0 18px 0 28px !important;
}

.osmm-header.is-scrolled .osmm-logo {
  min-width: 205px !important;
}

.osmm-header.is-scrolled .osmm-logo img {
  max-width: 200px !important;
  max-height: 48px !important;
}

.osmm-header.is-scrolled .osmm-menu {
  gap: clamp(20px, 1.65vw, 32px) !important;
}

.osmm-header.is-scrolled .osmm-menu > li > a {
  font-size: clamp(16px, 1vw, 19px) !important;
  padding-top: 29px !important;
  padding-bottom: 29px !important;
}

.osmm-header.is-scrolled .osmm-cta {
  height: 54px !important;
  min-width: 140px !important;
}

/* Better dropdown position for the taller menu */
.osmm-menu .sub-menu {
  top: calc(100% - 10px) !important;
}

/* Prevent crowding when many menu items are used */
@media (max-width: 1500px) {
  .osmm-shell {
    gap: 24px !important;
  }

  .osmm-logo {
    min-width: 205px !important;
  }

  .osmm-logo img {
    max-width: 200px !important;
  }

  .osmm-menu {
    gap: clamp(16px, 1.25vw, 26px) !important;
  }

  .osmm-menu > li > a {
    font-size: clamp(15px, .98vw, 18px) !important;
  }

  .osmm-cta {
    min-width: 138px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 1280px) {
  .osmm-shell {
    max-width: calc(100vw - 44px) !important;
    height: 78px !important;
  }

  .osmm-logo {
    min-width: 175px !important;
  }

  .osmm-logo img {
    max-width: 170px !important;
    max-height: 44px !important;
  }

  .osmm-menu {
    gap: 15px !important;
  }

  .osmm-menu > li > a {
    font-size: 15px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .osmm-cta {
    min-width: 126px !important;
    height: 50px !important;
    font-size: 15px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 1024px) {
  .osmm-header,
  .osmm-header.is-scrolled {
    top: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .admin-bar .osmm-header,
  .admin-bar .osmm-header.is-scrolled {
    top: 54px !important;
  }

  .osmm-shell,
  .osmm-header.is-scrolled .osmm-shell {
    height: 70px !important;
    max-width: 100% !important;
    padding: 0 14px 0 22px !important;
  }

  .osmm-logo,
  .osmm-header.is-scrolled .osmm-logo {
    min-width: 0 !important;
  }

  .osmm-logo img,
  .osmm-header.is-scrolled .osmm-logo img {
    max-width: 170px !important;
    max-height: 42px !important;
  }
}


/* =====================================================
   v1.7 Slightly smaller tuning
   This reduces the v1.6 menu by a small amount only.
===================================================== */

.osmm-header {
  top: 16px !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
}

.admin-bar .osmm-header {
  top: 48px !important;
}

.osmm-shell {
  max-width: min(var(--osmm-width), calc(100vw - 52px)) !important;
  height: 82px !important;
  padding: 0 18px 0 28px !important;
  gap: 28px !important;
  border-radius: 999px !important;
}

.osmm-logo {
  min-width: 210px !important;
}

.osmm-logo img {
  max-width: 205px !important;
  max-height: 50px !important;
}

.osmm-menu {
  gap: clamp(20px, 1.85vw, 34px) !important;
}

.osmm-menu > li > a {
  font-size: clamp(16px, 1.02vw, 20px) !important;
  padding-top: 31px !important;
  padding-bottom: 31px !important;
  letter-spacing: -0.15px;
}

.osmm-cta {
  min-width: 144px !important;
  height: 54px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  font-size: clamp(15px, .95vw, 17px) !important;
}

/* Scrolled state: also slightly smaller */
.osmm-header.is-scrolled {
  top: 8px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.admin-bar .osmm-header.is-scrolled {
  top: 40px !important;
}

.osmm-header.is-scrolled .osmm-shell {
  max-width: min(var(--osmm-scrolled-width), calc(100vw - 44px)) !important;
  height: 72px !important;
  padding: 0 16px 0 26px !important;
}

.osmm-header.is-scrolled .osmm-logo {
  min-width: 190px !important;
}

.osmm-header.is-scrolled .osmm-logo img {
  max-width: 185px !important;
  max-height: 44px !important;
}

.osmm-header.is-scrolled .osmm-menu {
  gap: clamp(18px, 1.45vw, 28px) !important;
}

.osmm-header.is-scrolled .osmm-menu > li > a {
  font-size: clamp(15px, .92vw, 18px) !important;
  padding-top: 27px !important;
  padding-bottom: 27px !important;
}

.osmm-header.is-scrolled .osmm-cta {
  height: 50px !important;
  min-width: 132px !important;
}

.osmm-menu .sub-menu {
  width: var(--osmm-dropdown-width) !important;
  top: calc(100% - 8px) !important;
}

@media (max-width: 1500px) {
  .osmm-shell {
    gap: 22px !important;
  }

  .osmm-logo {
    min-width: 190px !important;
  }

  .osmm-logo img {
    max-width: 185px !important;
  }

  .osmm-menu {
    gap: clamp(15px, 1.15vw, 24px) !important;
  }

  .osmm-menu > li > a {
    font-size: clamp(15px, .92vw, 17px) !important;
  }

  .osmm-cta {
    min-width: 132px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 1280px) {
  .osmm-shell {
    max-width: calc(100vw - 44px) !important;
    height: 74px !important;
  }

  .osmm-logo {
    min-width: 165px !important;
  }

  .osmm-logo img {
    max-width: 160px !important;
    max-height: 42px !important;
  }

  .osmm-menu {
    gap: 13px !important;
  }

  .osmm-menu > li > a {
    font-size: 14px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .osmm-cta {
    min-width: 118px !important;
    height: 48px !important;
    font-size: 14px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 1024px) {
  .osmm-header,
  .osmm-header.is-scrolled {
    top: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .admin-bar .osmm-header,
  .admin-bar .osmm-header.is-scrolled {
    top: 54px !important;
  }

  .osmm-shell,
  .osmm-header.is-scrolled .osmm-shell {
    height: 68px !important;
    max-width: 100% !important;
    padding: 0 14px 0 22px !important;
  }

  .osmm-logo,
  .osmm-header.is-scrolled .osmm-logo {
    min-width: 0 !important;
  }

  .osmm-logo img,
  .osmm-header.is-scrolled .osmm-logo img {
    max-width: 165px !important;
    max-height: 40px !important;
  }
}
