/* =========================================================================
   svc-price-banner.css  —  Shared "pricing promise" strip (.spb)
   ------------------------------------------------------------------------
   One reusable, self-contained component used at the TOP of every service
   subpage (custom-apps, custom-websites, design, website-to-app, marketing,
   marketing-package). Sits between the sticky nav and the hero, in the SAME
   place on every page, so the indicator reads identically site-wide.

   It makes one promise clear before anything else: pricing is fixed, and the
   exact quote is revealed FREE on the strategy session (-> contact.html).

   Conversion-tuned per UI-UX-PRO-MAX: single dominant gold CTA (primary-action),
   clear visual hierarchy, AA contrast, >=44px touch target, 150-300ms motion
   with prefers-reduced-motion support, and a quiet trust cue under the CTA to
   reduce friction. Fresh `.spb-*` namespace — no collision with cad / cwd /
   wta / ma / mkp. Pulls 100% from tokens.css (navy + gold brand palette). No JS
   dependency: visible on load, reserves its own height -> zero CLS. Lives inside
   <main>, which carries the site --page-zoom, so it scales with the hero below.
   ========================================================================= */

.spb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Deep navy, a touch darker than the hero so it reads as a distinct rail */
  background:
    radial-gradient(120% 170% at 10% -50%, rgba(232, 180, 0, 0.18), rgba(232, 180, 0, 0) 56%),
    radial-gradient(120% 170% at 100% 150%, rgba(232, 180, 0, 0.07), rgba(232, 180, 0, 0) 52%),
    linear-gradient(180deg, var(--color-primary-dark, #040D2E), var(--color-primary, #0A1A3F));
  border-bottom: 1px solid rgba(232, 180, 0, 0.16);
  padding: clamp(15px, 2.1vw, 21px) 0;
}

/* Gold hairline along the very top edge */
.spb::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(232, 180, 0, 0) 0%,
    var(--color-accent, #E8B400) 22%,
    var(--color-accent-hi, #F4C01C) 50%,
    var(--color-accent, #E8B400) 78%,
    rgba(232, 180, 0, 0) 100%
  );
  z-index: 1;
}

.spb__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 36px);
}

/* ---- Eyebrow label + pulsing dot --------------------------------------- */
.spb__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-right: clamp(16px, 2.6vw, 30px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent, #E8B400);
  white-space: nowrap;
}

.spb__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent, #E8B400);
  box-shadow: 0 0 0 0 rgba(232, 180, 0, 0.55);
  flex: 0 0 auto;
}

/* ---- Message ----------------------------------------------------------- */
.spb__msg {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  max-width: 68ch;
}

.spb__msg strong {
  font-weight: 700;
  color: #ffffff;
}

.spb__msg .spb__hl {
  color: var(--color-accent-hi, #F4C01C);
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Action group: dominant CTA + quiet trust cue ---------------------- */
.spb__action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ---- CTA pill (the site's proven gold / navy pairing) ------------------ */
.spb__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;            /* >= 44px touch target */
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--color-accent, #E8B400);
  background: linear-gradient(180deg, var(--color-accent-hi, #F4C01C), var(--color-accent, #E8B400));
  color: var(--color-primary, #0A1A3F);
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--accent-glow, 0 8px 22px -12px rgba(232, 180, 0, 0.55));
  transition:
    transform 220ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 220ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1)),
    background 220ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 220ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1));
}

/* Soft diagonal sheen — premium feel, swept in on hover (motion-gated below) */
.spb__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

.spb__cta svg {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1));
}

.spb__cta:hover {
  background: linear-gradient(180deg, var(--color-accent, #E8B400), var(--color-accent-dark, #CC9E00));
  border-color: var(--color-accent-dark, #CC9E00);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(232, 180, 0, 0.52);
}

.spb__cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -10px rgba(232, 180, 0, 0.5);
}

.spb__cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(232, 180, 0, 0.55), 0 0 0 5px rgba(10, 26, 63, 0.85));
}

/* ---- Trust cue (quiet reassurance under the CTA) ----------------------- */
.spb__trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.spb__trust-ico {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--color-accent, #E8B400);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---- Motion (opt-in only when motion is allowed) ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  .spb__dot {
    animation: spb-pulse 2.4s var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1)) infinite;
  }
  .spb__cta:hover svg {
    transform: translateX(3px);
  }
  .spb__cta::after {
    transition: left 620ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1));
  }
  .spb__cta:hover::after {
    left: 130%;
  }
}

@keyframes spb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 180, 0, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(232, 180, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 180, 0, 0); }
}

/* ---- Responsive -------------------------------------------------------- */
/* Tablet: let the message wrap but keep the row */
@media (max-width: 900px) {
  .spb__msg { font-size: 14px; }
  .spb__inner { gap: clamp(16px, 2.4vw, 28px); }
}

/* Narrow tablet / large phone: stack + center so nothing crowds */
@media (max-width: 760px) {
  .spb__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .spb__label {
    padding-right: 0;
    border-right: 0;
  }
  .spb__msg {
    max-width: 56ch;
  }
  .spb__action {
    align-items: center;
  }
}

/* Mobile: full-width tap target, no truncation */
@media (max-width: 640px) {
  .spb {
    padding: 18px 0 20px;
  }
  .spb__msg {
    max-width: 46ch;
  }
  .spb__action {
    width: 100%;
    max-width: 340px;
  }
  .spb__cta {
    width: 100%;
  }
}
