/* ═══════════════════════════════════════════════════════════════════════════
   buttons-v2.css — VSHR primary CTA
   Pattern: solid face at rest, VSHR --grad reveal + shimmer sweep on hover.
   No continuous animation (that was "too loud" per Ryan 2026-04-21).

   Rest   : solid pop-orange, flat, quiet.
   Hover  : ::after fades in the VSHR --grad token, ::before does one
            diagonal white shimmer sweep (L→R, ~900ms). Lift + warm shadow.
   Active : scale(0.98), quick.
   A11y   : prefers-reduced-motion disables the sweep.

   Tuning knobs live at :root. Change --btn-hover-grad to swap the
   hover gradient (defaults to site.css --grad). Change --btn-bg for
   rest color.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --btn-bg:           #F97316;                                /* solid rest */
  --btn-hover-bg:     #EA580C;                                /* solid hover (deeper orange) */
  --btn-radius:       999px;                                  /* premium pill (was 12px) */
  --btn-ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base (rest) ─────────────────────────────────────────────────────────── */

.btn,
.btn-primary,
.btn-blue,
a.btn,
a.btn-primary,
a.btn-blue,
body.premium .btn,
body.premium .btn-primary,
body.premium .btn-blue {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--btn-bg) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--btn-radius) !important;
  padding: 14px 26px !important;
  font-weight: 700 !important;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none !important;
  /* White label legibility on the #F97316 orange (and blue) at rest. The
     .btn-label / `> *` rule below carries the same shadow for wrapped labels;
     setting it on the base catches CTAs whose text isn't wrapped in a span. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  animation: none !important; /* kill legacy orange-glow pulse */
  box-shadow:
    0 1px 2px rgba(234, 88, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 220ms var(--btn-ease),
    box-shadow 320ms var(--btn-ease);
}

/* ── Text/icon sit above the gradient reveal ─────────────────────────────── */

.btn-primary > *,
.btn-blue > *,
a.btn-primary > *,
a.btn-blue > *,
.btn .btn-label,
.btn-primary .btn-label,
.btn-blue .btn-label {
  position: relative;
  z-index: 2;
  /* Text-shadow keeps white text readable against the magenta part of
     the VSHR --grad hover layer. Subtle enough to be invisible at rest. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* ── VSHR gradient reveal on hover (re-enabled 2026-05-19 per
       feedback_button_vshr_gradient_shimmer.md hard rule). The ::after
       layer fades in the brand gradient behind the text/shimmer; opacity
       is gated by hover so it stays quiet at rest. --grad token is the
       VSHR brand: gold → orange → magenta → purple. --- */

.btn-primary::after,
.btn-blue::after,
a.btn-primary::after,
a.btn-blue::after,
body.premium .btn-primary::after,
body.premium .btn-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  /* z-index: -1 keeps the gradient reveal BEHIND the button's text
     content. CSS can't apply z-index to bare text nodes via the
     `.btn-primary > *` rule, so many CTAs render unwrapped text like
     <a class="btn-primary">Get started <svg/></a> — without z-index: -1
     here, the gradient layer covers the text on hover. The button's
     `isolation: isolate` keeps the negative z-index scoped. */
  z-index: -1;
  border-radius: inherit;
  background: var(--grad, linear-gradient(135deg, #F7D44C 0%, #F07128 28%, #E8125C 62%, #7B21A2 100%));
  opacity: 0;
  transition: opacity 320ms var(--btn-ease);
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-blue:hover::after,
a.btn-primary:hover::after,
a.btn-blue:hover::after,
body.premium .btn-primary:hover::after,
body.premium .btn-blue:hover::after {
  opacity: 1;
}

/* ── Single shimmer sweep on hover (::before, fires once) ────────────────── */

.btn-primary::before,
.btn-blue::before,
a.btn-primary::before,
a.btn-blue::before,
body.premium .btn-primary::before,
body.premium .btn-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  filter: blur(1px);
}
.btn-primary:hover::before,
.btn-blue:hover::before,
a.btn-primary:hover::before,
a.btn-blue:hover::before,
body.premium .btn-primary:hover::before,
body.premium .btn-blue:hover::before {
  animation: btn-shimmer 900ms var(--btn-ease) 80ms forwards;
  opacity: 1;
}

@keyframes btn-shimmer {
  0%   { left: -120%; }
  100% { left: 170%; }
}

/* ── Premium rest presence (ORANGE buttons only) ─────────────────────────────
   A layered warm brand glow (orange + magenta) + top sheen so the solid-orange
   face reads as a confident CTA, not a flat chip. Scoped to .btn-primary/.btn-blue
   (NOT the shared .btn base, which secondary/ghost buttons also carry). !important
   because page-scoped sheets (e.g. home-page.css .btn-primary) redefine the rest
   shadow at equal specificity and would otherwise win by load order. This is the
   sitewide version of the industries section-close CTA treatment. */
/* Kept low-specificity (no body.premium prefix) so section-scoped treatments —
   e.g. the protected .hero-left hero CTA — can override with their own shadow. */
.btn-primary,
.btn-blue,
a.btn-primary,
a.btn-blue {
  box-shadow:
    0 8px 22px -8px rgba(249, 115, 22, 0.42),
    0 3px 10px -3px rgba(232, 18, 92, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* Trailing arrow glides on hover (only the last svg, so leading icons stay put) */
.btn-primary svg:last-child,
.btn-blue svg:last-child,
a.btn-primary svg:last-child,
a.btn-blue svg:last-child {
  transition: transform 300ms var(--btn-ease);
}
.btn-primary:hover svg:last-child,
.btn-blue:hover svg:last-child,
a.btn-primary:hover svg:last-child,
a.btn-blue:hover svg:last-child {
  transform: translateX(4px);
}

/* ── Hover: deeper solid orange + lift + intensified warm glow ───────────────── */

.btn-primary:hover,
.btn-blue:hover,
a.btn-primary:hover,
a.btn-blue:hover {
  background: var(--btn-hover-bg) !important;
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px -8px rgba(249, 115, 22, 0.52),
    0 6px 16px -3px rgba(232, 18, 92, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

/* ── Active / focus ──────────────────────────────────────────────────────── */

.btn-primary:active,
.btn-blue:active,
a.btn-primary:active,
a.btn-blue:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 100ms;
}

.btn-primary:focus-visible,
.btn-blue:focus-visible {
  outline: 2px solid var(--btn-bg);
  outline-offset: 3px;
}

/* ── Secondary (ghost) ───────────────────────────────────────────────────── */

.btn-secondary,
a.btn-secondary,
body.premium .btn-secondary {
  position: relative;
  background: transparent !important;
  background-image: none !important;
  color: var(--navy, #07192E) !important;
  border: 1.5px solid var(--navy, #07192E) !important;
  border-radius: var(--btn-radius) !important;
  padding: 12.5px 24px !important;
  font-weight: 700 !important;
  font-size: 15px;
  line-height: 1;
  animation: none !important;
  transition:
    background 220ms var(--btn-ease),
    color 220ms var(--btn-ease),
    transform 220ms var(--btn-ease),
    box-shadow 320ms var(--btn-ease);
}
.btn-secondary::before,
.btn-secondary::after { display: none !important; }
.btn-secondary:hover,
a.btn-secondary:hover,
body.premium .btn-secondary:hover {
  background: var(--navy, #07192E) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(7, 25, 46, 0.35) !important;
}

/* ── Phone button — blue solid, no gradient layers ───────────────────────── */

.btn-phone,
a.btn-phone {
  background: var(--blue, #1479A3) !important;
  color: #fff !important;
}
.btn-phone::before,
.btn-phone::after { display: none !important; }

/* ── Reduced motion: gradient reveal only, no sweep, no lift ─────────────── */

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::before,
  .btn-blue:hover::before { animation: none !important; opacity: 0; }
  .btn-primary::after,
  .btn-blue::after,
  a.btn-primary::after,
  a.btn-blue::after { transition: none !important; }
  .btn-primary:hover,
  .btn-blue:hover { transform: none; }
  .btn-primary svg:last-child,
  .btn-blue svg:last-child,
  .btn-primary:hover svg:last-child,
  .btn-blue:hover svg:last-child { transition: none !important; transform: none !important; }
}
