/* -------------------------------------------------- */
/* DESKTOP NAV                                        */
/* -------------------------------------------------- */

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .desktop-nav > ul {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
  }
}

.desktop-nav li {
  position: relative;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: #1f4d40;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

/* Underline hover */
.desktop-nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #88d4c0;
  transition: width 0.25s ease;
}

.desktop-nav > ul > li > a:hover::after,
.desktop-nav > ul > li > a.active::after {
  width: 100%;
}

.desktop-nav ul li a.active {
  font-weight: 700;
}

/* -------------------------------------------------- */
/* DESKTOP DROPDOWNS                                  */
/* -------------------------------------------------- */

.has-dropdown > a::before {
  content: "▾";
  position: absolute;
  right: -14px;
  top: 7px;
  font-size: 10px;
  color: #1f4d40;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  min-width: 215px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px !important;
  display: none !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  z-index: 9999;
  list-style: none;
}

.has-dropdown:hover .dropdown-menu {
  display: grid !important;
  gap: 4px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #1f4d40;
}

.dropdown-menu li a::after {
  display: none !important;
}

.dropdown-menu li a:hover {
  background: #e8f5f1;
  color: #123c2f;
}

/* -------------------------------------------------- */
/* LANGUAGE DROPDOWN (DESKTOP)                        */
/* -------------------------------------------------- */

.lang-dropdown {
  position: relative;
}

.lang-dropdown > a {
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: 28px;
  right: 0;
  background: #ffffff;
  min-width: 130px;
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 200;
  list-style: none;
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-menu li a {
  padding: 10px 15px;
  display: block;
  font-size: 14px;
  color: #1f4d40;
  text-decoration: none;
}

.lang-menu li a:hover {
  background: #e8f5f1;
}

/* -------------------------------------------------- */
/* MOBILE MENU BUTTON                                 */
/* -------------------------------------------------- */

.menu-btn {
  font-size: 28px;
  cursor: pointer;
  z-index: 9999;
  color: #1f4d40;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

/* -------------------------------------------------- */
/* MOBILE HEADER BEHAVIOUR                            */
/* -------------------------------------------------- */

@media (max-width: 767.98px) {
  header {
    justify-content: center;
  }

  header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-btn {
    position: absolute;
    right: 20px;
    top: 32px;
  }
}

/* -------------------------------------------------- */
/* MOBILE NAV                                         */
/* -------------------------------------------------- */

.mobile-nav {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #ffffff;
  border-top: 1px solid #eee;
  display: none;
  z-index: 9998;
}

.mobile-nav.open {
  display: block;
  animation: fadeMenu 0.25s ease-out;
}

@keyframes fadeMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav ul {
  list-style: none;
  padding: 14px 20px 24px;
  margin: 0;
}

.mobile-nav ul li {
  padding: 11px 0;
  border-bottom: 1px solid #f2f2f2;
}

.mobile-nav ul li a {
  font-size: 16px;
  color: #1f4d40;
  text-decoration: none;
  display: block;
  font-weight: 700;
}

.mobile-nav-heading {
  margin-top: 12px;
  padding: 12px 0 5px !important;
  border-bottom: none !important;
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}

.mobile-nav-heading:first-child {
  margin-top: 0;
}

/* -------------------------------------------------- */
/* MOBILE LANGUAGE BLOCK                              */
/* -------------------------------------------------- */

.mobile-lang-title {
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 500;
  color: #1f4d40;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.mobile-lang-menu {
  padding-left: 20px;
  display: none;
}

.mobile-lang.open .mobile-lang-menu {
  display: block;
}

.mobile-lang-menu li a {
  padding: 10px 0;
  display: block;
  color: #1f4d40;
}

/* Hide mobile nav completely on desktop */
@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}