/* ==========================================================================
   Index Page — Homepage Narrative Redesign
   ========================================================================== */

/* ── Homepage Section Padding Override ────────────────────────────────── */

#why-helio,
#proof,
.journey-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

@media (min-width: 768px) {
  #why-helio,
  #proof,
  .journey-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ── Trust Badges → Problem Section Gap ─────────────────────────────── */

.trust-badges {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.trust-badges .trust-badges__label--separated {
  margin-top: var(--space-2);
}

#why-helio {
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  #why-helio {
    margin-top: var(--space-8);
  }
}

/* ── Problem Grid — 4 across on desktop ──────────────────────────────── */

.index-problem-grid {
  max-width: none;
  margin: 0 auto;
}

.index-mechanism-grid {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Problem Cards — tighter padding ──────────────────────────────────── */

.problem-card {
  padding: var(--space-4);
}

/* ── Problem Climax Quote — gold-bordered blockquote ─────────────────── */

.problem-climax-quote {
  border-top: 3px solid var(--gold-500);
  border-bottom: 3px solid var(--gold-500);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) auto 0;
  max-width: 600px;
  text-align: center;
}

.problem-climax-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: italic;
  color: var(--charcoal-900);
  line-height: 1.4;
  margin: 0;
}

/* ── Section Transitions — gold connecting text ──────────────────────── */

.section-transition {
  text-align: center;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-top: var(--space-6);
  letter-spacing: 0.02em;
}

/* ── Proof Section — over-under projects + reviews ───────────────────── */

.proof-projects__list {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .proof-projects__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project cards in proof — consistent aspect ratio */
#proof .project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#proof .project-card__image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#proof .project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#proof .project-card__content {
  padding: var(--space-3);
}

#proof .project-card__title {
  font-size: var(--text-sm);
}

#proof .project-card__meta {
  font-size: var(--text-xs);
}

/* ── Reviews — Google-style header bar + card grid ───────────────────── */

.proof-reviews__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.proof-reviews__google-g {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.proof-reviews__header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-reviews__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
}

.proof-reviews__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.proof-reviews__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--charcoal-900);
}

.proof-reviews__rating-stars {
  display: flex;
  gap: 1px;
}

.proof-reviews__rating-stars svg {
  width: 16px;
  height: 16px;
  color: #fbbc04;
}

.proof-reviews__count {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* Reviews grid — 3 columns desktop, 2 tablet, 1 mobile */
.proof-reviews-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .proof-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .proof-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual review card */
.proof-review {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.proof-review__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.proof-review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-200);
  color: var(--gold-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.proof-review__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.proof-review__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--charcoal-900);
}

.proof-review__role {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.proof-review__stars {
  display: flex;
  gap: 1px;
  margin-bottom: var(--space-2);
}

.proof-review__stars svg {
  width: 14px;
  height: 14px;
  color: #fbbc04;
}

.proof-review__text {
  font-size: var(--text-sm);
  color: var(--charcoal-800);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reviews footer link */
.proof-reviews__footer {
  text-align: center;
  margin-top: var(--space-5);
}

.proof-reviews__footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gold-600);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}

.proof-reviews__footer-link:hover {
  color: var(--gold-700);
}

/* ── Reviews — hide 4-6 on mobile to reduce scroll bloat ─────────────── */

@media (max-width: 639px) {
  .proof-reviews-grid .proof-review:nth-child(n + 4) {
    display: none;
  }
}

/* ── Proof Reviews — spacing from projects ───────────────────────────── */

.proof-reviews {
  margin-top: var(--space-10);
}

/* ── What We Build — CMHC card variant ───────────────────────────────── */

.project-card--cmhc {
  border: 2px solid var(--gold-200);
}

.project-card--cmhc:hover {
  border-color: var(--gold-500);
}

.project-card__status--cmhc {
  background: var(--gold-500);
}

.index-designs-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Journey Section — warm gold-tinted background ───────────────────── */

.journey-section {
  background: linear-gradient(to bottom, var(--gold-100), var(--white));
}

/* ── Journey Grid — 5 columns on desktop ─────────────────────────────── */

.index-journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .index-journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .index-journey-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Journey Cards — interactive navigation cards ────────────────────── */

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.journey-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.journey-card--primary {
  background: var(--gold-100);
  border-color: var(--gold-400);
  order: -1;
}

@media (min-width: 1024px) {
  .journey-card--primary {
    order: unset;
  }
}

.journey-card--primary:hover {
  border-color: var(--gold-600);
}

.journey-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.journey-card--primary .journey-card__icon {
  background: var(--gold-200);
}

.journey-card__icon svg {
  width: 22px;
  height: 22px;
}

.journey-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.journey-card__description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Utility classes ──────────────────────────────────────────────────── */

.index-text-muted {
  color: var(--gray-600);
}

.index-link-gold {
  color: var(--gold-500);
}

.index-link-gold:hover {
  color: var(--gold-600);
}

.index-cta-title {
  color: var(--white);
  margin-bottom: var(--space-4);
}

/* ── Hero Image Constraint ────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .hero__image {
    max-height: 500px;
    overflow: hidden;
  }
}
