/* Helpers (used by this section) */
.text-muted-foreground {
  color: var(--muted-fg);
}
.text-primary {
  color: var(--primary);
}
.w-fit {
  width: fit-content;
}
.w-fit-inline {
  width: fit-content;
  display: inline-flex;
}

/* Project Plans / Projects Showcase */
.projects-showcase .showcase-header {
  max-width: 860px;
  margin: 0 auto 70px;
  text-align: center;
}

.showcase-kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.showcase-title {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

@media (min-width: 768px) {
  .showcase-title {
    font-size: 48px;
  }
}

.showcase-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

/* Hover effects like framer whileHover */
.hover-lift {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

/* Featured card layout */
.showcase-card {
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.showcase-image {
  position: relative;
  height: 340px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .showcase-image {
    height: 100%;
    min-height: 520px;
  }
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.hover-lift:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-progress-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 90%
  );
}

.showcase-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.showcase-raised {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.showcase-raised-sub {
  margin: 4px 0 0;
  opacity: 0.85;
  font-size: 13px;
}

.showcase-percent {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.progress-dark {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Body */
.showcase-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .showcase-body {
    padding: 44px;
  }
}

.showcase-project-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.showcase-project-subtitle {
  margin: 0 0 8px;
  font-weight: 700;
}

.showcase-paragraph {
  margin: 0;
  line-height: 1.75;
}

.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 10px;
}

.showcase-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-fg);
}

.showcase-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 640px) {
  .showcase-actions {
    flex-direction: row;
    align-items: center;
  }
}

.showcase-donate {
  padding: 12px 16px;
}

/* Secondary cards */
.showcase-secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 34px;
}

@media (min-width: 768px) {
  .showcase-secondary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .showcase-secondary-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
}

.secondary-image {
  height: 260px;
  overflow: hidden;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.hover-lift:hover .secondary-img {
  transform: scale(1.05);
}

.secondary-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.secondary-subtitle {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.secondary-text {
  margin: 0;
  line-height: 1.75;
  font-size: 14px;
}

/* Make secondary cards equal height */
.showcase-secondary-grid {
  align-items: stretch; /* grid items stretch by default, but keep it explicit */
}

.showcase-secondary-grid > .reveal {
  height: 100%;
}

.showcase-secondary-grid .project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image stays fixed height, body fills the rest */
.secondary-image {
  flex: 0 0 auto;
}

.secondary-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Push the CTA to the bottom for consistent layout */
.secondary-body .btn-secondary-pill {
  margin-top: auto;
}

@media (max-width: 640px) {
  .showcase-sub {
    font-size: 12px;
    line-height: 1.7; /* optional, keeps it readable */
  }

  .showcase-paragraph {
    font-size: 14px;
    line-height: 1.75; /* optional, keeps it readable */
  }
}
