/* ===== Custom Styles for Blashe Auto Body ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prevent scroll-reveal flash */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal animations - progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(255, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled .font-serif {
  color: #7B2D3B;
}

/* Service card hover */
.service-card {
  will-change: transform, box-shadow;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Selection color */
::selection {
  background: #f9d0d9;
  color: #7B2D3B;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFBF7;
}
::-webkit-scrollbar-thumb {
  background: #d4d0c8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a296;
}

/* Subtle gradient text utility */
.text-gradient-burgundy {
  background: linear-gradient(135deg, #7B2D3B 0%, #c94460 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero image parallax container */
.hero-image-container {
  will-change: transform;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c94460;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu active state */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}
