/* Custom styles for Point West Apartments */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1521;
}
::-webkit-scrollbar-thumb {
    background: #1e2a3e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2f405a;
}

/* Selection color */
::selection {
    background: #3a9e80;
    color: #fff;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #3a9e80;
    outline-offset: 2px;
}

/* Subtle pattern for hero overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(58, 158, 128, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(58, 158, 128, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient border on CTA cards */
.card-hover {
    position: relative;
    background: #f0f3f9;
}
.card-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(58, 158, 128, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.card-hover:hover::after {
    opacity: 1;
}

/* Mobile menu animation */
#mobileMenu a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#mobileMenu a:last-child {
    border-bottom: none;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f0f3f9 inset !important;
    box-shadow: 0 0 0 30px #f0f3f9 inset !important;
}

/* Print styles */
@media print {
    nav, #contactForm, #formSuccess { display: none; }
    body { color: #000; background: #fff; }
    .bg-midnight-900 { background: #eee !important; color: #000 !important; }
}
