/* Custom styles for Sawyer Property Management */

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

/* Scroll reveal base state — always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated state — only applied via JS when prefers-reduced-motion is not set to reduce */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-scrolled .nav-link {
  color: #065f46 !important;
}

.nav-scrolled .logo-text {
  color: #065f46 !important;
}

.nav-scrolled .logo-sub {
  color: #059669 !important;
}

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

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

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Subtle hover for service cards */
.group:hover .group-hover\:bg-emerald-200 {
  transition: background-color 0.2s ease;
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero span,
#hero a,
#hero div {
  text-shadow: none;
}

/* Print styles */
@media print {
  nav, #contact-form, .scroll-reveal { display: none; }
  body { color: #000; background: #fff; }
}
