:root {
    --red: #D6222A;
    --red-dark: #A5171E;
    --yellow: #E8B923;

    --ink: #171717;
    --muted: rgba(0, 0, 0, .52);
    --line: rgba(0, 0, 0, .10);

    --cream-1: #FAF9F6;
    --cream-2: #F4F2EC;
    --cream-3: #EDEAE3;
    --card: #F2F0EA;

    --max: 1120px;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--ink);

    font-family:
        "Poppins",
        system-ui,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            var(--cream-1) 0%,
            var(--cream-2) 46%,
            var(--cream-3) 100%
        );

    -webkit-font-smoothing: antialiased;
}

button,
textarea {
    font: inherit;
}

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


/* =========================================================
   PAGE
   ========================================================= */

.page-shell {
    width: 100%;
    min-height: 100vh;
}


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

.hero {
    min-height: 560px;

    position: relative;

    overflow: hidden;

    background: #2a2c26;
}

.hero__background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 12, 10, .66) 0%,
            rgba(10, 12, 10, .34) 34%,
            rgba(10, 12, 10, .50) 74%,
            rgba(237, 234, 227, .96) 100%
        );
}


/* =========================================================
   NAV
   ========================================================= */

.topbar {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 20px 44px;

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        170px
        1fr
        170px;

    align-items: center;

    gap: 28px;
}

.topbar__logo img {
    height: 32px;

    display: block;
}

.topbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;
}

.topbar__nav a {
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .09em;

    text-transform: uppercase;
}

.topbar__nav a:hover {
    color: var(--yellow);
}

.topbar__cta {
    justify-self: end;

    padding: 12px 20px;

    background: var(--red);
    color: #fff;

    font-size: 13px;
    font-weight: 500;
}

.topbar__cta:hover {
    background: var(--red-dark);
}


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

.hero__content {
    max-width: 960px;

    margin: 0 auto;

    padding:
        105px 40px
        130px;

    position: relative;
    z-index: 2;

    text-align: center;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 255, 255, .82);
}

.hero h1 {
    margin:
        26px 0
        0;

    color: #fff;

    font-size: clamp(
        48px,
        6vw,
        68px
    );

    font-weight: 700;

    line-height: 1.02;

    letter-spacing: -.025em;

    text-shadow:
        0 2px 24px
        rgba(0, 0, 0, .35);
}

.hero__content p {
    max-width: 700px;

    margin:
        26px auto
        0;

    color: var(--yellow);

    font-size: clamp(
        18px,
        2.2vw,
        24px
    );

    font-weight: 600;

    line-height: 1.45;

    text-wrap: pretty;

    text-shadow:
        0 2px 18px
        rgba(0, 0, 0, .35);
}


/* =========================================================
   FINDER
   ========================================================= */

.finder-section {
    padding:
        0 24px
        66px;

    margin-top: -46px;

    position: relative;
    z-index: 3;

    text-align: center;
}

.finder {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    background: #fff;

    border: 1px solid var(--line);

    box-shadow:
        0 10px 40px -18px
        rgba(0, 0, 0, .18);

    text-align: left;
}

.finder label {
    display: block;

    padding:
        26px 30px
        0;

    color: var(--ink);

    font-size: 12.5px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.finder textarea {
    width: 100%;
    min-height: 150px;

    padding:
        22px 30px
        34px;

    display: block;

    border: 0;
    outline: 0;

    resize: vertical;

    color: var(--ink);

    background: #fff;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.6;
}

.finder textarea::placeholder {
    color: rgba(0, 0, 0, .34);
}

.finder__footer {
    min-height: 78px;

    padding:
        14px 24px
        14px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border-top: 1px solid var(--line);
}

.finder__footer > span {
    color: rgba(0, 0, 0, .45);

    font-size: 13.5px;
}

.finder__footer button,
.button-primary {
    border: 0;

    display: inline-flex;
    align-items: center;

    gap: 14px;

    padding:
        18px 28px;

    cursor: pointer;

    background: var(--red);
    color: #fff;

    font-size: 13.5px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.finder__footer button:hover,
.button-primary:hover {
    background: var(--red-dark);
}

.finder__footer b,
.button-primary b {
    font-size: 16px;
}


/* =========================================================
   EXAMPLES
   ========================================================= */

.examples {
    margin-top: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.examples > span {
    color: rgba(0, 0, 0, .42);

    font-size: 13px;
}

.example {
    padding:
        11px 18px;

    border:
        1px solid
        rgba(0, 0, 0, .14);

    background:
        rgba(255, 255, 255, .70);

    color:
        rgba(0, 0, 0, .68);

    cursor: pointer;

    font-size: 13px;
}

.example:hover {
    background: #fff;
}


/* =========================================================
   RESULTS
   ========================================================= */

.results {
    padding:
        20px 24px
        80px;
}

.results__inner {
    width: 100%;
    max-width: var(--max);

    margin: 0 auto;
}


/* =========================================================
   FEATURED
   ========================================================= */

.featured {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    background: var(--card);

    border:
        1px solid
        rgba(0, 0, 0, .07);
}

.featured__image {
    min-height: 430px;

    position: relative;

    overflow: hidden;

    background: #e4e0d9;
}

.featured__image img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;

    display: block;
}

.featured__badge {
    position: absolute;

    top: 0;
    left: 0;

    padding:
        11px 18px;

    background: var(--red);
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.featured__content {
    padding:
        42px 46px
        40px;
}

.result-number {
    color:
        rgba(0, 0, 0, .45);

    font-size: 12px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.featured h2 {
    margin:
        16px 0
        26px;

    color: var(--ink);

    font-size: 42px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -.02em;
}


/* =========================================================
   SPECS
   ========================================================= */

.specs {
    padding:
        18px 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    border-top: 1px solid rgba(0, 0, 0, .12);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.specs span {
    display: block;

    color:
        rgba(0, 0, 0, .45);

    font-size: 11.5px;
}

.specs strong {
    display: block;

    margin-top: 7px;

    color: var(--ink);

    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   REASON
   ========================================================= */

.reason {
    margin:
        24px 0
        30px;

    padding-left: 18px;

    border-left:
        3px solid
        var(--yellow);
}

.reason strong,
.house-card__reason strong {
    display: block;

    color: var(--ink);

    font-size: 11.5px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .09em;

    text-transform: uppercase;
}

.reason p {
    margin:
        12px 0
        0;

    color:
        rgba(0, 0, 0, .68);

    font-size: 14.5px;

    line-height: 1.65;

    text-wrap: pretty;
}


/* =========================================================
   FEATURED BOTTOM
   ========================================================= */

.featured__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.price span {
    display: block;

    color:
        rgba(0, 0, 0, .45);

    font-size: 12px;
}

.price strong {
    display: block;

    margin-top: 8px;

    color: var(--ink);

    font-size: 26px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   ALTERNATIVES
   ========================================================= */

.alternatives-title {
    margin:
        64px 0
        28px;
}

.alternatives-title h3 {
    margin: 0;

    color: var(--ink);

    font-size: 34px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -.02em;
}

.alternatives-title p {
    margin:
        8px 0
        0;

    color:
        rgba(0, 0, 0, .50);

    font-size: 14px;
}

.alternatives {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 28px;
}


/* =========================================================
   HOUSE CARDS
   ========================================================= */

.house-card {
    background: #fff;

    border:
        1px solid
        rgba(0, 0, 0, .09);
}

.house-card__image {
    height: 250px;

    position: relative;

    overflow: hidden;

    background: #e4e0d9;
}

.house-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.house-card__number {
    position: absolute;

    top: 0;
    left: 0;

    padding:
        9px 14px;

    background: var(--yellow);
    color: var(--ink);

    font-size: 11px;
    font-weight: 700;
}

.house-card__content {
    padding:
        28px 30px
        30px;
}

.house-card h4 {
    margin:
        0 0
        12px;

    color: var(--ink);

    font-size: 28px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -.02em;
}

.house-card__summary {
    color:
        rgba(0, 0, 0, .55);

    font-size: 13.5px;
}

.house-card__reason {
    margin-top: 22px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(0, 0, 0, .10);
}

.house-card__reason p {
    margin:
        12px 0
        26px;

    color:
        rgba(0, 0, 0, .62);

    font-size: 14px;

    line-height: 1.65;

    text-wrap: pretty;
}

.house-card__bottom {
    padding-top: 20px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    border-top:
        1px solid
        rgba(0, 0, 0, .10);
}

.price--small span {
    font-size: 11.5px;
}

.price--small strong {
    margin-top: 7px;

    font-size: 22px;
}

.house-card__bottom a {
    color: var(--red);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.house-card__bottom a:hover {
    color: var(--red-dark);
}


/* =========================================================
   BOTTOM ACTIONS
   ========================================================= */

.bottom-actions {
    margin-top: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    color:
        rgba(0, 0, 0, .45);

    font-size: 13px;
}

.button-secondary {
    padding:
        15px 28px;

    border:
        1px solid
        rgba(0, 0, 0, .20);

    background: transparent;

    color: var(--ink);

    cursor: pointer;

    font-size: 13.5px;
    font-weight: 500;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, .55);
}

.bottom-actions a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.no-results {
    max-width: 760px;

    margin:
        0 auto;

    padding:
        30px 24px
        90px;

    text-align: center;
}

.no-results h2 {
    margin-bottom: 12px;

    font-size: 30px;
}

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


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .topbar {
        grid-template-columns:
            1fr auto;
    }

    .topbar__nav {
        display: none;
    }

    .hero__content {
        padding-top: 90px;
    }

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

    .featured__image {
        min-height: 430px;
    }

}


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

@media (max-width: 720px) {

    .topbar {
        padding:
            16px 20px;

        grid-template-columns:
            1fr auto;
    }

    .topbar__logo img {
        height: 27px;
    }

    .topbar__cta {
        padding:
            10px 13px;

        font-size: 11px;
    }

    .hero {
        min-height: 510px;
    }

    .hero__content {
        padding:
            90px 22px
            110px;
    }

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

    .hero__content p {
        font-size: 18px;
    }

    .finder-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .finder label {
        padding:
            22px 20px
            0;
    }

    .finder textarea {
        padding:
            20px
            28px;

        min-height: 170px;
    }

    .finder__footer {
        padding:
            15px;

        align-items: stretch;

        flex-direction: column;
    }

    .finder__footer > span {
        padding:
            0 5px;
    }

    .finder__footer button {
        justify-content: center;

        width: 100%;
    }

    .examples > span {
        width: 100%;
    }

    .results {
        padding-left: 16px;
        padding-right: 16px;
    }

    .featured__image {
        min-height: 300px;
    }

    .featured__content {
        padding:
            32px 24px;
    }

    .featured h2 {
        font-size: 36px;
    }

    .specs {
        grid-template-columns:
            1fr 1fr;

        gap: 18px;
    }

    .featured__bottom {
        align-items: stretch;

        flex-direction: column;
    }

    .button-primary {
        justify-content: center;
    }

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

    .bottom-actions {
        flex-direction: column;

        text-align: center;
    }

}
