/**
 * Theme name: LP for ADS | TS Digital Solutions
 * 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;
}

/* Performance tooltip */
.performance-tooltip {
  position: relative;
  cursor: help;
  font-weight: 600;
  color: inherit;

  cursor: pointer;
}

.performance-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  background-color: #560bad;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: wrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(86, 11, 173, 0.25);
  z-index: 1;
  width: 200px;
  line-height: 1.4;
}

.performance-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translate(-50%, 4px);
  border: 6px solid transparent;
  border-top-color: #560bad;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.performance-tooltip:hover::after,
.performance-tooltip:focus-visible::after,
.performance-tooltip:hover::before,
.performance-tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 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 {
    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: 52px;
    font-weight: 700;
    line-height: 1.1;

    @media (max-width: 768px) {
      text-align: center;
      font-size: 2rem;
      line-height: 1.3;
    }
  }
  .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(3, 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;
      justify-content: center;
      min-height: 281px;
      transition: var(--transition);

      @media screen and (max-width: 768px) {
        min-height: auto;
        height: auto;
      }

      &: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: 600;
        line-height: 1.7;
        color: var(--off-black);
      }
    }
  }
}

.performance-card-section {
  margin-top: var(--top-spacing);
}

.performance-card {
  position: relative;
  background: #fff;
  border-radius: 36px;
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid #dfe8f8;
  box-shadow: 0 30px 120px rgba(18, 38, 63, 0.08);
  overflow: hidden;
}

.performance-card__brand {
  text-align: right;
  font-weight: 300;
  color: #8a919c;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* border: solid 1px red; */
  justify-content: flex-end;
  img {
    max-width: 24px;
  }

  @media (max-width: 768px) {
    text-align: center;
    justify-content: center;
  }
}

.performance-card__brand-google {
  font-weight: 700;
  color: #4585f1;
}

.performance-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}

.performance-card__score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.performance-card__score-circle {
  width: clamp(140px, 15vw, 160px);
  height: clamp(140px, 15vw, 160px);
  border-radius: 50%;
  border: 10px solid #0fce69;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance-card__score-value {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  color: #0fce69;
  line-height: 1;
}

.performance-card__score-label {
  font-size: 0.95rem;
  color: #6b7687;
  font-weight: 300;
  max-width: 180px;
}

.performance-card__copy {
  flex: 1 1 320px;

  @media (max-width: 768px) {
    text-align: center;
    /* flex: 1 1 260px; */
  }
}

.performance-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background-color: #f2eafb;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.performance-card__title {
  font-size: clamp(2rem, 3vw, 38px);
  font-weight: 700;
  color: #0d1b2b;
  line-height: 1.3;
}

.performance-card__text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #425166;
  line-height: 1.6;
  font-weight: 300;
}

.performance-card__highlight {
  color: var(--accent-color);
}

.performance-card__legend {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #cfd9eb;
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: #1a2a3b;
}

.performance-card__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot--low {
  background-color: #ff5a5a;
}

.legend-dot--medium {
  background-color: #f5aa1c;
}

.legend-dot--high {
  background-color: #15bf6a;
}

.performance-card__actions {
  flex: 0 0 260px;
  text-align: center;

  @media (max-width: 768px) {
    flex: 1;
  }
}

.performance-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  /* border: 2px solid #15bf6a;
  color: #15bf6a; */
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.performance-card__button:hover,
.performance-card__button:focus-visible {
  background-color: #15bf6a;
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 191, 106, 0.3);
}

.performance-card__note {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #0c1929;
}

.performance-quote {
  margin-top: 40px;
  text-align: center;
}

.performance-quote__text {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 600;
  color: var(--accent-color);
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.performance-quote__source {
  font-weight: 300;
  color: #0d1b2b;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .performance-card__body {
    flex-direction: column;
    align-items: stretch;
  }

  .performance-card__actions {
    width: 100%;
  }

  .performance-card__legend {
    border-radius: 24px;
    width: 100%;
    justify-content: center;
  }
}

.server-proof-section {
  margin-top: var(--top-spacing);
}

.server-proof-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 32px;

  background: #fefdff;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
  &:hover {
    box-shadow: var(--card-shadow-hover);
  }
}

.server-proof-card__text {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  /* color: #10233f; */
  font-weight: 300;
  line-height: 1.4;
}

.server-proof-card__text strong {
  color: #15bf6a;
  font-weight: 600;
}

.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 (max-width: 1024px) {
      max-width: 100%;
    }
  }
  @media (max-width: 1024px) {
    padding: 50px 0;
    height: auto;
    max-width: 100%;
    margin-top: 4rem;
  }
}

.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;
  }
}

.section {
  margin-top: var(--top-spacing);
  @media screen and (max-width: 768px) {
    margin-top: 4rem;
  }

  &.content-centered {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    text-align: center;

    @media screen and (max-width: 768px) {
      padding: 0 1rem;
    }

    .description {
    }
  }

  .section-header {
    text-align: center;
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    margin-bottom: 3.75rem;
    @media (max-width: 768px) {
      margin-bottom: 1.5rem;
    }
  }

  &.two-col {
    .center-content {
      display: flex;
      gap: 45px;

      @media screen and (max-width: 768px) {
        flex-direction: column;
      }

      .col-image {
        flex: 1;
        padding-left: 5rem;
        &.case {
          padding: 2rem;
          border-radius: var(--spacing);
          background-color: #fff;
          text-align: center;
          img {
            display: block;
            margin: 0 auto;
            object-fit: cover;
            border-radius: var(--spacing);
          }
        }
      }
      .col-text {
        flex: 1;
      }
    }
  }
  &.with-gradient {
    background: var(--gradient);
  }
}

.section-header {
  margin-bottom: 3.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  @media (max-width: 768px) {
    margin-bottom: 1.5rem;
  }
  .title {
    text-align: center;
  }
}

.content-list-with-marks {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  gap: 1rem;

  &.text-left {
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 55%;
    margin: 0 auto;
    @media (max-width: 768px) {
      max-width: 100%;
    }
  }

  li {
    /* display: flex;
    gap: 1rem;
    align-items: center; */

    position: relative;
    padding-left: 2rem;
    .icon {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
    }

    @media (max-width: 768px) {
      /* flex-direction: column; */
    }
  }
}
.featured-text {
  margin-top: 1rem;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-color);
  display: inline-block;
  text-align: center;
  padding: 0 1rem;
}

.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);
}
