/* Custom styles for Commercial Services Inc. */

/* Float animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@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 5s ease-in-out infinite;
  animation-delay: 1s;
}

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

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scroll behavior */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.nav-scrolled .nav-text {
  color: #722F37 !important;
}

.nav-scrolled .nav-subtext {
  color: #c44d62 !important;
}

.nav-scrolled .nav-link {
  color: #722F37 !important;
}

.nav-scrolled .nav-btn span {
  background: #722F37 !important;
}

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

/* Mobile menu active state */
.menu-open #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open #bar2 {
  opacity: 0;
}

.menu-open #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

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

/* Selection color */
::selection {
  background: #722F37;
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #722F37;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed,
  html {
    animation: none;
    scroll-behavior: auto;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
