@import "../vendor/swiper-bundle.css";
@import "../general.css";
@import "../components/project-listing.css";

.service-links-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-links-wrapper .link-card {
  background-color: #f2f2f2;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
}

.service-links-wrapper .link-card:hover {
  background-color: #eaeaea;
}

.service-links-wrapper .link-card:hover img {
  opacity: 0;
  visibility: hidden;
}

.service-links-wrapper .link-card a {
  position: relative;
  padding: 6rem 3rem;
  width: 100%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-links-wrapper .link-card a img {
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
  transition: all 0.3s;
}

.service-links-wrapper .link-card a .link-arrow-icon {
  opacity: 0;
  visibility: hidden;
  filter: contrast(0.5);
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.service-links-wrapper .link-card a:hover .link-arrow-icon {
  opacity: 1;
  visibility: visible;
}

.annual-section,
.service-section {
  padding-block: 8rem;
  color: #4c4c4c;
}
.service-section h2,
.annual-section h2 {
  font-size: 2rem;
  line-height: 1.65;
  letter-spacing: 0.04rem;
  font-weight: 800;
  margin-block-end: 1.8rem;
}

.service-section p {
  margin-block-end: 6rem;
}

.service-section p,
.annual-section p {
  font-weight: 600;
  font-size: 2rem;
}

.featured-projects-section {
  color: #4c4c4c;
}

.featured-projects-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin-block-end: 2rem;
}

.expertise-section {
  color: #4c4c4c;
  padding-block: 8rem 7.52rem;
}

.expertise-section h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-block-end: 3.5rem;
}

.expertise-wrapper .expertise-card .card-name {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.expertise-wrapper .expertise-card p + p {
  margin-block-start: 1.6rem;
  line-height: 1.375;
}

.expertise-section .expertise-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 4rem;
}

.expertise-section .expertise-wrapper.three-col-layout {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  max-width: 91rem;
}

.expertise-section .bullet-points-layout {
  max-width: 85rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 4rem;
  margin-inline-start: 2rem;
}

.expertise-section .bullet-points-layout p {
  font-weight: 600;
}

.expertise-section .bullet-points-layout .bullet-card {
  position: relative;
}

.expertise-section .bullet-points-layout .bullet-card::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: -1.7rem;
  height: 2.4rem;
  border-left: 0.236rem solid #4c4c4c;
}

.expertise-section .service-image-wrapper {
  background-color: #f2f2f2;
  margin-block-start: 7.5rem;
  position: relative;
  height: 100%;
  padding-bottom: 40%;
}

.expertise-section .service-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.featured-projects-section .serviceSwiper .swiper-wrapper {
  display: flex;
  gap: 0;
}

.featured-projects-section .card-item {
  padding-bottom: 45%;
}
.featured-projects-section .card-item[data-aos] {
  transition-delay: calc(150ms * var(--i));
}

@media screen and (max-width: 1319px) {
  .expertise-section .expertise-wrapper {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (min-width: 1199px) {
  .featured-projects-section .serviceSwiper .swiper-wrapper {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .featured-projects-section .card-item {
    padding-bottom: 100%;
  }

  .featured-projects-section .swiper-pagination {
    display: none;
  }
}

@media screen and (max-width: 1005px) {
  .expertise-section .expertise-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media screen and (max-width: 968px) {
  .expertise-section .bullet-points-layout {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media screen and (max-width: 830px) {
  .expertise-section .expertise-wrapper.three-col-layout {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .expertise-section .service-image-wrapper {
    padding-bottom: 100%;
  }

  .expertise-section .service-image-wrapper img {
    object-position: 40%;
  }

  .service-links-wrapper .link-card a {
    padding: 3rem 2.5rem;
  }
  .annual-section,
  .expertise-section {
    padding-block: 4rem;
  }

  .featured-projects-section .card-item {
    padding-bottom: 97%;
    margin-block-end: 0.686rem;
  }
}

@media screen and (max-width: 640px) {
  .expertise-section .expertise-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }

  .expertise-section .expertise-wrapper.three-col-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .expertise-section .bullet-points-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }
}

@media (max-width: 576px) {
  .service-links-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }
  .expertise-wrapper .expertise-card p + p {
    margin-block-start: 0.8rem;
  }
}

@media (max-width: 480px) {
  .annual-section h2 {
    margin-block-end: 1rem;
  }

  .expertise-section h2 {
    margin-block-end: 2.2rem;
  }

  .expertise-section .expertise-wrapper {
    gap: 3rem;
  }
}

@media (max-width: 380px) {
  .annual-section,
  .expertise-section {
    padding-block: 3rem;
  }

  .annual-section h2,
  .expertise-section h2 {
    font-size: 2.2rem;
  }

  .annual-section p,
  .expertise-wrapper .expertise-card p + p {
    font-size: 1.6rem;
  }

  .featured-projects-section h2 {
    margin-block-end: 2.5rem;
  }
}
