/* Custom styles for JMI Canvas & Upholstery */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(240, 90, 58, 0.3);
    color: #fff;
}

/* Base text color for links */
a {
    color: inherit;
    text-decoration: none;
}

/* Ensure all text has proper contrast */
.text-charcoal-100 { color: #E8E9ED; }
.text-charcoal-200 { color: #D1D3DB; }
.text-charcoal-300 { color: #A8AAB8; }
.text-charcoal-400 { color: #7A7D90; }
.text-charcoal-500 { color: #525568; }
.text-charcoal-600 { color: #3D4052; }
.text-charcoal-700 { color: #2A2D3A; }

/* Ensure navbar text is readable on both transparent and scrolled states */
.nav-scrolled a:not(.bg-coral-500) {
    color: #A8AAB8;
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F05A3A;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .float-slow, .float-medium, .float-fast {
        animation: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card,
    .hero-card {
        border: 1px solid ButtonText;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
