/* ============================================
   Caribbean Home Center — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(10, 37, 64, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a2540;
}
::-webkit-scrollbar-thumb {
  background: #40e0d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2cc5b4;
}

/* Selection */
::selection {
  background: #40e0d0;
  color: #0a2540;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #40e0d0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}
