/* Custom styles for The Old Clipper */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04";
}

/* Selection color */
::selection {
    background-color: rgba(127, 67, 93, 0.2);
    color: inherit;
}

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

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

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

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

/* Reveal animations - progressive enhancement */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #line2 {
    opacity: 0;
}

#mobile-menu-btn.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Image hover effects */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

.overflow-hidden:hover img {
    transform: scale(1.05);
}

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

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    .reveal-item {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .overflow-hidden img {
        transform: none !important;
    }
}
