/* City of Lynchburg, VA — Keyspider AI Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-primary:      #255980;
  --color-primary-dark: #1D4665;
  --color-accent:       #FC4C2F;
  --color-light:        #59CBE8;
  --color-bg:           #f0f5f9;
  --color-white:        #ffffff;
  --color-text:         #1a1a2e;
  --color-muted:        #6a7a96;
  --color-border:       #d8e3ed;
  --color-hover:        #eef4f9;
  --font-heading:       'Barlow Condensed', -apple-system, system-ui, sans-serif;
  --font-ui:            'Open Sans', -apple-system, system-ui, sans-serif;
  --font-body:          'Open Sans', Georgia, sans-serif;
  --radius-sm:          6px;
  --radius-md:          10px;
  --shadow-modal:       0 8px 40px rgba(37,89,128,0.20);
  --transition:         0.16s ease;
}

/* ── Chat Trigger Button ─────────────────────────────────────────────────────── */
#lbc-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,89,128,0.42), 0 2px 6px rgba(0,0,0,0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.14s ease;
}
#lbc-trigger:hover {
  background: var(--color-primary-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,89,128,0.52);
}
#lbc-trigger-lbl {
  position: absolute;
  bottom: 62px;
  right: 0;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37,89,128,0.3);
  pointer-events: none;
  animation: lbc-lbl .28s ease forwards;
}
@keyframes lbc-lbl {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Placement Banner ────────────────────────────────────────────────────────── */
.placement-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
}
.placement-banner a,
.placement-banner button {
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
}
.placement-banner a:hover,
.placement-banner button:hover {
  color: #fff;
}

/* ── Hero AI Search Bar ───────────────────────────────────────────────────────── */
.hero-ai-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.3);
  transition: box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  animation: heroSearchGlow 3s ease-in-out infinite;
}
.hero-ai-search:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.25), 0 0 0 3px rgba(252,76,47,0.25);
  border-color: var(--color-accent);
}
.hero-ai-search-icon {
  padding: 14px 16px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hero-ai-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-ui);
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  padding: 14px 0;
}
.hero-ai-search-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hero-ai-search-btn:hover {
  background: #e03a1e;
}

@keyframes heroSearchGlow {
  0%,100% { box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
  50%      { box-shadow: 0 4px 32px rgba(252,76,47,0.22), 0 4px 24px rgba(0,0,0,0.18); }
}

/* ── Header "Ask Lynchburg AI" Button ────────────────────────────────────────── */
.ai-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.ai-search-trigger:hover {
  background: #e03a1e;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.ai-search-trigger svg {
  flex-shrink: 0;
}

/* ── Demo chat entrance animation ────────────────────────────────────────────── */
@keyframes chatEntrance {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile adjustments ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-ai-search { max-width: 100%; }
  .hero-ai-search-btn { padding: 14px 14px; font-size: 13px; }
  #lbc-trigger { bottom: 16px; right: 16px; }
  .placement-banner { font-size: 12px; padding: 9px 14px; flex-wrap: wrap; text-align: center; }
}
