/* ==========================================================================
   Block: Contact CTA
   File:   css/blocks/contact-cta.css
   Markup: includes/blocks/contact-cta.php

   A departure from the filled bands used elsewhere: an outlined frame sitting
   on the page, with the copy set left and the action held to the right, and a
   solid gold marker breaking the top edge so the frame reads as deliberate
   rather than as a plain box.
   ========================================================================== */

.contact-cta {
  --cc-heading-size: 40px;

  width: 100%;
  margin: var(--vir-section-gap) 0 0;
  padding: 50px var(--vir-gutter);
  box-sizing: border-box;
}

/* --- Frame --------------------------------------------------------------- */

.contact-cta__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: var(--vir-measure);
  margin: 0 auto;
  padding: 52px 56px;
  border: 2px solid var(--vir-gold);
  box-sizing: border-box;
}

/* Solid marker sitting over the top edge of the frame. */
.contact-cta__frame::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 56px;
  width: 78px;
  height: 6px;
  background-color: var(--vir-gold);
}

/* --- Copy ---------------------------------------------------------------- */

.contact-cta .contact-cta__heading {
  margin: 0;
  color: var(--vir-white);
  font-family: var(--vir-font-display);
  font-size: var(--cc-heading-size);
  line-height: 1.1em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-cta__text {
  margin: 18px 0 0;
}

.contact-cta .contact-cta__text p {
  margin: 0 0 1em;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--vir-font-body);
  font-size: 16px;
  line-height: 1.8em;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.contact-cta .contact-cta__text p:last-child {
  margin-bottom: 0;
}

/* --- Action -------------------------------------------------------------- */

.contact-cta__action {
  display: flex;
  justify-content: flex-end;
}

/* An underlined link that fills to a solid pill on hover, rather than a
   button that is already filled like every other one on the page. */
.contact-cta .contact-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 14px;
  border: 0;
  border-bottom: 2px solid var(--vir-gold);
  background-color: transparent;
  color: var(--vir-gold);
  font-family: var(--vir-font-display);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s ease, gap 0.4s ease;
}

.contact-cta .contact-cta__button:hover {
  color: var(--vir-white);
  gap: 26px;
  text-decoration: none;
}

.contact-cta__arrow {
  flex: 0 0 auto;
  transition: transform 0.4s ease;
}

.contact-cta .contact-cta__button:hover .contact-cta__arrow {
  transform: translateX(4px);
}

.contact-cta .contact-cta__button:focus-visible {
  outline: 2px solid var(--vir-gold);
  outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-cta .contact-cta__button,
  .contact-cta__arrow {
    transition: none;
  }

  .contact-cta .contact-cta__button:hover {
    gap: 16px;
  }

  .contact-cta .contact-cta__button:hover .contact-cta__arrow {
    transform: none;
  }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1249px) {
  .contact-cta {
    --cc-heading-size: 34px;
  }

  .contact-cta__frame {
    gap: 36px;
    padding: 46px 40px;
  }

  .contact-cta__frame::before {
    left: 40px;
  }
}

@media (max-width: 991px) {
  .contact-cta {
    --cc-heading-size: 29px;
  }

  .contact-cta__frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .contact-cta__action {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .contact-cta {
    --cc-heading-size: 24px;
  }

  .contact-cta__frame {
    padding: 38px 26px;
  }

  .contact-cta__frame::before {
    left: 26px;
    width: 58px;
  }

  .contact-cta .contact-cta__button {
    font-size: 18px;
    white-space: normal;
  }
}
