/*---------------------------------------
  PALAVER COMMUNITY PROJECT PAGE STYLES             
-----------------------------------------*/

/* Hero Section */
.hero-section {
  margin-bottom: 0 !important;
  padding-bottom: 80px;
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-buttons .btn {
  min-width: 180px;
}

/* Project Stats Section */
.project-stats-section {
  background: #ECECF1;
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: -70px;
  position: relative;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius-medium);
  padding: 50px 30px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.stat-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(211, 178, 102, 0.2);
  border-color: var(--gold-muted);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: all 0.4s ease;
  display: block;
}

.stat-card:hover .stat-icon {
  transform: scale(1.15);
  color: var(--gold-muted);
}

.stat-number {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  display: block;
}

/* Stagger animation */
.reveal-stat:nth-child(1) { transition-delay: 0.1s; }
.reveal-stat:nth-child(2) { transition-delay: 0.2s; }
.reveal-stat:nth-child(3) { transition-delay: 0.3s; }
.reveal-stat:nth-child(4) { transition-delay: 0.4s; }

/* Concept Section */
.concept-section {
  background: var(--primary-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.concept-section h2 {
  color: var(--white-color);
  letter-spacing: 0.3em;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.concept-subtitle {
  color: var(--white-color);
  opacity: 0.7;
  font-size: 1.1rem;
  margin-top: 10px;
}

.concept-image-wrap {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: all 0.5s ease;
  background: var(--section-bg-color);
}

.concept-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(211, 178, 102, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.concept-image-wrap:hover::before {
  opacity: 1;
}

.concept-image-wrap img {
  transition: transform 0.6s ease;
  width: 100%;
  height: auto;
  display: block;
}

.concept-image-wrap:hover img {
  transform: scale(1.05);
}

.concept-content {
  padding: 20px 0;
}

.concept-content h3 {
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.concept-content p {
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.concept-content p:last-child {
  margin-bottom: 0;
}

.concept-callout {
  background: rgba(211, 178, 102, 0.1);
  border: 1px solid rgba(211, 178, 102, 0.3);
  border-radius: var(--border-radius-medium);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.concept-callout h4 {
  color: var(--gold-muted);
  font-weight: var(--font-weight-bold);
}

/* Reveal animations for concept */
.reveal-concept {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Villages Section */
.villages-section {
  background: #ECECF1;
  padding-top: 100px;
  padding-bottom: 100px;
}

.villages-section h2 {
  color: var(--primary-color);
  letter-spacing: 0.3em;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.villages-subtitle {
  color: var(--p-color);
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 10px;
}

/* Village Gallery */
.village-gallery {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-main {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-gallery.is-visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  margin-top: 20px;
}

.gallery-thumb {
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: var(--gold-muted);
  opacity: 1;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: var(--border-radius-medium);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.5s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(211, 178, 102, 0.2);
  border-color: var(--gold-muted);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--gold-muted);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

.feature-card h5 {
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--p-color);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Stagger feature cards */
.reveal-feature:nth-child(1) { transition-delay: 0.1s; }
.reveal-feature:nth-child(2) { transition-delay: 0.2s; }
.reveal-feature:nth-child(3) { transition-delay: 0.3s; }
.reveal-feature:nth-child(4) { transition-delay: 0.4s; }
.reveal-feature:nth-child(5) { transition-delay: 0.5s; }
.reveal-feature:nth-child(6) { transition-delay: 0.6s; }

/* FAQ Section */
.faq-section {
  background: var(--primary-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.faq-section h2 {
  color: var(--white-color);
  letter-spacing: 0.3em;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.accordion-item {
  background: rgba(11, 13, 26, 0.5);
  border: 1px solid rgba(211, 178, 102, 0.2);
  border-radius: var(--border-radius-medium);
  margin-bottom: 15px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.accordion-button {
  background: transparent;
  color: var(--white-color);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  padding: 20px 25px;
  border: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: rgba(211, 178, 102, 0.1);
  color: var(--gold-muted);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: none;
  content: '+';
  font-size: 1.5rem;
  color: var(--gold-muted);
  font-weight: bold;
  width: auto;
  height: auto;
  background-size: auto;
}

.accordion-button:not(.collapsed)::after {
  content: '−';
  transform: rotate(0);
}

.accordion-body {
  background: rgba(11, 13, 26, 0.3);
  color: var(--white-color);
  padding: 25px;
  line-height: 1.8;
  font-size: 1rem;
}

/* Stagger FAQ items */
.reveal-faq:nth-child(1) { transition-delay: 0.1s; }
.reveal-faq:nth-child(2) { transition-delay: 0.2s; }
.reveal-faq:nth-child(3) { transition-delay: 0.3s; }
.reveal-faq:nth-child(4) { transition-delay: 0.4s; }

/* CTA Section */
.cta-section {
  background: #ECECF1;
  padding-top: 100px;
  padding-bottom: 100px;
}

.cta-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.cta-content h2 {
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: var(--p-color);
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

/* Responsive Adjustments */
@media screen and (max-width: 991px) {
  .hero-section {
    padding-bottom: 60px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .project-stats-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .stat-card,
  .feature-card {
    margin-bottom: 20px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  .concept-section,
  .villages-section,
  .faq-section,
  .cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .concept-content {
    margin-top: 30px;
  }

  .concept-callout {
    padding: 30px 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }
}

@media screen and (max-width: 576px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-card,
  .feature-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-icon,
  .feature-icon {
    font-size: 2rem;
  }

  .concept-callout {
    padding: 25px 18px;
  }

  .accordion-button {
    font-size: 1rem;
    padding: 18px 20px;
  }

  .accordion-body {
    padding: 20px;
    font-size: 0.95rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}