.mobile-menu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background-color: #1f2937;
  border-radius: 999px;
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-language-switcher-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-lang-btn {
  min-width: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #2563eb;
  border: 1px solid #93c5fd;
  border-radius: 0.5rem;
  padding: 0.25rem 0.45rem;
  background: #eff6ff;
}

.mobile-lang-btn.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}

.mobile-menu-brand .dummy-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.mobile-menu-brand {
  color: var(--color-text);
}

.mobile-menu-brand strong {
  color: var(--color-text);
}

.mobile-menu-brand small {
  color: var(--color-text-soft);
}

.mobile-menu-close {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #6b7280;
}

.mobile-menu-links li + li {
  margin-top: 0.25rem;
}

.mobile-menu-links a {
  display: block;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
  color: #1d4ed8;
  background-color: #eff6ff;
}

@media (prefers-color-scheme: dark) {
  .mobile-menu {
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    box-shadow: 8px 0 24px rgba(2, 6, 23, 0.55);
  }

  .mobile-menu-header {
    border-bottom-color: var(--color-border);
  }

  .mobile-menu-close {
    color: var(--color-text);
  }

  .mobile-menu-brand strong {
    color: var(--color-text);
  }

  .mobile-menu-brand small {
    color: var(--color-text-soft);
  }

  .mobile-menu-links a {
    color: var(--color-text);
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus {
    color: #93c5fd;
    background-color: rgba(37, 99, 235, 0.2);
  }
}

@media (max-width: 1024px) {
  .mobile-menu-toggle,
  .mobile-controls {
    display: inline-flex;
  }

  .corporate-navbar .navbar-toggler {
    display: none;
  }

  .hero-section .row {
    flex-direction: column;
  }

  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
    max-width: 100%;
  }

  section[aria-labelledby="value-props-heading"] .row.g-4 > div {
    width: 50%;
    flex: 0 0 auto;
  }

  footer .container {
    flex-direction: column !important;
    text-align: center;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  section[aria-labelledby="value-props-heading"] .row.g-4 > div,
  section[aria-labelledby="engagement-models-heading"] .row.g-4 > article {
    width: 100%;
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  section[aria-labelledby="engagement-models-heading"] .row.g-4 > article {
    width: 50%;
    flex: 0 0 auto;
  }
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-overlay,
  .mobile-controls {
    display: none;
  }
}

.back-to-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  z-index: 9997;
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.52);
}
