/*
Theme Name: CROWN.925
Theme URI: https://crown925.org
Author: CROWN.925
Description: A warm, faith-grounded theme for CROWN.925 basketball and volleyball ministry
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crown-925
*/

/* === Layout === */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* === Equal Cards === */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* === Section Label === */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

/* === Hero === */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at 60% 50%, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glowShift 8s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* === Scripture Block === */
.scripture-block {
  border-left: 4px solid var(--wp--preset--color--accent);
  padding-left: 1.5rem;
}

/* === Page Title Banner === */
.page-title-banner {
  background: linear-gradient(135deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--light) 100%);
  border-bottom: 1px solid rgba(61, 43, 31, 0.1);
}

/* === Footer Links === */
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* === Leadership Avatar === */
.role-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.role-email {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}
.role-email:hover {
  text-decoration: underline;
}

/* === Programs Card === */
.program-card {
  background: var(--wp--preset--color--light);
  border: 1px solid rgba(61, 43, 31, 0.08);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 43, 31, 0.1);
}

/* === Stats Section === */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wp--preset--color--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* === CTA Band === */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* === Entrance Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInX 0.7s ease forwards;
}

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

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

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

/* === Stagger Children === */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* === Scroll Triggered === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Hover Effects === */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(61, 43, 31, 0.12);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .fade-up,
  .fade-in,
  .slide-in-left,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-section::after {
    animation: none;
  }
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
