/* Landing page accessibility and mobile styles */

/* Skip navigation link - visually hidden until focused */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #5D05FF;
  color: white;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

/* Focus ring styles for landing page */
.landing-focus:focus-visible {
  outline: 2px solid #5D05FF;
  outline-offset: 2px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 3.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: white;
  display: none;
  flex-direction: column;
}

.mobile-menu-overlay.open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Hamburger button animation */
.hamburger-icon {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #374151;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 4px;
}

.hamburger-icon span:nth-child(2) {
  top: 11px;
}

.hamburger-icon span:nth-child(3) {
  top: 18px;
}

.hamburger-icon[aria-expanded="true"] span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger-icon[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon[aria-expanded="true"] span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}