/* Custom styles for Manchester Village Apartments */

:root {
    --color-forest-50: #f2f7f0;
    --color-forest-100: #e3eddf;
    --color-forest-200: #c5d9be;
    --color-forest-300: #98bc8e;
    --color-forest-400: #6a9660;
    --color-forest-500: #467540;
    --color-forest-600: #2e5a29;
    --color-forest-700: #244721;
    --color-forest-800: #1d391a;
    --color-forest-900: #172d14;
    --color-forest-950: #0b1609;
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9ed;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: var(--color-cream-50);
    color: var(--color-forest-900);
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-forest-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-forest-500);
}

/* Selection color */
::selection {
    background: var(--color-forest-200);
    color: var(--color-forest-900);
}

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

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--color-forest-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.geometric-float {
    animation: float 6s ease-in-out infinite;
}

.geometric-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-forest-600), var(--color-forest-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Pattern backgrounds */
.pattern-grid {
    background-image: linear-gradient(rgba(46, 90, 41, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(46, 90, 41, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Blob animations */
@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.blob {
    animation: blob 8s ease-in-out infinite;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Print styles */
@media print {
    .fixed, nav, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-forest-800, .bg-forest-950 {
        background: #1d391a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
