/*---------------------------------------
  VISION PAGE SPECIFIC STYLES             
-----------------------------------------*/

/* Vision Statement */
.vision-statement {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--p-color);
  font-weight: var(--font-weight-medium);
  max-width: 800px;
  margin: 0 auto;
}

/* Redesign Section - Expandable Content */
.vision-content-wrapper {
  max-height: 100px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease-out;
  /* Use mask for true transparency fade instead of color overlay */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.vision-content-wrapper.expanded {
  max-height: 600px;
  /* Large enough to fit content */
  -webkit-mask-image: none;
  mask-image: none;
}

/* Hide the old overlay element since we use masks now */
.vision-blur-overlay {
  display: none;
}

.vision-content-wrapper.expanded .vision-blur-overlay {
  opacity: 0;
  pointer-events: none;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--gold-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
  transform: rotate(180deg);
}

/* Impact Statistics */
/* Impact Statistics Collage Grid */
.stats-collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.impact-stat {
  padding: 40px;
  background: rgba(211, 178, 102, 0.05);
  border-radius: var(--border-radius-large);
  border: 1px solid rgba(211, 178, 102, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.stat-main {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(211, 178, 102, 0.15) 0%, rgba(184, 155, 94, 0.05) 100%);
  border-color: rgba(211, 178, 102, 0.3);
}

.stat-secondary {
  grid-column: span 1;
  background: rgba(255, 255, 255, 0.03);
}

.stat-tertiary {
  grid-column: span 1;
  background: rgba(211, 178, 102, 0.08);
}

.stat-accent {
  grid-column: span 3;
  padding: 30px;
  background: linear-gradient(90deg, rgba(211, 178, 102, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.impact-stat:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(211, 178, 102, 0.12);
  border-color: var(--gold-muted);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stat-main .impact-number {
  font-size: 5rem;
}

.impact-number {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gold-muted);
  margin-bottom: 10px;
  line-height: 1;
  font-family: var(--display-font-family, 'High Tide', sans-serif);
}

.impact-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--white-color);
  font-weight: 600;
  margin-bottom: 0;
  opacity: 0.8;
}

/* Animations for collage */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--gold-muted) 0%,
      var(--gold-soft) 50%,
      rgba(211, 178, 102, 0.2) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  padding-right: 50px;
  padding-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  padding-left: 50px;
  padding-right: 0;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--gold-muted);
  border: 4px solid #ECECF1;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-marker.future {
  background: rgba(211, 178, 102, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(211, 178, 102, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(211, 178, 102, 0);
  }
}

.timeline-content {
  width: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(211, 178, 102, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(211, 178, 102, 0.08);
  transform: scale(1.02);
}

.timeline-year {
  display: inline-block;
  background: var(--gold-muted);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: var(--border-radius-large);
  font-weight: var(--font-weight-bold);
  font-size: 0.875rem;
  margin-bottom: 15px;
}

.timeline-content h5 {
  color: var(--gold-muted);
  margin-bottom: 10px;
  font-weight: var(--font-weight-bold);
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(211, 178, 102, 0.15);
  border-radius: var(--border-radius-medium);
  padding: 35px 25px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card:hover {
  background: rgba(211, 178, 102, 0.08);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold-muted);
  opacity: 0.3;
  margin-bottom: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--p-color);
  font-style: italic;
}

.testimonial-author h6 {
  color: var(--gold-muted);
  margin-bottom: 5px;
  font-weight: var(--font-weight-bold);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--p-color);
  opacity: 0.8;
}

/* CTA Options */
.cta-option {
  padding: 20px;
  transition: all 0.3s ease;
}

.cta-option:hover {
  transform: translateY(-5px);
}

.cta-option h5 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cta-option p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--p-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--gold-muted);
}

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

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

/* Mobile Responsive Adjustments */
@media screen and (max-width: 991px) {
  .vision-statement {
    font-size: 1.1rem;
  }

  .stats-collage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-main {
    grid-column: span 2;
    padding: 30px;
  }

  .stat-secondary,
  .stat-tertiary {
    grid-column: span 1;
  }

  .stat-accent {
    grid-column: span 2;
  }

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

  .stat-main .impact-number {
    font-size: 3.5rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
    padding: 20px !important;
  }

  .timeline-marker {
    left: 20px;
  }

  .testimonial-card {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 576px) {
  .stats-collage-grid {
    grid-template-columns: 1fr;
  }

  .stat-main,
  .stat-secondary,
  .stat-tertiary,
  .stat-accent {
    grid-column: span 1;
    padding: 25px;
  }

  .impact-number {
    font-size: 2rem;
  }

  .stat-main .impact-number {
    font-size: 2.8rem;
  }

  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px;
    padding: 15px !important;
  }

  .timeline-year {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .testimonial-quote {
    font-size: 2rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}