/* ============================================
   Ohana Wood Flooring — Custom Styles
   ============================================ */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #a61836;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a1631;
}

/* Selection Color */
::selection {
    background: #a61836;
    color: #fff8f6;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 16, 12, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-logo-sub {
    transition: color 0.4s ease;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-menu-link:hover {
    color: #f6a8b7;
    padding-left: 8px;
}

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }
}

/* Hidden by default for JS-gated reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        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);
    }
}

/* ============================================
   Typography
   ============================================ */
.font-serif {
    letter-spacing: -0.01em;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(166, 24, 54, 0.1);
}

/* ============================================
   Button Hover Effects
   ============================================ */
a {
    transition: all 0.3s ease;
}

/* ============================================
   Gallery Hover
   ============================================ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        letter-spacing: 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobileMenu,
    .reveal,
    section:not(#top) {
        display: block !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
