/* Custom styles for New Real Estate Solutions */

:root {
    --midnight: #0F393E;
    --midnight-hover: #1A4F56;
    --mint: #7FB5A5;
    --mint-hover: #6A9E8E;
    --mint-green: #5A9E8E;
    --cream: #F8F6F3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-dm {
    font-family: 'DM Sans', sans-serif;
}

/* Header scroll effect */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 57, 62, 0.08);
}

/* Mobile menu animations */
#mobileMenu.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-green);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--mint-green) !important;
    box-shadow: 0 0 0 3px rgba(90, 158, 142, 0.15) !important;
}

/* Image hover */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    header, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
