/* Custom styles for South Georgia Furniture, Mattress & Appliance */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #022c22;
}

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fefdf8;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(2, 44, 34, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for badge dot */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

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

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transition: width 0.3s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* Ensure all text is readable */
.text-cream-50 {
    color: #fefdf8;
}

.text-cream-100 {
    color: #fdf9ed;
}

.text-cream-200 {
    color: #faf3d6;
}

.text-cream-300 {
    color: rgba(250, 243, 214, 0.7);
}

.text-cream-400 {
    color: rgba(250, 243, 214, 0.5);
}

.text-cream-200\/60 {
    color: rgba(250, 243, 214, 0.6);
}

.text-cream-200\/70 {
    color: rgba(250, 243, 214, 0.7);
}

.text-cream-200\/80 {
    color: rgba(250, 243, 214, 0.8);
}

.text-cream-300\/50 {
    color: rgba(250, 243, 214, 0.5);
}

.text-cream-300\/60 {
    color: rgba(250, 243, 214, 0.6);
}

.text-cream-300\/70 {
    color: rgba(250, 243, 214, 0.7);
}

/* Emerald background utilities */
.bg-emerald-950 {
    background-color: #011a12;
}

.bg-emerald-900 {
    background-color: #022c22;
}

.bg-emerald-900\/40 {
    background-color: rgba(2, 44, 34, 0.4);
}

.bg-emerald-900\/50 {
    background-color: rgba(2, 44, 34, 0.5);
}

.bg-emerald-900\/80 {
    background-color: rgba(2, 44, 34, 0.8);
}

.bg-emerald-800\/30 {
    background-color: rgba(6, 78, 59, 0.3);
}

.bg-emerald-800\/40 {
    background-color: rgba(6, 78, 59, 0.4);
}

.bg-emerald-800\/50 {
    background-color: rgba(6, 78, 59, 0.5);
}

.bg-emerald-700\/30 {
    background-color: rgba(4, 120, 87, 0.3);
}

.bg-emerald-700\/50 {
    background-color: rgba(4, 120, 87, 0.5);
}

/* Amber accent utilities */
.text-amber-400 {
    color: #fbbf24;
}

.text-amber-300 {
    color: #fcd34d;
}

.bg-amber-500\/10 {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-amber-500\/15 {
    background-color: rgba(245, 158, 11, 0.15);
}

.bg-amber-500\/20 {
    background-color: rgba(245, 158, 11, 0.2);
}

.border-amber-500\/20 {
    border-color: rgba(245, 158, 11, 0.2);
}

.border-amber-500\/30 {
    border-color: rgba(245, 158, 11, 0.3);
}

/* Shadow utilities */
.shadow-amber-500\/20 {
    box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.2);
}

.shadow-amber-500\/25 {
    box-shadow: 0 20px 50px -12px rgba(245, 158, 11, 0.25);
}

.shadow-amber-500\/30 {
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.3);
}

.shadow-amber-500\/40 {
    box-shadow: 0 25px 60px -12px rgba(245, 158, 11, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}
