/* Custom styles that complement Tailwind CSS */

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

/* Ensure proper height for sections */
section {
    position: relative;
}

/* Custom selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

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

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

/* Button hover effects */
button:hover,
a:hover {
    cursor: pointer;
}

/* Loading state for form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .bg-plum-800\/50 {
        border: 1px solid #ccc !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card:hover {
        border-color: #fbbf24 !important;
    }
    
    .nav-link::after {
        background: #fbbf24 !important;
    }
}

/* 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;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .btn-gold:hover::after {
        display: none;
    }
}

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

/* Very small screens */
@media (max-width: 360px) {
    .font-serif.text-5xl {
        font-size: 2rem;
        line-height: 1.2;
    }
}
