/* === Custom Styles for Waterstone Properties === */

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

/* === Navbar scroll effect === */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* === Hero section === */
#hero {
    scroll-margin-top: 80px;
}

/* === Section scroll margins === */
section {
    scroll-margin-top: 80px;
}

/* === Mobile menu === */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e8e4dd;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4cfc6;
}

/* === Selection color === */
::selection {
    background: #f9e0d8;
    color: #a3402a;
}

/* === Fade-in animation === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Stagger children === */
.fade-in.stagger-1 { transition-delay: 0.1s; }
.fade-in.stagger-2 { transition-delay: 0.2s; }
.fade-in.stagger-3 { transition-delay: 0.3s; }
.fade-in.stagger-4 { transition-delay: 0.4s; }
.fade-in.stagger-5 { transition-delay: 0.5s; }
.fade-in.stagger-6 { transition-delay: 0.6s; }

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

/* === 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='%238a847c' 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;
}

/* === Transition utilities === */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Image aspect ratios === */
img {
    display: block;
    max-width: 100%;
}

/* === Print styles === */
@media print {
    #navbar,
    #contactForm,
    .fade-in {
        display: none;
    }
}
