/* Simpson Ranch — Custom Styles */

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

/* Base text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #022c22;
}
::-webkit-scrollbar-thumb {
  background: #d4a017;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f0d060;
}

/* Selection color */
::selection {
  background: #d4a017;
  color: #022c22;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(2, 44, 34, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile nav lines animation */
#mobile-toggle.active .nav-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active .nav-line:nth-child(2) {
  opacity: 0;
}
#mobile-toggle.active .nav-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

/* Reveal animations (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Form inputs */
input, textarea {
  background-color: #022c22;
}

/* Gold accent button glow */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* Subtle gold shimmer on hover for cards */
.group:hover .group-hover\:scale-105 {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure map is readable */
iframe[title] {
  border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.15;
  }
}
