/* Header base styles copied 1:1 from NavigationHeader.vue <style> */

.hide_langs {
  display: none !important;
  scroll-behavior: smooth;
}

.company:hover {
  height: 40px;
}
.navbar-nav li:hover > ul.dropdown-menu {
  display: block;
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
  text-decoration: underline;
  transform: rotate(-90deg);
}
.results {
  display: flex;
  flex-direction: column;
}

.result {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e8ed;
  padding: 10px;
  margin-bottom: 10px;
}

.search-input {
  margin-bottom: 15px;
}

.result-title {
  font-family: "XMH Flama-Medium";
  font-size: 20px;
}

.result-description {
  font-family: "XMH Flama-Book";
  font-size: 15px;
}

.search-container button {
  padding: 6px 15px;
  font-size: 17px;
  border: none;
  cursor: pointer;
  background: white;
}

button img {
  width: 15px;
}

.search-container button:hover {
  background: #ccc;
}

.language-mobile {
  color: white;
  margin-left: 120px;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  background: none;
  font-size: 22px;
}

.language-mobile:focus {
  color: #00aad7 !important;
}

.nav-menu {
  width: 510px;
  justify-content: space-between;
}

.navigation__header {
  width: 100%;
  background-color: #252525;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.custom-nav {
  width: 160px;
  display: flex;
  justify-content: space-between;
}

.navbar-brand {
  height: 60px;
}

.nav-link {
  color: #cacaca !important;
}

.nav-link:focus-visible {
  outline: none !important;
}

.navbar-collapse {
  display: flex;
  justify-content: center;
}

.s-icon {
  padding-bottom: 10px;
  width: 9%;
}

.navbar-toggler {
  border: none !important;
  padding: 19px 10px 0px 10px !important;
}

.navigation__header-main {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.navbar {
  width: 1171px;
  padding: 0 !important;
}

.navbar-expand-lg {
  display: flex;
  justify-content: space-between !important;
}

.social-media {
  display: flex;
  justify-content: space-between;
  filter: brightness(0) invert(1);
  width: 100%;
}

.social-media-icon {
  width: 15px !important;
  height: 15px !important;
}

.nav-item a {
  font-size: 14px;
  text-transform: uppercase;
  font-family: "XMH Flama-Book";
}

.nav__services {
  font-size: 14px;
  text-transform: uppercase;
}

.nav-item span {
  font-family: "XMH Flama-Book";
  color: #cacaca;
}

.dropdown-menu {
  background-color: #595959 !important;
  width: 395px !important;
  padding: 5px !important;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2) !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0.4rem 0 0 !important;
}

.dropdown-menu a {
  color: #cacaca;
  padding: 3px 13px;
  text-decoration: none !important;
  display: block;
  font-family: "XMH Flama-Book";
  font-size: 12px !important;
}

.dropdown-menu li a:hover {
  color: #dddddd;
}

.nav-item {
  padding-bottom: 20px;
  font-family: "XMH Flama-Book";
}

.nav-item:hover {
  background-color: #595959;
}

.navigation__header-topbar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.navigation__header-item {
  width: 1171px;
  color: white;
  display: flex;
  justify-content: flex-end;
}

#mobile-languages {
  width: 75%;
  display: flex;
  justify-content: flex-end;
}

.navigation__header-search img {
  filter: brightness(0) invert(1);
  width: 18px;
  height: 18px;
}

.navigation__header-search {
  background-color: #00aad6;
  padding: 15px 10px 5px 10px;
  margin-top: -10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
}

.dropdown-toggle::after {
  display: none !important;
}

.active-class {
  background-color: #595959;
  padding-right: 21px !important;
  padding-left: 21px !important;
  padding-bottom: 6px !important;
  padding-top: 6px !important;
}

@media (min-width: 992px) {
  .nav-menu {
    height: 40px;
  }
  .dropdown-menu {
    top: 44px !important;
  }
  .language-mobile,
  .search-mobile,
  .languages-mobile,
  .search-container {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * WordPress <-> Vue parity overrides
 * -------------------------------------------------------------------------*/

/* pll/wp menu outputs <ul><li class="menu-item"><a>…</a></li></ul>.
 * The Vue design used .nav-item > .nav-link. Map both. */
.navigation__header .nav-menu,
.navigation__header .nav-menu > li,
.navigation__header .nav-menu .menu-item {
  list-style: none;
}
.navigation__header .nav-menu {
  padding: 0;
  margin: 0;
  display: flex;
}
.navigation__header .nav-menu > li.menu-item,
.navigation__header .nav-menu > li.nav-item {
  padding-bottom: 20px;
  font-family: "XMH Flama-Book";
}
.navigation__header .nav-menu > li.menu-item > a,
.navigation__header .nav-menu > li.nav-item > a {
  color: #cacaca !important;
  font-size: 14px;
  text-transform: uppercase;
  font-family: "XMH Flama-Book";
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  display: inline-block;
}
.navigation__header .nav-menu > li.menu-item:hover {
  background-color: #595959;
}

/* Language switcher — horizontal row of links (avinci.ro parity). */
#switch-language {
  overflow: hidden !important;
  width: 100%;
}
.langs-select {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  color: #fff;
  overflow: hidden !important;
  height: 35px;
  padding: 5px 0;
  margin: -5px -20px -5px -5px;
  border-bottom: 1px solid #a4a4a3;
  text-transform: uppercase;
}
.langs-select__link {
  display: inline-block;
  font-size: 14px;
  padding: 0 5px;
  background: none;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}
.langs-select__link:hover,
.langs-select__link:focus {
  color: #fff;
  text-decoration: none;
}
.langs-select__link.is-active {
  color: #259bc3 !important;
}
@media (max-width: 992px) {
  .langs-select {
    border-bottom: none !important;
    margin: 0 !important;
  }
}

/* Footer: kill default browser <hr> (parent theme no longer loaded) */
.navigation__footer hr {
  background-color: transparent;
  color: inherit;
  height: 0;
  border: 0;
  border-top: 1px solid;
}
.navigation__footer .separator-first {
  border-top-color: #e0e0e0;
  opacity: 0.1;
}
.navigation__footer .separator-second {
  width: 48px;
  margin-top: -1px;
  margin-left: 0;
  opacity: 1;
  border-top: 2px solid rgb(0, 170, 214);
  background-color: rgb(0, 170, 214);
}

/* Footer about-us list — kill parent-theme list defaults */
.navigation__footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.navigation__footer a {
  text-decoration: none !important;
}

/* Reserve space for the WP admin bar (so sticky-top header isn't hidden
 * under it when logged-in). */
.admin-bar .navigation__header.sticky-top {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .navigation__header.sticky-top {
    top: 46px;
  }
}

/* Hide mobile-only elements on desktop (bootstrap .navbar-expand-lg already
 * handles .navbar-toggler, but we double-ensure) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler,
  .mobile-right-menu {
    display: none !important;
  }
}

/* ---------- Homepage additions (partners marquee + history drag) ---------- */
.avinci-marquee {
  overflow: hidden;
  width: 100%;
}
.avinci-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: avinci-marquee 40s linear infinite;
}
.avinci-marquee-track .item {
  flex: 0 0 auto;
  width: 250px;
}
.avinci-marquee-track .item-img {
  display: flex;
  justify-content: center;
  width: 100%;
}
.avinci-marquee-track .item-img img {
  max-width: 100%;
  height: auto;
}
@keyframes avinci-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

#avinci-history-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  cursor:
    url("../images/drag_img_color.png") 10 3,
    auto;
  scrollbar-width: none;
}
#avinci-history-scroll::-webkit-scrollbar {
  display: none;
}
#avinci-history-scroll.is-dragging {
  cursor: grabbing;
}

/* Bootstrap 4 carousel-caption wants right/bottom: auto – already set inline via original CSS */

/* ---------- Homepage root layout (ported from HomePage.vue <style scoped>) ---------- */
.avinci-home {
  width: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.avinci-home .content {
  width: 1171px;
  align-self: center;
  max-width: 100%;
}
.avinci-home .content__values {
  margin: 20px 0 30px 10px;
  width: 1171px;
  max-width: 100%;
  align-self: center;
}
.avinci-home .content__services {
  margin: 55px 0 30px 0 !important;
}
.avinci-home .content__services__services-presentation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 30px;
}
.avinci-home .content__services__description img {
  width: 370px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.avinci-home .container__slider {
  width: 100%;
  max-width: 100%;
}
.avinci-home .avinci-home-slider {
  width: 100%;
  max-width: 100%;
  position: relative;
}
.avinci-home .avinci-home-slider .carousel-item img.d-block {
  width: 100%;
  height: 588px;
  object-fit: cover;
}
@media (max-width: 1366px) {
  .avinci-home .content,
  .avinci-home .content__values,
  .avinci-home .portfolio__home,
  .avinci-home .navigation__footer-content {
    width: 85% !important;
  }
}
@media (max-width: 992px) {
  .avinci-home .content__services__services-presentation {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .avinci-home .avinci-home-slider .carousel-item img.d-block {
    height: 375px;
  }
}
@media (max-width: 600px) {
  .avinci-home .content__services__services-presentation {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .avinci-home .avinci-home-slider .carousel-item img.d-block {
    height: 310px;
  }
}
