/* Simple Haircut + Nova chat widget */

:root {
  --primary: #000000;
  --accent: #6b7280;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --chat-bg: #ffffff;
  --nova-bubble: #f1f5f9;
  --user-bubble: #0f172a;
  --user-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
}

header.site-header {
  margin-bottom: 2rem;
}

header.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-item {
  margin-bottom: 0.75rem;
}

.service-item strong {
  display: block;
}

.service-price {
  color: var(--accent);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Chat widget */
#nova-chat-launcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

#nova-chat-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 7rem));
  z-index: 1000;
  display: none;
  flex-direction: column;
  background: var(--chat-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

#nova-chat-panel.open {
  display: flex;
}

.chat-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-header p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.chat-status {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
  min-height: 1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafafa;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.nova {
  align-self: flex-start;
  background: var(--nova-bubble);
  color: var(--text);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--user-bubble);
  color: var(--user-text);
}

.chat-bubble.owner {
  align-self: flex-start;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.chat-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

#nova-chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

#nova-chat-send {
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

#nova-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-prompt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}

.chat-prompt-overlay.open {
  display: flex;
}

.chat-prompt-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
  max-width: 280px;
}

.chat-prompt-card h4 {
  margin: 0 0 0.5rem;
}

.chat-prompt-card input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.chat-prompt-card button {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .container {
    padding-bottom: 7rem;
  }

  #nova-chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 4.5rem;
    height: min(60vh, 520px);
  }

  #nova-chat-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
