/* ============================================
   Lee Ann Ashley Parks — Real Estate Website
   Classic & Elegant | Burgundy + Blush
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(123, 36, 36, 0.15);
    color: #6b2424;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #d45454;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83d3d;
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
    .scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
    .scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
    .scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
}

/* ---------- Navbar Transition ---------- */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(123, 36, 36, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #6b2424 !important;
}

#navbar.scrolled .nav-logo-sub {
    color: #9a3030 !important;
}

#navbar.scrolled .nav-link {
    color: #6b2424 !important;
}

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

#mobile-menu:not(.open) {
    transform: translateX(100%);
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d45454;
    outline-offset: 2px;
}

/* ---------- Form Select Arrow ---------- */
select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%239a3030' d='M6 8L1 3h10z'/></svg>");
}

/* ---------- Utility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
