/* Custom styles complementing Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #d4922e;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(212, 146, 46, 0.2);
    color: #102a43;
}

/* Print styles */
@media print {
    nav, .float-card-1, .float-card-2, .float-card-3, .float-card-4 {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    .bg-navy-900 {
        background-color: #000 !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

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