/* Custom styles for Kay Slesinger Realty */

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

/* Navbar text color transition */
.navbar-text {
  transition: color 0.3s ease;
}

header.scrolled .navbar-text {
  color: #1e293b;
}

header.dark .navbar-text {
  color: #f1f5f9;
}

/* Service cards */
.service-card {
  position: relative;
}

/* Area cards */
.area-card {
  cursor: pointer;
}

/* Back to top button */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Mobile menu animations */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

#mobileMenu.open .menu-line:nth-child(3) {
  width: 24px;
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile link hover */
.mobile-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #0d9488;
  padding-left: 8px;
}

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

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

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

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* Geometric accent shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal.hidden-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card,
  .area-card,
  .testimonial-card {
    transition: none;
  }

  .service-card:hover,
  .area-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
