/* 
 * Calf Upholstery - Additional Custom Styles
 * These styles complement the inline styles in index.html
 * and provide responsive adjustments.
 */

/* Ensure smooth image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #fff;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #D4A853;
    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;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    #menuBtn,
    #menuOverlay,
    .form-success,
    .gallery-item {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .service-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }

    .step-number {
        font-size: 3rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1280px) {
    .service-card {
        padding: 2rem;
    }
}

/* Ensure contact form is accessible */
#contactForm label {
    font-size: 0.875rem;
    font-weight: 500;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
}

/* Gold shimmer animation for hero text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-gold-gradient {
    background: linear-gradient(
        90deg,
        #E8C87A 0%,
        #D4A853 25%,
        #E8C87A 50%,
        #D4A853 75%,
        #E8C87A 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {
    .text-gold-gradient {
        animation: shimmer 4s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .text-gold-gradient {
        animation: none;
        background: linear-gradient(135deg, #E8C87A 0%, #D4A853 50%, #C9973A 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}
