/* Shared footer styles for all pages */
.church-footer {
  --text-primary: #ffffff;
  --text-secondary: #cbb6ff;
  --accent-color: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(-45deg, #8403fe, #4c019a, #180032, #4c019a);
  background-size: 400% 400%;
  animation: pgiFooterGradientMove 15s ease infinite;
  color: var(--text-primary);
  padding: 80px 5% 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  font-family: "Inter", sans-serif;
}

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

.church-footer h3,
.church-footer p,
.church-footer ul {
  margin: 0;
  padding: 0;
}

.church-footer .footer-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: pgiFooterFadeUp 0.8s ease forwards;
}

.church-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.church-footer .footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.church-footer .footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  animation: pgiFooterFadeUp 0.8s ease 0.2s forwards;
}

.church-footer .contact-info {
  list-style: none;
  margin-bottom: 30px;
}

.church-footer .contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-speed);
  opacity: 0;
  transform: translateX(-20px);
  animation: pgiFooterSlideRight 0.8s ease forwards;
}

.church-footer .contact-info li:nth-child(1) { animation-delay: 0.4s; }
.church-footer .contact-info li:nth-child(2) { animation-delay: 0.5s; }
.church-footer .contact-info li:nth-child(3) { animation-delay: 0.6s; }

.church-footer .contact-info li i {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--accent-color);
  font-size: 0.8rem;
  transition: all var(--transition-speed);
}

.church-footer .contact-info li:hover i {
  background: var(--accent-color);
  color: #180032;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-glow);
}

.church-footer .contact-info li:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.church-footer .social-links {
  display: flex;
  gap: 15px;
  opacity: 0;
  animation: pgiFooterFadeIn 1s ease 0.8s forwards;
}

.church-footer .social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.church-footer .social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  transform: translateY(100%);
  transition: transform var(--transition-speed);
  z-index: -1;
}

.church-footer .social-btn:hover {
  color: #180032;
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.church-footer .social-btn:hover::before {
  transform: translateY(0);
}

.church-footer .footer-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: pgiFooterFadeUp 0.8s ease 0.3s forwards;
}

.church-footer .footer-col h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.church-footer .footer-col:hover h3::after {
  width: 100%;
}

.church-footer .footer-links {
  list-style: none;
}

.church-footer .footer-links li {
  margin-bottom: 12px;
}

.church-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.church-footer .footer-links a::before {
  content: "->";
  position: absolute;
  left: -18px;
  opacity: 0;
  color: var(--accent-color);
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.church-footer .footer-links a:hover {
  color: var(--text-primary);
  padding-left: 15px;
}

.church-footer .footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.church-footer .worship-box {
  grid-column: 2 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
}

.church-footer .worship-box h2 {
  font-size: 1.6rem;
  margin-bottom: 30px;
}

.church-footer .worship-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.church-footer .worship-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.church-footer .worship-item i {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 8px;
  color: #ffd54a;
}

.church-footer .worship-item h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.church-footer .worship-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.church-footer .visit-btn {
  display: inline-block;
  background: #ffd54a;
  color: #180032;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.church-footer .visit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.church-footer .footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  transition: all 0.8s ease;
}

.church-footer .copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.church-footer .designer-credit {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.church-footer .designer-credit a {
  color: #ffd54a;
  text-decoration: none;
}

.church-footer .designer-credit a:hover {
  text-decoration: underline;
}

@keyframes pgiFooterFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pgiFooterSlideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pgiFooterFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pgiFooterGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 1024px) {
  .church-footer .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .church-footer .worship-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .church-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .church-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .church-footer .worship-grid {
    flex-direction: column;
    gap: 30px;
  }
}
