/**
 * Landing page
 *
 * Loaded only by listings/landing.html. The boldness budget for the whole site
 * is spent in the hero; everything below it is deliberately quiet.
 */

/* ===================================================================
 * Hero
 *
 * The thesis: this is a marketplace for land, so the first thing on the
 * page is a specific piece of ground -- an actual active listing, credited
 * by name in the corner. Not stock photography, not an illustration.
 * The credit is what makes it honest: the hero IS the inventory.
 * =================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 680px);
    padding: var(--spacing-16) 0 var(--spacing-8);
    background-color: var(--color-timber-deep);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Scrim. Heavier at the bottom-left where the type sits, so the photograph
 * stays legible as a photograph on the right. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgb(16 27 26 / 0.94) 0%,
            rgb(16 27 26 / 0.72) 38%,
            rgb(16 27 26 / 0.28) 72%,
            rgb(16 27 26 / 0.15) 100%
        ), linear-gradient(to right, rgb(16 27 26 / 0.55), transparent 65%);
}

.hero > .container {
    position: relative;
}

/* Eyebrow: mono, wide-tracked. The utility voice -- a caption on a map sheet,
 * not a marketing kicker. */
.hero-eyebrow {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-blaze);
    margin-bottom: var(--spacing-4);
}

.hero-title {
    font-family: var(--font-family-display);
    font-stretch: var(--font-stretch-display);
    font-weight: 800;
    font-size: clamp(2.75rem, 7.5vw, 5.25rem);
    line-height: 0.94;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin-bottom: var(--spacing-4);
    text-wrap: balance;
}

.hero-lede {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: rgb(255 255 255 / 0.86);
    max-width: 38ch;
    margin-bottom: var(--spacing-8);
}

/* Search sits on the photograph rather than below it: the first thing you can
 * do on the page is look for ground, not read about the product. */
.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    max-width: 34rem;
}

.hero-search .form-control,
.hero-search .form-select {
    background-color: rgb(255 255 255 / 0.96);
    border: 1px solid transparent;
    padding: 0.7rem 0.9rem;
    /* flex-basis auto + the placeholder's intrinsic width claimed the whole row
     * and wrapped the button underneath. min-width:0 lets it actually shrink. */
    flex: 1 1 15rem;
    min-width: 0;
}

.hero-search .btn {
    flex: 0 0 auto;
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
    border-color: var(--color-blaze);
    box-shadow: 0 0 0 0.2rem rgb(240 75 10 / 0.3);
}

/* Photo credit. A hairline and a mono caption, bottom right -- the way a plate
 * is captioned in a survey report. */
.hero-credit {
    position: absolute;
    right: var(--spacing-8);
    bottom: var(--spacing-6);
    padding-top: var(--spacing-2);
    border-top: 1px solid rgb(255 255 255 / 0.35);
    text-align: right;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.04em;
    color: rgb(255 255 255 / 0.8);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.hero-credit:hover,
.hero-credit:focus-visible {
    color: var(--color-white);
    border-top-color: var(--color-blaze);
}

.hero-credit .hero-credit-label {
    display: block;
    color: rgb(255 255 255 / 0.55);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 0;
        padding-top: var(--spacing-12);
    }

    /* Below the fold on a phone the credit would overlap the search, and a
     * caption is not worth a tap target there. */
    .hero-credit {
        display: none;
    }
}

/* ===================================================================
 * Sections below the hero -- quiet by design
 * =================================================================== */

.section-frost {
    background-color: var(--color-frost);
}

/* .section-eyebrow now lives in theme.css -- the listing detail page uses it
 * too, so it is a shared component rather than a landing-page one. */

/* The two audience paths. A hairline rule rather than a card: there are only
 * two, and boxing them would imply a menu of many. */
.path {
    border-top: 2px solid var(--color-timber);
    padding-top: var(--spacing-5);
    height: 100%;
}

.path h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-3);
}

.path ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-6);
}

.path li {
    position: relative;
    padding-left: var(--spacing-6);
    margin-bottom: var(--spacing-2);
    color: var(--color-gray-700);
}

.path li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 1px;
    background-color: var(--color-contour);
}

/* Numbered steps.
 *
 * Numbering earns its place here: listing land genuinely is a sequence, each
 * step depends on the one before, and the count itself is information -- a
 * landowner deciding whether to bother wants to know it is five things, not
 * fifty. Numbers come from the <ol>, set in mono against a contour rule. */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-6);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps > li {
    counter-increment: step;
    padding-top: var(--spacing-5);
    border-top: 2px solid var(--color-timber);
}

.steps > li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: var(--spacing-2);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-contour);
}

.steps h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2);
}

.steps p {
    margin: 0;
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* The three tools that are actually ours. No card chrome -- a number-free
 * label, a heading, a line of copy. */
.tool {
    height: 100%;
    padding-top: var(--spacing-5);
    border-top: 1px solid var(--color-gray-300);
}

.tool-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-3);
    display: block;
}

/* ===================================================================
 * Closing CTA
 * =================================================================== */

.closing {
    background-color: var(--color-timber);
    color: var(--color-white);
    padding: var(--spacing-20) 0;
}

.closing h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-4);
}

.closing p {
    color: rgb(255 255 255 / 0.78);
    max-width: 46ch;
}

@media (prefers-reduced-motion: reduce) {
    .hero-credit {
        transition: none;
    }
}
