/* ============================================
   Alison Andrews — Realtor
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #E8BFC4;
    color: #3B0A0A;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F7F3F0;
}
::-webkit-scrollbar-thumb {
    background: #D4909A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B5343E;
}

/* --- Floating Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: opacity 0.3s ease;
}

/* --- Navbar States --- */
.navbar-scrolled {
    background-color: rgba(255, 249, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(122, 26, 26, 0.08);
}

.navbar-transparent {
    background-color: transparent;
    box-shadow: none;
}

/* --- Mobile menu transitions --- */
#mobile-menu.open {
    transform: translateX(0);
}

/* --- Hamburger animation --- */
#mobile-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active #bar2 {
    opacity: 0;
}
#mobile-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* --- Button hover glow --- */
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(122, 26, 26, 0.3) !important;
}

/* --- Image hover zoom --- */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover {
    transform: scale(1.03);
}

/* --- Select dropdown styling --- */
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='%237A645C' stroke-width='2.5' 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;
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid #7A1A1A;
    outline-offset: 2px;
}

/* --- Print styles --- */
@media print {
    #navbar, #mobile-menu, .floating-card { display: none; }
    body { color: #1C1412; background: white; }
    a { color: #7A1A1A; }
}
