/* Custom styles for Hillside Gardens */

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

/* Selection color */
::selection {
  background-color: #c45028;
  color: #fdfbf7;
}

/* Reveal animation (progressive enhancement — content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5eb;
}
::-webkit-scrollbar-thumb {
  background: #d06542;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b34220;
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Image aspect ratio utilities */
.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}
.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c45028;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

/* Hero text shadow for readability */
#top h1 {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

#top p {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* CTA section decorative elements */
.bg-terra-600::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Product card image hover */
.group:hover .group-hover\:scale-105 {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
