@import url("./style.css") (base);

@layer main {
  .hero-screen {
    position: relative;
    display: flex;
    align-items: center;
    aspect-ratio: 16/9;
    /* max-height: 960px; */
    min-height: clamp(480px, 80vh, 900px);
    width: 100%;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .hero-screen > img,
  .hero-screen > picture,
  .hero-screen > video {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.75) 35%,
      rgba(0, 0, 0, 0.1) 75%,
      rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 120%; /* 76.8px */
    letter-spacing: -1.28px;
    color: #dbd0b6;
  }

  .hero__subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #dbd0b6;
    margin-top: 3rem;
    max-width: 30%;
  }

  @media (max-width: 1268px) {
    .hero__subtitle {
      max-width: 60%;
    }
  }

  @media (max-width: 768px) {
    .hero__subtitle {
      max-width: 80%;
    }
  }

  .index-about {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4/3;
    max-height: 800px;
    width: 100%;
  }

  .index-about > img,
  .index-about > picture,
  .index-about > video {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .index-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
  }

  .index-about__body {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    max-width: 650px;
    border-radius: 0.75rem;
    border: 1px solid var(--soft_warm);
    overflow: hidden;
    background: rgba(89, 41, 7, 0.74);
    color: var(--white);
  }

  .index-about__body-up {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--white);
  }

  .index-about__body-bottom {
    display: flex;
  }

  .index-about__body-bottom--text {
    display: flex;
    padding: 1rem 1.25rem;
    flex: 2;
  }

  .btn-about {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--soft_warm);
    color: var(--color_main_2);
    transition: ease 0.2s;
  }

  .btn-about:hover {
    background: var(--color_main_1);
    color: var(--white);
  }

  @media (max-width: 650px) {
    .index-about__body-bottom {
      flex-direction: column;
    }

    .btn-about {
      padding-block: 1.25rem;
    }
  }

  @media (max-width: 550px) {
    .index-about {
      aspect-ratio: 3/4;
    }
  }

  .index-catalog {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .index-catalog__headline {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    color: var(--color_main_1);

    h2 {
      color: var(--color_main_2);
    }
  }

  .index-clients {
    display: flex;
    align-items: flex-start;
    padding-block: clamp(3rem, 6vw, 6.25rem);
    aspect-ratio: 2/1;
    max-height: 560px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.2) 100%
      ),
      url("/wp-content/themes/codex/assets/img/photo-stock.jpg") lightgray 50% /
        cover no-repeat;
    background-blend-mode: normal, darken;
    width: 100%;
  }

  .index-clients__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 4vw, 55rem);
    align-items: flex-start;
  }

  .index-clients__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--white);
    max-width: 45%;
  }

  .index-clients__list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
  }

  .index-clients__list li {
    position: relative;
    padding-left: 1.25rem;
  }

  .index-clients__list li + li {
    margin-top: 0.25rem;
  }

  .index-clients__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.75rem;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
  }

  @media (max-width: 1268px) {
    .index-clients__content {
      max-width: 70%;
    }
  }

  @media (max-width: 768px) {
    .index-clients {
      aspect-ratio: 2/3;
    }
    .index-clients__content {
      max-width: 100%;
    }
  }

  .index-partners {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .index-partners__left {
    display: flex;
    flex: 1;
    aspect-ratio: 4/3;
    align-self: stretch;
    border-radius: 32px;
    background: url("/wp-content/themes/codex/assets/img/photo-stock.jpg")
      lightgray 50% / cover no-repeat;
  }

  .index-partners__right {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 2rem;
  }

  .index-partners--headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    align-self: stretch;

    h2 {
      color: var(--color_main_2);
    }
  }

  .index-partners--headline-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    align-self: stretch;
    color: var(--color_main_1);

    h3 {
      color: var(--color_main_2);
    }
  }

  @media (max-width: 1268px) {
    .index-partners--headline {
      gap: 1.25rem;
    }
  }

  @media (max-width: 928px) {
    .index-partners {
      flex-direction: column;
    }

    .index-partners__left {
      min-height: 250px;
    }

    .index-partners__right {
      gap: 1.5rem;
    }
  }
}
