/* Custom styles for Elegant Stone Cabinet LLC */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Custom selection color */
::selection {
  background-color: #a64b78;
  color: white;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(250, 240, 244, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(80, 38, 55, 0.08);
}

/* Service card hover lift */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* Fallback: always visible if JS is disabled */
.reveal,
.reveal-hidden {
  opacity: 1;
  transform: none;
}

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

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

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #e6a800;
  outline-offset: 2px;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(166, 75, 120, 0.15);
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Subtle gradient border on cards */
.bg-plum-50 {
  border: 1px solid rgba(235, 191, 212, 0.4);
}

/* Gallery hover overlay */
.group:hover img {
  transform: scale(1.05);
}

/* Testimonial cards shimmer */
.bg-white\/10 {
  backdrop-filter: blur(8px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf0f4;
}
::-webkit-scrollbar-thumb {
  background: #db97b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a64b78;
}
