/* Custom styles beyond Tailwind */

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: #C9983E;
    color: #FAFAF8;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
    margin-left: 0;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

/* Subtle hover lift on cards */
.reveal:hover {
    transform: translateY(-4px);
    transition: transform 0.4s ease;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
