/* =========================
   BURGER ICON
========================= */
.menu-toggle {
  width: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  margin-top: 13px;
}

.menu-toggle span {
  height: 3px;
  background: #ff6a00;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 40px);
  right: 0;
  width: 320px;
  background: rgba(255, 106, 0, 0.65);
  backdrop-filter: blur(5px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 1000;
}

.dropdown-menu.active {
  max-height: 300vh;
  overflow: visible;
  margin-top: -20px;
}

/* =========================
   MAIN MENU LIST
========================= */
.dropdown-menu > ul {
  list-style: none;
  margin: 0;
  padding: 30px;
}

.dropdown-menu > ul > li {
  margin-bottom: 30px;
  position: relative;
}

.dropdown-menu > ul > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 8px;
}

/* =========================
   SUBMENU (DESKTOP)
========================= */
.menu-arrow {
  margin-left: auto;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.submenu-panel {
  position: absolute;
  top: -20px;
  left: calc(100% + 12px);
  width: 320px;
  background: rgba(255, 106, 0, 0.65);
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateX(15px);
  pointer-events: none;
  transition: all 0.35s ease;
}

.has-panel:hover > .submenu-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* =========================
   MOBILE SUBMENU
========================= */
@media (max-width: 768px) {

  .submenu-panel {
    position: static;
    width: 100%;
    background: transparent;
    opacity: 1;
    transform: none;
    max-height: 0;
    overflow: hidden;
    margin-top: 12px;
    transition: max-height 0.35s ease;
  }

  .has-panel.open > .submenu-panel {
    max-height: 800px;
  }

  .has-panel.open > a .menu-arrow {
    transform: rotate(90deg);
  }
}

/* =========================
   MOBILE MENU CENTER FIX (FINAL)
========================= */
@media (max-width: 768px) {

  .dropdown-menu {
    position: fixed;            /* 👈 KEY FIX */
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    width: calc(100vw - 32px);
    max-width: 360px;

    top: 80px;                  /* distance from top header */
    z-index: 999999;            /* safely above footer */
  }

}


/* =========================
   FOOTER STYLES (MERGED)
========================= */
:root {
  --footer-text-size: 11px;
  --social-box-size: 42px;
  --social-icon-size: 20px;
  --social-border-size: 1.2px;
  --kln-logo-height: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social span,
.footer-text {
  font-size: var(--footer-text-size);
  line-height: 1.3;
}

.social-icon {
  width: var(--social-box-size);
  height: var(--social-box-size);
  border: var(--social-border-size) solid #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-img {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
}

.kln-logo {
  height: var(--kln-logo-height);
  width: auto;
  max-width: none;
  display: block;
}

/* =========================
   MOBILE FOOTER ADJUSTMENTS
========================= */
@media (max-width: 768px) {

  footer > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .kln-logo {
    height: 16px !important;
  }

  body {
    padding-bottom: 80px;
  }
}

/* KILL FOOTER STACKING CONTEXT */
footer {
  position: relative !important;
  z-index: 1 !important;
}

/* If plugin wraps footer */
.elementor-location-footer,
.site-footer,
.footer,
.floating-footer {
  position: relative !important;
  z-index: 1 !important;
}

/* ENSURE MENU IS ABOVE NORMAL CONTENT */
.dropdown-menu {
  position: absolute;  /* stays non-floating */
  z-index: 100 !important;
}


