/* Shared parish navigation and mobile drawer */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: var(--shadow-nav, 0 2px 16px rgba(0, 0, 0, 0.25));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.nav-title {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}

.nav-title-top {
  color: var(--white, #fff);
  font-family: var(--font-serif, "EB Garamond", Georgia, serif);
  font-size: 16px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-title-sub {
  margin-top: 4px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: left 0.22s ease, right 0.22s ease;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  right: 13px;
  left: 13px;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.lang-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-pill {
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.lang-pill .lang-label {
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.14s, background 0.14s;
}

.lang-pill .lang-label:hover {
  color: var(--white, #fff);
}

.lang-pill .lang-radio:checked + .lang-label {
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.15);
}

.nav-donate {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  background: var(--gold);
  color: var(--white, #fff);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-donate:hover {
  background: #76590f;
}

.nav-donate::after {
  display: none;
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--white, #fff);
  transition: transform 0.22s, opacity 0.22s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  display: block;
  position: fixed;
  top: 64px;
  left: 0;
  z-index: 150;
  width: 100%;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(27, 42, 74, 0.97);
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-inner {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.mobile-menu-inner > a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}

.mobile-menu-inner > a:hover {
  padding-left: 24px;
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-inner > a[aria-current="page"] {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.08);
}

.mobile-lang-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 8px 18px;
}

.mobile-lang-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.mobile-lang-group {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.mobile-lang-group .mobile-lang-btn {
  min-width: 40px;
  padding: 5px 12px;
  border: 0 !important;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.mobile-lang-group .lang-radio:checked + .mobile-lang-btn {
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-hamburger,
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 899px) {
  .lang-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: 64px;
    padding: 0 16px;
    gap: 9px;
  }

  .nav-title-top {
    max-width: 165px;
    font-size: 14px;
    line-height: 1.1;
    white-space: normal;
  }

  .nav-title-sub {
    font-size: 8px;
  }

  .nav-donate {
    padding: 7px 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .nav-inner {
    padding: 0 12px;
    gap: 7px;
  }

  .nav-title-top {
    max-width: 145px;
    font-size: 13px;
  }

  .nav-donate {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .nav-hamburger span,
  .mobile-menu-inner > a {
    transition-duration: 0.01ms !important;
  }
}
