/* Custom styles and overrides */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(74, 34, 54, 0.1);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-plum-800 {
    color: #1a0d14 !important;
}

.navbar-scrolled a {
    color: #1a0d14 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6b3050;
}

/* Selection color */
::selection {
    background: #d97706;
    color: #1a0d14;
}

/* Fade in animation for below-fold content */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

/* Card hover lift effect */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Accent line animation */
.w-12.h-px.bg-amber-500 {
    transition: width 0.3s ease;
}

/* Ensure proper contrast for all text */
.text-plum-600 {
    color: #6b3050;
}

.text-plum-700 {
    color: #4a2236;
}

.text-plum-800 {
    color: #2d1522;
}

.text-plum-900 {
    color: #1a0d14;
}

/* Print styles */
@media print {
    .fixed {
        position: relative !important;
    }
    
    .bg-plum-800 {
        background: #2d1522 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
