/**
 * TWC CTA Block Styles
 */

.twc-cta {
  --twc-dark-navy:  #060f1d;
  --twc-white:      #f0f2f5;
  --twc-grey:       #8a96a8;
  --twc-accent:     #0976bb;
  --twc-accent-dim: #07639C;

  position: relative;
  z-index: 2;
  padding: 120px 24px;
  background: var(--twc-dark-navy);
}

.twc-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ─── Headline ─── */
.twc-cta__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--twc-white), var(--twc-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Subtext ─── */
.twc-cta__subtext {
  font-size: 18px;
  color: var(--twc-grey);
  line-height: 1.7;
  margin: 0 0 40px;
  font-family: 'DM Sans', sans-serif;
}

/* ─── Button ─── */
.twc-cta__btn {
  display: inline-block;
  padding: 18px 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--twc-accent), var(--twc-accent-dim));
  color: var(--twc-dark-navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 40px rgba(9, 124, 195, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twc-cta__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(9, 124, 195, 0.5);
  color: var(--twc-dark-navy);
  text-decoration: none;
}

/* ─── Scroll reveal (theme.js) ─── */
.twc-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.twc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.block-editor .twc-reveal {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .twc-cta {
    padding: 80px 24px;
  }

  .twc-cta__subtext {
    font-size: 16px;
  }

  .twc-cta__btn {
    padding: 16px 36px;
    font-size: 15px;
  }
}
