/* ============================================================
   ALPINE — CONVERSION OPTIMIZATION LAYER
   Trust bar · Sticky mobile bar · Financing · Urgency
   ============================================================ */

/* ── STICKY MOBILE CALL/QUOTE BAR ───────────────────────────── */
.mobile-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9995;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #0A0A0A;
  border-top: 2px solid #E8720C;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .03em;
  transition: background .2s ease;
}
.mab-call {
  color: #fff;
  background: #1A1A1A;
}
.mab-call:hover, .mab-call:active { background: #2A2A2A; }
.mab-quote {
  color: #fff;
  background: #E8720C;
}
.mab-quote:hover, .mab-quote:active { background: #C05A08; }
.mobile-action-bar svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .mobile-action-bar { display: grid; }
  body { padding-bottom: 56px; }
  .floating-cta { bottom: 70px !important; }
}

/* ── ABOVE-FOLD TRUST BAR ───────────────────────────────────── */
.trust-bar-global {
  background: #141414;
  border-bottom: 1px solid rgba(232,114,12,.15);
  padding: 0;
  overflow-x: hidden;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.tbg-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  white-space: nowrap;
}
.tbg-item svg { color: #E8720C; flex-shrink: 0; }
.tbg-stars { color: #E8720C; font-size: .92rem; letter-spacing: 1px; }
.tbg-text { display: flex; flex-direction: column; line-height: 1.15; }
.tbg-text strong { font-size: .82rem; color: #fff; font-weight: 800; }
.tbg-text span { font-size: .66rem; color: rgba(200,200,200,.55); font-family: var(--mono); letter-spacing: .05em; }
.tbg-divider { width: 1px; height: 30px; background: rgba(232,114,12,.18); }

@media (max-width: 900px) {
  .tbg-item { padding: 10px 16px; }
  .tbg-divider { display: none; }
  .tbg-item:nth-child(n+7) { display: none; }
}
@media (max-width: 560px) {
  .trust-bar-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
}

/* ── FINANCING CALLOUT ──────────────────────────────────────── */
.financing-strip {
  background: linear-gradient(100deg, #E8720C 0%, #C05A08 100%);
  padding: 16px 0;
}
.financing-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.financing-inner .fin-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.fin-text { color: #fff; }
.fin-text strong { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.fin-text span { font-size: .85rem; opacity: .9; }
.fin-cta {
  background: #fff;
  color: #C05A08 !important;
  padding: 11px 24px !important;
  border-radius: 999px;
  font-weight: 800 !important;
  font-size: .85rem !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fin-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

@media (max-width: 600px) {
  .financing-inner { gap: 14px; }
  .fin-text strong { font-size: 1rem; }
}

/* ── STORM / EMERGENCY BANNER ───────────────────────────────── */
.storm-banner {
  background: #1A1A1A;
  border-top: 1px solid rgba(232,114,12,.2);
  border-bottom: 1px solid rgba(232,114,12,.2);
  padding: 12px 0;
}
.storm-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.storm-pulse {
  width: 10px; height: 10px;
  background: #E8720C;
  border-radius: 50%;
  animation: storm-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes storm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,114,12,.6); }
  50% { box-shadow: 0 0 0 8px rgba(232,114,12,0); }
}
.storm-inner p { color: #fff; font-size: .9rem; font-weight: 600; margin: 0; }
.storm-inner p strong { color: #E8720C; font-weight: 800; }
.storm-inner a {
  color: #E8720C;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ── INLINE LEAD FORM (roofing/solar pages) ─────────────────── */
.inline-lead {
  background: linear-gradient(160deg, #111 0%, #0A0A0A 100%);
  padding: 80px 0;
  border-top: 3px solid #E8720C;
}
.inline-lead-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.inline-lead-left .eyebrow { color: rgba(232,114,12,.8); }
.inline-lead-left h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 12px 0 18px;
  letter-spacing: -.02em;
}
.inline-lead-left h2 em { color: #E8720C; font-style: normal; }
.inline-lead-left > p {
  font-size: 1rem;
  color: rgba(200,200,200,.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}
.inline-lead-checks { list-style: none; margin: 0; }
.inline-lead-checks li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  font-size: .95rem;
  color: rgba(220,220,220,.85);
  font-weight: 500;
}
.inline-lead-checks li svg { color: #E8720C; flex-shrink: 0; }

.inline-lead-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(232,114,12,.15);
}
.inline-lead-card-head {
  background: #0A0A0A;
  padding: 24px 32px;
  border-bottom: 2px solid #E8720C;
}
.inline-lead-card-head .badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(232,114,12,.85);
  font-family: var(--mono); margin-bottom: 8px;
}
.inline-lead-card-head h3 { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.25; }
.inline-lead-form { padding: 26px 32px 30px; }
.inline-lead-form .fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.inline-lead-form .fg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-lead-form label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #444; font-family: var(--mono);
}
.inline-lead-form input,
.inline-lead-form select,
.inline-lead-form textarea {
  border: 1.5px solid #E0E0E0; border-radius: 8px;
  padding: 11px 14px; font-size: .92rem; color: #1A1A1A;
  background: #FAFAF8; transition: border-color .2s, box-shadow .2s;
  outline: none; font-family: inherit; cursor: auto !important;
}
.inline-lead-form input:focus,
.inline-lead-form select:focus,
.inline-lead-form textarea:focus {
  border-color: #E8720C; box-shadow: 0 0 0 3px rgba(232,114,12,.12); background: #fff;
}
.inline-lead-form textarea { resize: vertical; min-height: 70px; }
.inline-lead-submit {
  width: 100%; background: #E8720C; color: #fff;
  font-size: .95rem; font-weight: 800; letter-spacing: .04em;
  padding: 14px; border-radius: 10px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s; margin-top: 4px;
}
.inline-lead-submit:hover { background: #C05A08; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,114,12,.35); }
.inline-lead-note { font-size: .72rem; color: #888; text-align: center; margin-top: 12px; font-family: var(--mono); line-height: 1.5; }

@media (max-width: 980px) {
  .inline-lead-inner { grid-template-columns: 1fr; gap: 40px; }
  .inline-lead-card { max-width: 540px; }
}

/* ── FINANCING SECTION (roofing page) ───────────────────────── */
.fin-section { padding: 80px 0; background: var(--bg-deep); }
.fin-section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.fin-section-left .eyebrow { color: #E8720C; }
.fin-section-left h2 { font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 900; color: var(--ivory); margin: 12px 0 16px; letter-spacing: -.02em; }
.fin-section-left p { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.fin-options { display: flex; flex-direction: column; gap: 14px; }
.fin-option {
  background: #fff; border-radius: 14px; padding: 24px 28px;
  border: 1px solid rgba(232,114,12,.12); border-left: 4px solid #E8720C;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.fin-option-left strong { display: block; font-size: 1.5rem; font-weight: 900; color: #E8720C; line-height: 1; }
.fin-option-left span { font-size: .85rem; color: var(--muted); }
.fin-option-right { text-align: right; }
.fin-option-right strong { display: block; font-size: .95rem; font-weight: 800; color: var(--ivory); }
.fin-option-right span { font-size: .8rem; color: var(--muted-2); }

@media (max-width: 820px) {
  .fin-section-grid { grid-template-columns: 1fr; gap: 36px; }
}
