/* =========================================================
   LATEST PROJECT
========================================================= */

.latest-page {
  padding: 90px 0;
  background: #fff;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.project-heading {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.project-heading .eyebrow {
  display: inline-block;
  margin-bottom: 14px;

  color: var(--red);
  font-family: "Archivo", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-heading h2 {
  margin: 0;

  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.project-heading .lead {
  max-width: 680px;
  margin: 20px auto 0;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}


/* =========================================================
   PROJECT ITEM
========================================================= */

.project-item {
  width: 100%;
  margin-bottom: 80px;
  padding-bottom: 80px;

  background: #fff;
  border-bottom: 1px solid var(--line);
}

.project-item:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}


/* =========================================================
   DATE
========================================================= */

.project-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.project-date span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  background: var(--red);
  color: #fff;

  font-family: "Archivo", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.project-date strong {
  color: var(--navy);

  font-family: "Archivo", sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}


/* =========================================================
   PHOTO
========================================================= */

.project-photo {
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--surface);
}

.project-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform .5s ease;
}

.project-item:hover .project-photo img {
  transform: scale(1.02);
}


/* =========================================================
   DETAIL
========================================================= */

.project-detail {
  max-width: 900px;
  padding-top: 30px;
}

.project-location {
  color: var(--red);

  font-family: "Archivo", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.project-detail h3 {
  margin-top: 8px;

  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
}

.project-description {
  max-width: 800px;
  margin-top: 12px;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.project-info span {
  padding: 7px 12px;

  background: var(--surface);
  border: 1px solid var(--line);

  color: var(--muted);

  font-family: "Archivo", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
}


/* =========================================================
   CTA
========================================================= */

.project-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  margin-top: 80px;
  padding: 42px 46px;

  background: var(--navy);
  color: #fff;
}

.project-cta h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.project-cta p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 10px;

  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}

.project-cta .btn {
  flex-shrink: 0;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.project-back {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .latest-page {
    padding: 70px 0;
  }

  .project-heading {
    margin-bottom: 45px;
  }

  .project-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
  }

  .project-photo {
    height: 420px;
  }

  .project-detail {
    padding-top: 26px;
  }

  .project-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 35px;
  }

  .project-cta .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .latest-page {
    padding: 60px 0;
  }

  .project-heading {
    margin-bottom: 40px;
  }

  .project-item {
    margin-bottom: 50px;
    padding-bottom: 50px;
  }

  .project-date {
    gap: 10px;
    margin-bottom: 14px;
  }

  .project-date span {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }

  .project-date strong {
    font-size: .68rem;
  }

  .project-photo {
    height: 260px;
  }

  .project-detail {
    padding-top: 22px;
  }

  .project-location {
    font-size: .65rem;
  }

  .project-detail h3 {
    font-size: 1.5rem;
  }

  .project-description {
    font-size: .9rem;
  }

  .project-info {
    margin-top: 20px;
  }

  .project-info span {
    padding: 6px 9px;
    font-size: .6rem;
  }

  .project-cta {
    margin-top: 60px;
    padding: 30px 24px;
  }

  .project-cta h2 {
    font-size: 1.5rem;
  }

  .project-back {
    margin-top: 30px;
  }
}