/* ===== CUSTOM STYLES ===== */

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

/* Navbar transition */
#navbar.scrolled {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

/* Hero parallax-like effect */
#top img {
  will-change: transform;
}

/* Service card hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C8A44E, #D4B568);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Gallery hover */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonial card */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13, 27, 42, 0.1);
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

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

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .service-card::after,
  .service-card,
  .gallery-item img,
  .testimonial-card,
  .reveal {
    transition: none;
    animation: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
/* Content is visible by default; JS adds the animated state */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
