/* Custom styles and overrides */

:root {
  --gold-400: #eecc6a;
  --gold-500: #d4a017;
  --forest-950: #030d03;
  --forest-900: #071a07;
  --forest-800: #0e2b0e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040804;
}
::-webkit-scrollbar-thumb {
  background: #1f4f1f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* Selection */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f0f5f0;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

/* Hero gradient animation */
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Gold line animation */
@keyframes goldLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Scroll reveal base - content is always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate on systems that prefer motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Mobile menu animations */
@media (max-width: 767px) {
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-line:nth-child(2) {
    opacity: 0;
  }
  .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(4, 8, 4, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

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

/* Subtle hover glow on gold buttons */
button[type="submit"]:hover,
a[href^="tel"]:hover {
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.25) !important;
}

/* Image placeholder fallback */
img {
  background: linear-gradient(135deg, #0e2b0e 0%, #040804 100%);
}

/* Service card hover glow */
.group:hover .absolute.top-0 {
  opacity: 1;
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #eecc6a 0%, #d4a017 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}
img[data-src] {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}
