/**
 * Project archive — alternating image/content feature sections, "Why
 * Choose Us" grid, and the shared CTA band close out the page.
 */

.tg-projects {
  overflow: hidden;
}

.tg-project-feature {
  position: relative;
  padding-block: var(--tg-space-xl);
}

.tg-project-feature__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: center;
  gap: var(--tg-space-xl);
}

.tg-project-feature--reverse .tg-project-feature__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
}

.tg-project-feature--reverse .tg-project-feature__media {
  order: 2;
}

.tg-project-feature__media {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border-radius: var(--tg-radius-lg);
  overflow: hidden;
}

.tg-project-feature__media img,
.tg-project-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tg-project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--tg-space-xs);
  background-color: var(--tg-background);
}

.tg-project-placeholder__svg {
  width: 96px;
  height: 96px;
}

.tg-project-placeholder__label {
  font-size: var(--tg-text-sm);
  font-weight: 600;
  color: var(--tg-muted);
}

.tg-project-feature__tagline {
  color: var(--tg-green);
  font-weight: 700;
  font-size: var(--tg-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--tg-space-xs);
}

.tg-project-feature__title {
  font-size: var(--tg-text-3xl);
  margin: 0 0 var(--tg-space-sm);
}

.tg-project-feature__desc {
  color: var(--tg-muted);
  font-size: var(--tg-text-base);
  line-height: 1.75;
  margin-bottom: var(--tg-space-md);
}

.tg-project-feature__desc p:last-child {
  margin-bottom: 0;
}

.tg-project-feature__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.tg-project-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--tg-text-sm);
  font-weight: 600;
  color: var(--tg-dark-blue);
  line-height: 1.4;
}

.tg-project-feature__list .tg-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(0, 155, 85, 0.12);
  color: var(--tg-green);
  margin-top: 1px;
}

.tg-project-feature__list .tg-icon svg {
  width: 0.7em;
  height: 0.7em;
}

/* Why Choose Us */
.tg-why-us__title {
  text-align: center;
  font-size: var(--tg-text-3xl);
  margin: 0 0 var(--tg-space-lg);
}

.tg-why-us__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tg-space-md);
}

.tg-why-us__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--tg-white);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--tg-dark-blue);
  font-size: var(--tg-text-sm);
  line-height: 1.35;
  box-shadow: var(--tg-shadow-sm);
}

.tg-why-us__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 155, 85, 0.12);
  color: var(--tg-green);
}

.tg-why-us__icon svg {
  width: 1em;
  height: 1em;
}

@media (max-width: 900px) {
  .tg-project-feature__inner,
  .tg-project-feature--reverse .tg-project-feature__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .tg-project-feature--reverse .tg-project-feature__media {
    order: 0;
  }

  .tg-project-feature__media {
    max-width: 300px;
  }

  .tg-project-feature__list {
    text-align: left;
  }

  .tg-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tg-project-feature {
    padding-block: var(--tg-space-xl);
  }

  .tg-project-feature__title {
    font-size: var(--tg-text-2xl);
  }

  .tg-project-feature__list {
    grid-template-columns: 1fr;
  }

  .tg-why-us__grid {
    grid-template-columns: 1fr;
  }
}
