.grid {
  width: 100%;
}

.grid-item {
  width: 33.333%; /* 3 columns */
  margin-bottom: 20px;
  float: left;
}

@media (max-width: 768px) {
  .grid-item {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .grid-item {
    width: 100%;
  }
}

#hero__hero-image {
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  filter: brightness(50%);
}

#hero {
  top: 0;
  left: 0;
}

.hero__title {
  font-size: 4rem;
}
.hero__title > span {
  color: #f5f3ef;
}
.hero__subtitle {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 2rem 0;
  /* color: rgba(255, 255, 255, 0.7); */
  color: #f5f3ef;
}

.hero__container-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  align-items: start;
  justify-content: center;
  color: white;
  max-width: 50%;
}

.hero__cta {
  background: transparent;
  /* padding: 0.5rem 1rem 0.5rem 0; */
  color: #f5f3ef;
  padding: 1rem 2rem;
  background-color: var(--primary);
  font-size: 1.5rem;
  border-radius: 999px;
}

/* About Section */
#about {
  padding-bottom: 0rem;
  padding-top: 6rem;
  scroll-margin-top: 5rem;
}
.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
/* .about__title > span {
  color: #e3ae2a;
} */
.about__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.about__text-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* margin-top: 2rem; */
  align-items: center;
  position: relative;
}
.about__content-wrapper {
  padding: 2rem 0;
  padding-left: 2rem;
}
.about__text-description > * + * {
  margin-top: 2rem;
}
.about__text-description {
  line-height: 1.5;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.about__image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  /* aspect-ratio: 4/5; */
  object-fit: cover;
  overflow: hidden;
  /* mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center; */
}

/* Services Section */
#services {
  padding: 4rem 0;
  scroll-margin-top: 5rem;
}
.services__title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 4rem;
}

.services__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.services__post-wrapper {
  position: relative;
}
.services__post-container {
  position: relative;
  width: 100%;
  background-color: white;
}
.services__post-wrapper:nth-child(odd) .services_post-text-wrapper {
  display: flex;
  flex-direction: column;
  padding-left: 6.875rem;
  box-sizing: border-box;
  max-width: 400px;
}
.services__post-wrapper:nth-child(even) .services_post-text-wrapper {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  padding-right: 6.875rem;
  box-sizing: content-box;
  position: relative;
  padding-left: 55.4%;
}
.services__post-wrapper:nth-child(odd) .services__thumbnail {
  right: 0;
}
.services__post-wrapper:nth-child(even) .services__thumbnail {
  left: 0;
}

.services__thumbnail {
  width: 50%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.services__post-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 3rem;
}

.services_post-text-wrapper {
  max-width: 41.6%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.services__post-description {
  line-height: 1.6rem;
}
.services__cta-label:hover {
  background-color: var(--primary);
  color: white;
}
.services__cta-label {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: fit-content;
  transition: color 200ms;
  /* text-transform: uppercase; */
  border-radius: 999px;
  font-size: 1.2rem;
}

/* Portfolio */
#portfolio {
  padding-top: 2rem;
  padding-bottom: 4rem;
  scroll-margin-top: 8rem;
}
.portfolio__title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.portfolio__title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio__description {
  font-size: 1.2rem;
  width: 60%;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
  /* font-style: italic; */
}

.mySwiper {
  height: 40rem;
}
.portfolio__swiper-wrapper:hover {
  cursor: grab;
}
.portfolio__thumbnail {
  height: 20rem;
  width: 100%;
  object-fit: cover;
}
.portfolio__image-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.portfolio__swiper-wrapper {
  padding: 0 6.875rem;
}

/* Testimonial Section */
#testimonials {
  padding: 3rem 0;
  scroll-margin-top: 8rem;
}
.testimonials__title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.testimonials__title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials__card-outer-container {
  padding: 0 6.875rem;
  position: relative;
}
.testimonials__card-container {
  overflow: hidden;
}
/* .testimonials__left-fade {
  height: 100%;
  width: 6rem;
  position: absolute;
  top: 0%;
  left: 0%;
  background-image: linear-gradient(
    to right,
    rgba(245, 243, 239, 100),
    rgba(245, 243, 239, 0)
    );
    z-index: 10;
    }
    .testimonials__right-fade {
      height: 100%;
      width: 6rem;
      position: absolute;
      top: 0%;
      right: 0%;
      background-image: linear-gradient(
        to left,
        rgba(245, 243, 239, 100),
        rgba(245, 243, 239, 0)
        );
        z-index: 10;
        } */
.testimonials__card-container .swiper-slide {
  height: auto;
}
.testimonials__card-wrapper {
  position: relative;
  box-sizing: border-box;
  padding: 1rem;
  /* border: 1px solid var(--primary); */
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonials__card-content {
  font-size: 2rem;
  line-height: 120%;
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
}
.testimonials__card-author {
  font-style: italic;
  padding-top: 2rem;
  padding-left: 2rem;
  align-self: flex-end;
}
.big-quote {
  font-size: 20rem;
  position: absolute;
  top: -10%;
  left: 10%;
  z-index: -10;
  opacity: 10%;
}

/* Contact Section */
#contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  scroll-margin-top: 8rem;
}

.contact__content-description {
  color: white;
  line-height: 120%;
}
.contact__content-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.contact__cta:hover {
  background-color: var(--secondary);
  color: white;
  cursor: pointer;
}
.contact__cta {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  /* border: 1px solid var(--secondary); */
  border: none;
  background-color: white;
  color: var(--primary);
  width: fit-content;
  transition: color 200ms;
  /* text-transform: uppercase; */
  /* border-radius: 999px; */
  font-size: 1.2rem;
}

.contact__content-container {
  background-color: var(--primary);
  padding-left: 6.875rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-right: 10%;
  display: flex;
  flex-direction: column;
}

.contact__image-container {
  width: 100%;
  height: 100%;
  background-color: white;
}

/* Tagline Section */
#tagline {
  padding: 6rem 6.875rem;
}

.tagline__content {
  font-size: 3rem;
  text-align: center;
  color: var(--secondary);
}

/* Mobile Display */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
    text-align: center;
  }
  .hero__subtitle {
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
    margin: 2rem 0;
  }

  .hero__container-text {
    align-items: center;
    justify-content: center;
    color: white;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero__cta {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  /* About Section */
  #about {
    padding-top: 2rem;
  }
  /* .about__title > span {
    color: #e3ae2a;
  } */
  .about__image-wrapper {
    display: none;
  }
  .about__text-container {
    grid-template-columns: 1fr;
  }
  .about__content-wrapper {
    padding-left: 0rem;
  }
  .about__text-description > * + * {
    margin-top: 1rem;
  }
  .about__text-description {
    line-height: 1.5;
    font-size: 1rem;
  }

  /* Services Section */
  #services {
    padding: 2rem 0;
  }
  .services__title {
    margin-bottom: 2rem;
  }
  .services__post-wrapper:nth-child(odd) .services_post-text-wrapper {
    padding: 0 2rem;
    max-width: 100%;
  }
  .services__post-wrapper:nth-child(even) .services_post-text-wrapper {
    max-width: 100%;
    padding: 0 2rem;
  }
  .services__post-wrapper:nth-child(odd) .services__thumbnail {
    right: 0;
  }
  .services__post-wrapper:nth-child(even) .services__thumbnail {
    left: 0;
  }

  .services__thumbnail {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    position: relative;
  }

  .services__post-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-align: center;
  }

  .services_post-text-wrapper {
    max-width: 100%;
    align-items: center;
  }

  .services__post-description {
    line-height: 1.5;
    font-size: 1rem;
    text-align: center;
  }
  .services__cta-label {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Portfolio */
  #portfolio {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .portfolio__title {
    margin-bottom: 2rem;
  }

  .portfolio__description {
    font-size: 1rem;
    width: 100%;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 2rem;
    /* font-style: italic; */
  }

  .mySwiper {
    height: 40rem;
  }
  .portfolio__swiper-wrapper:hover {
    cursor: grab;
  }
  .portfolio__thumbnail {
    height: 20rem;
    width: 100%;
    object-fit: cover;
  }
  .portfolio__image-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .portfolio__swiper-wrapper {
    padding: 0 2rem;
  }

  /* Testimonial Section */
  #testimonials {
    padding: 2rem 0;
  }
  .testimonials__title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
    padding: 0 2rem;
  }

  .testimonials__card-outer-container {
    padding: 0 2rem;
    position: relative;
  }
  .testimonials__card-container {
    overflow: hidden;
  }

  .testimonials__card-content {
    font-size: 1rem;
    line-height: 120%;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
  }
  .testimonials__card-author {
    font-style: italic;
    padding-top: 2rem;
    padding-left: 2rem;
    align-self: flex-end;
  }
  .big-quote {
    font-size: 20rem;
    position: absolute;
    top: -10%;
    left: 10%;
    z-index: -10;
    opacity: 10%;
  }

  /* Contact Section */
  #contact {
    display: grid;
    grid-template-columns: 1fr;
    scroll-margin-top: 8rem;
  }

  .contact__content-description {
    text-align: center;
  }
  .contact__content-title {
    font-size: 1.5rem;
    text-align: center;
  }
  .contact__cta {
    margin-top: 2rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  .contact__content-container {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact__image-container {
    display: none;
  }

  /* Tagline Section */
  #tagline {
    padding: 4rem 2rem;
  }

  .tagline__content {
    font-size: 2rem;
  }
}
