/* Custom styles for Parvizian Fine Rugs */

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

/* Base typography */
body {
    font-family: 'Manrope', sans-serif;
    color: #1a1a1a;
    background: #fafaf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font families */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

.hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4) 0%, rgba(10, 25, 47, 0.7) 100%);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #d4a843;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary button */
.btn-primary {
    background-color: #d4a843;
    color: #0a192f;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c49b38;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Outline button */
.btn-outline {
    border: 1px solid #d4a843;
    color: #d4a843;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #d4a843;
    color: #0a192f;
}

/* Card hover effect */
.card-hover {
    transition: all 0.4s ease;
}

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

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Print styles */
@media print {
    .hero-bg {
        background: none !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .btn-primary,
    .btn-outline {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
}
