/* ============================================================
   Mobile conversion spine — sticky action bar, header tap-to-call,
   footer phone tap target. Shared sitewide. Mobile-only (<=768px).
   ============================================================ */

/* --- Sticky bottom action bar (mobile only) --- */
.mfd-action-bar { display: none; }

@media (max-width: 768px) {
  .mfd-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1150;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    transition: transform 0.25s ease;
  }

  .mfd-action-bar--call-only { grid-template-columns: 1fr; }

  /* Hidden while a form field is focused so it never covers inputs/keyboard */
  .mfd-action-bar--hidden { transform: translateY(130%); }

  .mfd-action-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: var(--font-sans, 'DM Sans', -apple-system, sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mfd-action-bar__btn svg { width: 18px; height: 18px; flex: none; }

  .mfd-action-bar__btn--call {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mfd-action-bar__btn--quote {
    background: var(--ember, var(--accent, #dc2626));
    color: #fff;
    border: 1px solid transparent;
  }

  /* Keep the estimator's own fixed mobile action bar clear of ours */
  body.mfd-estimate .mobile-action-bar {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- Header tap-to-call (mobile only), sits beside the hamburger --- */
.mfd-nav-call { display: none; }

@media (max-width: 768px) {
  .mfd-nav-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    color: var(--cream, #e8e8e8);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  .mfd-nav-call svg { width: 22px; height: 22px; }
}

/* --- Footer phone: enforce >=44px tap target sitewide --- */
footer a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --- Shared hero trust strip (added on money pages lacking one) --- */
.mfd-trust {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 5vw;
}
.mfd-trust-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 32px;
}
.mfd-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mfd-trust-item:last-child { border-right: none; padding-right: 0; }
.mfd-trust-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.mfd-trust-value {
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  color: #fff;
}
.mfd-trust-value strong { font-weight: 600; }
@media (max-width: 768px) {
  .mfd-trust-shell { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .mfd-trust-item:nth-child(2) { border-right: none; padding-right: 0; }
}
