/* pages.css — owned by Tasks 10 & 11 (Learn More, Properties, Details). */

/* ==================================================================
   Task 10 — Learn More: vision points, stat cards, progress bar
   ================================================================== */

/* ---- Vision points ---- */

.vision-point {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #E8E8E8;
}
.vision-point:last-child { border-bottom: none; }

.vision-point__icon {
  flex: 0 0 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--royal);
  display: grid;
  place-items: center;
  color: var(--white);
}
.vision-point__icon::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  border-radius: 50%;
}

.vision-point__text {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}

/* ---- Statistic cards ---- */

.stat-card {
  background: var(--white);
  border-top: 4px solid var(--royal);
  padding: 2.5rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
}

/* Funds Raised is the live one — mark it with the signature colour. */
.stat-card--live { border-top-color: var(--rust); }

.stat-card__value {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;   /* digits don't jitter while counting */
  margin-bottom: 0.5rem;
}
.stat-card--live .stat-card__value { color: var(--rust); }

.stat-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
}

/* ---- Progress bar ---- */

.progress-bar-wrap {
  height: 14px;
  background: #E2E5EA;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal), var(--rust));
  border-radius: 999px;
  transition: width 1.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar-fill { transition: none; }
}

/* ==================================================================
   Task 11 — Properties: cards, feature list, gallery, map
   ================================================================== */

/* ---- Property cards ---- */

.property-card {
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(27, 42, 74, 0.08);
  transition: transform 250ms ease, box-shadow 250ms ease;
  overflow: hidden;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27, 42, 74, 0.16);
}

.property-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.property-card:hover .property-card__image { transform: scale(1.04); }
.property-card__image-link { display: block; overflow: hidden; }

.property-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card__name     { color: var(--navy); margin-bottom: 0.25rem; }
.property-card__location { color: var(--teal); font-weight: 600; font-size: 0.9rem;
                           text-transform: uppercase; letter-spacing: 0.08em; }
.property-card__value    { color: var(--rust); font-size: 1.4rem; font-weight: 800; margin: 0.5rem 0 1rem; }
.property-card__description { flex: 1; font-size: 0.95rem; line-height: 1.7; }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}
.feature--yes { color: var(--navy); font-weight: 600; }
.feature--no  { color: #A8A8A8; }

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.gallery__item figcaption {
  font-size: 0.85rem;
  color: var(--body);
  padding-top: 0.5rem;
}

.map-embed { width: 100%; height: 300px; border: 0; }
.back-link { color: var(--royal); font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .property-card,
  .property-card:hover,
  .property-card__image,
  .property-card:hover .property-card__image {
    transition: none;
    transform: none;
  }
}
