    /* ─── Custom Styles for Mares Realty ─── */

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

    /* Selection color */
    ::selection {
        background-color: #3d6130;
        color: #faf9f6;
    }

    /* ─── Navigation ─── */
    .nav-link {
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: #3d6130;
        transition: width 0.3s ease;
    }

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

    /* Navbar scroll state */
    #navbar.scrolled {
        background-color: rgba(250, 249, 246, 0.97);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(61, 97, 48, 0.1);
    }

    #navbar.scrolled .nav-link {
        color: #283f21;
    }

    #navbar.scrolled .menu-line {
        background-color: #283f21;
    }

    /* Mobile menu */
    #mobileMenu.open {
        opacity: 1;
        pointer-events: all;
    }

    #mobileMenu.closed {
        opacity: 0;
        pointer-events: none;
    }

    /* Mobile link hover */
    .mobile-link {
        position: relative;
    }

    /* Menu button animation */
    #menuBtn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

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

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

    /* ─── Hero Cards ─── */
    .hero-card {
        animation: floatCard 6s ease-in-out infinite;
    }

    .hero-card:nth-child(2) {
        animation-delay: -2s;
    }

    .hero-card:nth-child(3) {
        animation-delay: -4s;
    }

    @keyframes floatCard {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    .hero-badge {
        animation: fadeInUp 0.8s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ─── Service Cards ─── */
    .service-card {
        transform: translateY(0);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    /* ─── Area Cards ─── */
    .area-card {
        overflow: hidden;
    }

    .area-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: inherit;
        pointer-events: none;
        transition: border-color 0.3s ease;
    }

    .area-card:hover::after {
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* ─── Testimonial Cards ─── */
    .testimonial-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .testimonial-card:hover {
        transform: translateY(-4px);
    }

    /* ─── Scroll Animations ─── */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }

    /* ─── Back to Top ─── */
    #backToTop.visible {
        opacity: 1;
        pointer-events: all;
    }

    #backToTop:hover {
        transform: translateY(-2px);
    }

    /* ─── Focus Styles ─── */
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
    }

    /* ─── Form Input Focus ─── */
    input:focus,
    select:focus,
    textarea:focus {
        background-color: #fff;
    }

    /* ─── Responsive ─── */
    @media (max-width: 768px) {
        .hero-card {
            display: none;
        }

        #hero {
            min-height: 100vh;
        }
    }

    @media (max-width: 640px) {
        .font-serif {
            font-size: clamp(2rem, 8vw, 3rem);
        }
    }

    /* ─── Print Styles ─── */
    @media print {
        #navbar,
        #backToTop,
        #mobileMenu {
            display: none !important;
        }

        body {
            background: white;
            color: black;
        }

        section {
            page-break-inside: avoid;
        }
    }
