/* City of Hagerstown, MD — AI Widget Support Styles
   The search and chat widgets inject their own CSS via JavaScript.
   This file only contains: hero bar, placement banner, demo animations.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Arvo:wght@400;700&display=swap');

:root {
  --hg-navy:    #173963;
  --hg-gold:    #f1b721;
  --hg-gold-lt: #fff8e3;
  --font:       'Poppins', -apple-system, system-ui, sans-serif;
}

/* ── Hero AI Search Bar ─────────────────────────────────────── */
.hero-ai-search {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 24px 24px;
  z-index: 10;
}

.hero-ai-search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid var(--hg-gold);
  border-radius: 10px;
  height: 46px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  max-width: 640px;
  margin: 0 auto;
}

.bar-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  color: var(--hg-navy);
  border-right: 1px solid #eee;
  background: #f8f9fc;
  flex-shrink: 0;
}

.bar-input {
  flex: 1; border: none; outline: none; padding: 0 14px;
  font-size: 15px; background: transparent; cursor: pointer;
  color: #555; font-family: var(--font);
  min-width: 0;
}
.bar-input::placeholder { color: #999; }

.bar-badge {
  display: flex; align-items: center;
  padding: 0 16px;
  background: var(--hg-navy);
  color: #fff;
  font-size: 11px; font-weight: 700;
  font-family: var(--font);
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.bar-tooltip {
  display: block; text-align: center; margin-top: 8px;
  color: rgba(255,255,255,.82); font-size: 12px; font-family: var(--font);
}

/* ── Demo Placement Banner ──────────────────────────────────── */
.placement-banner {
  background: linear-gradient(135deg, #173963 0%, #0f2541 100%);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-family: var(--font);
  letter-spacing: .03em;
}
.placement-banner__inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.placement-icon { color: var(--hg-gold); font-size: 16px; }

/* ── Demo Animations ────────────────────────────────────────── */

/* Hero search bar glow pulse */
@keyframes demo-search-glow {
  0%,100% { box-shadow: 0 4px 24px rgba(0,0,0,.18); border-color: var(--hg-gold); }
  50%      { box-shadow: 0 0 0 6px rgba(241,183,33,.35), 0 0 20px rgba(241,183,33,.25); border-color: #e6a800; }
}
.hero-ai-search-bar {
  animation: demo-search-glow 2.4s ease-in-out 1.2s 3,
             demo-search-glow 3.6s ease-in-out 10s infinite;
}

/* Chat trigger entrance + ring — targets the new #act-trigger ID */
@keyframes demo-chat-entrance {
  0%   { opacity: 0; transform: translateY(30px) scale(.8); }
  70%  { transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes demo-chat-ring {
  0%,100% { box-shadow: 0 4px 20px rgba(23,57,99,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(23,57,99,.12), 0 4px 20px rgba(23,57,99,.35); }
}
#act-trigger {
  animation: demo-chat-entrance .7s cubic-bezier(.34,1.56,.64,1) .6s both,
             demo-chat-ring 2.8s ease-in-out 9s infinite;
}

/* slideshow overflow for hero bar anchor */
.cpSlideshow { position: relative !important; }
#banner1 .cpSlideshow { overflow: visible !important; }
