:root {
  --bg-dark: #101010;
  --blur-bg: rgba(0, 0, 0, 0.15);
  --delay: 0.1s;
  --duration: 0.2s;
  --transit: ease-in-out;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.2);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: var(--duration);
  transition-timing-function: var(--transit);
  transition-delay: var(--delay);
}

.blur-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-property: opacity;
  transition-duration: var(--duration);
  transition-timing-function: var(--transit);
  transition-delay: var(--delay);
}

.nav-container {
  width: 100%;
  top: 0;
  position: fixed;
  display: flex;
  background-color: var(--bg-dark);
  flex-direction: column;
  align-items: center;
  color: rgb(240, 240, 240);
  z-index: 2000;
  user-select: none;
  -webkit-user-select: none;
}

.nav-menu-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(240, 240, 240);
}

.nav-sub-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mob-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
}

/*
 * Desktop links occupy the flexible middle section.
 * Account + hamburger live in a separate control group so the account
 * icon never becomes part of the collapsible mobile menu.
 */
.desktop-links {
  display: none;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
  margin-left: auto;
}

.desktop-links a {
  all: unset;
  font-size: 1.15rem;
  font-weight: 300;
  cursor: pointer;
}

.nav-account-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1.2rem;
  margin-left: auto;
}

.account-avatar-link {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.avatar {
  width: 27px;
  height: 27px;
  padding: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.account-avatar-link:hover .avatar,
.account-avatar-link:focus-visible .avatar {
  border-color: #fff;
}

.account-avatar-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}




.ham-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.ham-button:hover,
.ham-button:focus,
.ham-button:active {
  background: transparent !important;
  box-shadow: none;
}

.ham-button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Mobile Logo and Back */
.nav-back {
  all: unset;
  cursor: pointer;
  width: 1.5rem;
  height: 35px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  transition: opacity 0.3s ease;
  background-image: url('../images/icons/chevron-left.svg');
}

.nav-logo {
  width: 6.2rem;
  height: 2.25rem;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  transition: opacity 0.3s ease;
  background-image: url('../images/r-white-logo.png');
}

.sub-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: start;
  gap: 0.5rem;
  padding-bottom: 6rem;
  padding-right: 4.75rem;
  padding-top: 1.8rem;
}

.sub-menu div {
  font-size: 1.65rem;
  color: white;
}

.sub-menu div:hover {
  color: rgb(195, 195, 195);
}

/* Bootstrap MODs */
input.form-control::placeholder {
  font-weight: 200;
  opacity: 1;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
  pointer-events: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  opacity: 0;
  animation: fadeOut 0.25s ease-out forwards;
  pointer-events: none;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.slide-in {
  animation: slideInRight 400ms ease-out forwards;
}

@keyframes slideInRight {
  from { transform: translateX(5%); }
  to { transform: translateX(0); }
}

.footer {
  width: 100%;
  margin-top: 2rem;
  padding: 0;
  background: #101010 !important;
  color: #f5f5f5 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  color-scheme: dark;
}

.footer-inner {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr);
  gap: 2rem;
  text-align: left;
}

.footer,
.footer * {
  box-sizing: border-box;
}

.footer a,
.footer a:visited,
.footer-church-name,
.footer-nav a,
.footer-social a,
.footer-social i,
.footer-social svg {
  color: #f5f5f5 !important;
}

.footer svg {
  fill: currentColor;
  stroke: currentColor;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff !important;
  opacity: 0.82;
}

.footer-church-name {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 34rem;
  margin: 0.75rem 0;
  color: #c9c9c9 !important;
  line-height: 1.6;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  color: #c9c9c9 !important;
  font-style: normal;
  line-height: 1.5;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a,
.footer-social a {
  width: fit-content;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #bdbdbd !important;
  font-size: 0.9rem;
}

/* Footer is intentionally excluded from site light/dark/auto color modes. */
html[data-color-mode="light"] .footer,
html[data-color-mode="dark"] .footer,
html[data-theme="light"] .footer,
html[data-theme="dark"] .footer,
body.light .footer,
body.dark .footer {
  background: #101010 !important;
  color: #f5f5f5 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-color-mode="light"] .footer a,
html[data-color-mode="dark"] .footer a,
html[data-theme="light"] .footer a,
html[data-theme="dark"] .footer a,
body.light .footer a,
body.dark .footer a {
  color: #f5f5f5 !important;
}

html[data-color-mode="light"] .footer-description,
html[data-color-mode="dark"] .footer-description,
html[data-theme="light"] .footer-description,
html[data-theme="dark"] .footer-description,
html[data-color-mode="light"] .footer-address,
html[data-color-mode="dark"] .footer-address,
html[data-theme="light"] .footer-address,
html[data-theme="dark"] .footer-address,
html[data-color-mode="light"] .footer-bottom,
html[data-color-mode="dark"] .footer-bottom,
html[data-theme="light"] .footer-bottom,
html[data-theme="dark"] .footer-bottom {
  color: #c9c9c9 !important;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .footer-bottom {
    grid-column: auto;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.spacer {
  height: 65px;
}

.fill-height {
  min-height: 100dvh;
}

.z-999 {
  z-index: 999;
}

.pb-10 {
  padding-bottom: 6rem;
}

.gray-text {
  color: rgb(162, 162, 162);
}

@media (min-width: 800px) {
  .ham-button {
    display: none;
  }

  .desktop-links {
    display: flex;
  }

  .nav-account-controls {
    margin-left: 1.5rem;
  }
}

/* Footer social icons: always light, including image-based icons. */
.footer .footer-social img,
.footer .social-icons img,
.footer .social-media img,
.footer a[href*="instagram"] img,
.footer a[href*="facebook"] img,
.footer a[href*="youtube"] img,
.footer a[href*="tiktok"] img,
.footer a[href*="x.com"] img,
.footer a[href*="twitter"] img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

.footer .footer-social svg,
.footer .social-icons svg,
.footer .social-media svg,
.footer .footer-social svg *,
.footer .social-icons svg *,
.footer .social-media svg * {
  color: #f5f5f5 !important;
  fill: #f5f5f5 !important;
  stroke: #f5f5f5 !important;
}

.footer .footer-social i,
.footer .social-icons i,
.footer .social-media i,
.footer .footer-social [class*="icon"],
.footer .social-icons [class*="icon"] {
  color: #f5f5f5 !important;
}

/* Footer Bootstrap Icons: the visible glyph is rendered by ::before. */
.footer .footer-social .bi,
.footer .footer-social .bi::before {
  color: #f5f5f5 !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  opacity: 1 !important;
  filter: none !important;
}

.footer .footer-social .bi::before {
  display: inline-block;
}

.footer .footer-social-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  display: block;
  color: #f5f5f5 !important;
  fill: currentColor !important;
  stroke: none !important;
}
