// main: ../main.scss
/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  position: relative;
  overflow: hidden;

  .container {
    position: relative;
    z-index: 2;
  }

  h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }

  .lead {
    font-size: 1.2rem;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    line-height: 1.6;
  }

  .cta-card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 90%);
    position: relative;
    overflow: hidden;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #6c63ff 50%));
    }

    @media (max-width: 992px) {
      padding: 2rem;
    }

    @media (max-width: 768px) {
      padding: 1.5rem;
    }
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;

    @media (max-width: 576px) {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  }

  .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #6c63ff 30%));
    border-radius: 16px;
    color: var(--contrast-color);
    transition: transform 0.3s ease;

    &:hover {
      transform: translateY(-5px);
    }

    .stat-number {
      display: block;
      font-size: 2rem;
      font-weight: 700;
      line-height: 1;
    }

    .stat-label {
      font-size: 0.9rem;
      opacity: 0.9;
      display: block;
      margin-top: 0.5rem;
    }
  }

  .cta-content {
    h3 {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    p {
      font-size: 1.1rem;
      color: color-mix(in srgb, var(--default-color), transparent 30%);
      margin-bottom: 2rem;
    }
  }

  .cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;

    @media (max-width: 576px) {
      flex-direction: column;
    }

    .btn {
      padding: 0.875rem 2rem;
      border-radius: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
      }

      &:hover::before {
        left: 100%;
      }
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #6c63ff 30%));
      color: var(--contrast-color);
      border: none;
      box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px color-mix(in srgb, var(--accent-color), transparent 60%);
      }
    }

    .btn-outline {
      background: transparent;
      color: var(--accent-color);
      border: 2px solid var(--accent-color);

      &:hover {
        background: var(--accent-color);
        color: var(--contrast-color);
        transform: translateY(-2px);
      }
    }
  }

  .trust-indicators {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;

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

  .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--default-color), transparent 30%);

    i {
      color: #28a745;
      font-size: 1.1rem;
    }
  }

  .cta-visual {
    position: relative;
    height: 100%;
    min-height: 400px;

    @media (max-width: 992px) {
      min-height: 300px;
    }
  }

  .image-stack {
    position: relative;
    height: 100%;

    .main-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 20px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
  }

  .floating-card {
    position: absolute;
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--surface-color), transparent 20%);

    &.card-1 {
      top: 20%;
      right: -10%;
      z-index: 3;

      @media (max-width: 992px) {
        right: 10px;
        top: 10%;
      }
    }

    &.card-2 {
      bottom: 15%;
      left: -5%;
      z-index: 3;

      @media (max-width: 992px) {
        left: 10px;
        bottom: 10%;
      }
    }

    .card-content {
      display: flex;
      align-items: center;
      gap: 1rem;

      i {
        font-size: 2rem;
        color: var(--accent-color);
      }

      .card-number {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--heading-color);
        line-height: 1;
      }

      .card-text {
        display: block;
        font-size: 0.9rem;
        color: color-mix(in srgb, var(--default-color), transparent 40%);
      }
    }
  }

  .urgency-bar {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--contrast-color);
    text-align: center;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
  }

  .urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;

    @media (max-width: 768px) {
      flex-direction: column;
      gap: 1.5rem;
    }

    i {
      font-size: 1.5rem;
      animation: pulse 2s infinite;
    }

    .urgency-text {
      font-weight: 600;
      font-size: 1.1rem;
    }
  }

  .countdown {
    gap: 1rem;

    >div {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.75rem 1rem;
      border-radius: 12px;
      backdrop-filter: blur(10px);
      min-width: 70px;

      span {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
      }

      small {
        font-size: 0.8rem;
        opacity: 0.9;
        margin-top: 0.25rem;
      }
    }
  }

  @keyframes pulse {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.1);
    }
  }
}