/* Additional custom styles beyond Tailwind */

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

/* Custom font imports are handled in HTML */

/* Base styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fef6f6;
}

/* Hero section gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 11, 14, 0.85) 0%, rgba(139, 47, 58, 0.75) 50%, rgba(217, 90, 74, 0.65) 100%);
}

/* Decorative line animation */
@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.decorative-line {
    animation: expandLine 0.6s ease-out forwards;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 47, 58, 0.15);
}

/* Button pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    animation: pulse 1s infinite;
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover zoom effect */
.img-hover {
    overflow: hidden;
    border-radius: 12px;
}

.img-hover img {
    transition: transform 0.5s ease;
}

.img-hover:hover img {
    transform: scale(1.08);
}

/* Navigation active state */
.nav-link.active {
    color: #8b2f3a;
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fef6f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b2f3a, #d95a4a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a2832, #c44638);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #f0c4c4;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: #8b2f3a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reduced motion preferences */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #8b2f3a;
    }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --text-primary: #f5f5f5;
        --text-secondary: #b0b0b0;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-burgundy {
    background: linear-gradient(135deg, #240b0e 0%, #8b2f3a 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
    }
}

/* Loading state for form submission */
.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message animation */
#form-success {
    animation: slideIn 0.5s ease-out;
}

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

/* Star rating display */
.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating svg {
    fill: currentColor;
}

/* Testimonial quote marks */
.testimonial-quote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: #f0c4c4;
    position: absolute;
    top: -10px;
    left: 10px;
}

.testimonial-quote {
    position: relative;
}

/* Parallax effect for hero (optional, disabled by default for performance) */
.hero-parallax {
    background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
    .hero-parallax {
        background-attachment: scroll;
    }
}
