/* Custom styles for Good Morning Sunshine */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F0FCF8;
}
::-webkit-scrollbar-thumb {
    background: #A0EAD4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6FD9BD;
}

/* Selection color */
::selection {
    background: #D0F5E8;
    color: #0A1628;
}

/* Base reveal animation states (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
    }
    .reveal-up {
        transform: translateY(30px);
    }
    .reveal-left {
        transform: translateX(-30px);
    }
    .reveal-right {
        transform: translateX(30px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

/* Hero decorative animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Apply to decorative dots */
.absolute.top-1/3.right-1/4,
.absolute.top-2/3.left-1/4,
.absolute.top-1/2.right-1/3 {
    animation: float-slow 4s ease-in-out infinite;
}

.absolute.top-2/3.left-1/4 {
    animation: float-medium 5s ease-in-out infinite 1s;
}

.absolute.top-1/2.right-1/3 {
    animation: float-slow 6s ease-in-out infinite 2s;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #34D4B8;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7A9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover overlay for neighborhood cards */
.group:hover .aspect-\[4\/3\] img {
    transform: scale(1.05);
}

/* Subtle gradient text utility */
.text-gradient-mint {
    background: linear-gradient(135deg, #2BBFA6, #34D4B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    header, #contact, footer {
        display: none;
    }
    body {
        color: #0A1628;
        background: white;
    }
}
