@import url("reset.css");
@import url("fonts.css");
@import url("colors.css");
@import url("base.css");

:root {
  --padding-inline: 10rem;

  @media screen and (max-width: 1366px) {
    --padding-inline: 8rem;
  }

  @media screen and (max-width: 1200px) {
    --padding-inline: 5rem;
  }

  @media screen and (max-width: 1024px) {
    --padding-inline: 3rem;
  }
}

main {
  ul {
    list-style-type: disc;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
  }
}

/* .elementor-widget-text-editor {
  a {
    color: #22ac38;
  }
} */

.wrapper {
  max-width: 173rem !important;
  margin-inline: auto !important;
  padding-inline: var(--padding-inline) !important;
}

.realisation-card {
  min-height: 33rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  border-radius: 1rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  text-decoration: none !important;

  .realisation-card__category {
    color: #fff;
    font-size: 2.4rem;
    font-weight: var(--fw-semibold);

    @media screen and (max-width: 1200px) {
      font-size: 1.8rem;
    }
  }

  .realisation-card__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;

    .realisation-card__text {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      color: #fff;

      & > h3 {
        font-size: 2rem;
        font-weight: bold;
        line-height: 1;
      }

      & > p {
        font-size: 1.8rem;
      }
    }
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 36, 51, 0.4);
    border-radius: 1rem;
    z-index: -1;
    transition: all 0.3s ease-out;
  }

  &:hover,
  &:focus-within,
  &:focus {
    &::before {
      background: rgba(209, 168, 51, 0.8);
    }

    svg {
      transform: rotate(-35deg);

      path {
        stroke: #22ac38;
      }

      rect {
        fill: #f5f4f0;
      }
    }
  }
}

.realisations {
  padding: 10rem 0;
  scroll-margin-top: 150px;

  .realisations__grid {
    grid-template-columns: repeat(auto-fill, minmax(363px, 1fr));
    display: grid;
    gap: 2rem;
  }

  .realisations__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;

    .filter-btn {
      font-size: 2rem;
      font-weight: bold;
      padding: 1.5rem 2.2rem;
      border-radius: 1rem;
      position: relative;
      display: flex;
      align-items: center;
      gap: 2.5rem;
      width: max-content;
      background-color: #f2f3ed;
      color: #d1a833;
      border: 2px solid #d1a833;
      transition: all 0.3s ease-out;
      text-decoration: none;

      @media screen and (max-width: 767px) {
        gap: 1.2rem;
        font-size: 16px;
        border-radius: 5px 5px 5px 5px;
        padding: 10px 14px 10px 14px;
      }
    }

    .filter-btn.active,
    .filter-btn:hover {
      background-color: #d1a833;
      color: #fff;
      border-color: #d1a833;
    }
  }
}
