* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial,sans-serif;
    color: #12234c;
    background: #f5f7fb
}

a {
    text-decoration: none;
    color: inherit
}

.top {
    background: #041334;
    color: #fff;
    padding: 9px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px
}

.nav {
    background: #fff;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 18px #0001
}

.logo {
    height: 60px
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-weight: 700
}

.cta, .submit {
    background: #eac55a;
    color: #071a46;
    padding: 11px 18px;
    border-radius: 24px;
    font-weight: 800;
    border: 0
}

.hero {
    position: relative;
    max-width: 1536px;
    margin: auto;
    background: #071a46
}

    .hero img {
        width: 100%;
        display: block
    }

.hot {
    position: absolute;
    z-index: 2;
    border-radius: 15px
}

    .hot:hover {
        outline: 3px solid #eac55a99
    }

.explore {
    left: 5%;
    bottom: 6%;
    width: 16%;
    height: 9%
}

.doc {
    left: 1%;
    top: 47%;
    width: 24%;
    height: 35%
}

.land {
    left: 25%;
    top: 47%;
    width: 25%;
    height: 35%
}

.copy {
    left: 50%;
    top: 47%;
    width: 25%;
    height: 35%
}

.learn {
    left: 75%;
    top: 47%;
    width: 24%;
    height: 35%
}

.wrap {
    max-width: 1250px;
    margin: auto;
    padding: 60px 5%
}

.title {
    text-align: center;
    margin-bottom: 35px
}

    .title h2 {
        font-size: 38px;
        margin: 0 0 10px
    }

    .title p {
        color: #65718a
    }

.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px
}

.card, .box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e4e9f2;
    box-shadow: 0 10px 30px #071a4610
}

.head {
    padding: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 18px 18px 0 0
}

.body, .box {
    padding: 22px
}

.blue {
    background: #1768d4
}

.green {
    background: #16824b
}

.orange {
    background: #f27616
}

.purple {
    background: #7138c8
}

.card ul {
    list-style: none;
    padding: 0
}

.card li {
    margin: 9px 0
}

.inner {
    background: linear-gradient(135deg,#071a46,#17437f);
    color: #fff;
    padding: 65px 5%
}

    .inner h1 {
        font-size: 46px;
        margin: 0 0 10px
    }

    .inner p {
        font-size: 18px;
        color: #d8e1f0
    }

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

.property {
    background: #fff;
    border-radius: 18px;
    overflow: hidden
}

    .property img {
        width: 100%;
        height: 190px;
        object-fit: cover
    }

    .property .body {
        padding: 20px
    }

.form {
    display: grid;
    gap: 13px
}

    .form input, .form textarea, .form select {
        padding: 13px;
        border: 1px solid #d7deea;
        border-radius: 10px;
        font: inherit
    }

    .form textarea {
        min-height: 120px
    }

footer {
    background: #041334;
    color: #fff;
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px
}

.gold {
    color: #eac55a;
    font-weight: 800
}

.small {
    color: #cbd5e5;
    line-height: 1.7
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0
}

    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #12234c;
        border-radius: 2px
    }

@media(max-width:900px) {
    .burger {
        display: flex
    }

    .links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 0 5%; /* changed: no top/bottom padding when closed */
        max-height: 0;
        overflow: hidden;
        visibility: hidden; /* added: extra safety net */
        box-shadow: none; /* changed: no shadow when closed */
        transition: max-height .3s ease, padding .3s ease, visibility .3s;
    }

        .links.open {
            max-height: 400px;
            padding: 20px 5% 25px; /* padding only appears when open */
            box-shadow: 0 12px 20px #0002;
            visibility: visible;
        }

    .nav {
        flex-wrap: wrap;
        position: relative
    }

    .cards, .property-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .two, footer {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .cards, .property-grid {
        grid-template-columns: 1fr
    }

    .inner h1 {
        font-size: 36px
    }

    .hot {
        display: none
    }
}
