/* Additional custom styles beyond Tailwind */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #a3301a;
    }
    
    .btn-secondary {
        border-color: #a3301a;
        color: #a3301a;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, #fdf0eb 0%, #faedcf 50%, #fefcf8 100%);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

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

/* Form validation styles */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

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

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d94f2d;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
