/* Custom styles for Martin And Son Heating And Cooling */

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

/* Navbar scroll effect */
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.3);
}

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

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

/* Fallback: always visible if JS disabled or reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mobile link hover */
.mobile-link {
  border-bottom: 1px solid transparent;
}
.mobile-link:hover {
  border-bottom-color: rgba(0, 212, 170, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a2540;
}
::-webkit-scrollbar-thumb {
  background: #353f52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d4aa;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00d4aa;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(0, 212, 170, 0.3);
  color: #0a2540;
}
