/* Additional custom styles */

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #FAF9F6;
}

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

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

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gold-gradient {
        -webkit-text-fill-color: #d4af37 !important;
    }
}

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

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

/* Prevent layout shift for images */
img {
    max-width: 100%;
    height: auto;
}

/* Better form element styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Date input styling */
input[type="date"] {
    color-scheme: dark;
}

/* Ensure good contrast for all text */
h1, h2, h3, h4, h5, h6 {
    color: #FAF9F6;
}

/* Improve readability on small screens */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
