/**
 * Theme name: TS Digital Solutions 2
 * Author: TS Digital Solutions - Agência de Soluções Digitais
 */

button {
  background-color: transparent;
  cursor: pointer;
  border: none;
}

html {
  line-height: 1.5;
  tab-size: 4;
  scroll-behavior: smooth;
}
body {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  border: none;
  outline: none;
}

body {
  margin: 0;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  outline: none;
}

/* Critical CSS */

/* End Critical CSS */

.below-hero-section {
  background: var(--gradient);
  margin-top: 60px;
  .below-hero-section__content {
    display: flex;
    gap: 45px;
    justify-content: space-between;

    @media screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }
  .below-hero-section__content-left,
  .below-hero-section__content-right {
    /* width: 100%; */
    flex: 0 0 60%;
  }
  .below-hero-section__content-right {
    flex: 0 0 auto;
  }
}

.cards-section {
  margin-top: var(--top-spacing);

  .center-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
    align-items: center;
  }

  .title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
  }
  .description {
    margin-bottom: 1.5rem;
  }

  .cards-header {
    text-align: center;
    max-width: 80%;
    display: block;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    @media screen and (max-width: 1024px) {
      max-width: 100%;
    }
  }
  .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;

    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
    }

    .card__item {
      background: #fff;
      box-shadow: var(--card-shadow);
      padding: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      border-radius: 24px;
      align-items: center;
      text-align: center;
      transition: var(--transition);
      &:hover {
        transform: translateY(-7px);
      }
      .card__item-title {
        font-weight: 500;
        font-size: 48px;
        color: var(--off-black);
        line-height: 1.1;
        max-width: 80%;
        @media screen and (max-width: 1024px) {
          max-width: 100%;
        }
      }
      .card-item-description {
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.7;
        color: var(--off-black);
      }
    }
  }
}

body.page-template-page-mocp .cards-section .center-content {
  /* max-width: 70%; */
}

.product-section {
  margin-top: 100px;
  .center-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
  }
  .product-section__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    @media screen and (max-width: 1024px) {
      max-width: 100%;
    }
  }
  .product-section__content {
    display: flex;
    gap: 45px;
    @media screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }
  .product-section__content-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    .title {
      font-weight: 500;
      line-height: 1.1;
    }
  }
  .product-section__content-right {
    flex: 1;
    img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
  }
}

.cta-section {
  margin-top: var(--top-spacing);
  background-color: var(--accent-color);
  color: #fff;

  padding: 100px 0;
  .cta-section__content {
    max-width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
  @media screen and (max-width: 1024px) {
    padding: 50px 0;
  }
}

.blog-section {
  margin-top: var(--top-spacing);
  .center-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: inline;
    font-weight: 400;
    font-size: 1rem;
  }
  .section-header {
    text-align: center;
  }
  .blog-items {
    display: grid;
    gap: 45px;
    margin-top: 60px;

    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    @media screen and (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
    }
    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr;
    }

    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr;
    }
    .blog-items__item {
      display: flex;
      flex-direction: column;
      gap: var(--spacing);
      text-decoration: none;
      color: var(--off-black);
      transition: var(--transition);
      background-color: white;
      box-shadow: var(--card-shadow);
      border-radius: var(--spacing);

      &:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow-hover);
        .blog-items__item-title {
          color: var(--accent-color);
        }
      }
      .blog-items__item-title {
        font-size: 52px;
        line-height: 1.1;
        font-weight: 700;
        padding-left: var(--spacing);
        padding-right: var(--spacing);
        min-height: 114px;
        transition: var(--transition);
      }
      .blog-items__item-description {
        font-size: 18px;
        line-height: 1.5;
        padding: var(--spacing);
        padding-top: 0;
      }
      img {
        width: 100%;
        height: auto;
        object-fit: cover;
        max-height: 220px;
        border-radius: var(--spacing);
        margin-bottom: var(--spacing);
      }
    }
  }
  .section-header {
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
  }
  .home-blog-section__actions {
    text-align: center;
    margin-top: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.blog-content {
  /* border-top: solid 1px #eee;
  padding-top: 50px; */

  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
  }

  a {
    color: var(--accent-color);
  }
}

.breadcrumbs {
  margin: var(--spacing) 0;
  display: block;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border: solid 1px #eee;
  border-right: none;
  border-left: none;

  ul {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    li {
      font-size: 0.875rem;
      color: #939393;
      img {
        width: var(--gap);
        display: block;
      }
      a {
        transition: var(--transition);
        text-decoration: none;
        color: #939393;

        &:hover {
          color: var(--accent-color);
        }
      }
    }
  }
}

.blog-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;

  @media (max-width: 600px) {
    justify-content: center;
    margin-top: 0;
    display: block;
    a {
      display: block;
      width: 100%;
    }
  }
}

.single-blog .blog-section {
  margin-top: 60px;
}

.code {
  font-family: 'Figtree', 'Arial', sans-serif;
  font-size: 14px;
  padding: 0 0.5rem;
  display: inline-block;
  background-color: rgb(233, 238, 246);
  /* font-style: italic; */
  border-radius: 4px;
}
body.wp-singular:not(.home) {
  .hero {
    min-height: auto;
  }
  .hero-title {
    min-height: unset;
  }
  .blog-list {
    margin-top: 0;
  }
}

.contact-section {
  margin-top: 60px;
}

.contact-section form,
.tsd-contact-form {
  padding: 2rem;
  border-radius: var(--border-radius);
  background: white;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  &:hover {
    box-shadow: var(--card-shadow-hover);
  }
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }
  label {
    font-size: 1rem;
    color: var(--off-black);
  }
  input,
  textarea {
    background: #f7f7f7;
    padding: 0.7rem;
    border-radius: 12px;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Figtree', 'Arial', sans-serif;
  }
  input {
    height: 52px;
  }
  textarea {
    height: 150px;
    padding-top: 1rem;
  }
  .btn {
    font-family: 'Figtree', 'Arial', sans-serif;
  }
}

.pillars-section {
  margin-top: var(--top-spacing);

  .section-header {
    text-align: center;
  }
  .center-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
  }
  .pillars-section__cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);

    .pillars-section__cards-item {
      padding: 45px;
      background-color: #f9f9f9;

      border-radius: var(--spacing);

      .pillar-title {
        font-size: 2rem;
        font-weight: 500;
      }
      .pillars-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: var(--spacing);
        .pillar-content {
          display: flex;
          align-items: center;
          gap: 12px;
          .pillar-icon {
            /* flex: 1; */
          }
          .pillar-text {
            flex: 1;
          }
        }
      }
    }
  }
}

.section-header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
}

.footer {
  margin-top: var(--top-spacing);
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  padding: 60px 0;
  background-color: #f6f6f6;
  .center-content {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 24px;
      align-items: flex-start;
      justify-content: center;
    }
  }
  .footer-col {
    flex: 0 0 auto;
    gap: 45px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #939393;
    font-size: 14px;

    a {
      color: #939393;
      text-decoration: none;
      transition: var(--transition);
      &:hover {
        color: var(--accent-color);
      }
    }

    &:first-child {
      max-width: 180px;
      /* border: solid 1px red; */
    }
  }
  p {
    color: #939393;
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  ul li a {
    color: #939393;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    &:hover {
      color: var(--accent-color);
    }
  }
  .footer-col__title {
    font-size: 1rem;
    font-weight: 600;
  }
  .footer-col__icons {
    display: flex;
    gap: 1rem;
    a {
      transition: var(--transition);
      &:hover {
        transform: translateY(-5px);
      }
    }
  }
}

.copyright {
  text-align: center;
  padding: 2rem;
  color: #939393;
  font-size: 12px;
  font-weight: 400;
}

.text-italic {
  font-style: italic;
}

.mb-1 {
  margin-bottom: calc(1 * var(--base-spacing));
}

.mb-2 {
  margin-bottom: calc(2 * var(--base-spacing));
}

.mb-3 {
  margin-bottom: calc(3 * var(--base-spacing));
}

.mb-4 {
  margin-bottom: calc(4 * var(--base-spacing));
}

.self-center {
  align-self: center;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* .min-100 {
  min-width: 100px;
} */

.tsd-success {
  display: block;
  padding: 1rem;
  background: #4cbf40;
  color: #fff;
  border-radius: 8px;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 2rem;
}
