.services {
  padding-block: var(--space-24);
  background: white;

  & .container {
    flex-direction: column;

    & .title {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      align-items: end;
      justify-content: space-between;
      gap: var(--space-6);
      margin-bottom: var(--space-12);

      & .pretitle {
        color: var(--color-primary);
        letter-spacing: 0.2em;
        font-weight: var(--font-weight-bold);
        font-size: 0.75rem;
      }

      & h2 {
        text-wrap: balance;
        color: var(--color-foreground);
        margin-bottom: 0;
        margin-top: var(--space-3);
      }
    }

    & .services-grid {
      display: grid;
      gap: var(--space-6);

      @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      @media (min-width: 1024px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      & a {
        box-shadow: var(--shadow-card);
        transition: all var(--transition-base);
        border-radius: 0.5rem;
        overflow: hidden;
        position: relative;
        text-decoration: none;

        & .image {
          overflow: hidden;
          aspect-ratio: 2 / 1;

          & img {
            transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
            object-fit: cover;
            width: 100%;
            height: 100%;
          }

          @media (min-width: 768px) {
            aspect-ratio: 6 / 4;
          }
        }

        & .overlay {
          position: absolute;
          inset: 0;
          background: linear-gradient(
            to bottom,
            transparent,
            var(--color-steel)
          );
        }

        & .texts {
          padding: var(--space-6);
          position: absolute;
          inset-inline: 0;
          bottom: 0;

          & .intro {
            text-transform: uppercase;
            color: var(--color-primary-glow);
            letter-spacing: 0.05em;
            font-weight: var(--font-weight-semibold);
            font-size: 0.75rem;
            margin-bottom: var(--space-2);
          }

          & h3 {
            color: white;
            font-size: 1.5rem;
            line-height: calc(2 / 1.5);
            margin: 0;
          }

          & .cta {
            opacity: 0;
            display: flex;
            align-items: center;
            gap: var(--space-2);
            margin-top: var(--space-3);
            font-size: 0.875rem;
            font-weight: var(--font-weight-semibold);
            color: color-mix(in oklab, white 80%, transparent);
            transition: opacity var(--transition-base);

            & svg {
              width: var(--space-4);
              height: var(--space-4);
              flex-shrink: 0;
            }
          }
        }

        &:hover img {
          transform: scale(110%);
        }

        &:hover .cta {
          opacity: 1;
        }
      }
    }
  }
}
