/* Custom styles for Furniture And Mattress - Warrenton */

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

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

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
    background: #d45a38;
    border-radius: 5px;
}

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

/* Geometric shapes animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.floating-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Geometric pattern overlay */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(212, 90, 56, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 90, 56, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(212, 90, 56, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 90, 56, 0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #d45a38 0%, #c04024 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 90, 56, 0.15);
}

/* Image zoom on hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.7s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 90, 56, 0.2);
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2rem;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    .fixed,
    .floating-shape-1,
    .floating-shape-2 {
        display: none;
    }
    
    body {
        background: white;
    }
}
