/* AutoAgents shared visual system v2 — white, black & orange reference theme */
:root {
  --aa-brand-black: #080808;
  --aa-brand-orange: #f58220;
  --aa-brand-orange-hover: #ff9d3f;
  --aa-page-white: #ffffff;
  --aa-page-grey: #f5f5f5;
  --aa-text: #171717;
  --aa-muted: #6b7280;
  --aa-border: #dddddd;
  --aa-radius: 10px;
  --aa-content-width: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--aa-text);
  background: var(--aa-page-white);
}

/* Shared black navigation */
body > header, body > header:first-of-type, header {
  background: var(--aa-brand-black);
  color: #fff;
  border-bottom: 1px solid #292929;
}
header .wrap {
  width: min(var(--aa-content-width), calc(100% - 40px));
  margin-inline: auto;
}
header .nav {
  min-height: 68px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
header .nav .logo {
  max-width: 158px;
  max-height: 58px;
  object-fit: contain;
  display: block;
  margin: 0;
  flex: 0 0 auto;
}
header .menu { display: flex; align-items: center; gap: 22px; flex: 1; }
header .menu a, header nav a {
  color: #f3f3f3;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
header .menu a:hover, header nav a:hover { color: var(--aa-brand-orange); }

/* Buttons and links */
button, .btn, input[type="button"], input[type="submit"] {
  font-family: inherit;
}
.btn.primary, button.primary, .button-primary, input[type="submit"] {
  background: var(--aa-brand-orange);
  border-color: var(--aa-brand-orange);
  color: #111;
}
.btn.primary:hover, button.primary:hover, .button-primary:hover, input[type="submit"]:hover {
  background: var(--aa-brand-orange-hover);
  border-color: var(--aa-brand-orange-hover);
}
a:not(header a):not(.btn):not([class*="button"]):hover { color: #d96709; }

/* Shared light form controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select, textarea {
  max-width: 100%;
  border-color: var(--aa-border);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--aa-brand-orange);
  outline-offset: 2px;
}

/* Common content panels: white surfaces with restrained borders */
.card, .panel, .listing-card, .car-card, .brand-card, .service-card,
.tool, .stat-card, .content-card, .form-card {
  border-color: var(--aa-border);
  border-radius: var(--aa-radius);
}

/* Keep wide layouts usable on smaller screens */
img, video, canvas, svg { max-width: 100%; }
@media (max-width: 950px) {
  header .nav { gap: 14px; }
  header .menu { gap: 12px; }
}
@media (max-width: 700px) {
  header .nav { min-height: 62px; gap: 10px; }
  header .nav .logo { max-width: 120px; max-height: 48px; }
  header .menu { display: none; }
  header .actions { margin-left: auto; }
}
