/* --- CTA szekció --- */

.cta-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  overflow: hidden;
  background-color: var(--color-primary-900);
  background-image: var(--cta-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 53, 0.65) 0%,
    rgba(0, 26, 53, 0.5) 25%,
    rgba(0, 26, 53, 0) 100%
  );
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.cta-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  text-wrap: balance;
}

.cta-intro {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  text-wrap: pretty;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.cta-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 99px;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-section .btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.cta-section .btn-primary:hover {
  background-color: var(--color-primary-700);
  color: #ffffff;
}

.cta-section .btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary-dark);
}

.cta-section .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

/* --- ≤ 992px --- */
@media (max-width: 992px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 40px;
  }
}

/* --- ≤ 768px --- */
@media (max-width: 768px) {
  .cta-section {
    padding: 64px 0;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-intro {
    margin-top: 16px;
  }

  .cta-actions {
    margin-top: 28px;
  }

  .cta-section .btn {
    width: 100%;
  }
}

/* --- ≤ 480px --- */
@media (max-width: 480px) {
  .cta-section {
    padding: 56px 0;
  }

  .cta-title {
    font-size: 28px;
  }
}
