/* Custom styles for Bob Buys Books */

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

/* Base styles */
body {
    font-family: 'Lora', Georgia, serif;
    background-color: #faf6ed;
    color: #3d2613;
    line-height: 1.7;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Hero section */
.hero-pattern {
    background-image: url('https://images.pexels.com/photos/5864245/pexels-photo-5864245.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 17, 11, 0.85) 0%, rgba(108, 37, 26, 0.75) 50%, rgba(192, 61, 38, 0.65) 100%);
}

/* Card shadows */
.card-shadow {
    box-shadow: 0 4px 20px rgba(61, 38, 20, 0.08);
}

.card-shadow-hover {
    box-shadow: 0 8px 30px rgba(61, 38, 20, 0.15);
}

/* Floating animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Text shadow for hero */
.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Decorative ornament */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c03d26, transparent);
}

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #c03d26;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

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

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card-shadow {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
