/* Versão 1.0.0 */
/* Layout baseado na seção "A essência da EAGLE" (box-quem-somos) da home */

#produtos-e-servicos-page {
  padding: 80px 0 100px;
  background-color: #ffffff;

  @media only screen and (max-width: 768px) {
    & .grid-16 {
      display: flex;
      flex-direction: column;
    }
    & .grid-16 > .span-16:nth-child(2) {
      order: 2;
    }
    & .grid-16 > .span-16:nth-child(3) {
      order: 1;
    }
  }

  & .grid-16 > .span-16:first-child {
    margin-bottom: 10px;
  }

  & .grid-16 > .span-16:first-child .suptitulo {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cor-fundo);
    margin-bottom: 8px;
    border-left: 4px solid var(--cor-fundo);
    padding-left: 14px;
    line-height: 1.2;
    display: block;
  }

  & .titulo-pagina {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0px;
    text-transform: none;
    color: #1f1e1f;
    margin: 0 0 24px 0;
    line-height: 1.2;

    @media only screen and (max-width: 768px) {
      font-size: 32px;
      margin-bottom: 20px;
    }
  }

  & .resumo-pagina {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: none;
    color: #6d6a6a;
    margin: 0 0 50px 0;
    line-height: 1.7;
    max-width: 900px;

    @media only screen and (max-width: 768px) {
      font-size: 16px;
      margin-bottom: 40px;
    }
  }

  & .box-produto {
    padding: 70px 0;
    border-bottom: 1px solid #e8e8e8;
    max-width: 900px;
    scroll-margin-top: 120px;

    &:last-of-type {
      border-bottom: none;
    }

    @media only screen and (max-width: 768px) {
      padding: 32px 0 24px;
    }

    & .suptitulo {
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--cor-fundo);
      margin-bottom: 8px;
      border-left: 4px solid var(--cor-fundo);
      padding-left: 14px;
      line-height: 1.2;
      display: block;
    }

    & .titulo {
      font-size: 28px;
      font-weight: 700;
      letter-spacing: 0px;
      text-transform: none;
      color: #1f1e1f;
      margin: 0 0 20px 0;
      line-height: 1.3;

      @media only screen and (max-width: 768px) {
        font-size: 24px;
        margin-bottom: 16px;
      }
    }

    & p {
      font-size: 18px;
      font-weight: 400;
      letter-spacing: 0px;
      text-transform: none;
      color: #6d6a6a;
      margin: 0 0 20px 0;
      line-height: 1.7;

      @media only screen and (max-width: 768px) {
        font-size: 16px;
        margin-bottom: 16px;
      }
    }

    & .produtos-labels {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      margin-bottom: 24px;

      @media only screen and (max-width: 768px) {
        gap: 8px 12px;
        margin-bottom: 20px;
      }
    }

    & .label-link {
      display: inline-block;
      padding: 8px 18px;
      font-size: 14px;
      font-weight: 600;
      color: #1f1e1f;
      background-color: #f5f5f5;
      border: 1px solid #e0e0e0;
      border-radius: 24px;
      text-decoration: none;
      transition: all 0.25s ease;

      @media only screen and (max-width: 768px) {
        font-size: 13px;
        padding: 6px 14px;
      }

      &:hover {
        color: #ffffff;
        background-color: var(--cor-fundo);
        border-color: var(--cor-fundo);
      }

      &.label-etc {
        font-style: italic;
        opacity: 0.9;
      }
    }

    & .core-button {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      width: fit-content;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: 0px;
      color: #1d1d1d;
      text-transform: none;
      border-bottom: 3px solid #fff;
      height: 55px;

      & a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
      }

      & a i {
        color: var(--cor-fundo);
        transition: transform 0.3s ease;
      }

      &:hover a {
        color: var(--cor-fundo);
      }

      &:hover a i {
        transform: translateX(5px);
      }
    }
  }

  & .produtos-menu-sticky {
    position: sticky;
    top: 100px;
    padding: 24px 20px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;

    @media only screen and (max-width: 768px) {
      position: static;
      margin-top: 0;
      margin-bottom: 40px;
      padding: 20px;
    }
  }

  & .produtos-menu-sticky-titulo {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6d6a6a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
  }

  & .produtos-menu-sticky-lista {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  & .produtos-menu-sticky-lista li {
    margin-bottom: 4px;
  }

  & .produtos-menu-sticky-link {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: #1f1e1f;
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: all 0.2s ease;

    &:hover {
      color: var(--cor-fundo);
    }

    &.active {
      color: var(--cor-fundo);
      border-left-color: var(--cor-fundo);
      font-weight: 600;
    }
  }
}
