/* ============================================
   Lynnwood Lake Estates — Custom Styles
   ============================================ */

/* Base & Typography */
:root {
    --navy-900: #0a1628;
    --navy-800: #1e3a5f;
    --navy-700: #2a4f7f;
    --gold-500: #c9a84c;
    --gold-400: #d4b965;
    --gold-300: #e0cc85;
    --cream: #faf9f6;
    --mist: #f1f3f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: #1f2937;
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

#navbar.scrolled .nav-house-stroke,
#navbar.scrolled .nav-icon {
    stroke: var(--navy-800);
}

#navbar.scrolled .nav-logo-text {
    color: var(--navy-800);
}

#navbar.scrolled .nav-logo-sub {
    color: var(--gold-500);
}

#navbar.scrolled .nav-link-text {
    color: var(--navy-800);
}

#navbar.scrolled .mobile-line {
    background: var(--navy-800);
}

/* Nav link hover effects */
.nav-link {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-400);
}

#navbar.scrolled .nav-link {
    color: var(--navy-800);
}

#navbar.scrolled .nav-link:hover {
    color: var(--gold-500);
}

/* Mobile menu animations */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Mobile hamburger animation */
.mobile-toggle.active .mobile-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .mobile-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-toggle.active .mobile-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Selection color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-800);
}

/* Property card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Form select dropdown */
select.appearance-none {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 12px center;
    padding-right: 40px;
}

/* Subtle entrance animations for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS overrides */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Reduced motion support */
@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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