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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fffcfa;
}
::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8202e;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 252, 250, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Hero float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Service card hover */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #e9806b, #7B2D3B);
  transition: width 0.4s ease;
}
.service-card:hover::after {
  width: 100%;
}

/* Gallery items */
.gallery-item {
  height: 200px;
}
@media (min-width: 768px) {
  .gallery-item {
    height: 280px;
  }
}
.gallery-item.col-span-2 {
  height: 200px;
}
@media (min-width: 768px) {
  .gallery-item.col-span-2 {
    height: 300px;
  }
}
.gallery-item.row-span-2 {
  height: 420px;
}
@media (min-width: 768px) {
  .gallery-item.row-span-2 {
    height: 560px;
  }
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e9806b, #7B2D3B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.testimonial-card:hover::before {
  transform: scaleX(1);
}

/* Scroll reveal base — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .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; }
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobileMenu.open {
  max-height: 400px;
}

/* Nav link hover underline */
nav a:not(.bg-burgundy-700):hover {
  position: relative;
}
nav a:not(.bg-burgundy-700):hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e9806b;
  border-radius: 1px;
}
