/* Custom styles for Yankton Nurseries */

/* Base reset & smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure content is visible by default for progressive enhancement */
body {
    background-color: #060d0a;
}

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

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
    }
    .reveal-up {
        transform: translateY(30px);
    }
    .reveal-left {
        transform: translateX(-30px);
    }
    .reveal-right {
        transform: translateX(30px);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Reduced motion - never animate */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(6, 13, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060d0a;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: #faf8f4;
}

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

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Image loading placeholder */
img {
    background-color: #0f1a14;
}

/* Subtle gold accent line */
.gold-accent {
    position: relative;
}
.gold-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a574, transparent);
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.08);
}
