/*
 * British Lasers â€” reusable CTA system
 * ------------------------------------
 * Extracted and consolidated from the supplied landing page.
 *
 * The two intended landing-page variables are:
 *   --bl-cta-color: the CTA's main colour
 *   --bl-cta-icon:  a Font Awesome 6 Free glyph, e.g. "\f274"
 *
 * Font Awesome requirement:
 *   <link rel="stylesheet"
 *     href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
 *
 * Example two-line CTA:
 *   <a class="bl-cta bl-cta--feature" href="#"
 *      style="--bl-cta-color:#5333d2;--bl-cta-icon:'\f1de'">
 *     <span class="bl-cta__copy">
 *       <span>Compare the Machines</span>
 *       <small>See features, prices &amp; finance</small>
 *     </span>
 *   </a>
 *
 * Group the same feature CTAs with:
 *   .bl-cta-group--hero   = side by side on desktop, stacked on mobile
 *   .bl-cta-group--footer = stacked at every viewport width
 *
 * Source mapping:
 *   .bil-button + .bil-hero-actions + .bil-button-copy -> feature CTAs
 *   .bil-final-actions                                -> footer CTA stack
 *   .bil-machine-panel-trigger/.bil-button-purple    -> standalone CTAs
 *   .bil-resource-link/.bil-guide-link               -> simple CTAs
 */

/* Optional wrapper. Override its two marked variables on each landing page. */
.bl-cta-scope {
  /* VARIABLE 1: landing-page/CTA colour. */
  --bl-cta-color: #5333d2;

  /* VARIABLE 2: Font Awesome 6 Free icon. Default is arrow-right. */
  --bl-cta-icon: "\f061";

  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Shared CTA reset and interaction treatment. */
.bl-cta {
  --_cta-color: var(--bl-cta-color, #5333d2);
  --_cta-icon: var(--bl-cta-icon, "\f061");

  display: inline-flex;
  min-height: 50px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--_cta-color), white 48%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 47%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--_cta-color), black 22%) 0%,
      var(--_cta-color) 50%,
      color-mix(in srgb, var(--_cta-color), white 22%) 100%
    );
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--_cta-color) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* The icon is CSS-controlled, so changing --bl-cta-icon is enough. */
.bl-cta::before {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  box-sizing: content-box;
  padding: 8px;
  content: var(--_cta-icon);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.08);
  font-family: "Font Awesome 6 Free";
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Use when the markup supplies its own <i class="fa-solid ..."> icon. */
.bl-cta--html-icon::before,
.bl-cta--no-icon::before {
  display: none;
}

.bl-cta > i {
  flex: 0 0 auto;
  line-height: 1;
}

.bl-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--_cta-color), white 50%);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .bl-cta:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow:
      0 19px 42px color-mix(in srgb, var(--_cta-color) 43%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  }
}

/*
 * FEATURE CTA
 * Large, two-line action used above the fold and again near the footer.
 * The wrapperâ€”not the CTAâ€”decides whether siblings sit side by side or stack.
 */
.bl-cta--feature {
  min-width: 286px;
  min-height: 64px;
  gap: 12px;
  padding: 11px 20px 11px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.bl-cta__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.bl-cta__copy > span {
  font-weight: 900;
  line-height: 1.14;
}

.bl-cta__copy > small {
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0.76;
}

/* Above-the-fold pair: horizontal on desktop, vertical on mobile. */
.bl-cta-group--hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

/* Footer cousins: same CTA component, deliberately stacked on desktop too. */
.bl-cta-group--footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.bl-cta-group--footer .bl-cta--feature {
  width: 100%;
  min-width: 0;
}

/* Optional heading and note inside the footer CTA panel. */
.bl-cta-group__label,
.bl-cta-group__note {
  margin: 0;
  text-align: center;
}

.bl-cta-group__label {
  color: #fff;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-cta-group__note {
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
  line-height: 1.55;
}

/*
 * STANDALONE CTA
 * For actions such as â€œCompare the three machinesâ€, â€œExplore the tattoo
 * laserâ€ and â€œDiscuss your requirementsâ€. Keep one line of copy.
 */
.bl-cta--standalone {
  width: fit-content;
  min-height: 50px;
  margin-top: 30px;
  padding: 13px 22px;
  font-size: 12.5px;
  font-weight: 850;
}

/* Standalone icons are simpler than the feature CTA's icon disc. */
.bl-cta--standalone::before {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 13px;
}

/*
 * SIMPLE CTA
 * For â€œVisit repairs and servicingâ€, â€œRequest a valuation reviewâ€, guide
 * links and similar low-emphasis routes. It uses the same two variables, but
 * applies the chosen colour to text, border and tint rather than a gradient.
 */
.bl-cta--simple {
  width: 100%;
  min-height: 43px;
  justify-content: center;
  margin-top: 15px;
  padding: 11px 14px;
  color: var(--_cta-color);
  border: 1px solid color-mix(in srgb, var(--_cta-color), white 70%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--_cta-color), white 95%);
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.35;
}

.bl-cta--simple::before {
  order: 2;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 11px;
  transition: transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bl-cta--simple:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--_cta-color), white 48%);
    background: color-mix(in srgb, var(--_cta-color), white 92%);
    box-shadow: 0 10px 24px
      color-mix(in srgb, var(--_cta-color) 13%, transparent);
  }

  .bl-cta--simple:hover::before {
    transform: translateX(3px);
  }
}

@media (max-width: 650px) {
  .bl-cta-group--hero {
    display: grid;
    width: min(calc(100% - 20px), 318px);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 15px;
    margin-right: auto;
    margin-left: auto;
  }

  .bl-cta--feature {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 54px;
    gap: 10px;
    padding: 10px 20px 10px 12px;
    border-radius: 999px;
    font-size: 15.5px;
    line-height: 1.25;
  }

  .bl-cta-group--footer {
    padding-inline: 18px;
  }

  .bl-cta-group--footer .bl-cta--feature {
    min-height: 54px;
    gap: 9px;
    padding: 9px 12px 9px 10px;
    font-size: 12.6px;
    line-height: 1.15;
  }

  .bl-cta-group--footer .bl-cta__copy > small {
    font-size: 9.2px;
  }

  .bl-cta--standalone {
    width: 100%;
    margin-top: 27px;
  }

  .bl-cta--simple {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-cta,
  .bl-cta::before {
    transition-duration: 0.01ms !important;
  }
}