/* ===== CSS VARIABLES & ROOT STYLES ===== */
:root {
  /* Brand Colors */
  --brand: #dc2626;
  --accent: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --panel: #f9fafb;
  --line: #e5e7eb;

  /* Additional Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", Monaco, "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;

  /* Spacing System (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --panel: #1e293b;
    --ink: #f9fafb;
    --muted: #9ca3af;
    --line: #334155;
    --brand: #f87171;
    --accent: #fcd34d;
  }
}

[data-theme="dark"] {
  --bg: #0f172a;
  --panel: #1e293b;
  --ink: #f9fafb;
  --muted: #9ca3af;
  --line: #334155;
  --brand: #f87171;
  --accent: #fcd34d;
}

[data-theme="light"] {
  --brand: #dc2626;
  --accent: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --panel: #f9fafb;
  --line: #e5e7eb;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  font-size: 1rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition);
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--ink);
  line-height: 1.2;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--brand);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 90%, black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--line);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-compact {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 1000;
  transition: width var(--transition-fast);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 999;
  transition: all var(--transition);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
}

.logo svg {
  color: var(--brand);
}

.nav {
  display: none;
  gap: var(--space-8);
}

.nav a {
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

@media (min-width: 1024px) {
  .nav.desktop-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--line);
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--ink);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--space-16) 0 var(--space-20);
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
}

.hero-content {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--ink);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 4rem;
  }
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.hero-image:hover {
  transform: scale(1.02);
}

/* ===== FLEET SECTION ===== */
.fleet {
  padding: var(--space-20) 0;
}

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.fleet-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-card {
  background: var(--panel);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--line);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.car-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-info {
  padding: var(--space-6);
}

.car-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.car-specs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
  color: var(--muted);
}

.car-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.price-period {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.car-actions {
  display: flex;
  gap: var(--space-2);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
  flex: 1;
  text-align: center;
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  flex: 1;
  text-align: center;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: var(--space-20) 0;
  background: var(--panel);
}

.pricing-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--line);
  position: relative;
  transition: all var(--transition);
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--brand);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-4px);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.currency {
  font-size: 1.125rem;
  color: var(--muted);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
}

.period {
  font-size: 1rem;
  color: var(--muted);
}

.price-note {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  padding: var(--space-2) 0;
  color: var(--muted);
  position: relative;
  padding-left: var(--space-6);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--space-20) 0;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: var(--space-6);
  transition: transform var(--transition-slow);
}

.testimonial-card {
  background: var(--panel);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  min-width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .testimonial-card {
    min-width: calc(50% - var(--space-3));
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-width: calc(33.333% - var(--space-4));
  }
}

.rating {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.testimonial-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  color: var(--ink);
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.875rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: var(--space-20) 0;
  background: var(--panel);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  width: 100%;
  padding: var(--space-6);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.125rem;
}

.faq-question:hover {
  background: var(--panel);
}

.faq-icon {
  transition: transform var(--transition);
  color: var(--muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CONTACT/BOOKING SECTION ===== */
.contact {
  padding: var(--space-20) 0;
}

.contact-content {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.booking-form {
  background: var(--panel);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-1);
}

.contact-info {
  display: grid;
  gap: var(--space-6);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h4 {
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.contact-card p {
  color: var(--muted);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--bg);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.5;
}

.footer-links {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--bg);
}

.footer-column a {
  display: block;
  padding: var(--space-1) 0;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--bg);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--brand);
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--muted);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp var(--transition);
  margin: var(--space-4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-body {
  padding: var(--space-6);
}

.modal-image {
  margin-bottom: var(--space-6);
}

.modal-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.modal-details {
  display: grid;
  gap: var(--space-6);
}

.car-specs {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.875rem;
}

.car-features {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.875rem;
}

.car-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  background: var(--success);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toast-icon {
  flex-shrink: 0;
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--space-4);
  z-index: 998;
  backdrop-filter: blur(20px);
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
}

.bottom-bar-text {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.125rem;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top: 2px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOCUS STYLES ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .mobile-bottom-bar,
  .modal,
  .toast {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-12) 0 var(--space-16);
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .pricing-card {
    padding: var(--space-6);
  }

  .amount {
    font-size: 2.5rem;
  }

  .testimonial-card {
    padding: var(--space-6);
  }

  .modal-content {
    width: 95%;
    margin: var(--space-2);
  }

  .modal-body {
    padding: var(--space-4);
  }

  .car-price {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ===== HOVER EFFECTS ===== */
@media (hover: hover) {
  .car-card:hover .car-image {
    transform: scale(1.05);
  }

  .pricing-card:hover .badge {
    transform: translateX(-50%) scale(1.1);
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --brand: #b91c1c;
    --accent: #f59e0b;
    --line: #374151;
  }

  [data-theme="dark"] {
    --brand: #fca5a5;
    --accent: #fde047;
    --line: #64748b;
  }
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero-image,
.car-image {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
}

.testimonial-track {
  will-change: transform;
}

.scroll-progress {
  will-change: width;
}
