/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f8f7f3;
    color: #18251f;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================
   VARIABLES
========================================= */

:root {

    --green: #193c34;
    --dark-green: #102d27;

    --gold: #b3945b;
    --light-gold: #d6b77b;

    --cream: #f8f7f3;
    --light: #eeeeE8;

    --text: #18251f;
    --muted: #737b76;

}


/* =========================================
   HEADER
========================================= */

.header {

    height: 78px;

    padding: 0 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--cream);

    border-bottom: 1px solid #e5e3dc;

    position: sticky;

    top: 0;

    z-index: 100;

}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text);

    font-size: 20px;

    font-weight: 700;

}


.logo b {
    font-weight: 400;
}


.logo-mark {

    width: 37px;

    height: 37px;

    display: grid;

    place-items: center;

    background: var(--green);

    color: white;

    border-radius: 50%;

    font-family: "Playfair Display", serif;

    font-size: 20px;

}


.navbar {

    display: flex;

    align-items: center;

    gap: 30px;

}


.navbar > a:not(.list-btn) {

    color: #59635d;

    font-size: 13px;

    font-weight: 600;

    transition: .3s;

}


.navbar > a:not(.list-btn):hover,
.navbar > a.active {

    color: var(--green);

}


.list-btn {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    background: var(--green);

    color: white;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 700;

}


.menu-button {

    display: none;

    border: 0;

    background: transparent;

    color: var(--green);

    font-size: 23px;

}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 600px;

    padding: 90px 8%;

    position: relative;

    display: flex;

    align-items: center;

    color: white;

    background-image:
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1900&q=90");

    background-size: cover;

    background-position: center;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9,29,24,.94),
            rgba(9,29,24,.62),
            rgba(9,29,24,.18)
        );

}


.hero-content {

    position: relative;

    max-width: 680px;

}


.hero-label {

    color: var(--light-gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 17px;

}


.hero-label i {

    margin-right: 7px;

}


.hero h1 {

    font-family: "Playfair Display", serif;

    font-size: clamp(50px, 6vw, 78px);

    line-height: 1.02;

    font-weight: 600;

}


.hero h1 em {

    display: block;

    color: var(--light-gold);

    font-style: italic;

}


.hero-content > p {

    max-width: 530px;

    margin: 23px 0 30px;

    color: #e4e8e5;

    font-size: 15px;

}


.hero-actions {

    display: flex;

    align-items: center;

    gap: 28px;

}


.gold-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 21px;

    border: 0;

    border-radius: 7px;

    background: var(--gold);

    color: white;

    font-size: 12px;

    font-weight: 700;

    transition: .3s;

}


.gold-button:hover {

    background: #9c7d47;

    transform: translateY(-2px);

}


.text-button {

    color: white;

    font-size: 12px;

    font-weight: 700;

}


.text-button i {

    margin-left: 7px;

}


.hero-stats {

    position: absolute;

    right: 8%;

    bottom: 45px;

    display: flex;

    gap: 30px;

    padding: 21px 27px;

    background: rgba(255,255,255,.96);

    color: var(--text);

    border-radius: 9px;

    box-shadow: 0 15px 45px rgba(0,0,0,.18);

}


.hero-stats div {

    display: flex;

    flex-direction: column;

}


.hero-stats strong {

    font-size: 21px;

}


.hero-stats span {

    color: #7c847f;

    font-size: 10px;

}


/* =========================================
   SEARCH
========================================= */

.search-container {

    position: relative;

    z-index: 20;

    margin-top: -45px;

}


.search-box {

    width: min(1100px, 88%);

    margin: auto;

    padding: 12px;

    display: flex;

    align-items: center;

    background: white;

    border-radius: 10px;

    box-shadow: 0 18px 45px rgba(24,37,31,.14);

}


.search-field {

    flex: 1;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 9px 18px;

    border-right: 1px solid #eeeeea;

}


.search-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    background: #f0f1eb;

    color: var(--gold);

    border-radius: 50%;

}


.search-field label {

    display: block;

    color: #999;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.search-field input,
.search-field select {

    width: 100%;

    margin-top: 3px;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;

}


.search-button {

    min-width: 125px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 17px;

    border: 0;

    border-radius: 7px;

    background: var(--green);

    color: white;

    font-size: 12px;

    font-weight: 700;

}


/* =========================================
   SECTIONS
========================================= */

.section {

    padding: 100px 7%;

}


.section-header {

    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 35px;

}


.section-label {

    display: block;

    color: var(--gold);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.4px;

    margin-bottom: 10px;

}


.section-header h2,
.about-content h2,
.center-title h2,
.contact-info h2 {

    font-family: "Playfair Display", serif;

    font-size: 45px;

    line-height: 1.1;

    font-weight: 600;

}


.reset-button {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 10px 15px;

    background: transparent;

    color: #5f6863;

    border: 1px solid #cecec7;

    border-radius: 7px;

    font-size: 11px;

}


/* =========================================
   PROPERTY GRID
========================================= */

.property-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

}


.property-card {

    overflow: hidden;

    background: white;

    border-radius: 10px;

    box-shadow: 0 7px 28px rgba(24,37,31,.06);

    transition: .35s;

}


.property-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(24,37,31,.14);

}


.property-image {

    height: 245px;

    position: relative;

    overflow: hidden;

}


.property-image img {

    height: 100%;

    object-fit: cover;

    transition: .5s;

}


.property-card:hover .property-image img {

    transform: scale(1.05);

}


.property-tag {

    position: absolute;

    top: 15px;

    left: 15px;

    padding: 6px 10px;

    background: white;

    color: var(--green);

    border-radius: 4px;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

}


.favorite-button {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 50%;

    background: white;

    color: var(--green);

    transition: .3s;

}


.favorite-button.active {

    background: var(--green);

    color: white;

}


.property-content {

    padding: 20px;

}


.property-content h3 {

    font-family: "Playfair Display", serif;

    font-size: 21px;

    font-weight: 600;

}


.property-location {

    margin: 5px 0 16px;

    color: #7b837e;

    font-size: 11px;

}


.property-location i {

    margin-right: 5px;

    color: var(--gold);

}


.property-features {

    display: flex;

    gap: 17px;

    padding-bottom: 15px;

    border-bottom: 1px solid #eeeeea;

    color: #68726c;

    font-size: 10px;

}


.property-features i {

    margin-right: 4px;

    color: var(--gold);

}


.property-bottom {

    padding-top: 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.property-price {

    font-size: 19px;

    font-weight: 700;

}


.details-button {

    border: 0;

    background: transparent;

    color: var(--green);

    font-size: 11px;

    font-weight: 700;

}


.details-button i {

    margin-left: 5px;

}


.no-results {

    display: none;

    padding: 50px;

    text-align: center;

}


.no-results i {

    color: var(--gold);

    font-size: 35px;

    margin-bottom: 12px;

}


.no-results h3 {

    font-family: "Playfair Display", serif;

    font-size: 25px;

}


.no-results p {

    color: #777;

    font-size: 13px;

}


/* =========================================
   ABOUT
========================================= */

.about {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9%;

    align-items: center;

    background: var(--light);

}


.about-photo {

    position: relative;

}


.about-photo img {

    height: 520px;

    object-fit: cover;

    border-radius: 8px;

}


.experience-box {

    position: absolute;

    right: -25px;

    bottom: 30px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 20px;

    background: var(--green);

    color: white;

    border-radius: 7px;

}


.experience-box strong {

    font-family: "Playfair Display", serif;

    font-size: 38px;

}


.experience-box span {

    font-size: 10px;

    line-height: 1.3;

}


.about-content h2 em {

    display: block;

    color: var(--gold);

}


.about-description {

    max-width: 530px;

    margin: 20px 0 30px;

    color: #6d756f;

    font-size: 14px;

}


.features {

    display: grid;

    gap: 20px;

}


.feature {

    display: flex;

    align-items: center;

    gap: 15px;

}


.feature-icon {

    width: 43px;

    height: 43px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #dfe3da;

    color: var(--green);

}


.feature h4 {

    font-size: 13px;

}


.feature p {

    color: #7c837f;

    font-size: 10px;

}


/* =========================================
   AGENTS
========================================= */

.center-title {

    max-width: 650px;

    margin: 0 auto 40px;

    text-align: center;

}


.center-title > p {

    color: #747d77;

    font-size: 13px;

}


.agents-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

}


.agent-card {

    overflow: hidden;

    background: white;

    border-radius: 9px;

    box-shadow: 0 6px 25px rgba(24,37,31,.05);

}


.agent-photo {

    height: 310px;

    position: relative;

    overflow: hidden;

}


.agent-photo img {

    height: 100%;

    object-fit: cover;

    transition: .5s;

}


.agent-card:hover .agent-photo img {

    transform: scale(1.04);

}


.agent-social {

    position: absolute;

    right: 15px;

    bottom: 15px;

    display: flex;

    gap: 7px;

}


.agent-social a {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    background: white;

    color: var(--green);

    border-radius: 50%;

    font-size: 11px;

}


.agent-content {

    padding: 19px 20px;

}


.agent-content h3 {

    font-family: "Playfair Display", serif;

    font-size: 21px;

}


.agent-content p {

    margin: 3px 0 13px;

    color: #7a817d;

    font-size: 11px;

}


.agent-content > a {

    color: var(--green);

    font-size: 11px;

    font-weight: 700;

}


.agent-content > a i {

    margin-left: 6px;

}


/* =========================================
   CONTACT
========================================= */

.contact {

    display: grid;

    grid-template-columns: 1fr 1.05fr;

    gap: 10%;

    background: var(--green);

    color: white;

}


.contact-info h2 {

    font-size: 49px;

}


.contact-info h2 em {

    display: block;

    color: var(--light-gold);

}


.contact-info > p {

    max-width: 450px;

    margin: 20px 0 30px;

    color: #c9d2cc;

    font-size: 13px;

}


.contact-items {

    display: grid;

    gap: 17px;

}


.contact-item {

    display: flex;

    align-items: center;

    gap: 13px;

}


.contact-icon {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 50%;

    color: var(--light-gold);

}


.contact-item div:last-child {

    display: flex;

    flex-direction: column;

}


.contact-item small {

    color: #9ba8a1;

    font-size: 9px;

    letter-spacing: 1px;

}


.contact-item strong {

    font-size: 12px;

    font-weight: 500;

}


.contact-form {

    padding: 30px;

    background: white;

    border-radius: 9px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

}


.contact-form label {

    display: block;

    margin-bottom: 6px;

    color: #4f5953;

    font-size: 10px;

    font-weight: 700;

}


.contact-form input,
.contact-form select,
.contact-form textarea {

    width: 100%;

    padding: 12px 13px;

    margin-bottom: 15px;

    background: #fafaf8;

    border: 1px solid #deded8;

    border-radius: 5px;

    outline: none;

    color: #26332d;

    font-size: 12px;

}


.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {

    border-color: var(--gold);

}


.contact-form textarea {

    resize: vertical;

}


.submit-button {

    width: 100%;

}


.form-message {

    color: var(--green);

    text-align: center;

    font-size: 11px;

    margin-top: 10px;

}


/* =========================================
   FOOTER
========================================= */

footer {

    padding: 35px 7%;

    display: grid;

    grid-template-columns: 1.5fr 1fr auto;

    gap: 30px;

    align-items: center;

    background: var(--dark-green);

    color: #bcc7c1;

}


footer .logo {

    color: white;

}


.footer-brand p {

    margin-top: 7px;

    font-size: 10px;

}


.footer-links {

    display: flex;

    gap: 18px;

}


.footer-links a {

    color: #bcc7c1;

    font-size: 10px;

}


.social-icons {

    display: flex;

    gap: 8px;

}


.social-icons a {

    width: 32px;

    height: 32px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 50%;

    color: white;

    font-size: 10px;

}


.copyright {

    grid-column: 1 / -1;

    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,.1);

    text-align: center;

    color: #84918a;

    font-size: 9px;

}


/* =========================================
   MODAL
========================================= */

.property-modal {

    position: fixed;

    inset: 0;

    z-index: 500;

    display: none;

    place-items: center;

    padding: 20px;

    background: rgba(0,0,0,.76);

}


.property-modal.show {

    display: grid;

}


.modal-box {

    width: min(850px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    background: white;

    border-radius: 10px;

}


.modal-box > img {

    height: 330px;

    object-fit: cover;

}


.modal-close {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 50%;

    background: white;

    color: var(--green);

    font-size: 17px;

}


.modal-content {

    padding: 28px;

}


.modal-tag {

    display: inline-block;

    padding: 5px 9px;

    background: #edf0eb;

    color: var(--green);

    border-radius: 4px;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

}


.modal-content h2 {

    margin-top: 8px;

    font-family: "Playfair Display", serif;

    font-size: 34px;

}


.modal-location {

    color: #777;

    font-size: 12px;

}


.modal-location i {

    color: var(--gold);

}


.modal-features {

    display: flex;

    gap: 25px;

    padding: 17px 0;

    margin: 17px 0;

    border-top: 1px solid #eee;

    border-bottom: 1px solid #eee;

    color: #68716c;

    font-size: 11px;

}


.modal-features i {

    color: var(--gold);

    margin-right: 5px;

}


.modal-content h3 {

    font-size: 24px;

}


.modal-content > p:not(.modal-location) {

    margin: 8px 0 20px;

    color: #6d756f;

    font-size: 12px;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .navbar {
        gap: 16px;
    }

    .property-grid,
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .about-content {
        margin-top: 20px;
    }

    .contact {
        gap: 50px;
    }

    .hero-stats {
        display: none;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-field {
        min-width: 45%;
        border-right: 0;
    }

    .search-button {
        width: 100%;
        margin-top: 5px;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 750px) {

    .header {
        padding: 0 5%;
    }

    .menu-button {
        display: block;
    }

    .navbar {

        display: none;

        position: absolute;

        top: 78px;

        left: 0;

        right: 0;

        padding: 20px;

        flex-direction: column;

        align-items: stretch;

        background: var(--cream);

        border-bottom: 1px solid #ddd;

    }

    .navbar.open {
        display: flex;
    }

    .list-btn {
        justify-content: center;
    }

    .hero {
        padding: 80px 7%;
    }

    .hero h1 {
        font-size: 51px;
    }

    .section {
        padding: 75px 5%;
    }

    .section-header h2,
    .about-content h2 {
        font-size: 37px;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .social-icons {
        justify-content: center;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 550px) {

    .hero {
        min-height: 610px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-content > p {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: flex-start;

        gap: 17px;
    }

    .search-container {
        margin-top: -35px;
    }

    .search-box {
        width: 92%;
    }

    .search-field {
        width: 100%;

        min-width: 100%;

        padding: 12px;

        border-bottom: 1px solid #eee;
    }

    .property-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;

        gap: 15px;
    }

    .about-photo img {
        height: 390px;
    }

    .experience-box {
        right: 10px;
    }

    .contact-info h2 {
        font-size: 41px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-box > img {
        height: 230px;
    }

    .modal-features {
        flex-wrap: wrap;

        gap: 12px;
    }

}