/* Custom styles for Rights of Passage */

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Delay classes for staggered animations */
.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced focus states for accessibility */
.focus-bronze:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(205, 127, 50, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Elegant divider */
.elegant-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.elegant-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #CD7F32, transparent);
    z-index: 1;
}

.elegant-divider span {
    background: white;
    padding: 0 1rem;
    color: #CD7F32;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Form input enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #CD7F32;
    box-shadow: 0 0 0 3px rgba(205, 127, 50, 0.1);
    transform: translateY(-2px);
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-input:valid {
    border-color: #10b981;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Mobile menu transitions */
.mobile-menu-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

.mobile-menu-open {
    max-height: 300px;
}

/* Typography enhancements */
.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 3rem;
    padding-right: 0.5rem;
    margin-top: 0.25rem;
    color: #CD7F32;
    font-weight: bold;
}

/* Responsive image container */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Background pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(205, 127, 50, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Intersection Observer fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-bronze {
        background-color: #8B4513 !important;
    }
    
    .text-bronze {
        color: #654321 !important;
    }
}

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

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .dark-mode-bg {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }
    
    .dark-mode-card {
        background-color: #2d2d2d;
        border-color: #404040;
    }
}