/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.hamburger_line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray02);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  position: absolute;
}

.hamburger_line:nth-child(1) {
  transform: translateY(-7px);
}

.hamburger_line:nth-child(2) {
  transform: translateY(0);
}

.hamburger_line:nth-child(3) {
  transform: translateY(7px);
}

.hamburger.active .hamburger_line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active .hamburger_line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger_line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Overlay */
.mobile_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  transition: background 0.4s ease;
  pointer-events: none;
}

.mobile_overlay.active {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
  backdrop-filter: blur(4px);
}

/* Mobile Menu Panel */
.mobile_menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100dvh;
  background: #fff;
  z-index: 1000;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.mobile_menu.active {
  transform: translateX(0);
}

.mobile_menu_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray05, #eceff5);
}

.mobile_logo {
  height: 36px;
  width: auto;
}

.mobile_menu_close {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile_menu_close span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gray02, #2c343e);
  border-radius: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.mobile_menu_close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile_menu_close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Nav Links */
.mobile_menu_nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  flex: 1;
}

.mobile_menu_link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--gray02, #2c343e) !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile_menu_link:hover {
  background: var(--gray06, #f7f7fc);
  transform: translateX(4px) !important;
  opacity: 1 !important;
}

/* Footer */
.mobile_menu_footer {
  padding: 24px;
  border-top: 1px solid var(--gray05, #eceff5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile_menu_footer .button_primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.mobile_menu_contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile_menu_social {
  padding-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .mobile_overlay {
    display: block;
  }

  .mobile_menu {
    display: flex;
  }
}
