/* === Custom Styles for Cheryl Pitney Real Estate === */

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

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

/* === Navigation === */
.nav-text,
.nav-icon {
    color: #80192e;
}

#site-header.scrolled .nav-text,
#site-header.scrolled .nav-icon {
    color: #80192e;
}

#site-header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(128, 25, 46, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #80192e;
    transition: width 0.25s ease;
}

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

.mobile-nav-link {
    border-bottom: 1px solid rgba(128, 25, 46, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === Selection === */
::selection {
    background: #f9d0d9;
    color: #6b1930;
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #f3a7b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d44060;
}

/* === Form focus styles === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* === Button hover lift === */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* === Decorative divider === */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #80192e, #f9d0d9);
    border-radius: 2px;
}

/* === Image hover shadow === */
.group:hover img {
    filter: brightness(1.02);
}
