/* ============================================================
   Faith Startup — mobile navigation
   The desktop nav (.nav__links) is hidden below 900px by each
   page's own stylesheet. This adds the menu that replaces it.
   Uses the page's existing design tokens, so it inherits the
   brand palette without redefining anything.
   ============================================================ */

/* ---- Hamburger button (hidden on desktop) ---- */
.nav__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;              /* 44px = minimum comfortable tap target */
  margin-left: 12px; padding: 0;
  background: transparent; border: 0; border-radius: 12px;
  cursor: pointer; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav__burger:hover { background: rgba(20, 24, 31, .06); }
.nav__burger:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.nav__burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Slide-down panel ---- */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 0 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 24, 31, .10);
}
.nav__mobile[hidden] { display: none; }        /* beats the display:flex below */
.nav__mobile a {
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  letter-spacing: var(--track-tight); color: var(--ink);
  padding: 15px 0; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile a[aria-current="page"] { color: var(--ocean); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: 16px; }

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; flex-direction: column; }
  .nav__mobile:not([hidden]) { display: flex; animation: navDrop .22s ease both; }
}
/* On small phones the header CTA crowds the logo, so it moves into the panel */
@media (max-width: 560px) {
  .nav__cta { display: none; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__mobile:not([hidden]) { animation: none; }
  .nav__burger span { transition: none; }
}
