/* =========================
   GLOBAL
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2933;
    line-height: 1.6;
    background: #f5f7fa;
}

section {
    padding: 80px 20px;
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 600;
}

h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #0b3d91;
}

.navbar nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #1f2933;
    font-weight: 500;
    transition: .25s;
}

.navbar nav a:hover {
    color: #0b3d91;
}

/* Prevent hero hiding behind navbar */
body {
    padding-top: 80px;
}

/* =========================
   HERO
   ========================= */

.hero {
    height: 85vh;
    background:
        linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
        url('https://images.unsplash.com/photo-1568605114967-8130f3a36994');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
}

.cta-btn {
    background: #0b3d91;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: .25s;
}

.cta-btn:hover {
    background: #082d6b;
}

/* =========================
   LISTINGS
   ========================= */

.listings {
    background: #ffffff;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0 auto;
}

.listing-card {
    background: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: .25s;
}

.listing-card:hover {
    transform: translateY(-6px);
}

.listing-img {
    height: 180px;
    background: url('https://images.unsplash.com/photo-1572120360610-d971b9d7767c');
    background-size: cover;
    background-position: center;
}

.listing-info {
    padding: 20px;
}

.listing-info h3 {
    margin-bottom: 6px;
}

.listing-info p {
    color: #555;
    margin-bottom: 8px;
}

.listing-info span {
    font-size: 20px;
    font-weight: 700;
    color: #0b3d91;
}

/* =========================
   ABOUT AGENT
   ========================= */

.about {
    background: #eef2f7;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
}

.agent-photo {
    width: 280px;
    height: 280px;
    background: url('https://images.unsplash.com/photo-1500648767791-00dcc994a43e');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.about-text {
    max-width: 500px;
    text-align: left;
}

.about-text p {
    margin-bottom: 12px;
    color: #444;
}

/* =========================
   CONTACT FORM
   ========================= */

.contact {
    background: #ffffff;
}

#lead-form {
    max-width: 450px;
    margin: 25px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#lead-form input,
#lead-form select,
#lead-form textarea {
    padding: 12px;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    font-size: 15px;
}

#lead-form textarea {
    min-height: 110px;
    resize: vertical;
}

#lead-form button {
    margin-top: 10px;
    padding: 14px;
    border: none;
    background: #0b3d91;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
}

#lead-form button:hover {
    background: #082d6b;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin: 6px 0;
    font-size: 17px;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: #0b3d91;
    color: white;
    padding: 25px 0;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    font-weight: 500;
}

/* =========================
   MOBILE
   ========================= */

@media(max-width:768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .navbar nav a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-text {
        text-align: center;
    }

}