/* ==========================================================================
   CTA-SECTION.CSS — UNIVERSELE WEBSITE TEMPLATE
   Mid-page + einde CTA section
   ========================================================================== */

/* ---------- Basis CTA section ---------- */
.cta-section {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA knoppen ---------- */
.cta-section-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

@media (min-width: 480px) {
  .cta-section-buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }
}

.cta-section-buttons .btn {
  padding: 14px 28px;
  font-size: 1rem;
  min-width: 220px;
}

/* ---------- Trust elementen ---------- */
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Mid-page variant (subtiel) ---------- */
.cta-section--mid {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Einde variant (prominent) ---------- */
.cta-section--end {
  background-color: var(--color-secondary-dark);
  color: #fff;
  padding: var(--space-3xl) 0;
}

.cta-section--end h2 {
  color: #fff;
}

.cta-section--end .cta-section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.cta-section--end .cta-trust {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section--end .cta-trust-item svg {
  color: var(--color-primary-light);
}

/* ---------- Compacte CTA balk ---------- */
.cta-bar {
  padding: var(--space-2xl) 0;
}

.cta-bar-inner {
  background: linear-gradient(135deg, #162d4a 0%, #0d1f35 100%);
  border-radius: 20px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(10, 26, 48, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-bar-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(246, 138, 48, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-bar-inner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-bar-left {
  position: relative;
}

.cta-bar-heading {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 4px;
}

.cta-bar-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.cta-bar-buttons {
  display: flex;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
}

.cta-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-bar-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.cta-bar-btn--phone {
  background: var(--color-primary);
  box-shadow: 0 4px 16px rgba(246, 138, 48, 0.35);
}

.cta-bar-btn--phone:hover {
  box-shadow: 0 6px 24px rgba(246, 138, 48, 0.5);
  filter: brightness(1.08);
}

.cta-bar-btn--wa {
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.cta-bar-btn--wa:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  filter: brightness(1.08);
}

.cta-bar-btn svg {
  flex-shrink: 0;
}

/* Tablet */
@media (max-width: 768px) {
  .cta-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 28px;
    gap: var(--space-lg);
  }
  .cta-bar-heading {
    font-size: 1.3rem;
  }
}

/* Mobiel */
@media (max-width: 480px) {
  .cta-bar-inner {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .cta-bar-heading {
    font-size: 1.15rem;
  }
  .cta-bar-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cta-bar-btn {
    justify-content: center;
    padding: 14px 20px;
  }
}
