/* =================================================================
   CTA — "Get in touch" panel shown above the footer on every page. Its
   negative bottom margin lets it overlap the footer's top edge.
   Phones: stacked and centred; tablets up: text beside the buttons.
   The corner artwork is the logo mark, cropped by the panel.
   ================================================================= */

.cta {
  --focus-ring-color: var(--color-ink);

  position: relative;
  z-index: 2;
  margin-bottom: -9.6rem;
  padding-top: var(--section-space);
}

.cta__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  overflow: hidden;
  padding: 4rem 2.4rem;
  border-radius: var(--radius-lg);
  background: var(--color-amber);
  color: var(--color-ink);
  text-align: center;
  box-shadow: var(--shadow-raised);
}

/* Oversized logo mark tucked into the inline-end corner */
.cta__panel::after {
  content: '';
  position: absolute;
  inset-block-end: -4rem;
  inset-inline-end: -3rem;
  width: 18rem;
  height: 25rem;
  background: url('../../assets/logos/tmoon-mark.svg') center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-12deg);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.cta__title {
  margin-bottom: 0.8rem;
  font-size: var(--text-title);
  font-weight: var(--font-weight-black);
  line-height: 1.3;
  color: var(--color-ink);
}

.cta__text { font-size: var(--text-md); line-height: 1.7; }

.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

/* On amber the dark button leads and the outline follows */
.cta__button--solid {
  background: var(--color-ink);
  color: var(--color-paper);
}
.cta__button--solid:hover { background: var(--color-teal-deep); }

.cta__button--outline {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.cta__button--outline:hover { background: var(--color-ink); color: var(--color-paper); }

@media (min-width: 769px) {
  .cta__panel {
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
    padding: 4.8rem 5.6rem;
    text-align: start;
  }

  .cta__panel::after { width: 24rem; height: 33rem; inset-block-end: -8rem; inset-inline-end: 2rem; }

  .cta__actions { flex-shrink: 0; justify-content: flex-end; margin-inline-end: 12rem; }
}
