* {
  box-sizing: border-box;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  z-index: 100 !important;
}

.header.wp-block-template-part {
  z-index: 100 !important;
}

header {
  z-index: 1000 !important;
}

.navbar {
  color: #e9f0ec;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #000000;
  transition: background 0.3s ease, background-color 0.3s ease;
}

.navbar--transparent {
  background: transparent !important;
  background-color: transparent !important;
}

.navbar--transparent[style*="background-color"] {
  background: transparent !important;
  background-color: transparent !important;
}

.navbar--transparent.menu-open {
  background: #000000 !important;
}

/* Black background on blog pages */
.navbar--blog-page {
  background-color: #000000 !important;
}

.navbar--has-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.navbar--has-color {
  background-repeat: no-repeat;
}

/* Background when scrolling */
.navbar--scrolled {
  background: #000000B2 !important;
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 clamp(30px, 5vw, 60px);
}
.navbar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  padding: 10px 0;
  position: relative;
  z-index: 1002;
}
.navbar img {
  width: 100px;
  height: auto;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.navbar__main {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-height: 64px;
}

.hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-icon,
.hamburger-close {
  position: absolute;
  width: 24px;
  height: 24px;
  color: #e9f0ec;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hamburger-close {
  opacity: 0;
  transform: rotate(90deg);
}

.hamburger.active .hamburger-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

.hamburger.active .hamburger-close {
  opacity: 1;
  transform: rotate(0deg);
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 0;
  height: 30px;
}

.menu__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
}
.menu__item--mobile-only {
  display: none;
}

.btn--desktop {
  display: inline-flex;
  align-self: center;
}

.btn--mobile {
  display: none;
}

.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 4px;
  color: #FFF;
  text-align: center;
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  height: 30px;
}
.menu__link:hover {
  color: #2ecc71;
}
.menu__link.btn.btn--cta.btn--desktop:hover {
  color: #000;
  background: var(--Adlook-Green, #2ECC71);
  transform: none;
}

.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #c6d4ce;
  border-bottom: 1.5px solid #c6d4ce;
  transform: rotate(45deg);
  transform-origin: center center;
  transition: border-color 0.2s ease;
  margin-left: 2px;
}

.menu__item .submenu-bar {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1s ease;
  overflow: hidden;
  z-index: 9998;
}
.menu__item.active .submenu-bar {
  grid-template-rows: 1fr;
}

.submenu {
  max-width: 1260px;
  margin-left: calc((100vw - 1260px) / 2);
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
  transition: padding 1s ease;
}
.submenu a {
  display: inline-block;
  align-items: center;
  margin-right: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  border-radius: 4px;
  transition: opacity 0.4s ease, color 0.2s ease;
}
.submenu a:hover {
  color: #2ecc71;
}
.submenu a:nth-child(1) {
  transition-delay: 0.8s;
}
.submenu a:nth-child(2) {
  transition-delay: 0.83s;
}
.submenu a:nth-child(3) {
  transition-delay: 0.86s;
}
.submenu a:nth-child(4) {
  transition-delay: 0.89s;
}
.submenu a:nth-child(5) {
  transition-delay: 0.92s;
}
.submenu a:nth-child(6) {
  transition-delay: 0.95s;
}
.submenu a:nth-child(7) {
  transition-delay: 0.98s;
}
.submenu a:nth-child(8) {
  transition-delay: 1.01s;
}

.submenu-bar.active .submenu {
  padding: 12px 20px;
}
.submenu-bar.active .submenu a {
  opacity: 1;
}

@media (max-width: 1260px) {
  .submenu {
    margin-left: 0;
    margin-right: 0;
  }
}
.menu__item.has-sub.active .caret {
  transform: rotate(-135deg);
  border-color: #2ecc71;
}

.menu__item.has-sub.active .menu__link {
  border-color: #2ecc71;
}

.btn {
  display: flex;
  height: 30px;
  padding: 0 23px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.btn--cta {
  background: var(--Adlook-Green, #2ECC71);
  color: #000;
  text-align: center;
  transition: transform 0.12s ease, background 0.12s ease;
}

@media (max-width: 1060px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Force transparent background on homepage mobile */
  .navbar.navbar--transparent:not(.menu-open) {
    background: transparent !important;
    background-color: transparent !important;
  }
  
  .navbar.navbar--transparent:not(.menu-open)[style*="background-color"] {
    background: transparent !important;
    background-color: transparent !important;
  }
  .navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: transparent;
    z-index: 1002;
  }
  .hamburger {
    display: flex;
    z-index: 1003;
    position: relative;
  }
  .navbar__brand {
    z-index: 1003;
    position: relative;
  }
  .menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent !important;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    z-index: 998;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  }
  .menu.active {
    display: flex;
    transform: translateY(0);
    padding: 40px 30px 40px 30px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.98) !important;
  }
  
  /* Keep background visible during closing animation */
  .menu.closing {
    background: rgba(0, 0, 0, 0.98) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  }
  .menu__item {
    width: 100%;
    text-align: left;
  }
  .menu__item:not(:last-child) {
    margin-bottom: 12px;
  }
  .menu__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 0;
    color: #e9f0ec;
  }
  .menu__link:hover {
    background: transparent;
    color: #2ecc71;
  }
  .btn--desktop {
    display: none;
  }
  .btn--mobile {
    display: inline-flex;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .menu__item--mobile-only {
    display: block;
    text-align: left;
    margin-top: 32px;
    padding-top: 24px;
  }
  .submenu-bar {
    position: relative;
    background: #060807;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
    margin-top: 0;
    display: block;
    grid-template-rows: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
  }
  .submenu-bar.active {
    max-height: 600px;
    margin-top: 8px;
  }
  .submenu {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    padding: 8px 0 8px 0;
    gap: 4px;
  }
  .submenu a {
    width: 100%;
    padding: 12px 0;
    font-size: 12px;
    opacity: 0;
    border-radius: 6px;
    transition: color 0.3s ease, opacity 0.6s ease;
  }
  .submenu a:hover {
    color: #2ecc71;
  }
  .submenu-bar.active .submenu a {
    opacity: 1;
  }
  .navbar__inner {
    flex-wrap: nowrap;
    padding: 0 30px;
  }
  .navbar__main {
    width: 100%;
    justify-content: space-between;
  }
}