/* ═══════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
}

.section-label {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--purple-lighter);
}

@media (prefers-color-scheme: light) {
  .section-label {
    color: #5b29b0;
  }

  .section-label::before {
    background: #5b29b0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--purple-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--purple-lighter);
  color: var(--purple-lighter);
  transform: translateY(-2px);
  background: var(--purple-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-lighter);
  padding: 0;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  transition: gap var(--transition), opacity var(--transition);
}

.btn-ghost:hover {
  gap: 12px;
  opacity: 0.75;
}

@media (prefers-color-scheme: light) {
  .btn-ghost {
    color: #5b29b0;
  }

  .btn-ghost:hover {
    opacity: 0.7;
  }
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.section-header h2 em {
  font-style: italic;
  color: var(--purple-lighter);
}

/* TODO: Remove if/when we get leader names for BFG Groups */
.bfg-meta-item:nth-child(4) {
    display: none;
}

@media (prefers-color-scheme: light) {
  /* Headings across all sections — consolidated here as common utility */
  .section-header h2,
  .about-text h2,
  .visit-info h2,
  .give h2,
  .cta-banner h2,
  .pastor-text h2,
  .connect-card h3,
  .bfg-card-title,
  .ectitle,
  .service-card-title,
  .playlist-title {
    color: var(--text);
  }

  .section-header h2 em,
  .about-text h2 em,
  .visit-info h2 em,
  .give h2 em,
  .cta-banner h2 em,
  .pastor-text h2 em {
    color: #6b3ec4;
  }

  /* Body text across all sections */
  .about-text p,
  .pastor-text p,
  .visit-info > p,
  .ectime,
  .service-card-desc,
  .connect-card p,
  .bfg-desc {
    color: var(--muted);
  }
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-header h2 {
    white-space: normal;
    max-width: 480px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.10s;
}

.reveal-d2 {
  transition-delay: 0.20s;
}

.reveal-d3 {
  transition-delay: 0.30s;
}

.reveal-d4 {
  transition-delay: 0.40s;
}


/* ═══════════════════════════════════════════════════════════
   OVERLAY (sidebar backdrop)
═══════════════════════════════════════════════════════════ */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(6px);
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media print {
  #overlay {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE SIDEBAR MENU
═══════════════════════════════════════════════════════════ */
.sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--sidebar-bg, #0c0918);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.sidebar-mobile.open {
  transform: translateX(0);
}

@media (prefers-color-scheme: light) {
  .sidebar-mobile {
    background: var(--sidebar-bg);
    border-left-color: var(--border);
  }
}

@media print {
  .sidebar-mobile {
    display: none !important;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
  height: 38px;
  width: auto;
  filter: var(--logo-filter, brightness(0) invert(1));
}

.sidebar-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-dim);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.sidebar-close:hover {
  background: rgba(87, 49, 152, 0.28);
  border-color: var(--purple-lighter);
  color: var(--purple-lighter);
  transform: rotate(90deg);
}

@media (prefers-color-scheme: light) {
  .sidebar-mobile .sidebar-close {
    color: var(--text);
    background: var(--purple-dim);
    border-color: var(--border-hover);
  }
}

.sidebar-body {
  padding: 24px;
  flex: 1;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--purple-dim);
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
  color: var(--purple-lighter);
  font-size: 13px;
}

@media (prefers-color-scheme: light) {
  .sidebar-nav a {
    color: var(--text-sub);
  }

  .sidebar-nav a:hover {
    color: var(--text);
    background: var(--purple-dim);
  }

  .sidebar-nav a i {
    color: #6b3ec4;
  }
}

/* ─── SIDEBAR DROPDOWN MENU (Mobile) ─── */
.dropdown-icon-sidebar {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.sidebar-dropdown-item {
  display: flex;
  flex-direction: column;
}

.sidebar-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-sub);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.sidebar-dropdown-trigger i:first-child {
  width: 20px;
  text-align: center;
  color: var(--purple-lighter);
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-dropdown-trigger:hover {
  color: var(--text);
  background: var(--purple-dim);
}

.sidebar-dropdown-menu {
  display: none;
  list-style: none;
  margin: 2px 8px 0 8px;
  padding: 0;
  background: var(--purple-dim);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.sidebar-dropdown-submenu {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 42px !important;
  color: var(--text-sub) !important;
  transition: all 0.2s ease;
  font-size: 13px !important;
}

.sidebar-dropdown-submenu i {
  color: var(--purple-lighter);
  font-size: 12px;
}

.sidebar-dropdown-submenu:hover {
  color: var(--text) !important;
  background: rgba(155, 109, 224, 0.2);
  padding-left: 44px !important;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-actions .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sidebar-footer p + p {
  margin-top: 4px;
}

.sidebar-footer a {
  color: var(--purple-lighter);
}

@media (prefers-color-scheme: light) {
  .sidebar-footer p {
    color: var(--muted);
  }
}


/* ═══════════════════════════════════════════════════════════
   NAVIGATION — FIXED (sticky)
═══════════════════════════════════════════════════════════ */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Transparent by default — background only appears after scrolling */
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* Solid background once user scrolls past the hero */
#mainNav.scrolled {
  background: rgba(8, 5, 15, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  #mainNav.scrolled {
    background: rgba(244, 241, 252, 0.97);
    box-shadow: 0 1px 0 rgba(72, 30, 140, 0.14), 0 4px 24px rgba(72, 30, 140, 0.08);
  }
}

@media print {
  nav {
    display: none !important;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: var(--logo-filter, brightness(0) invert(1));
  transition: opacity var(--transition);
}

.nav-logo:hover img {
  opacity: 0.82;
}

.nav-links-row {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-link-item {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(235, 228, 255, 0.75);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  display: block;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: var(--text);
  background: var(--purple-dim);
}

.nav-link-item.active {
  color: var(--text) !important;
  background: var(--purple-dim);
}

@media (prefers-color-scheme: light) {
  .nav-link-item {
    color: rgba(235, 228, 255, 0.88);
  }

  .nav-link-item:hover {
    color: #fff;
    background: rgba(72, 30, 140, 0.18);
  }

  #mainNav.scrolled .nav-link-item {
    color: var(--text-sub);
  }

  #mainNav.scrolled .nav-link-item:hover {
    color: var(--text);
    background: var(--purple-dim);
  }

  .nav-link-item.active {
    color: var(--text) !important;
    background: var(--purple-dim);
  }
}

/* ─── NAV DROPDOWN MENU (Desktop) ─── */
.nav-item-with-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
}

.nav-dropdown-trigger .dropdown-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: 2px;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  list-style: none;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
}

.nav-item-with-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-with-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  padding: 10px 16px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  font-family: var(--font-cond);
}

.nav-dropdown-item:hover {
  color: var(--text);
  background: var(--purple-dim);
  padding-left: 18px;
}

.nav-dropdown-item:first-child {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

@media (prefers-color-scheme: light) {
  .nav-dropdown-menu {
    background: var(--card);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(72, 30, 140, 0.12);
  }

  .nav-dropdown-item:hover {
    background: var(--purple-dim);
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search pill — white text/icons when nav is transparent (over hero) */
.nav-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  width: 200px;
  transition: border-color 0.3s, background 0.3s, width 0.4s ease, box-shadow 0.3s, color 0.3s;
}

.nav-search-pill:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.nav-search-pill i {
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.nav-search-pill input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: color 0.3s;
}

.nav-search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

/* Light mode: when scrolled, flip search pill to deep purple-on-light */
@media (prefers-color-scheme: light) {
  #mainNav.scrolled .nav-search-pill {
    background: rgba(72, 30, 140, 0.08);
    border-color: rgba(72, 30, 140, 0.28);
  }

  #mainNav.scrolled .nav-search-pill:focus-within {
    border-color: #5b29b0;
    background: rgba(72, 30, 140, 0.12);
    box-shadow: 0 0 0 3px rgba(72, 30, 140, 0.1);
  }

  #mainNav.scrolled .nav-search-pill i {
    color: #5b29b0 !important;
  }

  #mainNav.scrolled .nav-search-pill input {
    color: #140c2e !important;
  }

  #mainNav.scrolled .nav-search-pill input::placeholder {
    color: rgba(30, 12, 72, 0.5) !important;
  }
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--card2, #181428);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  z-index: 400;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  max-height: 340px;
  overflow-y: auto;
  min-width: 300px;
}

.search-dropdown.show {
  display: block;
}

.search-dropdown-header {
  padding: 10px 16px 6px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  border-bottom: 1px solid var(--border);
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.suggestion-item:last-of-type {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--purple-dim);
}

.suggestion-item i {
  color: var(--purple-lighter);
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.suggestion-item .s-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #f5f2fd);
  line-height: 1.3;
}

.suggestion-item .s-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.search-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  background: var(--purple-dim);
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.search-show-all:hover {
  background: rgba(87, 49, 152, 0.28);
}

.search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-color-scheme: light) {
  .search-show-all {
    color: #5b29b0;
    background: rgba(72, 30, 140, 0.08);
  }

  .search-show-all:hover {
    background: rgba(72, 30, 140, 0.15);
  }

  .search-dropdown-header {
    color: #5b29b0;
  }

  .search-dropdown {
    background: var(--card);
    box-shadow: 0 16px 48px rgba(72, 30, 140, 0.15);
  }

  .s-name {
    color: var(--text) !important;
  }

  .suggestion-item:hover {
    background: var(--purple-dim);
  }
}

/* Live / Give buttons */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  padding: 9px 16px;
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-live:hover {
  background: var(--red);
  color: #fff;
}

/* Light mode: Watch Live text turns dark on scroll */
@media (prefers-color-scheme: light) {
  .nav-live {
    color: #fff;
  }

  #mainNav.scrolled .nav-live {
    color: #2e1a58;
  }

  #mainNav.scrolled .nav-live:hover {
    color: #fff;
  }
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.6);
  }
}

.nav-give {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.nav-give:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--purple-dim);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-hamburger:hover {
  background: rgba(87, 49, 152, 0.28);
  border-color: var(--purple-lighter);
}

.nav-hamburger .ham-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-hamburger .ham-lines span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: light) {
  .nav-hamburger {
    background: rgba(72, 30, 140, 0.1) !important;
    border-color: rgba(72, 30, 140, 0.28) !important;
    color: #2e1a58 !important;
  }

  .nav-hamburger:hover {
    background: rgba(72, 30, 140, 0.18) !important;
    border-color: #6b3ec4 !important;
    color: #140c2e !important;
  }

  .nav-hamburger .ham-lines span {
    background: #2e1a58;
  }
}

/* ≥1100px: show desktop links, hide hamburger */
@media (min-width: 1100px) {
  .nav-links-row {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-search-pill {
    width: 180px;
  }

  .nav-search-pill:focus-within {
    width: 230px;
  }
}

/* <1100px: hide desktop links, show hamburger */
@media (max-width: 1099px) {
  .nav-links-row {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .nav-search-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  #mainNav {
    padding: 0 16px;
  }

  .nav-live,
  .nav-give {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   MUTE BUTTON
═══════════════════════════════════════════════════════════ */
.mute-btn {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: rgba(10, 5, 20, 0.55);
  border: 1.5px solid rgba(155, 109, 224, 0.4);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.mute-btn:hover {
  background: var(--purple-dim);
  border-color: var(--purple-lighter);
  color: #fff;
  transform: scale(1.08);
}

.mute-btn.is-muted {
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-color-scheme: light) {
  .mute-btn {
    background: rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 640px) {
  .mute-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

@media print {
  .mute-btn {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(6, 3, 12, 0.92) 40%, rgba(6, 3, 12, 0.2) 100%),
    linear-gradient(to top, rgba(6, 3, 12, 0.98) 0%, transparent 52%);
}

@media (prefers-color-scheme: light) {
  /* Hero overlay stays dark so text reads */
  .hero-bg {
    background:
      linear-gradient(to right, rgba(8, 3, 20, 0.84) 40%, rgba(8, 3, 20, 0.2) 100%),
      linear-gradient(to top, rgba(8, 3, 20, 0.92) 0%, transparent 54%);
  }

  .hero-title,
  .hero-sub {
    color: #f5f2fd;
  }

  .hero-eyebrow {
    color: #c4a0ff;
  }

  .hero-sub {
    color: rgba(235, 228, 255, 0.82);
  }
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0f0720 0%, #0a0d1a 40%, #090a18 100%);
  overflow: hidden;
}

.hero-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: fade-in 2s 0.3s ease forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: calc(var(--nav-h) + 40px) 80px 80px;
  /* Align to vertical center-bottom so content never gets too cramped */
  margin-top: auto;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.8s 0.25s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--purple-lighter);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 900;
  line-height: 1.0;
  color: #f5f2fd;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fade-up 0.9s 0.38s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--purple-lighter);
  display: block;
}

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 28px 0 24px;
  opacity: 0;
  animation: fade-up 0.9s 0.45s forwards;
}

.hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.hero-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  color: rgba(235, 228, 255, 0.78);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 0 38px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fade-up 1s 0.60s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s 0.66s forwards;
  position: relative;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-content {
    padding: calc(var(--nav-h) + 30px) 40px 72px;
  }

  .hero-pills {
    gap: 10px;
  }

  .hero-pill {
    padding: 9px 18px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: calc(var(--nav-h) + 20px) 22px 64px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-pills {
    gap: 8px;
    margin: 16px 0 14px;
  }

  .hero-pill {
    padding: 7px 14px;
    font-size: 12px;
  }
}

@media print {
  .hero {
    min-height: auto;
    height: auto;
    padding: 40px 0;
  }
}


/* ═══════════════════════════════════════════════════════════
   VISIT MODAL — centered, proper dialog
═══════════════════════════════════════════════════════════ */

/* Full-screen backdrop — no blur so modal content stays crisp */
.visit-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 2, 12, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-bg-in 0.25s ease forwards;
}

.visit-modal-overlay.open {
  display: flex;
}

@keyframes modal-bg-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Modal card */
.visit-modal-card {
  position: relative;
  z-index: 501;
  width: 100%;
  max-width: 360px;
  background: #0e0a1c;
  border: 1px solid rgba(155, 109, 224, 0.3);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(155, 109, 224, 0.08),
    inset 0 1px 0 rgba(155, 109, 224, 0.12);
  animation: modal-card-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-card-in {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Close button */
.visit-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 109, 224, 0.1);
  border: 1px solid rgba(155, 109, 224, 0.2);
  border-radius: 50%;
  color: rgba(235, 228, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.visit-modal-close:hover {
  background: rgba(155, 109, 224, 0.22);
  border-color: rgba(155, 109, 224, 0.45);
  color: #fff;
  transform: rotate(90deg);
}

/* Header */
.visit-modal-eyebrow {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.visit-modal-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--purple-lighter);
}

.visit-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: #f5f2fd;
  margin-bottom: 4px;
}

.visit-modal-subtitle {
  font-size: 13px;
  color: rgba(235, 228, 255, 0.5);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Divider */
.visit-modal-divider {
  height: 1px;
  background: rgba(155, 109, 224, 0.12);
  margin-bottom: 16px;
}

/* Options */
.visit-modal-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visit-modal-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(155, 109, 224, 0.07);
  border: 1px solid rgba(155, 109, 224, 0.14);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.visit-modal-option:hover {
  background: rgba(155, 109, 224, 0.14);
  border-color: rgba(155, 109, 224, 0.38);
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(87, 49, 152, 0.15);
}

.visit-modal-option-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(155, 109, 224, 0.22), rgba(123, 79, 196, 0.12));
  border: 1px solid rgba(155, 109, 224, 0.3);
  border-radius: 10px;
  font-size: 16px;
  color: var(--purple-lighter);
  transition: all 0.2s ease;
}

.visit-modal-option:hover .visit-modal-option-icon {
  background: linear-gradient(135deg, rgba(155, 109, 224, 0.32), rgba(123, 79, 196, 0.22));
  border-color: rgba(155, 109, 224, 0.55);
  color: #c4a0ff;
}

.visit-modal-option-body {
  flex: 1;
  min-width: 0;
}

.visit-modal-option-title {
  font-size: 14px;
  font-weight: 700;
  color: #f5f2fd;
  margin-bottom: 2px;
  line-height: 1.3;
}

.visit-modal-option-desc {
  font-size: 11px;
  color: rgba(235, 228, 255, 0.5);
  line-height: 1.4;
  margin: 0;
}

.visit-modal-option-arrow {
  color: rgba(155, 109, 224, 0.5);
  font-size: 11px;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.visit-modal-option:hover .visit-modal-option-arrow {
  color: var(--purple-lighter);
  transform: translateX(3px);
}

/* Modal — light mode: dark card so content is visible */
@media (prefers-color-scheme: light) {
  .visit-modal-overlay {
    background: rgba(20, 10, 50, 0.45);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
  }

  .visit-modal-card {
    background: #1a0f38;
    border-color: rgba(155, 109, 224, 0.35);
    box-shadow:
      0 32px 80px rgba(10, 4, 30, 0.55),
      0 0 0 1px rgba(155, 109, 224, 0.12),
      inset 0 1px 0 rgba(155, 109, 224, 0.15);
  }

  .visit-modal-title {
    color: #f0ecfd;
  }

  .visit-modal-subtitle {
    color: rgba(220, 210, 255, 0.6);
  }

  .visit-modal-eyebrow {
    color: #c4a0ff;
  }

  .visit-modal-eyebrow::before {
    background: #c4a0ff;
  }

  .visit-modal-divider {
    background: rgba(155, 109, 224, 0.18);
  }

  .visit-modal-close {
    color: rgba(220, 210, 255, 0.55);
    background: rgba(155, 109, 224, 0.12);
    border-color: rgba(155, 109, 224, 0.22);
  }

  .visit-modal-close:hover {
    color: #fff;
    background: rgba(155, 109, 224, 0.25);
    border-color: rgba(155, 109, 224, 0.5);
  }

  .visit-modal-option {
    background: rgba(155, 109, 224, 0.1);
    border-color: rgba(155, 109, 224, 0.2);
  }

  .visit-modal-option:hover {
    background: rgba(155, 109, 224, 0.18);
    border-color: rgba(155, 109, 224, 0.42);
    box-shadow: 0 4px 20px rgba(87, 49, 152, 0.2);
  }

  .visit-modal-option-title {
    color: #f0ecfd;
  }

  .visit-modal-option-desc {
    color: rgba(220, 210, 255, 0.55);
  }

  .visit-modal-option-icon {
    background: linear-gradient(135deg, rgba(155, 109, 224, 0.28), rgba(123, 79, 196, 0.16));
    border-color: rgba(155, 109, 224, 0.35);
    color: #c4a0ff;
  }

  .visit-modal-option:hover .visit-modal-option-icon {
    background: linear-gradient(135deg, rgba(155, 109, 224, 0.4), rgba(123, 79, 196, 0.28));
    border-color: rgba(155, 109, 224, 0.6);
    color: #d4b8ff;
  }

  .visit-modal-option-arrow {
    color: rgba(155, 109, 224, 0.55);
  }

  .visit-modal-option:hover .visit-modal-option-arrow {
    color: #c4a0ff;
  }
}


/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT TICKER
═══════════════════════════════════════════════════════════ */
.times-bar {
  background: var(--purple);
  padding: 13px 0;
  overflow: hidden;
}

.times-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: ticker 34s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.times-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.times-item .sep {
  opacity: 0.35;
  font-size: 16px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════════════════ */
/* TODO: Some of these classes have styling that is repeated needlessly (see lines 1968, 2241, etc.) 
   Replace these with a single 'alt-theme' class or something similar */
.services {
  padding: 96px 0;
  background: var(--deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  box-shadow: 0 16px 48px rgba(87, 49, 152, 0.18);
}

.service-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-tag {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 7px;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}

@media (prefers-color-scheme: light) {
  .services {
    background: var(--deep);
  }

  .service-card {
    background: var(--card);
  }

  .service-card-tag {
    color: #6b3ec4;
  }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about {
  padding: 96px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding-bottom: 28px;
  padding-right: 28px;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stat-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--purple);
  padding: 26px 28px;
  text-align: center;
  min-width: 170px;
  border-radius: var(--radius);
}

.about-stat-badge .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.about-stat-badge .lbl {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--text);
}

.about-text h2 em {
  font-style: italic;
  color: var(--purple-lighter);
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

.about-links {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-visual {
    padding-bottom: 24px;
    padding-right: 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   LATEST MESSAGES
═══════════════════════════════════════════════════════════ */
.latest {
  padding: 96px 0;
  background: var(--deep);
}

.video-featured {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  background: #000;
}

.video-featured iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.playlist-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.playlist-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(87, 49, 152, 0.14);
}

.playlist-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.playlist-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.playlist-info {
  padding: 14px 18px 18px;
}

.playlist-tag {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 5px;
}

.playlist-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.playlist-link {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.playlist-link:hover {
  gap: 10px;
}

.latest .section-label {
  margin-top: 4px;
}

@media (prefers-color-scheme: light) {
  .latest {
    background: var(--deep);
  }

  .playlist-card {
    background: var(--card);
  }

  .playlist-tag {
    color: #6b3ec4;
  }

  .playlist-link {
    color: #5b29b0;
  }
}

@media (max-width: 960px) {
  .playlists-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .playlists-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   EVENTS
═══════════════════════════════════════════════════════════ */
.events {
  padding: 96px 0;
}

.egrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.ecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.ecard-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ecard:hover {
  transform: translateY(-8px);
  border-color: var(--purple-light);
  box-shadow: 0 20px 56px rgba(87, 49, 152, 0.18);
}

.ecard:hover .ecimg img {
  transform: scale(1.05);
}

.ecimg {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #180d28, #0d1224);
}

.ecimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.ecdate {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(87, 49, 152, 0.95);
  padding: 10px 14px;
  text-align: center;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ecd-d {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.ecd-m {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.ecbody {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ectag {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 8px;
}

.ectitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.ectime {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ectime i {
  color: var(--purple);
}

@media (prefers-color-scheme: light) {
  .ecard {
    background: var(--card);
  }
}

@media (max-width: 960px) {
  .egrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .egrid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   PASTOR
═══════════════════════════════════════════════════════════ */
.pastor {
  padding: 96px 0;
  background: var(--deep);
}

.pastor-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}

.pastor-img-wrap {
  position: relative;
  padding-bottom: 24px;
  padding-right: 24px;
}

.pastor-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 56%;
  height: 56%;
  border: 2px solid var(--purple);
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
}

.pastor-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}

.pastor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pastor-quote-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--purple);
  padding: 24px 26px;
  max-width: 250px;
  border-radius: var(--radius);
}

.pastor-quote-badge p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin: 0;
}

.pastor-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
}

.pastor-name-tag {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 26px;
}

.pastor-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

.pastor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 42px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.p-stat {
  background: var(--purple-dim);
  border: 1px solid rgba(123, 79, 196, 0.25);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.p-stat:hover {
  border-color: var(--purple-lighter);
  background: rgba(123, 79, 196, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(87, 49, 152, 0.12);
}

.p-stat .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--purple-lighter);
  line-height: 1;
  margin-bottom: 8px;
}

.p-stat .lbl {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  .pastor {
    background: var(--deep);
  }

  .pastor-name-tag {
    color: #5b29b0;
  }

  .p-stat .num {
    color: #5b29b0;
  }

  .p-stat {
    background: rgba(72, 30, 140, 0.07);
    border-color: rgba(72, 30, 140, 0.18);
  }

  .p-stat .lbl {
    color: var(--muted);
  }
}

@media (max-width: 960px) {
  .pastor-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .pastor-img-wrap {
    padding-bottom: 20px;
    padding-right: 20px;
    max-width: 480px;
  }

  .pastor-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pastor-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
    margin: 28px 0;
  }

  .p-stat {
    padding: 20px 16px;
  }

  .p-stat .num {
    font-size: 36px;
  }
}


/* ═══════════════════════════════════════════════════════════
   MINISTRIES
═══════════════════════════════════════════════════════════ */
.connect {
  padding: 96px 0;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 52px;
}

.connect-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 52px 40px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
}

.connect-card:hover {
  background: var(--card-hover);
  box-shadow: 0 12px 40px rgba(87, 49, 152, 0.12);
}

.connect-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  border-radius: 0 0 var(--radius) var(--radius);
}

.connect-card:hover::after {
  transform: scaleX(1);
}

.connect-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: rgba(87, 49, 152, 0.04);
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 28px;
}

.connect-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-dim);
  border: 1px solid rgba(123, 79, 196, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
}

.connect-icon i {
  color: var(--purple-lighter);
  font-size: 17px;
}

.connect-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
}

.connect-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 22px;
}

@media (prefers-color-scheme: light) {
  .connect-card {
    background: var(--card);
  }

  .connect-card:hover {
    background: var(--card-hover);
  }

  .connect-icon {
    background: rgba(72, 30, 140, 0.1);
    border-color: rgba(72, 30, 140, 0.2);
  }

  .connect-icon i {
    color: #6b3ec4;
  }
}

@media (max-width: 960px) {
  .connect-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   BIBLE FELLOWSHIP GROUPS
═══════════════════════════════════════════════════════════ */
.bfg {
  padding: 96px 0;
  background: var(--deep);
}

.bfg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.bfg-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.bfg-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
  box-shadow: 0 12px 36px rgba(87, 49, 152, 0.14);
}

.bfg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--purple);
  border-radius: var(--radius) 0 0 var(--radius);
}

.bfg-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.bfg-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.bfg-badge {
  background: var(--purple-dim);
  color: var(--purple-lighter);
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

.bfg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.bfg-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.bfg-meta-item i {
  color: var(--purple-lighter);
  font-size: 10px;
}

.bfg-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.bfg-hidden {
  display: none;
}

.bfg-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 0;
}

.bfg-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

@media (prefers-color-scheme: light) {
  .bfg {
    background: var(--deep);
  }

  .bfg-card {
    background: var(--card);
  }

  .bfg-badge {
    background: rgba(72, 30, 140, 0.1);
    color: #5b29b0;
  }

  .bfg-card::before {
    background: #5b29b0;
  }

  .bfg-meta-item i {
    color: #6b3ec4;
  }
}

@media (max-width: 960px) {
  .bfg-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bfg-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   VISIT
═══════════════════════════════════════════════════════════ */
.visit {
  padding: 96px 0;
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.visit-info h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.visit-info h2 em {
  font-style: italic;
  color: var(--purple-lighter);
}

.visit-info > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.visit-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.visit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.visit-item:hover {
  border-color: var(--border-hover);
}

.visit-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--purple-dim);
  border: 1px solid rgba(123, 79, 196, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.visit-icon i {
  color: var(--purple-lighter);
  font-size: 15px;
}

.visit-item h4 {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 3px;
}

.visit-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.visit-map {
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
}

.visit-map iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
  filter: grayscale(15%) contrast(1.08);
}

/* Address link: purple + underline (location item only) */
.link-address {
  color: var(--purple-lighter);
  text-decoration: underline;
}

/* Contact links inside visit items: inherit surrounding text color */
.visit-item p a {
  color: inherit;
}

@media (prefers-color-scheme: light) {
  .visit-item {
    background: var(--card);
  }

  .visit-icon {
    background: rgba(72, 30, 140, 0.1);
    border-color: rgba(72, 30, 140, 0.18);
  }

  .visit-icon i {
    color: #6b3ec4;
  }
}

@media (max-width: 960px) {
  .visit-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}


/* Section label centered variant */
.section-label--center {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   GIVE
═══════════════════════════════════════════════════════════ */
.give {
  padding: 112px 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(87, 49, 152, 0.2) 0%, transparent 62%), var(--bg);
}

.give h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

.give h2 em {
  font-style: italic;
  color: var(--purple-lighter);
}

.give > .container > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 44px;
}

.give-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.give-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  min-width: 190px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
}

.give-card:hover {
  border-color: var(--purple-lighter);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(87, 49, 152, 0.15);
}

.give-card .g-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-dim);
  border: 1px solid rgba(123, 79, 196, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.give-card .g-icon i {
  color: var(--purple-lighter);
  font-size: 16px;
}

.give-card h4 {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.give-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

@media (prefers-color-scheme: light) {
  .give {
    background: radial-gradient(ellipse at 50% 0%, rgba(72, 30, 140, 0.12) 0%, transparent 60%), var(--bg);
  }

  .give-card {
    background: var(--card);
  }
}

@media (max-width: 640px) {
  .give-options {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .give-card {
    min-width: unset;
  }
}


/* Centered button group row — used in CTA banner */
.btn-group-center {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery {
  padding: 96px 0;
  background: var(--deep);
}

.masonry-grid {
  column-count: 4;
  column-gap: 10px;
  margin-top: 52px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.55s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(87, 49, 152, 0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-item:hover .img-overlay {
  background: rgba(87, 49, 152, 0.18);
}

.masonry-item .img-overlay i {
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity var(--transition);
}

.masonry-item:hover .img-overlay i {
  opacity: 0.9;
}

.gallery-hidden {
  display: none;
}

.gallery-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

@media (prefers-color-scheme: light) {
  .gallery {
    background: var(--deep);
  }
}

@media (max-width: 960px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}


/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.cta-banner {
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(87, 49, 152, 0.2) 0%, rgba(87, 49, 152, 0.04) 50%, transparent 100%),
    var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  max-width: 740px;
  margin: 0 auto 24px;
  color: var(--text);
}

.cta-banner h2 em {
  font-style: italic;
  color: var(--purple-lighter);
}

.cta-banner > .container > p {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cta-times {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-time {
  padding: 16px 28px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-cond);
  border-radius: var(--radius);
}

.cta-time .day {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 3px;
}

.cta-time .time {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.cta-time .type {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

@media (prefers-color-scheme: light) {
  .cta-banner {
    background:
      linear-gradient(135deg, rgba(72, 30, 140, 0.1) 0%, rgba(72, 30, 140, 0.03) 50%, transparent 100%),
      var(--deep);
  }

  .cta-time {
    background: var(--card);
  }
}

@media (max-width: 640px) {
  .cta-times {
    flex-direction: column;
    align-items: center;
  }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 16px;
  filter: var(--logo-filter, brightness(0) invert(1));
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 250px;
}

.footer-socials {
  display: flex;
  gap: 9px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--purple-lighter);
  color: var(--purple-lighter);
  background: var(--purple-dim);
}

.footer-col h5 {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-lighter);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--muted2);
}

.footer-bottom a {
  color: var(--muted2);
}

.footer-bottom a:hover {
  color: var(--purple-lighter);
}

@media (prefers-color-scheme: light) {
  footer {
    background: #e4dff5;
  }

  .footer-brand p,
  .footer-col a {
    color: var(--muted);
  }

  .footer-col a:hover {
    color: var(--text);
  }

  .footer-bottom p,
  .footer-bottom a {
    color: var(--muted2);
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  min-width: 100px;
  min-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  cursor: default;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity var(--transition), background var(--transition);
}

#lightbox-close:hover {
  opacity: 1;
  background: rgba(87, 49, 152, 0.45);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity var(--transition), background var(--transition);
  z-index: 601;
}

#lightbox-prev {
  left: 18px;
}

#lightbox-next {
  right: 18px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  opacity: 1;
  background: rgba(87, 49, 152, 0.45);
}

#lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}


/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(87, 49, 152, 0.45);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#backToTop:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media print {
  #backToTop {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   PAGE LOAD / MISC
═══════════════════════════════════════════════════════════ */
/*
  IMPORTANT: Do NOT apply transform-based animations to <body>.
  A transform on body creates a new stacking context, which breaks
  position:fixed children (they position relative to body, not viewport).
  Apply the fade-in to .page-wrapper instead.
*/
@keyframes page-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-wrapper {
  animation: page-in 0.5s ease forwards;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--purple-dim);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

:focus-visible {
  outline: 2px solid var(--purple-lighter);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(87, 49, 152, 0.35);
  color: var(--text);
}

section,
footer,
nav {
  transition: background-color 0.35s ease;
}
