/* ============================================================
   St Anthony's Church — Navigation & Layout
   ============================================================ */

/* ── Top Navigation ───────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(201, 146, 42, 0.15);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Brand */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__brand-cross {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(201, 146, 42, 0.5));
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav__link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.nav__link:hover {
  background: rgba(201, 146, 42, 0.15);
  color: var(--gold-light);
}

.nav__link.nav__link--active {
  background: rgba(201, 146, 42, 0.2);
  color: var(--gold-light);
}

.nav__link--register {
  background: rgba(201, 146, 42, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(201, 146, 42, 0.3);
}

.nav__link--register:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav__hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav__hamburger {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-xs);
    border-bottom: 2px solid rgba(201, 146, 42, 0.2);
    box-shadow: var(--shadow-lg);
  }

  .nav__links.nav__links--open {
    display: flex;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  margin-top: auto;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__col-title {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.footer__col p,
.footer__col a {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(4px);
}

.modal-overlay.modal-overlay--open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.25s ease;
}

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

.modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  transition: color var(--transition-fast);
}

.modal__close:hover {
  color: var(--text);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}
