/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Hearthstone Realty Group (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, quiet "luxury" style with lots of white
    space. Base rules are the phone layout; media queries at 576px, 768px,
    992px and 1200px add to it. Flexbox for layout, a search bar that
    overlaps the hero using a negative top margin, and position: relative
    on the listing photos so the "Sample" badge can sit on them.

    Colors (WebAIM checked, AA):
      #22392F forest   #8A6A2F brass (text)   #B38B45 brass (fills)   #F5F2EC stone   #1D2421 ink   #5E6661 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* White page, light-weight Jost text for an airy feel. */
body {
    background-color: #FFFFFF;
    color: #1D2421;
    font-family: Jost, sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classic Marcellus serif headings. */
h1,
h2,
h3 {
    font-family: Marcellus, Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 10px 0px 16px 0px;
}

/* Brass focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #8A6A2F;
    outline-offset: 3px;
}

/* Small wide-spaced brass label. */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8A6A2F;
}

/* ----- Concept banner (class) ----- */

/* Stone strip labeling the concept. */
.concept-banner {
    background-color: #F5F2EC;
    color: #5E6661;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
}

/* ----- Hero header (class) ----- */

/* Full-width house photo. The dark layer is strongest at the bottom
   where the headline sits, so white text keeps its contrast. */
.hero {
    min-height: 580px;
    color: #FFFFFF;
    background-color: #22392F;
    background-image: linear-gradient(180deg, #00000080 0%, #22392FB3 40%, #22392FF2 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logo left, phone right. */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

/* Spaced-out capital logo. */
.logo {
    font-family: Marcellus, Georgia, serif;
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Small second line of the logo. */
.logo span {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
}

/* Nav hidden on phones; shown at 992px. */
.site-nav {
    display: none;
}

/* Outlined phone link. */
.phone {
    color: #FFFFFF;
    border: 1px solid #FFFFFF99;
    padding: 8px 12px;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
}

/* Filled white on hover. */
.phone:hover {
    background-color: #FFFFFF;
    color: #22392F;
}

/* Headline block near the bottom of the photo. The bottom padding makes
   room for the search bar that overlaps it. */
.hero-text {
    padding: 0px 20px 80px 20px;
    max-width: 56rem;
}

/* Eyebrow in white on the photo. */
.hero .eyebrow {
    color: #FFFFFF;
}

/* Big headline. */
.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.8rem);
    margin: 10px 0px 14px 0px;
}

/* Hero paragraph. */
.hero-text > p:last-child {
    font-size: 1.1rem;
    max-width: 34rem;
}

/* ----- Search bar (class) ----- */

/* White bar that overlaps the bottom of the hero: the negative top
   margin pulls it up over the photo. Fields wrap two per row on phones. */
.search {
    position: relative;
    max-width: 1100px;
    margin: -44px 16px 0px 16px;
    background-color: #FFFFFF;
    box-shadow: 0px 30px 60px #00000022;
    display: flex;
    flex-wrap: wrap;
}

/* One search field box. */
.search-field {
    flex: 1 1 50%;
    padding: 12px 16px;
    border-right: 1px solid #0000001A;
    border-bottom: 1px solid #0000001A;
}

/* Small capital label above the field. */
.search label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5E6661;
}

/* Borderless field; the boxes around them do the framing. */
.search input,
.search select {
    width: 100%;
    border: none;
    background-color: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #1D2421;
    padding: 2px 0px;
}

/* Forest green search button across the full width on phones. */
.search button {
    flex: 1 1 100%;
    background-color: #22392F;
    color: #FFFFFF;
    border: none;
    padding: 16px 30px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Brass on hover. */
.search button:hover {
    background-color: #8A6A2F;
}

/* ----- Listings (ID and class) ----- */

/* Section spacing. */
#listings {
    max-width: 1240px;
    margin: 0px auto;
    padding: 70px 20px;
}

/* Title and note stack on phones; side by side at 768px. */
.section-head {
    margin: 0px 0px 30px 0px;
}

/* The muted note next to the title. */
.section-head > p {
    color: #5E6661;
    max-width: 26rem;
}

/* Filter pills in a wrapping row. */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0px 0px 26px 0px;
}

/* One filter pill. */
.filters li {
    border: 1px solid #00000033;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
}

/* The active filter is solid ink. */
.filters li.active {
    background-color: #1D2421;
    border-color: #1D2421;
    color: #FFFFFF;
}

/* Listing cards stack on phones. */
.homes {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* One listing card shares the row once side by side. */
.home {
    flex: 1 1 0px;
}

/* position: relative anchors the Sample badge on the photo. */
.home-photo {
    position: relative;
    overflow: hidden;
}

/* Listing photo in a 4:3 crop. The slow zoom on hover is a subtle hint
   that the card is clickable. */
.home-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s;
}

/* Slight zoom on hover. */
.home:hover .home-photo img {
    transform: scale(1.04);
}

/* White "Sample" badge in the photo's top-left corner. */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #FFFFFF;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Listing price. */
.home h3 {
    font-size: 1.8rem;
    margin: 14px 0px 2px 0px;
}

/* Address in muted text. */
.address {
    color: #5E6661;
}

/* Beds / baths / size in a row with a hairline above. */
.facts {
    display: flex;
    gap: 18px;
    list-style: none;
    border-top: 1px solid #0000001A;
    margin: 10px 0px 0px 0px;
    padding: 10px 0px 0px 0px;
    font-size: 0.9rem;
}

/* ----- Home value (ID and class) ----- */

/* Forest green band; text above form on phones. */
#value {
    background-color: #22392F;
    color: #E9ECE6;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* White section title on green. */
#value h2 {
    color: #FFFFFF;
}

/* Light brass eyebrow on green. */
#value .eyebrow {
    color: #E4C78E;
}

/* White form card. */
.value-form {
    background-color: #FFFFFF;
    color: #1D2421;
    padding: 28px;
}

/* Form title. */
.value-form h3 {
    font-size: 1.7rem;
    margin: 0px 0px 8px 0px;
}

/* Labels above each field. */
.value-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5E6661;
    margin: 14px 0px 2px 0px;
}

/* Underline-only fields. */
.value-form input,
.value-form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #00000055;
    padding: 10px 0px;
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
}

/* Brass button. Dark text keeps contrast on the brass fill. */
.value-form button {
    width: 100%;
    margin: 20px 0px 0px 0px;
    background-color: #B38B45;
    color: #1D2421;
    border: none;
    padding: 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Forest green on hover. */
.value-form button:hover {
    background-color: #22392F;
    color: #FFFFFF;
}

/* ----- Neighborhoods (ID and class) ----- */

/* Section spacing. */
#neighborhoods {
    max-width: 1240px;
    margin: 0px auto;
    padding: 70px 20px;
}

/* Town list above the guide on phones. */
.guide-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 26px 0px 0px 0px;
}

/* Towns in a wrapping row on phones. */
.town-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
}

/* Town links in the serif font. */
.town-list a {
    font-family: Marcellus, Georgia, serif;
    font-size: 1.3rem;
    color: #1D2421;
    text-decoration: none;
}

/* Brass underline on hover. */
.town-list a:hover {
    text-decoration: underline;
}

/* The town being shown is brass and underlined, so it is marked by more
   than color alone. */
.town-list .current a {
    color: #8A6A2F;
    text-decoration: underline;
}

/* Guide: photo above text on phones. */
.guide {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Portrait-cropped guide photo. */
.guide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Town name. */
.guide h3 {
    font-size: 2.2rem;
    margin: 0px 0px 10px 0px;
}

/* Two quick facts side by side. */
.guide-facts {
    display: flex;
    gap: 30px;
    margin: 22px 0px;
}

/* The fact itself in forest green serif. */
.guide-facts dt {
    font-family: Marcellus, Georgia, serif;
    font-size: 1.6rem;
    color: #22392F;
}

/* The note under each fact. */
.guide-facts dd {
    font-size: 0.85rem;
    color: #5E6661;
}

/* Spaced capital link with a brass underline. */
.text-link {
    color: #22392F;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration-color: #B38B45;
    text-underline-offset: 6px;
}

/* ----- Footer (class) ----- */

/* Stone footer with muted text. */
.site-footer {
    background-color: #F5F2EC;
    color: #5E6661;
    font-size: 0.875rem;
    padding: 34px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Bigger logo. */
    .logo {
        font-size: 1.4rem;
    }

    /* Bigger hero. */
    .hero {
        min-height: 640px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Title left, note right. */
    .section-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 30px;
    }

    /* Three listings in a row. */
    .homes {
        flex-direction: row;
    }

    /* Guide photo and text side by side. */
    .guide {
        flex-direction: row;
        align-items: center;
    }

    /* Guide photo and text each take about half. */
    .guide img,
    .guide > div {
        flex: 1 1 0px;
        min-width: 0px;
    }

    /* Footer lines at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Show the nav in the top bar. */
    .site-nav {
        display: flex;
        gap: 34px;
        list-style: none;
    }

    /* Spaced capital white nav links. */
    .site-nav a {
        color: #FFFFFF;
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
    }

    /* Underline on hover. */
    .site-nav a:hover {
        text-decoration: underline;
    }

    /* Wider side padding in the hero. */
    .top-bar,
    .hero-text {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    /* The dark layer now also fades from the left, behind the headline,
       so more of the house shows on the right. */
    .hero {
        min-height: 88vh;
        background-image: linear-gradient(180deg, #00000066 0%, #00000000 30%, #00000000 50%, #000000AA 100%), linear-gradient(90deg, #14231FCC 0%, #14231F66 50%, #14231F00 75%), url("images/hero.jpg");
    }

    /* Room for the search bar under the headline. */
    .hero-text {
        padding-bottom: 130px;
    }

    /* Search fields all in one row with the button at the end. */
    .search {
        flex-wrap: nowrap;
        margin: -50px auto 0px auto;
    }

    /* Each field box shares the row; the location field is a little
       wider. */
    .search-field {
        flex: 1 1 0px;
        padding: 18px 22px;
        border-bottom: none;
    }

    /* Location field is wider. */
    .search-field:first-child {
        flex-grow: 1.3;
    }

    /* Button keeps its own width at the end of the row. */
    .search button {
        flex: 0 0 auto;
    }

    /* Value section: text and form side by side. */
    #value {
        flex-direction: row;
        align-items: center;
        gap: 6vw;
        padding: 100px 8vw;
    }

    /* Value columns split the row. */
    #value > div,
    .value-form {
        flex: 1 1 0px;
    }

    /* Value form gets more padding. */
    .value-form {
        padding: 40px;
    }

    /* Town list on the left as a column, guide on the right. */
    .guide-layout {
        flex-direction: row;
        gap: 60px;
    }

    /* Towns stack in a fixed-width column with lines between them. */
    .town-list {
        flex: 0 0 260px;
        flex-direction: column;
        gap: 0px;
        border-top: 1px solid #00000033;
    }

    /* Each town is a row with a line under it. */
    .town-list li {
        padding: 16px 0px;
        border-bottom: 1px solid #00000033;
    }

    /* The guide takes the rest of the row. */
    .guide {
        flex: 1 1 0px;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* More space above and below the content sections. */
    #listings,
    #neighborhoods {
        padding-top: 110px;
        padding-bottom: 110px;
    }
}
