/* ═══════════════════════════════════════════════════════════════════════
   Umbrella Header CTA — uhcta.css
   Self-contained: does not rely on the theme's variables so it also works
   as a fallback on other themes. Colors mirror the UmbrellaWorks palette
   (industrial navy + signal amber) but are hard-coded here.

   A single floating launcher (FAB) on every screen size opens a quick-action
   window: a centered modal on desktop, a bottom slide-up sheet on mobile.
   ═══════════════════════════════════════════════════════════════════════ */

.uhcta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.uhcta-btn-primary { background: #f59e0b; color: #14233d; border-color: #f59e0b; }
.uhcta-btn-primary:hover { background: #d97706; border-color: #d97706; color: #fff; }
/* Ghost button sits inside the WHITE panel, so it needs dark text/border. */
.uhcta-btn-ghost { background: #fff; color: #14233d; border-color: #d1d5db; }
.uhcta-btn-ghost:hover { background: #f3f4f6; color: #14233d; border-color: #14233d; }
.uhcta-btn-block { display: flex; width: 100%; padding: 13px 18px; font-size: 15px; }

/* ── Floating launcher (FAB) — shown on ALL screen sizes now ── */
.uhcta-fab {
  display: inline-flex;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  align-items: center;
  gap: 8px;
  padding: 13px 20px 13px 17px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(120deg, #1f4fd6, #173da8);
  color: #fff;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(20,35,61,.32);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
}
.uhcta-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,35,61,.40); }
.uhcta-fab-icon { font-size: 19px; line-height: 1; }
.uhcta-fab-text { white-space: nowrap; }

/* ── Overlay (both desktop modal + mobile sheet) ── */
.uhcta-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.55);
  z-index: 9100;
  opacity: 0;
  transition: opacity .26s ease;
  backdrop-filter: blur(2px);
}
.uhcta-overlay.is-open { opacity: 1; }

/* ── Panel: DESKTOP default = centered modal window ── */
.uhcta-panel {
  position: fixed;
  z-index: 9200;
  background: #fff;
  overflow-y: auto;
  /* desktop: centered card */
  left: 50%;
  top: 50%;
  width: 440px;
  max-width: calc(100vw - 40px);
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(17,24,39,.30);
  transform: translate(-50%, -48%) scale(.96);
  opacity: 0;
  transition: transform .26s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.uhcta-panel.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.uhcta-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.uhcta-panel-title {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #111827;
}
.uhcta-panel-close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.uhcta-panel-close:hover { color: #111827; }
.uhcta-panel-body { padding: 22px; display: grid; gap: 12px; }
.uhcta-panel-body p { margin: 0 0 6px; font-size: 14px; color: #6b7280; line-height: 1.6; }

/* ── MOBILE: panel becomes a bottom slide-up sheet ── */
@media (max-width: 720px) {
  .uhcta-fab { left: 16px; right: auto; bottom: 16px; padding: 11px 16px 11px 13px; font-size: 14px; }
  .uhcta-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 40px rgba(17,24,39,.22);
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .uhcta-panel.is-open { transform: translateY(0); }
}
