/* Custom styles for Traditional Designs Custom Cabinets */

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

/* Navigation background transitions */
header.scrolled .nav-title,
header.scrolled .nav-subtitle,
header.scrolled .nav-link {
    color: #1e2024;
}

header.light-nav .nav-title,
header.light-nav .nav-subtitle,
header.light-nav .nav-link {
    color: #1e2024;
}

/* Mobile menu transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

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

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

/* Scroll reveal base state */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Gallery hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 107, 63, 0.15);
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.2);
    color: #1e2024;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa2a8;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .gallery-item img {
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header, footer, #mobile-menu, .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    section {
        page-break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
