/* Custom CSS for Magnolia Lane Nursery */

/* CSS Custom Properties */
:root {
    --color-charcoal: #121212;
    --color-charcoal-light: #1a1a1a;
    --color-amber: #D97706;
    --color-amber-light: #F59E0B;
    --color-coral: #F97316;
    --color-coral-light: #FB923C;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-charcoal);
    color: #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-amber);
}

/* Selection */
::selection {
    background: rgba(217, 119, 6, 0.3);
    color: #fbbf24;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(217, 119, 6, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Active State */
nav.scrolled {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
}

/* Gradient Text Utility */
.text-coral-400 {
    color: var(--color-coral-light);
}

/* Service Card Hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #D97706 !important;
    box-shadow: 0 0 0 1px #D97706;
}

/* Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .stat-card, .group:hover .group-hover\:scale-110,
    img, button {
        transition: none;
        animation: none;
    }
}

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

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

/* Back to top button visibility */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Gallery hover effect */
.grid > div > img {
    transition: transform 0.7s ease;
}

/* Testimonial card hover */
.scroll-reveal:hover {
    border-color: rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
