/* Custom CSS */

:root {
  --color-azure: #bdd4de;
  --color-azure-100: #EDF3F9;
  --color-azure-200: #BDD4DE;
  --color-azure-300: #ADC9E4;
  --color-azure-400: #ADD5E4;
  --color-grey-150: #EEEEEE;
  --color-grey-700: #707070;
}

.button-custom {
  padding: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  color: currentColor;
  border: 1px solid currentColor;
  font-size: 0.875rem;

  &:hover {
    color: currentColor !important;
    background-color: var(--color-azure);
    text-decoration: none !important;
  }

  &.button-custom-light {
    color: #fff;

    &:hover {
      color: currentColor !important;
      background-color: black;
    }
  }

  &.button-custom-dark {
    background-color: black;
    border-color: black;
    color: #fff;

    &:hover {
      color: black;
      background-color: var(--color-azure);
    }
  }
}


.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(100dvh - 94px);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  background: #000;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}


.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
      rgb(0 0 0 / 0.7) 0%,
      rgb(0 0 0 / 0.35) 55%,
      rgb(0 0 0 / 0.1) 100%);
}

.hero__inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;

  @media (width >768px) {
    flex-wrap: nowrap;
  }

  .left-content {}

  .right-content {
    flex-shrink: 0;
  }
}

.hero__pretitle {
  margin: 0 0 0.75rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  opacity: 0.9;
}

.hero__title {
  margin: 0 0 1.75rem;
  /* max-width: 18ch; */
  font-size: clamp(2.5rem, 7vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  /* letter-spacing: -0.02em; */
  text-wrap: balance;
  text-align: left;
}

/* .hero__cta {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--hero-accent);
  color: var(--hero-accent-text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero__cta:focus-visible {
  outline: 3px solid var(--hero-text);
  outline-offset: 3px;
} */

#form input,
#form textarea {
  border-radius: 0;

}

#contact-row {
  width: 90%;

  .contact-row--image {
    display: none;
  }

  @media (width >=992px) {
    .contact-row--image {
      display: block;
    }

  }

  .contact-form-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    @media (width >=992px) {
      grid-template-columns: 1fr 1fr;
    }

    .field {
      margin-bottom: 0;

      &.wide {
        grid-column: 1 / 2;

        @media (width >=992px) {
          grid-column: 1 / 3;
        }
      }

      &.field-privacy {
        font-size: 0.875rem;

        .wpcf7-list-item {
          margin: 0;
        }

        a {
          color: currentColor;
          text-decoration: underline;
        }
      }

      &.field-submit {
        display: flex;
        justify-content: end;
      }
    }
  }
}


.layout-simpletext {
  /* max-width: 1180px; */
  padding-block: 4rem;

  .section-content {
    display: flex;
    gap: 2rem;
  }

  .section-pretitle {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px;
  }

  &.centered-text {
    .section-content {
      flex-direction: column;
      text-align: center;
    }
  }

  &:not(.centered-text) {
    .section-content {
      flex-wrap: wrap;
      flex-direction: row;

      .section-title {
        width: 100%;

        @media (width > 768px) {
          width: 30%;
        }
      }

      .section-text {
        width: 100%;
        flex: 1;
      }
    }
  }
}

.timeline {
  .timeline-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;

    &.years {
      font-size: 30px;
      font-weight: 500;
    }

    &.titles {
      font-size: 14px;

      .timeline-step {
        padding-inline: 1rem;
      }
    }

    &.dots {
      position: relative;
      padding-block: 2rem;

      &::after {
        content: '';
        display: block;
        background-color: currentColor;
        opacity: 0.1;
        height: 2px;
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
      }

      .timeline--dot {
        border-radius: 100%;
        width: 1rem;
        height: 1rem;
        background-color: currentColor;
        margin-inline: auto;
      }
    }
  }

  .timeline-step {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
    gap: 1rem;
    position: relative;

  }
}

.timeline-full {
  margin-block: 4rem;
  position: relative;

  .timeline-full--row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    @media (width > 768px) {
      grid-template-columns: repeat(24, 1fr);
    }

    &.row-title {
      padding-block: 3rem 1rem;

      .row--title {
        grid-column: span 6;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-grey-700);
        display: flex;
        gap: 1rem;
        align-items: center;
        white-space: nowrap;

        @media (width > 768px) {
          grid-column: 6 / -1;

        }

        /* border: 1px solid black; */
        &::after {
          content: '';
          height: 1px;
          display: block;
          background-color: currentColor;
          flex: 1 1 100%;
          opacity: 0.3;
        }
      }
    }

    &.row-year {
      .row--year {
        grid-column: 2 / -1;
        font-size: 30px;
        font-weight: 500;
        font-family: 'Josefin Sans';
        line-height: 1;

        @media (width > 768px) {
          grid-column: 1 / 5;
          text-align: right;
          font-size: 50px;
        }
      }

      .row--content {
        grid-column: 2 / -1;
        padding-bottom: 4rem;
        padding-top: 0.5rem;

        p {
          margin-bottom: 1rem;
        }

        img {
          display: block;
          width: 100%;
        }

        @media (width > 768px) {
          grid-column: 6 / -1;
        }

        .row--title {
          text-transform: uppercase;
          font-weight: 500;
          font-size: 20px;
          margin-bottom: 14px;
          font-family: 'Josefin Sans';


          @media (width > 768px) {
            font-size: 30px;
          }
        }

        .row--text {
          color: var(--color-grey-700);
        }
      }

      .row--guide {
        position: relative;
        grid-column: 1 / 2;
        grid-row: 1 /span 2;

        @media (width > 768px) {
          grid-column: 5 / 6;
        }

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 1px;
          height: 100%;
          background-color: currentColor;
          opacity: 0.3;
        }

        &::after {
          content: '';
          position: absolute;
          top: 25px;
          left: 50%;
          transform: translateX(-50%);
          width: 10px;
          height: 10px;
          background: currentColor;
          border-radius: 100%;
        }
      }
    }
  }

  .timeline-full--navigation {
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-color: rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0px;
    background-color: white;
    z-index: 999;
    padding-block: 1rem;
    margin-top: 2rem;
    display: none;

    @media (width > 768px) {
      display: block;

    }

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

    .timeline-full--navigation-title {
      font-family: 'Josefin Sans';
      margin-right: 3rem;
      text-transform: uppercase;
      font-weight: 500;
      font-size: 20px;
    }

    .timeline-full--navigation-nav {
      display: flex;
      justify-content: space-evenly;
      flex: 1;
    }

    button {
      border: 0;
      background-color: transparent;
      cursor: pointer;
      font-weight: 700;
      text-align: center;
      padding: 0.5rem;
      color: var(--color-grey-700);

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.counter-section {
  background-color: #212529;
  color: #ADC9E4;
  padding-block: 3rem;

  .counter-cols {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex-direction: column;

    @media (width>768px) {
      flex-direction: row;

    }

    .counter-col {
      flex: 1;
      border-top: 1px solid currentColor;
      padding-top: 2rem;

      .counter--number {
        font-size: 6.25rem;
        line-height: 1;
        font-weight: 700;
        margin-bottom: 1rem;
        font-family: 'Raleway';
      }
    }
  }
}

.collections-section {
  margin-block: 4rem;

  .collections-section--pretitle {
    text-align: center;
    text-transform: uppercase;
  }

  .collections-section--title {
    text-align: center;
    font-family: 'Josefin Sans';
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 2rem;
  }

  .collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;


    @media (width>768px) {
      grid-template-columns: repeat(2, 1fr);

    }

    .collections-grid-card {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;

      .card--image {
        aspect-ratio: 16 / 9;
        object-fit: cover;
      }

      .card--title {
        font-family: 'Josefin Sans';
        font-size: 30px;
        font-weight: 500;
        margin-bottom: 0;
        line-height: 1;
      }

      .card--button {
        margin-left: auto;
      }
    }
  }
}

.cards-section {
  margin-block: 4rem;

  .cards-section--pretitle {
    text-align: center;
    text-transform: uppercase;
  }

  .cards-section--title {
    text-align: center;
    font-family: 'Josefin Sans';
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 2rem;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;


    @media (width>768px) {
      grid-template-columns: repeat(3, 1fr);

    }

    .cards-grid-card {
      background-color: var(--color-azure-100);
      padding: 1.5rem;

      .card--title {
        font-family: 'Josefin Sans';
        font-size: 30px;
        font-weight: 500;
      }
    }
  }
}

.images-section {
  margin-block: 4rem;

  .images-section--pretitle {
    text-align: center;
    text-transform: uppercase;
  }

  .images-section--title {
    text-align: center;
    font-family: 'Josefin Sans';
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 2rem;
  }

  .images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;


    @media (width>768px) {
      grid-template-columns: repeat(3, 1fr);

    }

    .images-grid-card {

      .card--image {
        margin-bottom: 1rem;

        img {
          width: 100%;
          aspect-ratio: 3/2;
          object-fit: cover;
        }
      }
    }
  }
}


.downloads-section {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 768px;

  .download-card {
    flex: 1 1 0;
    display: grid;
    gap: 1rem;
  }

  .downloads-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;

    .button-custom {
      &:last-child {
        grid-column: span 2;
      }
    }
  }
}




#mastheadx {
  .menu-item-has-children {
    .sub-menu {
      @media (width <=920px) {
        display: block;
        transform: none;
        width: auto;
        position: static;
        transition: none;
        opacity: 1;

        li {
          padding-left: 1rem;
          font-size: 1rem;

          a {
            font-weight: inherit !important;
            font-size: inherit !important;
            text-indent: initial !important;
          }
        }
      }
    }

    &:hover {
      .sub-menu {
        a {
          @media (width <=920px) {}
        }
      }
    }
  }
}