:root {
    --forest: #1f3d35;
    --forest-dark: #132b25;
    --sand: #f3ead9;
    --cream: #fbf8f1;
    --terracotta: #b96243;
    --terracotta-dark: #954c34;
    --ink: #26312d;
    --muted: #69736e;
    --line: #ded8ca;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(27, 40, 35, 0.10);
    --radius: 20px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 248, 241, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(222, 216, 202, 0.85);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.35rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--forest);
    color: var(--sand);
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: -0.06em;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 0.94rem;
}

nav a:hover {
    color: var(--forest);
}

.nav-cta {
    padding: 10px 16px;
    background: var(--forest);
    color: var(--white);
    border-radius: 999px;
    font-weight: 700;
}

.nav-cta:hover {
    color: var(--white);
    background: var(--forest-dark);
}

/* Hero */
.hero {
    padding: 82px 0 68px;
    background:
            radial-gradient(circle at 84% 20%, rgba(185, 98, 67, 0.14), transparent 28%),
            radial-gradient(circle at 12% 80%, rgba(31, 61, 53, 0.08), transparent 32%),
            var(--cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--terracotta);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

h1 {
    margin: 16px 0 20px;
    color: var(--forest-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    max-width: 760px;
}

.hero-copy {
    max-width: 610px;
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 19px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--terracotta);
    color: var(--white);
}

.button-primary:hover {
    background: var(--terracotta-dark);
}

.button-secondary {
    border-color: var(--line);
    color: var(--forest);
    background: rgba(255,255,255,0.55);
}

.hero-panel {
    min-height: 410px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: url("ziadrk.jpeg");
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(243, 234, 217, 0.27);
}

.hero-panel::before {
    width: 310px;
    height: 310px;
    right: -120px;
    top: -85px;
}

.hero-panel::after {
    width: 200px;
    height: 200px;
    left: -90px;
    bottom: -80px;
}

.panel-content {
    position: absolute;
    inset: auto 28px 28px;
    color: var(--white);
}

.panel-label {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-content h2 {
    margin: 13px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.45rem;
    line-height: 1;
}

.panel-content p {
    margin: 0;
    max-width: 390px;
    color: rgba(255,255,255,0.78);
}

/* Stats */
.stats {
    padding: 0 0 60px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat {
    padding: 26px 28px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 7px;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Section */
section {
    scroll-margin-top: 92px;
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--sand);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--forest-dark);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 530px;
    color: var(--muted);
    margin: 0;
}

/* Company */
.company {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 28px;
    align-items: stretch;
}

.company-card,
.property-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(28, 41, 36, 0.07);
}

.company-card {
    padding: 30px;
}

.company-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--forest);
    color: var(--sand);
    font-weight: 900;
    letter-spacing: -0.06em;
    margin-bottom: 21px;
}

.company-card h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    color: var(--forest-dark);
}

.company-card p {
    color: var(--muted);
    margin: 0 0 22px;
}

.company-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--forest);
}

.property-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.property-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.property-card.featured {
    grid-column: span 2;
}

.property-image {
    min-height: 175px;
    position: relative;
    overflow: hidden;
    background:
    url("408 Central - Inside Front.jpg") 800px 400px;
}

.property-card:nth-child(2) .property-image {
    background:
            linear-gradient(145deg, rgba(61,86,72,.78), rgba(198,135,96,.72)),
            linear-gradient(135deg, #cfbc99, #8e634f);
}

.property-card:nth-child(3) .property-image {
    background:
            linear-gradient(145deg, rgba(86,75,56,.7), rgba(184,102,67,.76)),
            linear-gradient(135deg, #d9c59e, #806657);
}

.property-image::before,
.property-image::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.12);
    transform: rotate(-22deg);
}

.property-image::before {
    width: 180px;
    height: 310px;
    right: 25px;
    top: -110px;
}

.property-image::after {
    width: 130px;
    height: 270px;
    left: 45px;
    bottom: -145px;
}

.property-type {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(20, 38, 33, 0.72);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.property-body {
    padding: 22px;
}

.property-body h4 {
    margin: 0 0 5px;
    color: var(--forest-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.property-body p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 17px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.meta {
    border: 1px solid var(--line);
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--forest);
    font-size: 0.78rem;
    font-weight: 700;
}

.property-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    color: var(--forest);
    font-weight: 900;
}

.price small {
    color: var(--muted);
    font-weight: 500;
}

.details-button {
    border: 0;
    background: transparent;
    color: var(--terracotta);
    font-weight: 800;
    cursor: pointer;
    padding: 8px 0;
}

.details-button:hover {
    color: var(--terracotta-dark);
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.step-number {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--terracotta);
    font-size: 2rem;
    line-height: 1;
}

.step h3 {
    margin: 18px 0 7px;
    color: var(--forest-dark);
}

.step p {
    color: var(--muted);
    margin: 0;
}

/* CTA */
.cta {
    padding: 88px 0;
}

.cta-card {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: var(--white);
    border-radius: 28px;
    padding: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.cta-card::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(243, 234, 217, 0.16);
    border-radius: 50%;
    right: -110px;
    bottom: -170px;
}

.cta-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.cta-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,0.74);
}

.cta-card .button {
    position: relative;
    z-index: 2;
    background: var(--sand);
    color: var(--forest);
    flex: 0 0 auto;
}

/* Footer */
footer {
    padding: 34px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    font-weight: 800;
    color: var(--forest);
}

.footer-note {
    font-size: 0.88rem;
}

.footer-row a {
    color: var(--muted);
    margin-left: 20px;
    font-size: 0.88rem;
}

.footer-row a:hover {
    color: var(--forest);
}

/* Content Page Styles */
.content-page {
    padding: 88px 0;
}

.content-page h1 {
    margin: 0 0 40px;
    color: var(--forest-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.content-page section {
    margin-bottom: 48px;
}

.content-page h2 {
    margin: 0 0 16px;
    color: var(--forest-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    line-height: 1.2;
}

.content-page p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.content-page ul {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 16px;
    padding-left: 24px;
}

.content-page li {
    margin-bottom: 8px;
}

.content-page .last-updated {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 23, 20, 0.66);
    z-index: 50;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: min(620px, 100%);
    max-height: min(750px, 90vh);
    overflow: auto;
    background: var(--cream);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    position: relative;
}

.close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    color: var(--forest);
    font-size: 1.1rem;
}

.modal-kicker {
    color: var(--terracotta);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.modal h2 {
    margin: 8px 48px 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--forest-dark);
    font-size: 2.25rem;
    line-height: 1;
}

.modal p {
    color: var(--muted);
}

.modal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.modal-info div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 13px;
}

.modal-info strong {
    display: block;
    color: var(--forest);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.modal-info span {
    color: var(--ink);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 930px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 330px;
    }

    .company {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav {
        min-height: 66px;
    }

    nav a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding: 54px 0 46px;
    }

    h1 {
        font-size: clamp(3rem, 17vw, 4.25rem);
    }

    .stats-row,
    .steps {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .property-list {
        grid-template-columns: 1fr;
    }

    .property-card.featured {
        grid-column: span 1;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
