
:root {
  --bg: #0e0e0e;
  --card-bg: #18181b;
  --accent: #0077b6;
  --text: #f5f5f5;
  --muted: #a6a6a6;
}

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

body {
  font-family: 'Jost', 'Futura', 'Trebuchet MS', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px 40px; border-bottom: 1px solid var(--accent);
}
header h1 { font-size: 2.2rem; font-weight: 600; margin-bottom: 4px; color: var(--accent); }
header .header-tagline { font-size: 1.1rem; color: var(--muted); }
header .header-tagline strong { color: var(--text); }

/* Sections */
section { padding: 60px 40px; }
section h2 { text-align: left; font-size: 2rem; margin-bottom: 40px; color: var(--accent); }
section p { max-width: 800px; margin-left: 0; margin-right: auto; color: var(--muted); font-size: 1.05rem; }

/* Vehicles grid */
#vehicles .grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-start; }
#vehicles .vehicle-card {
  flex: 1 1 clamp(280px, 30%, 350px);
  background-color: var(--card-bg);
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease;
}
#vehicles .vehicle-card:hover { transform: translateY(-3px); }
#vehicles .vehicle-card img { width: 100%; height: auto; display: block; }
#vehicles .vehicle-card .content { padding: 20px; }
#vehicles .vehicle-card h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--accent); }
#vehicles .vehicle-card p { font-size: 0.95rem; color: var(--muted); }

/* Chat widget */
#chat-container {
  position: fixed; bottom: 30px; right: 30px; width: 380px; height: 560px;
  background-color: var(--card-bg); border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  display: none; flex-direction: column; overflow: hidden; z-index: 1000;
}
#chat-header {
  background-color: var(--accent); color: var(--bg);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-weight: 600; font-size: 1rem;
}
#chat-header button { background: none; border: none; color: var(--bg); font-size: 1.4rem; cursor: pointer; }
#chat-body {
  flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
.message { display: flex; }
.message.user { justify-content: flex-end; }
.message.bot { justify-content: flex-start; }
.message p {
  max-width: 80%; padding: 10px 14px; border-radius: 18px;
  font-size: 0.9rem; line-height: 1.4; word-break: break-word;
}
.message.user p { background-color: var(--accent); color: var(--bg); border-bottom-right-radius: 0; }
.message.bot p { background-color: #2d2d2d; color: var(--text); border-bottom-left-radius: 0; }

#chat-input-container { display: flex; padding: 12px 16px; border-top: 1px solid #2d2d2d; gap: 8px; }

/* Textarea with system font; auto-expand up to 2 lines; no scrollbar */
#chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  background-color: #1f1f1f;
  color: var(--text);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.4em;

  resize: none;
  overflow: hidden;       /* no scrollbar */
  max-height: 4.5em;      /* ~2 lines */
}
#chat-input::placeholder { color: #666; }

#chat-send {
  background-color: var(--accent); color: var(--bg);
  border: none; border-radius: 8px; padding: 10px 16px;
  font-weight: bold; cursor: pointer; transition: background-color 0.2s ease;
}
#chat-send:hover { background-color: #005c8d; }

#chat-toggle {
  position: fixed; bottom: 30px; right: 30px; width: 220px; height: 220px;
  border-radius: 50%; background-color: #f76513; color: #fff; border: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  font-size: 1.6rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center;
  z-index: 999; transition: transform 0.2s ease; padding: 20px;
}
#chat-toggle:hover { transform: scale(1.05); }
#chat-mode-select {
  padding: 8px 16px;
  border-top: 1px solid #2d2d2d;
  background-color: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#chat-mode-select p {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 8px;
}
#chat-mode-select input[type="radio"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}
#chat-mode-select label {
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
