/* Custom styles that complement Tailwind and inline styles */

/* Ensure all text respects the color palette */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection color */
::selection {
    background: #c94518;
    color: #FAF6F0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c94518;
    outline-offset: 2px;
}

/* Mobile menu button active state */
#menu-btn:active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn:active #bar2 {
    opacity: 0;
}
#menu-btn:active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Open state for mobile menu (toggled by JS) */
#menu-btn.menu-open #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.menu-open #bar2 {
    opacity: 0;
}
#menu-btn.menu-open #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .feature-img-wrapper img {
        transition: none !important;
    }
    .feature-img-wrapper:hover img {
        transform: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .divider-ornament::before,
    .divider-ornament::after {
        background: CanvasText;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .hero-bg {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a {
        color: black !important;
        text-decoration: underline;
    }
}
