/* ===== Custom Styles for Raintree Landscaping ===== */

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

/* Selection color */
::selection {
  background-color: #C0704A;
  color: white;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* ===== Header scroll effect ===== */
#header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #B8B0A0;
}

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

/* ===== Button hover lift ===== */
button,
a[href] {
  transition: all 0.2s ease;
}

/* ===== Image loading placeholder ===== */
img {
  background-color: #EBE8E0;
}

/* ===== Input autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* ===== Mobile menu animation ===== */
#mobileMenu {
  animation: slideDown 0.2s ease;
}

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