/* Automo.ro — Design System CSS */
/* Primary dark: #1e2a3a | Accent red: #e62528 | Light bg: #f5f5f5 | White cards: #ffffff */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
footer ul, footer ol { list-style: none; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; }

/* Custom design tokens */
.bg-primary { background-color: #e62528; }
.bg-primary-dark { background-color: #c41f22; }
.text-primary { color: #e62528; }
.bg-dark { background-color: #1e2a3a; }
.text-dark { color: #1e2a3a; }

/* Tailwind utility classes — critical subset */
.bg-gray-50 { background-color: #f5f5f5; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1e2a3a; }
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #fef2f2; }
.bg-blue-100 { background-color: #fee2e2; }
.bg-blue-600 { background-color: #e62528; }
.bg-blue-700 { background-color: #c41f22; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-600 { background-color: #dc2626; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-600 { background-color: #059669; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-emerald-600:hover { background-color: #059669; }

.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1e2a3a; }
.text-gray-900 { color: #111827; }
.text-white { color: #fff; }
.text-blue-600 { color: #e62528; }
.text-blue-700 { color: #c41f22; }
.text-blue-800 { color: #a11b1e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-yellow-800 { color: #854d0e; }
.text-orange-800 { color: #9a3412; }

.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-blue-300 { border-color: #f5a3a5; }
.border-blue-500 { border-color: #e62528; }
.border-red-300 { border-color: #fca5a5; }
.border-green-300 { border-color: #86efac; }

.rounded { border-radius: 4px; }
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 4px; }
.rounded-lg { border-radius: 4px; }
.rounded-xl { border-radius: 4px; }
.rounded-2xl { border-radius: 4px; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shrink-0 { flex-shrink: 0; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-5 { padding-left: 1.25rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hover\:bg-blue-700:hover { background-color: #c41f22; }
.hover\:bg-gray-50:hover { background-color: #f5f5f5; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-primary-dark:hover { background-color: #c41f22; }
.hover\:text-blue-600:hover { color: #e62528; }
.hover\:text-primary:hover { color: #e62528; }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #e62528; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px #e62528; }
.focus\:border-blue-500:focus { border-color: #e62528; }

.list-disc { list-style-type: disc; }
.space-y-1 > :not(:first-child) { margin-top: 0.25rem; }
.space-y-2 > :not(:first-child) { margin-top: 0.5rem; }
.space-y-3 > :not(:first-child) { margin-top: 0.75rem; }
.space-y-4 > :not(:first-child) { margin-top: 1rem; }
.space-y-6 > :not(:first-child) { margin-top: 1.5rem; }
.space-x-2 > :not(:first-child) { margin-left: 0.5rem; }
.space-x-3 > :not(:first-child) { margin-left: 0.75rem; }

.object-cover { object-fit: cover; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1; }

/* Blog content styling */
.blog-content h2 { font-size: 1.375rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #1e2a3a; }
.blog-content h3 { font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #374151; }
.blog-content p { margin-bottom: 1rem; line-height: 1.75; }
.blog-content ul, .blog-content ol { margin: 0.75rem 0; padding-left: 1.5rem; list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.blog-content strong { font-weight: 600; color: #1e2a3a; }
.blog-content a { color: #e62528; text-decoration: underline; }
.blog-content a:hover { color: #c41f22; }

/* Car Finder Wizard */
.wizard-step-dot {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; background: #e5e7eb; color: #9ca3af; transition: all 0.3s;
}
.wizard-step-dot.active { background: #e62528; color: #fff; }
.wizard-step-line { flex: 1; height: 2px; background: #e5e7eb; }
.wizard-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 12px; background: #f9fafb; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.wizard-option:hover { background: #f3f4f6; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wizard-option-active { background: #fef2f2 !important; box-shadow: 0 0 0 2px #e62528 !important; }
.wizard-option-active i { color: #e62528 !important; }
.wizard-chip {
  padding: 6px 14px; font-size: 13px; background: #f3f4f6; color: #374151;
  border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.wizard-chip:hover { background: #e5e7eb; }
.wizard-chip-active { background: #e62528 !important; color: #fff !important; }
.wizard-brand-pill {
  display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: #f9fafb; color: #1e2a3a; border-radius: 4px; transition: all 0.2s;
}
.wizard-brand-pill:hover { background: #e62528; color: #fff; }
.wizard-panel { animation: wizardFade 0.3s ease; }
@keyframes wizardFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Specs table */
.specs-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.specs-row { display: flex; justify-content: space-between; padding: 10px 12px; background: #fff; }
.specs-row-alt { background: #f9fafb; }
@media (min-width: 768px) {
  .specs-grid { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .specs-row-alt { background: #fff; }
  .specs-grid .specs-row:nth-child(4n+1),
  .specs-grid .specs-row:nth-child(4n+2) { background: #f9fafb; }
  .specs-grid .specs-row:nth-child(4n+3),
  .specs-grid .specs-row:nth-child(4n+4) { background: #fff; }
}

/* Breadcrumbs */
.breadcrumb-nav {
  width: 100%;
  max-width: 80rem;
  padding-top: 16px;
  padding-bottom: 8px;
}
@media (min-width: 1024px) {
  .breadcrumb-nav { padding-bottom: 0; }
}

/* FAQ details/summary — custom arrow + smooth open */
details summary { list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: #9ca3af;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}
details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}
details > div, details > p {
  animation: faqSlideDown 0.3s ease;
}
@keyframes faqSlideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

/* Scroll snap for gallery */
.snap-x { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }
.scroll-smooth { scroll-behavior: smooth; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Form inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"],
select, textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5rem;
  background-color: #fff;
  transition: border-color 0.15s, background-color 0.2s, color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #e62528;
  box-shadow: 0 0 0 2px rgba(230, 37, 40, 0.2);
}

/* Checkbox/Radio custom */
input[type="checkbox"], input[type="radio"] {
  accent-color: #e62528;
  width: 1.25rem;
  height: 1.25rem;
}

/* Buttons — no border by default */
button, .btn {
  border-radius: 4px;
  border: none;
  outline: none;
}

/* Grid col-span */
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* Whitespace */
.whitespace-pre-line { white-space: pre-line; }
.whitespace-nowrap { white-space: nowrap; }

/* Additional layout */
.aspect-video { aspect-ratio: 16/9; }
.leading-relaxed { line-height: 1.625; }

/* lg breakpoint additions */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex { display: flex; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:inline-block { display: inline-block; }
  .lg\:w-80 { width: 20rem; }
}

/* ============================================
   Font size scaling (accessibility)
   ============================================ */
html { font-size: 16px; transition: font-size 0.2s; }
html.font-large { font-size: 18px; }
html.font-xl { font-size: 20px; }

/* ============================================
   Dark mode
   ============================================ */
html.dark body { background-color: #111827; color: #e5e7eb; }
html.dark .bg-gray-50 { background-color: #111827; }
html.dark .bg-gray-100 { background-color: #1f2937; }
html.dark .bg-white { background-color: #1f2937; }
html.dark .text-gray-900 { color: #f3f4f6; }
html.dark .text-gray-800 { color: #e5e7eb; }
html.dark .text-gray-700 { color: #d1d5db; }
html.dark .text-gray-600 { color: #9ca3af; }
html.dark .text-gray-500 { color: #9ca3af; }
html.dark .border { border-color: #374151; }
html.dark .border-t { border-top-color: #374151; }
html.dark .border-b { border-bottom-color: #374151; }
html.dark .border-gray-200 { border-color: #374151; }
html.dark .border-gray-300 { border-color: #4b5563; }
html.dark .shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.2); }
html.dark .shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3); }
html.dark .shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3); }
html.dark .hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4); }
html.dark .hover\:bg-gray-50:hover { background-color: #1f2937; }
html.dark .hover\:bg-gray-100:hover { background-color: #374151; }
html.dark .bg-red-50 { background-color: #3b1a1a; }
html.dark .bg-red-100 { background-color: #4a1e1e; }
html.dark .bg-green-50 { background-color: #1a2e1a; }
html.dark .bg-green-100 { background-color: #1e3a1e; }
html.dark .bg-yellow-50 { background-color: #2e2a1a; }
html.dark .bg-yellow-100 { background-color: #3a341e; }
html.dark .bg-orange-100 { background-color: #3a2a1e; }
html.dark input[type="text"], html.dark input[type="email"], html.dark input[type="password"],
html.dark input[type="number"], html.dark input[type="tel"], html.dark input[type="url"],
html.dark input[type="search"], html.dark select, html.dark textarea {
  background-color: #1f2937; color: #e5e7eb; border-color: #4b5563;
}
html.dark input:focus, html.dark select:focus, html.dark textarea:focus {
  border-color: #e62528;
}
html.dark .prose { color: #d1d5db; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-lg { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:w-64 { width: 16rem; }
  .md\:w-1\/3 { width: 33.333333%; }
  .md\:w-2\/3 { width: 66.666667%; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:relative { position: relative; }
  .md\:bottom-auto { bottom: auto; }
  .md\:left-auto { left: auto; }
  .md\:right-auto { right: auto; }
  .md\:inset-auto { top: auto; right: auto; bottom: auto; left: auto; }
  .md\:flex-none { flex: none; }
  .md\:p-4 { padding: 1rem; }
  .md\:rounded-sm { border-radius: 4px; }
  .md\:shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:z-auto { z-index: auto; }
  .md\:max-h-none { max-height: none; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex { display: flex; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:w-80 { width: 20rem; }
}
