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

:root {
  --rose:       #c9956c;
  --rose-light: #e8c9b5;
  --rose-pale:  #f9f0ea;
  --cream:      #fdfaf7;
  --charcoal:   #2c2c2c;
  --mid:        #6b6b6b;
  --border:     #e8e0da;
  --white:      #ffffff;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --radius:     14px;
  --radius-sm:  8px;
}

html, body {
  height: 100%;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Typography helpers ───────────────────────────────── */
.sans { font-family: 'Jost', 'Helvetica Neue', sans-serif; }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: -1px;
}

.nav-name {
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color .2s;
}

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

.nav-cta {
  background: var(--rose) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 30px;
}

.nav-cta:hover { background: #b8845a !important; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 70px);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  background: var(--cream);
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--rose);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

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

.btn-ghost {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.hero-image {
  background: linear-gradient(135deg, #e8d5c4 0%, #d4b8a8 40%, #c9a58e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(201,149,108,.15) 100%);
}

.hero-tagline-badge {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  padding: 24px 32px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.hero-tagline-badge p {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero-tagline-badge span {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ── Treatments strip ─────────────────────────────────── */
.treatments-strip {
  background: var(--white);
  padding: 64px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.treatment-card {
  background: var(--rose-pale);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}

.treatment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.treatment-icon { font-size: 1.8rem; margin-bottom: 12px; }

.treatment-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.treatment-range {
  font-family: 'Jost', sans-serif;
  font-size: .75rem;
  color: var(--rose);
  letter-spacing: .04em;
}

/* ── Chat widget ──────────────────────────────────────── */
#chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,149,108,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: transform .2s, background .2s;
}

#chat-btn:hover { background: #b8845a; transform: scale(1.07); }

#chat-btn .notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #e05a5a;
  border-radius: 50%;
  border: 2px solid white;
}

#chat-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 380px;
  max-height: 580px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  transform: scale(.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}

#chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--rose) 0%, #b8845a 100%);
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-info h3 {
  font-size: .95rem;
  color: white;
  font-weight: 400;
  letter-spacing: .04em;
}

.chat-header-info p {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}

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

.status-dot {
  width: 7px;
  height: 7px;
  background: #7dde92;
  border-radius: 50%;
  flex-shrink: 0;
}

#chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 8px;
  animation: msgIn .2s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  align-self: flex-end;
}

.msg.user .msg-avatar { background: var(--rose); color: white; }

.msg-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.55;
}

.msg.bot .msg-bubble {
  background: var(--rose-pale);
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
}

.msg.user .msg-bubble {
  background: var(--rose);
  color: white;
  border-bottom-right-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 4px;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
  animation: bounce .9s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }

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

/* Contact capture card */
.contact-card {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 4px 0;
}

.contact-card p {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  color: var(--mid);
  margin-bottom: 10px;
}

.contact-card input {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
}

.contact-card input:focus { border-color: var(--rose); }

.contact-card button {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--rose);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}

.contact-card button:hover { background: #b8845a; }

#chat-input-row {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

#chat-input {
  flex: 1;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  outline: none;
  resize: none;
  transition: border-color .2s;
  line-height: 1.4;
  max-height: 100px;
  overflow-y: auto;
}

#chat-input:focus { border-color: var(--rose); }

#chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s;
  align-self: flex-end;
}

#chat-send:hover { background: #b8845a; }

/* ── Dashboard ────────────────────────────────────────── */
.dash-layout {
  min-height: 100vh;
  background: #f7f3ef;
}

.dash-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-nav h1 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--charcoal);
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-nav-right a {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
}

.dash-nav-right a:hover { color: var(--rose); }

.refresh-btn {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--rose);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s;
}

.refresh-btn:hover { background: #b8845a; }

.dash-body { padding: 32px; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

.stat-value.rose { color: var(--rose); }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kanban-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.kanban-col-header h2 {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}

.col-count {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  background: var(--rose-pale);
  color: var(--rose);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.kanban-cards { display: flex; flex-direction: column; gap: 12px; }

.lead-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--white);
  transition: box-shadow .2s, border-color .2s;
}

.lead-card:hover { box-shadow: var(--shadow-md); border-color: var(--rose-light); }

.lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lead-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
}

.lead-email {
  font-family: 'Jost', sans-serif;
  font-size: .75rem;
  color: var(--mid);
  margin-top: 2px;
}

.score-badge {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.score-hot   { background: #fde8e8; color: #c0392b; }
.score-warm  { background: #fef3e2; color: #d68910; }
.score-early { background: #eaf4ed; color: #27ae60; }

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  font-family: 'Jost', sans-serif;
  font-size: .68rem;
  letter-spacing: .04em;
  background: var(--rose-pale);
  color: var(--rose);
  padding: 3px 9px;
  border-radius: 20px;
}

.lead-summary {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  transition: all .2s;
}

.action-btn:hover { border-color: var(--rose); color: var(--rose); }

.action-btn.primary {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

.action-btn.primary:hover { background: #b8845a; }

.status-select {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  outline: none;
}

.status-select:focus { border-color: var(--rose); }

/* Score legend */
.legend {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.legend-label {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 8px;
}

.legend-items { display: flex; gap: 16px; flex-wrap: wrap; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  color: var(--charcoal);
}

/* Email modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform .25s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.modal textarea {
  width: 100%;
  height: 220px;
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
  line-height: 1.6;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
  color: var(--charcoal);
}

.modal textarea:focus { border-color: var(--rose); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--mid);
}

.empty-state p {
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 300px; }
  .kanban { grid-template-columns: 1fr; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  #chat-window { width: calc(100vw - 32px); right: 16px; }
}
