/* Moore's Body & Mechanical Shop - Custom Styles */

:root {
  --accent: #1e40af;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #1e40af;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #1e40af;
  transition: width 0.2s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Gallery */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

/* Review Cards */
.review-card {
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
}

/* Stars */
.star {
  color: #f59e0b;
}

/* Modal / Lightbox */
.modal {
  animation: fadeInModal 0.2s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  animation: scaleIn 0.2s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Contact Form */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  outline: none;
}

/* Buttons */
.btn-primary {
  background-color: #1e40af;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
}

.btn-secondary {
  transition: all 0.2s ease;
}

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

/* Footer */
footer a:hover {
  color: #1e40af;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 320px;
}

/* Utility */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #1e40af;
  border-radius: 3px;
}

/* Map container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Toast notification */
.toast {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile friendliness enhancements */
@media (max-width: 640px) {
  .upload-zone {
    padding: 1.25rem !important;
  }
  .preview-img {
    max-height: 180px;
  }
  .tail-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .btn-primary, .btn-secondary {
    min-height: 48px;
  }
  .form-input {
    font-size: 16px; /* prevent iOS zoom */
  }
  .nav-link, a[ href^="#" ], button {
    min-height: 44px;
  }
  .step h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}