/* Custom utilities for First Love Church Barbados */
:root {
  color-scheme: light dark;
  --bg-night-start: #05060f;
  --bg-night-end: #101523;
  --bg-night-highlight: rgba(92, 37, 197, 0.25);
  --bg-night-soft: rgba(217, 45, 109, 0.18);
  --nav-highlight: rgba(255, 255, 255, 0.06);
  --nav-border: rgba(255, 255, 255, 0.12);
  --footer-accent: linear-gradient(180deg, rgba(255, 89, 173, 0.4), rgba(74, 81, 255, 0));
}

html {
  scroll-padding-top: 6rem; /* 96px for fixed nav + spacing */
}

body {
  min-width: 320px;
}

.bio-link {
  font-weight: 600;
  color: #e9254c;
  text-decoration: underline;
  text-decoration-color: rgba(233, 37, 76, 0.3);
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
}

.bio-link:hover {
  color: #ff6a88;
  text-decoration-color: rgba(255, 106, 136, 0.5);
}

body.flc-page {
  min-height: 100vh;
  background-color: var(--bg-night-start);
  background-image:
    radial-gradient(circle at 12% 16%, var(--bg-night-soft), transparent 45%),
    radial-gradient(circle at 85% 8%, var(--bg-night-highlight), transparent 55%),
    linear-gradient(180deg, var(--bg-night-start) 0%, var(--bg-night-end) 100%);
  color: #f7f8ff;
}

body.flc-menu-open {
  overflow: hidden;
}

body.flc-page > main {
  position: relative;
  z-index: 1;
  color: #0f172a;
}

.flc-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flc-nav__logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

.flc-nav__logo img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.flc-nav__link {
  position: relative;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.flc-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 107, 173, 0.7), rgba(123, 157, 255, 0.7));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.flc-nav__link:focus-visible,
.flc-nav__link:hover {
  color: #ffffff;
}

.flc-nav__link:focus-visible::after,
.flc-nav__link:hover::after {
  transform: scaleX(1);
}

.flc-nav__divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
}

.flc-nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, color 0.2s ease;
}

.flc-nav__social:hover,
.flc-nav__social:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.flc-mobile-panel {
  display: flex;
  flex-direction: column;
  background: rgb(0, 0, 0);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: -20px 0 48px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.flc-mobile-panel.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.flc-mobile-link {
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.flc-mobile-link:hover,
.flc-mobile-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.flc-mobile-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flc-mobile-headline span {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.flc-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.flc-mobile-close:hover,
.flc-mobile-close:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.flc-mobile-links {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0 2rem;
}

.flc-mobile-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.flc-mobile-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.flc-mobile-socials a:hover,
.flc-mobile-socials a:focus-visible {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.flc-footer {
  position: relative;
  margin-top: 0;
  background: rgb(0, 0, 0);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.flc-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

.flc-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.8) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(147, 51, 234, 0.8) 100%);
}

.flc-footer__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.flc-footer__logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.flc-footer__column h3 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.flc-footer__column h3.is-purple {
  color: #ba8eff;
}

.flc-footer__column h3.is-pink {
  color: #ff7ac9;
}

.flc-footer__column h3.is-orange {
  color: #ff6b6b;
}

.flc-footer__links a {
  display: inline-flex;
  color: rgba(241, 243, 255, 0.82);
  transition: color 0.2s ease;
}

.flc-footer__links a:hover,
.flc-footer__links a:focus-visible {
  color: #ffffff;
}

.flc-footer__social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.flc-footer__social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flc-footer__social-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flc-footer__social:hover .flc-footer__social-box,
.flc-footer__social:focus-visible .flc-footer__social-box {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flc-footer__social svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.flc-footer__social-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background-color: #111827;
  color: #ffffff;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.flc-footer__social:hover .flc-footer__social-tooltip,
.flc-footer__social:focus-visible .flc-footer__social-tooltip {
  opacity: 1;
}

.flc-footer__button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: rgba(6, 10, 22, 0.6);
  padding: 0.75rem 1.25rem;
  color: rgba(241, 243, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flc-footer__button:hover,
.flc-footer__button:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.flc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .flc-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible {
    transition: none;
    transform: none;
  }
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: rgba(255, 255, 255, 0.95);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.social-icon {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
}


/* Mobile navigation refinements */
.flc-mobile-panel {
  background: linear-gradient(200deg, rgba(5, 7, 18, 0.98) 0%, rgba(8, 11, 26, 0.98) 55%, rgba(10, 10, 18, 0.95) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.flc-mobile-headline {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flc-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.68);
}

.flc-mobile-brand span {
  white-space: nowrap;
}

.flc-mobile-links {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0 2.5rem;
}

.flc-mobile-link {
  display: block;
  padding: 0.9rem 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.flc-mobile-link:hover,
.flc-mobile-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.flc-mobile-close {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
}

.flc-mobile-close:hover,
.flc-mobile-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.flc-mobile-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.flc-mobile-socials span {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.flc-mobile-social-icons {
  display: flex;
  gap: 0.9rem;
}

.flc-mobile-social-icons a {
  width: 40px;
  height: 40px;
}
