/* ===== Custom Styles for Thermodyne Service ===== */

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

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

/* Only apply hidden state when animation is preferred and JS is active */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    transition: none;
  }
  .scroll-reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fafaf5;
}
::-webkit-scrollbar-thumb {
  background: #d4c4b0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}

/* Selection color */
::selection {
  background: #f4bdb3;
  color: #53271c;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile link active state */
.mobile-link:active {
  background: #f9ddd3;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}
