/* Additional custom styles for editorial design */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #627d98;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* Selection color */
::selection {
    background: #3db38a;
    color: #0a1a2e;
}

/* Smooth transitions for all interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, .success-message {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .serif-display {
        color: #000;
    }
}

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

/* Reduced motion preferences */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid #3db38a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .img-editorial:hover {
        transform: none;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .serif-display {
        font-size: 2rem;
    }
    
    .editorial-line {
        width: 60px;
    }
}

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

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 4rem 0;
    }
}
