/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111827;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B6B;
}

/* Selection color */
::selection {
    background: #FF6B6B;
    color: white;
}

/* Hero image gradient overlay handled via CSS for accessibility */
#hero img {
    filter: brightness(0.95);
}

/* Subtle pattern for charcoal sections */
.bg-charcoal-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Form focus visible for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* 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;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .bg-charcoal-900, .bg-coral-500 {
        background: white !important;
        color: black !important;
    }
}
