/* Custom styles for Landmark Property Management & Realty */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(160, 37, 62, 0.08);
}

/* Mobile menu toggle animation */
#mobile-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(160, 37, 62, 0.08);
    transition: color 0.2s;
}
.mobile-link:last-child {
    border-bottom: none;
}
.mobile-link:hover {
    color: #dc4d68;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a0253e, #f5a8bc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Selection color */
::selection {
    background: #f5a8bc;
    color: #3a0f17;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef7f5;
}
::-webkit-scrollbar-thumb {
    background: #fce7eb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f5a8bc;
}

/* Form select 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='%23a0253e' 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;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card::before {
        transition: none;
    }
    .service-card:hover::before {
        transform: scaleX(1);
    }
    img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
