/* =========================================
   PROJECTS BY CITY
========================================= */

.projects_city_section {
  position: relative;
  padding: 110px 0;
  /* background: #fff; */
  color: #111;
  overflow: hidden;
}

/* Subtle background detail */
.projects_city_section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid #eeeeee;
  border-radius: 50%;
  pointer-events: none;
}

.projects_city_section .container {
  position: relative;
  z-index: 2;
}

/* =========================================
   HEADER
========================================= */

.projects_city_header {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 80px;
  margin-bottom: 65px;
}

.projects_city_label {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  padding-top: 12px;
}

.projects_city_label span {
  width: 32px;
  height: 1px;
  background: #111;
  display: block;
}

.projects_city_heading_wrap {
  max-width: 800px;
}

.projects_city_heading_wrap h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.projects_city_heading_wrap h2 span {
  color: #777;
}

.projects_city_heading_wrap p {
  max-width: 540px;
  margin: 30px 0 0;

  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* =========================================
   CITY GRID
========================================= */

.projects_city_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dcdcdc;
  border-left: 1px solid #dcdcdc;
}

/* =========================================
   CITY CARD
========================================= */

.projects_city_card {
  position: relative;
  min-height: 190px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 28px 30px;

  text-decoration: none;
  color: #111;

  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;

  background: #fff;

  overflow: hidden;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* Top number */
.projects_city_number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #999;

  transition: color 0.4s ease;
}

/* Content */

.projects_city_content {
  position: relative;
  z-index: 2;
}

.projects_city_content span {
  display: block;

  margin-bottom: 8px;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #999;

  transition: color 0.4s ease;
}

.projects_city_content h3 {
  margin: 0;

  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-transform: uppercase;

  transition:
    color 0.4s ease,
    transform 0.4s ease;
}

/* Arrow */

.projects_city_arrow {
  position: absolute;
  right: 25px;
  bottom: 22px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #ddd;
  border-radius: 50%;

  font-size: 17px;

  opacity: 0;

  transform: translate(-8px, 8px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* =========================================
   HOVER
========================================= */

.projects_city_card::before {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 0;

  background: #111;

  transition: height 0.4s ease;
}

.projects_city_card:hover::before {
  height: 100%;
}

.projects_city_card:hover {
  color: #fff;
}

.projects_city_card:hover .projects_city_number,
.projects_city_card:hover .projects_city_content span {
  color: #999;
}

.projects_city_card:hover .projects_city_content h3 {
  color: #fff;
  transform: translateX(4px);
}

.projects_city_card:hover .projects_city_arrow {
  opacity: 1;
  transform: translate(0, 0);

  background: #fff;
  color: #111;
  border-color: #fff;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
  .projects_city_section {
    padding: 80px 0;
  }

  .projects_city_header {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 45px;
  }

  .projects_city_label {
    padding-top: 0;
  }

  .projects_city_heading_wrap h2 {
    font-size: clamp(40px, 7vw, 60px);
  }

  .projects_city_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects_city_card {
    min-height: 170px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {
  .projects_city_section {
    padding: 65px 0;
  }

  .projects_city_header {
    margin-bottom: 35px;
  }

  .projects_city_heading_wrap h2 {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.8px;
  }

  .projects_city_heading_wrap p {
    margin-top: 22px;
    font-size: 13px;
  }

  .projects_city_grid {
    grid-template-columns: 1fr;
  }

  .projects_city_card {
    min-height: 145px;
    padding: 22px;
  }

  .projects_city_content h3 {
    font-size: 20px;
  }

  .projects_city_arrow {
    opacity: 1;
    transform: none;
    width: 32px;
    height: 32px;
    right: 20px;
    bottom: 20px;
  }

  .projects_city_section::before {
    display: none;
  }
}
