/* Additional custom styles */

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

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

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

::-webkit-scrollbar-thumb {
    background: #FADADD;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B0F1A;
}

/* Selection color */
::selection {
    background-color: #FADADD;
    color: #6B0F1A;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6B0F1A;
    outline-offset: 2px;
}

/* Prevent layout shift for images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text is readable on all backgrounds */
.text-white {
    color: #FFFFFF;
}

.text-eileen-burgundy {
    color: #6B0F1A;
}

.text-eileen-text {
    color: #1A1A1A;
}

.text-eileen-muted {
    color: #6B6B6B;
}

/* Ensure buttons have proper contrast */
.btn-primary {
    background-color: #6B0F1A;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #4A0A13;
}

.btn-outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: #6B0F1A;
}

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

/* Animation for reveal elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger animations for children */
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }
.reveal:nth-child(6) { animation-delay: 0.6s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #menuToggle,
    #menuClose {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gradient-hero {
        background: #6B0F1A !important;
    }
}
