/* Custom styles — beyond Tailwind */

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

/* Navbar transition */
.nav-fixed {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

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

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

/* Scroll-reveal base — progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Image hover zoom */
img {
  transition: transform 0.4s ease;
}

/* Gold line accent animation on hover */
a:hover .gold-line {
  width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0c2340;
}

/* Selection color */
::selection {
  background: rgba(200, 164, 94, 0.2);
  color: #0f2b4c;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #C8A45E;
  outline-offset: 2px;
}

/* Form select arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2b4c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Testimonial card hover */
.group:hover .group-hover\:bg-gold-400 {
  transition: background-color 0.3s ease;
}
