/* Additional custom styles for editorial design */

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

/* Custom selection color */
::selection {
    background-color: #b92f2f;
    color: white;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #b92f2f;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    .parallax-bg {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-overlay {
        background: none !important;
    }
    
    .hero-overlay + div h1,
    .hero-overlay + div p {
        color: #000 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-hover:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Dark mode support (if browser preference is set) */
@media (prefers-color-scheme: dark) {
    /* Additional dark mode styles can be added here if needed */
}

/* Accessibility: Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #b92f2f;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Ensure all interactive elements are keyboard accessible */
button,
a,
input,
textarea,
select {
    &:focus {
        outline: 3px solid #b92f2f;
        outline-offset: 2px;
    }
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    button,
    a,
    input,
    textarea,
    select {
        min-height: 44px;
        min-width: 44px;
    }
}
