/* Homepage header call-to-action: "Call Marnie", a tel: link to Asbury
   Answers' AI receptionist. Loaded after the main bundle
   CSS, so these rules win over the old .header-cta link style. Linked from
   index.html, so every rule is scoped to the button, the hero card or the
   homepage (.hp).
   Motion is transform/opacity only and stops under prefers-reduced-motion. */

.site-header .header-cta--call {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  background: color-mix(in oklch, var(--signal) 12%, transparent);
  color: var(--paper-100);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.site-header .header-cta--call:hover,
.site-header .header-cta--call:focus-visible {
  background: var(--signal);
  color: var(--ink-950);
  transform: translateY(-1px);
}

.site-header .header-cta--call:focus-visible {
  outline: 2px solid var(--paper-100);
  outline-offset: 3px;
}

.header-cta__label { font-weight: 700; }

.header-cta__num {
  opacity: .72;
  font-size: 11px;
  letter-spacing: .02em;
}

/* The live cue: a solid dot with a ring that keeps pinging outward. */
.call-pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.call-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal);
  animation: call-ping 1.8s cubic-bezier(.2, .7, .3, 1) infinite;
}

.site-header .header-cta--call:hover .call-pulse,
.site-header .header-cta--call:hover .call-pulse::after,
.site-header .header-cta--call:focus-visible .call-pulse,
.site-header .header-cta--call:focus-visible .call-pulse::after {
  background: var(--ink-950);
}

@keyframes call-ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* Below 1181px the main CSS hides the header link and the desktop menu.
   Keep the call button in the bar, between the logo and the menu button. */
@media (max-width: 1180px) {
  .hp .site-header { grid-template-columns: 1fr auto auto; column-gap: 8px; }
  .site-header .header-cta--call { display: inline-flex; }
}

/* Phones: the number drops out; the button reads "Call Marnie". */
@media (max-width: 640px) {
  .header-cta__num { display: none; }
  .site-header .header-cta--call { padding: 0 14px 0 12px; font-size: 11px; gap: 8px; }
}

@media (max-width: 360px) {
  .site-header .header-cta--call { padding: 0 10px; }
}

/* Homepage hero: "Book a free 30-minute call" as a card that dials Marnie.
   The whole card is the tel: link. It takes the full row on phones and sits
   beside "Watch it work" on wider screens. */
.hp .hp-actions { align-items: stretch; }

.hp-call-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1 1 100%;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid color-mix(in oklch, var(--signal) 55%, transparent);
  border-radius: 6px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in oklch, var(--signal) 16%, transparent), transparent 60%),
    color-mix(in oklch, var(--ink-950) 86%, var(--signal));
  color: var(--paper-100);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 0%, transparent);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hp-call-card:hover,
.hp-call-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--signal);
  box-shadow: 0 14px 40px -18px color-mix(in oklch, var(--signal) 60%, transparent);
}

.hp-call-card:focus-visible { outline: 2px solid var(--paper-100); outline-offset: 3px; }

.hp-call-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--signal);
}

.hp-call-card__title {
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hp-call-card__sub {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--paper-200);
}

.hp-call-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklch, var(--signal) 22%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.hp-call-card__num { color: var(--paper-200); letter-spacing: .03em; }

.hp-call-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--signal);
  color: var(--ink-950);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hp-call-card__go svg { transition: transform .25s ease; }
.hp-call-card:hover .hp-call-card__go svg,
.hp-call-card:focus-visible .hp-call-card__go svg { transform: translateX(4px); }

/* A slow light sweep across the card, the same idea as the page scan lines. */
.hp-call-card__sweep {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--signal) 14%, transparent), transparent);
  transform: translateX(-120%);
  animation: call-sweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes call-sweep {
  0%, 35% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(320%); }
}

@media (min-width: 641px) {
  .hp-call-card { flex: 1 1 340px; max-width: 460px; padding: 20px 22px 18px; }
  .hp .hp-actions .button-quiet { width: auto; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-call-card__sweep { animation: none; opacity: 0; }
  .hp-call-card,
  .hp-call-card__go svg { transition: none; }
  .hp-call-card:hover,
  .hp-call-card:focus-visible,
  .hp-call-card:hover .hp-call-card__go svg { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .call-pulse::after { animation: none; opacity: 0; }
  .site-header .header-cta--call { transition: none; }
  .site-header .header-cta--call:hover,
  .site-header .header-cta--call:focus-visible { transform: none; }
}

@media print {
  .call-pulse, .hp-call-card__sweep { display: none; }
}
