/* Sam's Nursery - Premium Dark Luxury Styles */

/* Base resets and utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(168, 85, 247, 0.4);
    color: #f3e8ff;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

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

/* Custom focus ring */
a:focus,
button:focus {
    outline: none;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, .floating-stat-cards, #hero .absolute {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a {
        color: black !important;
    }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(13, 5, 24, 0.95) !important;
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.15);
}

/* Card hover lift */
.gradient-border:hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.1) !important;
}

/* Gold accent line animation */
.gold-shimmer {
    position: relative;
}

/* Subtle page transition */
body {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Gallery grid responsive adjustments */
@media (max-width: 640px) {
    #gallery .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    #gallery .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure map iframe doesn't overflow */
iframe {
    max-width: 100%;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    nav a,
    nav button,
    .mobile-menu a {
        min-height: 44px;
    }
}
