/* Custom styles for Southwest Arizona Builders */

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

/* Hide scrollbar for gallery */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Navbar transition */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ animations */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.06);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 300px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* Button hover lift */
button[type="submit"],
a[href="#services"],
a[href="tel:+15204704018"] {
  will-change: transform;
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Selection color */
::selection {
  background: rgba(27, 67, 50, 0.15);
  color: #1B4332;
}

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

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

  .faq-content {
    transition: none;
  }

  #back-to-top {
    transition: none;
  }
}
