/* ============================================================
   MyBoonEstate Demo — style.css
   MyBoon Properties · AI Property Concierge
   Brand: Navy #1C2B2B · Gold #E8B84B · White #FFFFFF
   Font: DM Sans (Google Fonts)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #F4F6F5;
  color: #1C2B2B;
  min-height: 100vh;
}

/* ── Demo Banner ──────────────────────────────────────────── */
.demo-banner {
  background: #1C2B2B;
  color: #E8B84B;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: #1C2B2B;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.agency-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.agency-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.agency-name span {
  color: #E8B84B;
}

.agency-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

/* ── Page Layout ─────────────────────────────────────────── */
.page-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 720px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
    gap: 24px;
  }
}

/* ── Left Column — Intro ──────────────────────────────────── */
.intro-col {
  padding-top: 8px;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8B84B20;
  border: 1px solid #E8B84B60;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #B8922E;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.intro-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E8B84B;
  flex-shrink: 0;
}

.intro-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
  color: #1C2B2B;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.intro-heading em {
  font-style: normal;
  color: #E8B84B;
}

.intro-body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #445555;
  margin-bottom: 24px;
}

.agent-card {
  background: #FFFFFF;
  border: 1px solid #E0E8E6;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(28,43,43,0.06);
}

.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1C2B2B 0%, #2D4545 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.agent-info-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1C2B2B;
}

.agent-info-role {
  font-size: 0.82rem;
  color: #778888;
  margin-top: 2px;
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-label {
  font-size: 0.75rem;
  color: #22C55E;
  font-weight: 600;
}

.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #445555;
  line-height: 1.45;
}

.capability-list li::before {
  content: '✓';
  color: #E8B84B;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Right Column — Chat ──────────────────────────────────── */
.chat-col {
  position: sticky;
  top: 48px;
}

/* ── Chat Widget Container ────────────────────────────────── */
.chat-container {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(28,43,43,0.14);
  border: 1px solid #E0E8E6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
  max-height: 80vh;
}

@media (max-width: 720px) {
  .chat-col { position: static; }
  .chat-container {
    height: 520px;
    border-radius: 16px;
  }
}

/* Chat Header */
.chat-header {
  background: #1C2B2B;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8B84B20;
  border: 2px solid #E8B84B40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.chat-header-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

.chat-header-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #22C55E;
  font-weight: 600;
}

.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

/* Demo disclaimer inside chat */
.chat-disclaimer {
  background: #FFF8E8;
  border-bottom: 1px solid #F0E0B0;
  padding: 7px 16px;
  font-size: 0.72rem;
  color: #8B6A10;
  text-align: center;
  flex-shrink: 0;
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #D0D8D5; border-radius: 2px; }

/* Message bubbles */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.msg.bot .msg-bubble {
  background: #F0F4F3;
  color: #1C2B2B;
  border-bottom-left-radius: 4px;
}

.msg.user .msg-bubble {
  background: #1C2B2B;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.68rem;
  color: #AAB8B5;
  margin-top: 3px;
  padding: 0 4px;
}

.msg.user .msg-time { text-align: right; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-self: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: #F0F4F3;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #AAB8B5;
  animation: typing-bounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* CTA button */
.cta-wrapper {
  padding: 4px 0 2px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8B84B;
  color: #1C2B2B;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.cta-btn:hover {
  background: #D4A53A;
  transform: translateY(-1px);
}

.cta-btn:active { transform: translateY(0); }

/* PII warning */
.pii-warning {
  background: #FFF3CD;
  border: 1px solid #FFD966;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #7A5C00;
  line-height: 1.4;
}

/* Input area */
.chat-input-area {
  border-top: 1px solid #EAF0EE;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
  background: #FAFCFB;
}

.chat-input {
  flex: 1;
  border: 1px solid #D8E4E0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  color: #1C2B2B;
  background: #FFFFFF;
  resize: none;
  outline: none;
  line-height: 1.4;
  max-height: 100px;
  transition: border-color 0.15s;
}

.chat-input:focus { border-color: #E8B84B; }
.chat-input::placeholder { color: #AAB8B5; }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1C2B2B;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.send-btn:hover { background: #2D4545; }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { background: #C8D4D0; cursor: not-allowed; }

.send-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Privacy note */
.privacy-note {
  padding: 6px 16px 10px;
  font-size: 0.68rem;
  color: #AAB8B5;
  text-align: center;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.72rem;
  color: #AAB8B5;
  border-top: 1px solid #E0E8E6;
  background: #FFFFFF;
}

.site-footer a {
  color: #778888;
  text-decoration: none;
}

/* ── Error state ──────────────────────────────────────────── */
.error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #991B1B;
  line-height: 1.4;
}
