/* hero-cta.css - Hero call-to-action component */

.hero-cta {
  position: relative;
  margin-top: -10rem;
  padding: 0;
}

.hero-cta__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  width: calc(100% - 2 * var(--space-md));
  max-width: calc(var(--container-xxl) - 2 * var(--space-md));
  border-radius: var(--radius-md);
}

.hero-cta__item {
  flex: 0 0 calc(50% - var(--space-md) / 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-lg);
  transition: box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}

.hero-cta__content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-cta__icon {
  flex: 0 0 calc(140px - var(--space-md) / 2);
}

.hero-cta__icon img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-cta__text {
  flex: auto;
}

.hero-cta__title {
  margin: 0 0 1rem;
  font-size: var(--fz-lg);
  line-height: 1.2;
}

.hero-cta__desc {
  margin: 0;
  font-size: var(--fz-sm);
  line-height: 1.5;
  color: var(--color-text-light);
}

.hero-cta__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta__arrow img {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.hero-cta__item:hover .hero-cta__arrow img {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
  .hero-cta__item {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .hero-cta__inner {
    top: -64px;
  }
}

@media (max-width: 767px) {
  .hero-cta__inner {
    position: relative;
    top: 0;
    width: 100%;
    max-width: none;
    gap: var(--space-sm);
    padding: 0;
  }

  .hero-cta__item {
    flex: 1 1 100%;
    padding: var(--space-md);
  }

  .hero-cta__icon {
    flex: 0 0 calc(100px - var(--space-md) / 2);
  }

  .hero-cta__title {
    margin: 0;
    font-size: var(--fz-md);
    line-height: 1;
  }

  .hero-cta__desc {
    display: none;
  }

  .hero-cta__arrow img {
    width: 18px;
    height: 18px;
  }
}