/**
 * Call-to-action boxes — [fc_cta] shortcode (inc/cta-shortcode.php)
 *
 * Styles: line | soft | split | navy
 * Align:  fc-cta--align-left | --align-center
 *
 * Layout switches on the box's own width (container queries), so it stacks
 * on phones and in any narrow column. Link selectors are two classes deep to
 * beat `.main-content a`.
 */

#contact {
  scroll-margin-top: 24px;
}

.fc-cta {
  margin: 2rem 0 2.25rem;
  container: fc-cta / inline-size;
}
.fc-cta .fc-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "body actions";
  align-items: center;
  gap: 16px 32px;
}
.fc-cta .fc-cta__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fc-cta .fc-cta__label {
  font-family: tenon, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0056f7;
}
.fc-cta .fc-cta__title {
  font-family: tenon, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #041670;
  text-wrap: balance;
}
.fc-cta .fc-cta__text {
  max-width: 52ch;
  font-family: tenon, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: #3e4352;
}
.fc-cta .fc-cta__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fc-cta a {
  border: 0;
  text-decoration: none;
}
/* Keyboard focus only; a mouse click leaves the button looking as it did */
.fc-cta a:focus {
  outline: none;
}
.fc-cta a:focus-visible {
  outline: 2px solid #0056f7;
  outline-offset: 3px;
}
.fc-cta--navy a:focus-visible {
  outline-color: #fff;
}
.fc-cta .fc-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px 14px 30px;
  border-radius: 30px;
  background: #0056f7;
  color: #fff;
  font-family: tenon, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.fc-cta .fc-cta__btn:hover {
  background: #041670;
  color: #fff;
  transform: translateY(-1px);
}
.fc-cta .fc-cta__arrow {
  display: inline-grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fc-cta svg {
  width: 18px;
  height: 18px;
}
.fc-cta .fc-cta__btn:hover .fc-cta__arrow {
  transform: translateX(3px);
}
.fc-cta .fc-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #041670;
  font-family: tenon, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.fc-cta .fc-cta__phone svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.fc-cta .fc-cta__or {
  font-weight: 300;
}
.fc-cta .fc-cta__phone:hover {
  color: #0056f7;
}

/* ---------- Line ---------- */
.fc-cta--line .fc-cta__inner {
  padding: 18px 0;
  border-top: 1px solid #dde2ee;
  border-bottom: 1px solid #dde2ee;
}
.fc-cta--line .fc-cta__title {
  font-size: 1.15rem;
}
.fc-cta--line .fc-cta__text {
  display: none;
}
.fc-cta--line .fc-cta__actions {
  flex-direction: row;
  gap: 24px;
}
.fc-cta--line .fc-cta__btn,
.fc-cta--line .fc-cta__btn:hover,
.fc-cta--line .fc-cta__btn:focus {
  padding: 0;
  gap: 12px;
  background: none;
  color: #041670;
  letter-spacing: 0;
  transform: none;
}
.fc-cta--line .fc-cta__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #041670;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fc-cta--line .fc-cta__btn:hover .fc-cta__arrow {
  background: #041670;
  color: #fff;
  transform: none;
}

/* ---------- Soft (default) ---------- */
.fc-cta--soft .fc-cta__inner {
  padding: 28px 32px;
  border-radius: 16px;
  background: #f2f4f9;
}

/* ---------- Navy ---------- */
.fc-cta--navy .fc-cta__inner {
  padding: 32px 36px;
  border-radius: 16px;
  background: #041670;
}
.fc-cta--navy .fc-cta__label {
  color: #9dbcff;
}
.fc-cta--navy .fc-cta__title {
  color: #fff;
}
.fc-cta--navy .fc-cta__text {
  color: rgba(255, 255, 255, 0.82);
}
.fc-cta--navy .fc-cta__btn {
  background: #fff;
  color: #041670;
}
.fc-cta--navy .fc-cta__btn:hover {
  background: #0056f7;
  color: #fff;
}
.fc-cta--navy .fc-cta__phone {
  color: #fff;
}
.fc-cta--navy .fc-cta__phone:hover {
  color: #9dbcff;
}

/* ---------- Split ---------- */
.fc-cta .fc-cta__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
}
.fc-cta .fc-cta__tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  transition: background-color 0.25s ease;
}
.fc-cta .fc-cta__tile .fc-cta__body {
  grid-area: auto;
}
.fc-cta .fc-cta__tile .fc-cta__title {
  font-size: 1.2rem;
}
.fc-cta .fc-cta__tile .fc-cta__text {
  font-size: 0.95rem;
}
.fc-cta .fc-cta__tile--callback {
  background: #f2f4f9;
}
.fc-cta .fc-cta__tile--callback:hover {
  background: #e7ebf5;
}
.fc-cta .fc-cta__tile--phone {
  background: #041670;
}
.fc-cta .fc-cta__tile--phone:hover {
  background: #0a2090;
}
.fc-cta .fc-cta__tile--phone .fc-cta__label {
  color: #9dbcff;
}
.fc-cta .fc-cta__tile--phone .fc-cta__title {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.fc-cta .fc-cta__tile--phone .fc-cta__text {
  color: rgba(255, 255, 255, 0.82);
}
.fc-cta .fc-cta__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.fc-cta .fc-cta__tile--callback .fc-cta__go {
  border: 1.5px solid #041670;
  color: #041670;
}
.fc-cta .fc-cta__tile--callback:hover .fc-cta__go {
  background: #041670;
  color: #fff;
}
.fc-cta .fc-cta__tile--phone .fc-cta__go {
  background: #fff;
  color: #041670;
}
.fc-cta .fc-cta__tile--phone:hover .fc-cta__go {
  transform: scale(1.06);
}

/* ---------- Centre alignment ---------- */
.fc-cta.fc-cta--align-center .fc-cta__inner {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "body" "actions";
  justify-items: center;
  text-align: center;
}
.fc-cta--align-center .fc-cta__body {
  align-items: center;
}
.fc-cta--align-center .fc-cta__text {
  margin-inline: auto;
}
.fc-cta--line.fc-cta--align-center .fc-cta__actions {
  justify-content: center;
}
.fc-cta--split.fc-cta--align-center .fc-cta__tile {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.fc-cta--split.fc-cta--align-center .fc-cta__body {
  align-items: center;
}

/* ---------- Narrow: phones, sidebars, tight columns ---------- */
@container fc-cta (max-width: 540px) {
  .fc-cta.fc-cta .fc-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body" "actions";
    gap: 18px;
  }
  .fc-cta .fc-cta__actions {
    justify-self: stretch;
    align-items: stretch;
  }
  .fc-cta .fc-cta__btn {
    width: 100%;
  }
  .fc-cta .fc-cta__phone {
    justify-content: center;
  }
  .fc-cta--soft .fc-cta__inner,
  .fc-cta--navy .fc-cta__inner {
    padding: 22px 20px;
  }
  .fc-cta .fc-cta__title {
    font-size: 1.18rem;
  }

  .fc-cta--line .fc-cta__title {
    font-size: 1.06rem;
  }
  .fc-cta--line .fc-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 20px;
  }
  .fc-cta--line .fc-cta__btn {
    width: auto;
  }
  .fc-cta--line.fc-cta--align-center .fc-cta__actions {
    justify-content: center;
  }

  .fc-cta .fc-cta__tiles {
    grid-template-columns: 1fr;
  }
  .fc-cta .fc-cta__tile {
    padding: 20px;
  }
}

/* Editor-only notice when a saved CTA Box is missing or unpublished */
.fc-cta-missing {
  margin: 2rem 0;
  padding: 12px 16px;
  border: 1px dashed #c0392b;
  border-radius: 8px;
  background: #fdf3f2;
  color: #8e2a20;
  font-family: tenon, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .fc-cta .fc-cta__btn,
  .fc-cta .fc-cta__arrow,
  .fc-cta .fc-cta__go {
    transition: none;
  }
  .fc-cta .fc-cta__btn:hover,
  .fc-cta .fc-cta__btn:hover .fc-cta__arrow,
  .fc-cta .fc-cta__tile--phone:hover .fc-cta__go {
    transform: none;
  }
}
