/* Custom styles for Sunrise Estates */

:root {
    --burgundy-950: #3a0a0a;
    --burgundy-900: #6e1c1c;
    --burgundy-800: #821e1e;
    --burgundy-700: #a02020;
    --burgundy-600: #c23030;
    --burgundy-500: #dc4c4c;
    --burgundy-400: #e97070;
    --burgundy-300: #f3a8a8;
    --burgundy-200: #f9d0d0;
    --burgundy-100: #fce7e7;
    --burgundy-50: #fdf2f2;
    --blush-50: #fff8f7;
    --blush-100: #fff0ec;
    --blush-300: #ffb8a0;
    --blush-400: #ff8f6e;
}

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-scroll {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--blush-50);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-300);
    border-radius: 3px;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-toggle.active #bar1 {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: translateY(-5px) rotate(-45deg);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 248, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(160, 32, 32, 0.08);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: var(--blush-300) !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, var(--burgundy-100) 0%, var(--blush-100) 100%);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-scroll,
    .fade-in-section {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
