/* Custom styles for Platinum Canvas and Upholstery */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero image hover effect */
#hero img {
  transition: transform 0.6s ease;
}

/* Floating cards animation */
@media (prefers-reduced-motion: no-preference) {
  .absolute.-top-4.-right-4,
  .absolute.-bottom-6.-left-6 {
    animation: float 6s ease-in-out infinite;
  }
  
  .absolute.-bottom-6.-left-6 {
    animation-delay: -3s;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Service card hover */
.group:hover .group-hover\\:bg-emerald-700 {
  transition: background-color 0.3s ease;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.08);
}

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf9ed;
}

::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4ade80;
}

/* Selection color */
::selection {
  background-color: #bbf7d0;
  color: #14532d;
}

/* Ensure all text is readable */
.font-display, .font-serif {
  text-rendering: optimizeLegibility;
}

/* Print styles */
@media print {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  #navbar, #back-to-top, .absolute.-top-4.-right-4, .absolute.-bottom-6.-left-6 {
    display: none !important;
  }
}
