html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif !important;
  margin: 0;
}

.o2b-header-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .o2b-header-container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .o2b-header-container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .o2b-header-container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .o2b-header-container {
    max-width: 1140px;
  }
}

.o2b-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 81px;
  display: flex;
  align-items: center;
  z-index: 1000;
  position: sticky;
  top: 0;
}

.o2b-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.o2b-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo {
  height: 54px;
}
.o2b-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.o2b-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.o2b-item {
  position: relative;
  display: flex;
  align-items: center;
}
.o2b-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.o2b-link {
  color: #515f76 !important;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 4px 6px 14px;
  text-decoration: none !important;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.o2b-drop-trigger {
  color: #515f76;
  cursor: pointer;
  font-size: 11px;
  padding: 10px 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.o2b-item:hover .o2b-link,
.o2b-item:hover .o2b-drop-trigger {
  color: #000 !important;
}
.caret {
  transition: transform 0.3s ease;
  margin-top: 1px;
}

.demo-btn {
  background: #0066ff !important;
  border-radius: 10px !important;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 500;
  border: none;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block;
}

.o2b-desktop-btn {
  display: block;
}
.o2b-mobile-btn {
  display: none;
}

.o2b-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 9999;
}

.o2b-dd-item {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  color: #364153 !important;
  text-decoration: none !important;
  position: relative;
}

.o2b-dd-item:hover {
  background: #f8fafc;
  color: #0066ff !important;
}

/* ✅ Submenu base */
.o2b-subdropdown {
  padding: 0;
} /* keep only for subdropdown container */

.o2b-sub-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  cursor: pointer;
}
.o2b-dd-link {
  font-size: 15px;
  color: #364153 !important;
  text-decoration: none !important;
  flex: 1;
}
.o2b-sub-drop-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
  cursor: pointer;
}
.sub-caret {
  transition: transform 0.25s ease;
  font-size: 12px;
  color: #515f76;
}

/* ✅ Desktop nested submenu alignment fix */
.o2b-submenu {
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.2s ease;
  z-index: 10000;
}

.o2b-sub-item {
  display: block;
  padding: 10px 22px;
  font-size: 14.5px;
  color: #364153 !important;
  text-decoration: none !important;
}
.o2b-sub-item:hover {
  background: #f8fafc;
  color: #0066ff !important;
}

@media (min-width: 992px) {
  .o2b-dropdown:hover .o2b-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .o2b-drop-trigger {
    pointer-events: none;
  }

  .o2b-subdropdown:hover .o2b-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .o2b-sub-drop-trigger {
    pointer-events: none;
  }
}

.o2b-toggle {
  display: none;
}
.o2b-burger {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}
.o2b-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #364153;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#o2bMenuToggle:checked ~ .o2b-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#o2bMenuToggle:checked ~ .o2b-burger span:nth-child(2) {
  opacity: 0;
}
#o2bMenuToggle:checked ~ .o2b-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .o2b-burger {
    display: flex;
  }
  .o2b-desktop-btn {
    display: none;
  }

  .o2b-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
  }

  #o2bMenuToggle:checked ~ .o2b-menu {
    max-height: 90vh;
    opacity: 1;
    padding: 10px 0;
  }

  .o2b-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .o2b-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .o2b-link-wrapper {
    width: 100%;
    justify-content: space-between;
    padding-right: 0;
  }
  .o2b-link {
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
  }
  .o2b-drop-trigger {
    padding: 12px 20px;
    font-size: 14px;
  }

  .o2b-dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: block;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid #0066ff;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease-in-out;
    background: #f9fbff;
  }

  /* ✅ FIX: do NOT zero padding for all dd items */
  .o2b-dropdown-menu > a.o2b-dd-item {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border-bottom: 1px solid #f1f1f1;
    background: transparent;
  }

  /* ✅ keep your original dropdown open */
  #srvDrop:checked ~ .o2b-dropdown-menu {
    max-height: 1000px;
  }
  #srvDrop:checked ~ .o2b-link-wrapper .caret {
    transform: rotate(180deg);
  }

  /* ✅ Mobile submenu accordion aligned */
  .o2b-subdropdown {
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
  }

  .o2b-sub-link-wrapper {
    padding: 12px 20px 12px 40px;
    background: transparent;
  }

  .o2b-submenu {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #ffffff;
  }

  #odooSubDrop:checked ~ .o2b-submenu {
    max-height: 800px;
  }

  .o2b-sub-item {
    padding: 12px 20px 12px 60px;
    border-top: 1px solid #f1f1f1;
  }

  #odooSubDrop:checked ~ .o2b-sub-link-wrapper .sub-caret {
    transform: rotate(90deg);
  }

  .o2b-mobile-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
  }
  .o2b-mobile-btn .demo-btn {
    width: 100%;
    text-align: center;
  }
}
