/* ==========================================================================
   PROVEN COOPERATIVE — HOMEPAGE SPECIFIC STYLES
   Reference: Doc/home.md & Doc/DESIGN_SYSTEM.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-page);
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-lead {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, var(--text-xl));
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-cta-group .btn {
    width: 100%;
  }
}

.hero-cta-subtext {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-cta-subtext a {
  color: var(--color-green-700);
  font-weight: 600;
  text-decoration: underline;
}

[data-theme="dark"] .hero-cta-subtext a {
  color: var(--color-gold-500);
}

/* --------------------------------------------------------------------------
   Badagry-Style Column Curtain Hero Visual & Slider Animation
   Inspired by badagry.lg.gov.ng Revolution Slider Curtain Reveal (data-in="o:1;y:(-100%);col:5;")
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.badagry-hero-slider {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(10, 46, 36, 0.28), 0 0 0 1px rgba(0, 230, 118, 0.25);
  background: var(--color-green-900);
}

@media (max-width: 640px) {
  .badagry-hero-slider {
    height: 380px;
  }
}

.badagry-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.badagry-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* 5 Vertical Column Slices for Curtain Drop Animation */
.badagry-slice {
  position: relative;
  flex: 1 1 20%;
  height: 100%;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

/* Staggered Top-Down Entry Delays (Left to Right Wave) */
.badagry-slide.active .badagry-slice:nth-child(1) {
  transition-delay: 0.04s;
  transform: translateY(0);
  opacity: 1;
}
.badagry-slide.active .badagry-slice:nth-child(2) {
  transition-delay: 0.12s;
  transform: translateY(0);
  opacity: 1;
}
.badagry-slide.active .badagry-slice:nth-child(3) {
  transition-delay: 0.20s;
  transform: translateY(0);
  opacity: 1;
}
.badagry-slide.active .badagry-slice:nth-child(4) {
  transition-delay: 0.28s;
  transform: translateY(0);
  opacity: 1;
}
.badagry-slide.active .badagry-slice:nth-child(5) {
  transition-delay: 0.36s;
  transform: translateY(0);
  opacity: 1;
}

/* Sliced Image Element matching the full container width */
.badagry-slice-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 500%; /* 5 columns = 500% width */
  max-width: none;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.badagry-slide.active .badagry-slice-img {
  transform: scale(1.06);
}

.badagry-slice:nth-child(1) .badagry-slice-img { left: 0%; }
.badagry-slice:nth-child(2) .badagry-slice-img { left: -100%; }
.badagry-slice:nth-child(3) .badagry-slice-img { left: -200%; }
.badagry-slice:nth-child(4) .badagry-slice-img { left: -300%; }
.badagry-slice:nth-child(5) .badagry-slice-img { left: -400%; }

/* Subtle Gradient & Fine Grid Overlay */
.badagry-overlay-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 25, 19, 0.15) 0%, rgba(7, 25, 19, 0.45) 75%, rgba(7, 25, 19, 0.8) 100%);
}

.badagry-overlay-mesh {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.45;
}

/* Badagry-style Floating Tag Badge */
.badagry-slide-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(10, 46, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 230, 118, 0.5);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.badagry-slide-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold-500);
  display: inline-block;
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Caption bar at the bottom */
.badagry-slide-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 4.5rem;
  z-index: 5;
  color: var(--color-white);
}

.badagry-slide-caption h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.badagry-slide-caption p {
  font-size: var(--text-xs);
  color: #dcece3;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Badagry-style Vertical Indicator Bullets (h_align: right, v_align: center, direction: vertical) */
.badagry-bullets {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
}

.badagry-bullet-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  outline: none;
}

.badagry-bullet-btn:hover,
.badagry-bullet-btn:focus-visible {
  background: rgba(0, 230, 118, 0.7);
  border-color: var(--color-gold-500);
  transform: scale(1.2);
}

.badagry-bullet-btn.active {
  background: var(--color-gold-500);
  border-color: var(--color-white);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.7);
  transform: scale(1.25);
}

/* Soft Green Ambient Backing for Hero Visual */
.hero-visual-bg {
  position: absolute;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--color-green-100) 0%, rgba(220, 236, 227, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-visual-bg {
  background: radial-gradient(circle, rgba(20, 97, 73, 0.3) 0%, rgba(7, 25, 19, 0) 70%);
}

.hero-stair-wrapper {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 420px;
  width: 100%;
}

.stair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Introduction & Values Cards
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.mission-vision-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .mission-vision-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.mv-card {
  padding: 1.5rem;
  background: var(--bg-tint);
  border-left: 4px solid var(--color-green-700);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mv-card h3 {
  font-size: var(--text-base);
  color: var(--color-green-700);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .mv-card h3 {
  color: var(--color-gold-500);
}

.mv-card p {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Product Cards Section
   -------------------------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-green-700);
}

.product-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tint);
  color: var(--color-green-700);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

[data-theme="dark"] .product-badge {
  background: var(--border-green);
  color: var(--color-gold-500);
}

.product-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-main);
  margin: 0.75rem 0;
}

.product-rate-tenor {
  padding: 0.75rem;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-main);
  font-weight: 600;
}

.products-footer-strip {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .products-footer-strip {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   Membership 4-Tiles Summary
   -------------------------------------------------------------------------- */
.membership-tile-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.membership-tile-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-gold-500);
  margin-bottom: 0.5rem;
}

.membership-tile-label {
  font-size: var(--text-sm);
  color: #dcece3;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Community Teaser
   -------------------------------------------------------------------------- */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Final CTA Banner
   -------------------------------------------------------------------------- */
.final-cta-section {
  background: linear-gradient(135deg, var(--color-green-900) 0%, #061f18 100%);
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
}

.final-cta-content {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

