/* Custom styles for Jones Construction */

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

/* Scroll reveal base state — visible by default for progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .logo-text {
  color: #3d3229;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #d4522e;
}

/* Selection color */
::selection {
  background: #f3beaa;
  color: #6a2718;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Hero scroll indicator animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Subtle gradient animation for decorative elements */
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Ensure images don't cause layout shift */
img {
  max-width: 100%;
  height: auto;
}

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

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

/* Print styles */
@media print {
  nav, #mobile-menu, .scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
