/* Heritage Elegance Styles for Time Past Antiques */

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced hover effects */
.hero-cta-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-cta-button:hover::before {
    left: 100%;
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #D4A574;
}

/* Testimonial cards animation */
.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Form enhancements */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Cookie banner animations */
#heritage-cookie-banner {
    animation: slideIn 0.5s ease forwards;
}

/* Success message styles */
.success-message {
    background-color: #D4F4DD;
    border: 2px solid #4CAF50;
    color: #2E7D32;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading states */
.button-loading {
    position: relative;
    color: transparent;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #heritage-cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        max-width: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
a:focus, button:focus {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-antique-gold {
        background-color: #B8860B;
    }
    
    .text-antique-gold {
        color: #B8860B;
    }
    
    .border-antique-gold {
        border-color: #B8860B;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    a {
        text-decoration: underline;
    }
}