/* Basic CSS fallback for when Tailwind CSS is not available */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Utility classes */
/* Automotive theme colors */
.bg-automotive-500 { background-color: #ef4444; }
.bg-automotive-600 { background-color: #dc2626; }
.bg-automotive-700 { background-color: #b91c1c; }
.bg-automotive-900 { background-color: #7f1d1d; }
.bg-dark-300 { background-color: #d1d5db; }
.bg-dark-800 { background-color: #1f2937; }

.text-automotive-600 { color: #dc2626; }
.text-automotive-700 { color: #b91c1c; }
.text-automotive-100 { color: #fecaca; }
.text-dark-600 { color: #4b5563; }
.text-dark-700 { color: #374151; }
.text-dark-800 { color: #1f2937; }
.text-dark-900 { color: #111827; }
.text-dark-400 { color: #9ca3af; }

.border-dark-300 { border-color: #d1d5db; }
.border-dark-400 { border-color: #9ca3af; }
.border-dark-800 { border-color: #1f2937; }

.focus\:ring-automotive-500:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5); }

.hover\:text-automotive-600:hover { color: #dc2626; }
.hover\:text-automotive-700:hover { color: #b91c1c; }
.hover\:bg-automotive-700:hover { background-color: #b91c1c; }
.hover\:text-white:hover { color: white; }

/* Original utility classes */
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: white; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-primary-500 { background-color: #3b82f6; }
.bg-primary-600 { background-color: #2563eb; }
.bg-primary-700 { background-color: #1d4ed8; }
.bg-transparent { background-color: transparent; }

.text-white { color: white; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-primary-600 { color: #2563eb; }
.text-primary-100 { color: #dbeafe; }

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

.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.m-1 { margin: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.ml-10 { margin-left: 2.5rem; }

.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }

.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-2 { border-width: 2px; }

.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.focus\:ring-primary-500:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }

.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-primary-700:hover { background-color: #1d4ed8; }
.hover\:bg-white:hover { background-color: white; }
.hover\:text-primary-600:hover { color: #2563eb; }
.hover\:text-white:hover { color: white; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .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)); }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Custom component styles for automotive theme */
.btn-automotive {
  background-color: #dc2626;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 200ms;
  border: none;
  cursor: pointer;
  transform: scale(1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-automotive:hover {
  background-color: #b91c1c;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 200ms;
  border: 2px solid #9ca3af;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Form styles */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: border-color 150ms, box-shadow 150ms;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Gradient background */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, #3b82f6, #1d4ed8);
}

/* SVG icons */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

textarea {
  resize: vertical;
  min-height: 100px;
}
