/* Lee County Senior Apartments — Custom Styles */

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

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

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

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

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

/* Selection color */
::selection {
    background: #D4A017;
    color: #2A2119;
}

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero asymmetric adjustments */
@media (min-width: 1024px) {
    .lg\:col-span-5 {
        position: relative;
    }
}

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(74, 44, 94, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled .font-accent {
    color: #4A2C5E;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Card hover lift effect */
.group:hover {
    transform: translateY(-2px);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-plum-950,
    .bg-plum-800 {
        background: #4A2C5E !important;
        color: #fff !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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