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

:root {
  --bg:       #0d0d0f;
  --surface:  #141416;
  --surface2: #1c1c20;
  --border:   #2a2a30;
  --text:     #f0f0f2;
  --muted:    #6b6b78;
  --accent:   #c9a84c;
  --accent2:  #e8c76a;
  --radius:   8px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .02em;
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0f;
}
.btn-primary:hover { background: var(--accent2); color: #0d0d0f; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ── Section ──────────────────────────────────────────── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-link {
  font-size: .8rem;
  color: var(--accent);
}

/* ── Event Cards ──────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .15s;
}

.event-card:hover { border-color: var(--accent); }

.event-date {
  min-width: 48px;
  text-align: center;
  background: var(--surface2);
  border-radius: 6px;
  padding: .4rem .25rem;
  flex-shrink: 0;
}

.event-date-month {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
}

.event-date-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.event-body { flex: 1; }

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.event-meta {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .4rem;
}

.event-desc {
  font-size: .875rem;
  color: #a0a0b0;
  line-height: 1.55;
}

.tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag-featured { background: #2a1f00; color: var(--accent); border-color: #4a3800; }

/* ── Business Grid ────────────────────────────────────── */
.biz-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.filter-pill {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .15s;
}
.filter-pill:hover { color: var(--text); border-color: var(--muted); }
.filter-pill.active { background: var(--accent); color: #0d0d0f; border-color: var(--accent); }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1rem;
}

.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  transition: border-color .15s;
}
.biz-card:hover { border-color: var(--accent); }

.biz-logo {
  height: 36px;
  object-fit: contain;
  margin-bottom: .75rem;
  display: block;
}

.biz-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}

.biz-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: .4rem;
}

.biz-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.biz-links {
  display: flex;
  gap: .75rem;
  margin-top: .85rem;
  flex-wrap: wrap;
}

.biz-links a {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Chat ─────────────────────────────────────────────── */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 57px);
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
}

.chat-header { margin-bottom: 1rem; }
.chat-header h1 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.chat-header p { font-size: .82rem; color: var(--muted); margin-top: .2rem; }

.chat-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .75rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.message { display: flex; }
.message.user { justify-content: flex-end; }
.message.assistant { justify-content: flex-start; }

.bubble {
  max-width: 78%;
  padding: .75rem 1rem;
  border-radius: 1rem;
  line-height: 1.6;
  font-size: .925rem;
}

.message.user .bubble {
  background: var(--accent);
  color: #0d0d0f;
  font-weight: 500;
  border-bottom-right-radius: .25rem;
}

.message.assistant .bubble {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: .25rem;
}

.bubble.loading { color: var(--muted); font-style: italic; }

/* markdown inside bubbles */
.bubble h1,.bubble h2,.bubble h3 { margin: .75rem 0 .35rem; font-size: 1rem; color: var(--text); }
.bubble p { margin-bottom: .5rem; }
.bubble ul,.bubble ol { padding-left: 1.25rem; margin-bottom: .5rem; }
.bubble li { margin-bottom: .2rem; }
.bubble strong { color: var(--accent2); }
.bubble code { background: var(--surface); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }

.chat-input-bar {
  display: flex;
  gap: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.chat-input-bar input {
  flex: 1;
  padding: .75rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  font-family: var(--font);
  transition: border-color .15s;
}

.chat-input-bar input::placeholder { color: var(--muted); }
.chat-input-bar input:focus { border-color: var(--accent); }

.chat-input-bar button {
  padding: .75rem 1.4rem;
  background: var(--accent);
  color: #0d0d0f;
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.chat-input-bar button:hover { background: var(--accent2); }
.chat-input-bar button:disabled { opacity: .4; cursor: default; }

/* ── Empty states ─────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 0 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .section { padding: 2rem 1rem; }
  .event-card { flex-direction: column; gap: .75rem; }
  .nav-links { gap: 1rem; }
}
