.home-services {
  position: relative;
  background: #eee6da;
  color: #243831;
  overflow: hidden;
}
.services-container {
  position: relative;
  min-height: 760px;
  padding: 100px 7vw 55px;
}
.services-heading {
  position: relative;
  display: grid;
  grid-template-columns: 17% 35%;
  z-index: 5;
}
.services-heading-number {
  font-family: var(--font-display);
  font-size: 95px;
  line-height: 0.7;
  letter-spacing: -0.07em;
  color: #bd674f;
}
.services-heading-copy > span {
  display: block;
  margin-bottom: 24px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(36, 56, 49, 0.45);
}
.services-heading-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(65px, 6vw, 100px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.065em;
}
.services-heading-copy h2 em {
  font-style: italic;
  color: #bd674f;
}
.services-heading-copy p {
  max-width: 290px;
  margin-top: 25px;
  color: rgba(36, 56, 49, 0.5);
  font-size: 9px;
  line-height: 1.9;
}
.services-heading-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  color: #243831;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 56, 49, 0.35);
  padding-bottom: 8px;
}
.services-heading-copy > a strong {
  font-size: 14px;
  font-weight: 400;
}
.services-showcase {
  position: absolute;
  top: 105px;
  right: 6vw;
  width: 53%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card {
  position: relative;
  width: 24%;
  height: 430px;
  margin-left: -18px;
  overflow: hidden;
  transition:
    width 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    z-index 0.1s;
  box-shadow: 0 25px 55px rgba(36, 56, 49, 0.16);
  background: #243831;
  cursor: pointer;
}
.service-card:first-child {
  margin-left: 0;
}
.service-card:hover {
  width: 38%;
  z-index: 10;
  transform: translateY(-18px);
}
.service-card-image {
  position: absolute;
  inset: 0;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:hover .service-card-image img {
  transform: scale(1.04);
}
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.72)
  );
}
.service-card-info {
  position: absolute;
  left: 22px;
  right: 15px;
  bottom: 32px;
  color: #f2e9dc;
  z-index: 3;
}
.service-card-info > span {
  display: block;
  margin-bottom: 20px;
  color: #d47a60;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.service-card-info h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 48px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.service-card-info h3 em {
  font-style: italic;
  color: #e29a80;
}
.service-card-info p {
  margin-top: 15px;
  color: rgba(242, 233, 220, 0.55);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.service-card-expand {
  position: absolute;
  right: 15px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2e9dc;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  z-index: 4;
}
.service-card:hover .service-card-expand {
  opacity: 1;
  transform: translateY(0);
}
.service-card-expand span {
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.service-card-expand strong {
  font-size: 15px;
  font-weight: 400;
}
.service-card-one {
  transform: rotate(-3deg) translateY(12px);
}
.service-card-two {
  transform: rotate(-1deg) translateY(-8px);
}
.service-card-three {
  transform: rotate(2deg) translateY(8px);
}
.service-card-four {
  transform: rotate(4deg) translateY(-3px);
}
.service-card-one:hover,
.service-card-two:hover,
.service-card-three:hover,
.service-card-four:hover {
  transform: translateY(-18px) rotate(0deg);
}
.services-bottom {
  position: absolute;
  left: 7vw;
  right: 7vw;
  bottom: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 56, 49, 0.14);
  display: flex;
  justify-content: space-between;
  color: rgba(36, 56, 49, 0.38);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.25em;
}
@media (max-width: 1100px) {
  .services-container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .services-heading {
    grid-template-columns: 14% 38%;
  }
  .services-showcase {
    right: 4vw;
    width: 55%;
  }
  .service-card {
    height: 390px;
  }
  .service-card:hover {
    width: 40%;
  }
}
@media (max-width: 800px) {
  .services-container {
    min-height: 850px;
    padding: 80px 25px 45px;
  }
  .services-heading {
    display: grid;
    grid-template-columns: 70px 1fr;
  }
  .services-heading-number {
    font-size: 60px;
  }
  .services-heading-copy > span {
    margin-bottom: 18px;
  }
  .services-heading-copy h2 {
    font-size: 60px;
  }
  .services-heading-copy p {
    max-width: 250px;
  }
  .services-showcase {
    top: 360px;
    left: 25px;
    right: 25px;
    width: auto;
    height: 400px;
  }
  .service-card {
    height: 330px;
    margin-left: -22px;
  }
  .service-card:hover {
    width: 42%;
  }
  .service-card-info {
    left: 15px;
    bottom: 22px;
  }
  .service-card-info > span {
    margin-bottom: 12px;
  }
  .service-card-info h3 {
    font-size: 27px;
  }
  .service-card-info p {
    display: none;
  }
  .services-bottom {
    left: 25px;
    right: 25px;
    bottom: 35px;
  }
}
@media (max-width: 550px) {
  .services-container {
    min-height: 1000px;
    padding: 60px 20px 40px;
  }
  .services-heading {
    display: block;
  }
  .services-heading-number {
    font-size: 52px;
    margin-bottom: 55px;
  }
  .services-heading-copy h2 {
    font-size: 54px;
  }
  .services-heading-copy p {
    margin-top: 20px;
  }
  .services-showcase {
    top: 455px;
    left: 20px;
    right: 20px;
    height: 430px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .service-card {
    width: 100%;
    height: 205px !important;
    margin: 0 !important;
    transform: none !important;
  }
  .service-card:hover {
    width: 100%;
    transform: translateY(-5px) !important;
  }
  .service-card-info {
    left: 15px;
    bottom: 15px;
  }
  .service-card-info > span {
    font-size: 5px;
    margin-bottom: 8px;
  }
  .service-card-info h3 {
    font-size: 25px;
  }
  .service-card-expand {
    display: none;
  }
  .services-bottom {
    left: 20px;
    right: 20px;
    bottom: 25px;
  }
  .services-bottom span:first-child {
    max-width: 220px;
    line-height: 1.6;
  }
  .services-bottom span:last-child {
    display: none;
  }
}
