@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        position: relative;
        padding: 18px 22px;
        gap: 16px;
    }

    .brand-block {
        max-width: 75%;
    }

    .brand-logo img {
        max-width: 90px;
        height: auto;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: .8rem;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #111;
        padding: 20px;
        border-radius: 18px;
        z-index: 9999;
        box-shadow: 0 18px 40px rgba(0,0,0,.35);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 14px 0;
    }

    .nav .nav-btn {
        text-align: center;
        margin-top: 10px;
    }

    .hero {
        min-height: 78vh;
        padding: 80px 22px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .section {
        padding: 60px 22px;
    }

    .section-heading {
        max-width: 100%;
    }

    .intro,
    .property-grid,
    .community-grid,
    .testimonial-grid,
    .service-grid,
    .community-detail-grid,
    .stats,
    .footer {
        grid-template-columns: 1fr !important;
    }

    .intro-image img {
        height: 320px;
    }

    .property-card img,
    .community-card img {
        height: 240px;
    }

    .community-card {
        height: 280px;
    }

    .stats div {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .footer {
        text-align: center;
        padding: 36px 22px !important;
    }

    .footer-brand {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-brand p {
        white-space: normal;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
        width: auto;
    }

    .footer .social-icons {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .brand-divider,
    .brand-text {
        display: none;
    }

    .brand-logo img {
        max-width: 120px;
    }

    .hero {
        min-height: 72vh;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .intro-image img {
        height: 260px;
    }

    .property-card img,
    .community-card img {
        height: 220px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #8b5e34;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        z-index: 10000;
    }
}

