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

/* Smooth scroll offset for fixed nav */
html {
  scroll-padding-top: 80px;
}

/* Navigation transition */
#nav.scrolled {
  background: rgba(253, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#nav.scrolled .nav-link {
  color: rgba(61, 50, 48, 0.7);
}

#nav.scrolled .font-serif.text-burgundy-700,
#nav.scrolled span.font-serif {
  color: #7B2D3B;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Service card hover */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

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

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #7B2D3B;
  transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
  width: 80%;
  left: 10%;
}

/* Subtle gradient border on hero card */
.relative.z-20.bg-white {
  background: linear-gradient(135deg, #ffffff 0%, #fefcfc 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* Selection color */
::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #5C1F29;
}

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

/* Print styles */
@media print {
  nav, #mobileMenu, button { display: none; }
  body { background: white; color: black; }
  section { padding: 20px 0; }
}
