/**
 * ReachOut Mobile Navigation Styles
 *
 * Color scheme:
 * - Background: #0d4a4a (dark teal)
 * - Primary accent: #5cf0b0 (mint green)
 * - Text: #ffffff (white)
 * - Dividers: rgba(255, 255, 255, 0.2)
 */

/* ============================================
   MOBILE NAV TRIGGER BUTTON
   ============================================ */

.reachout-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #5cf0b0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 1000;
}

.reachout-mobile-trigger:hover {
  transform: scale(1.05);
  background-color: #4de0a0;
}

.reachout-mobile-trigger:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hamburger icon lines */
.reachout-mobile-trigger__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.reachout-mobile-trigger__line {
  width: 100%;
  height: 2px;
  background-color: #0d4a4a;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   MOBILE NAV OVERLAY / PANEL
   ============================================ */

.reachout-mobile-nav {
  position: absolute;
  top: 0;
  left: 5%;
  background-color: #0d4a4a;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  border-radius: 20px;
  -webkit-overflow-scrolling: touch;
  width: 90%;
}

@media (min-width: 600px) {
  .reachout-mobile-nav {
    width: auto;
    left: 0;
  }
}

.reachout-mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

/* Header with logo and close button */
.reachout-mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.reachout-mobile-nav__logo {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.reachout-mobile-nav__logo-reach {
  color: #5cf0b0;
  font-style: italic;
}

.reachout-mobile-nav__logo-out {
  color: #ffffff;
}

/* Close button */
.reachout-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #5cf0b0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.reachout-mobile-nav__close:hover {
  transform: scale(1.05);
  background-color: #4de0a0;
}

.reachout-mobile-nav__close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.reachout-mobile-nav__close svg {
  width: 20px;
  height: 20px;
  stroke: #0d4a4a;
  stroke-width: 2.5;
}

/* ============================================
   MENU CONTENT
   ============================================ */

.reachout-mobile-nav__content {
  padding: 40px 24px 60px;
}

@media (min-width: 600px) {
  .reachout-mobile-nav__content {
    padding: 60px 140px 90px;
  }
}

.reachout-mobile-nav__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

@media (max-width: 600px) {
  .reachout-mobile-nav__columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   MENU SECTIONS
   ============================================ */

.reachout-mobile-nav__section {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reachout-mobile-nav__section:last-child {
  border-bottom: none;
}

/* Section title */
.reachout-mobile-nav__title {
  font-family: "Syne";
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  color: #fff;
}

.reachout-mobile-nav__title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.reachout-mobile-nav__title-link:hover,
.reachout-mobile-nav__title-link:focus {
  opacity: 0.8;
  text-decoration: none;
}

/* Menu items list */
.reachout-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reachout-mobile-nav__item {
  margin-bottom: 8px;
}

.reachout-mobile-nav__item:last-child {
  margin-bottom: 0;
}

/* Menu links */
.reachout-mobile-nav__link {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.reachout-mobile-nav__link:hover,
.reachout-mobile-nav__link:focus {
  color: #5cf0b0;
  transform: translateX(4px);
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

/* Staggered animation for menu items */
.reachout-mobile-nav.is-open .reachout-mobile-nav__section {
  animation: fadeInUp 0.4s ease forwards;
}

.reachout-mobile-nav.is-open .reachout-mobile-nav__section a:hover {
  color: #78faae;
}

.reachout-mobile-nav.is-open
  .reachout-mobile-nav__columns
  > .reachout-mobile-nav__column:nth-child(1)
  .reachout-mobile-nav__section:nth-child(1) {
  animation-delay: 0.1s;
}

.reachout-mobile-nav.is-open
  .reachout-mobile-nav__columns
  > .reachout-mobile-nav__column:nth-child(1)
  .reachout-mobile-nav__section:nth-child(2) {
  animation-delay: 0.15s;
}

.reachout-mobile-nav.is-open
  .reachout-mobile-nav__columns
  > .reachout-mobile-nav__column:nth-child(2)
  .reachout-mobile-nav__section:nth-child(1) {
  animation-delay: 0.2s;
}

.reachout-mobile-nav.is-open
  .reachout-mobile-nav__columns
  > .reachout-mobile-nav__column:nth-child(2)
  .reachout-mobile-nav__section:nth-child(2) {
  animation-delay: 0.25s;
}

.reachout-mobile-nav.is-open
  .reachout-mobile-nav__columns
  > .reachout-mobile-nav__column:nth-child(2)
  .reachout-mobile-nav__section:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initially hide sections for animation */
.reachout-mobile-nav__section {
  opacity: 0;
}

.reachout-mobile-nav.is-open .reachout-mobile-nav__section {
  opacity: 1;
}
