/* Custom styles for Minnesota Secured Title */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Navbar transition states */
.navbar-scrolled #navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 28, 63, 0.06);
}

.navbar-scrolled .nav-text {
  color: #0f1c3f;
}

.navbar-scrolled .nav-subtext {
  color: #5b81d1;
}

.navbar-scrolled .nav-bar {
  background-color: #0f1c3f;
}

.navbar-scrolled .nav-link {
  color: #5b81d1;
}

.navbar-scrolled .nav-link:hover {
  color: #0f1c3f;
}

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

#mobile-menu-btn.active .nav-bar:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .nav-bar:nth-child(2) {
  transform: rotate(-45deg) translate(-1px, -1px);
}

/* Service card stagger animation */
.service-card {
  opacity: 1;
}

/* Process step numbering */
.process-step::before {
  content: '';
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #beccea;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9db3e2;
}

/* Selection color */
::selection {
  background-color: rgba(201, 168, 76, 0.2);
  color: #0f1c3f;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Fade-in animations for below-fold content */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Image hover effects */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Print styles */
@media print {
  nav,
  #contact-form,
  .process-step,
  .fade-in {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-navy-800 {
    background: #fff !important;
    color: #000 !important;
  }
}
