/* NurseryVine — Consumer Site Styles
   Brand palette:
     Forest (primary):  #1a2e20
     Cream (text/bg):   #f0ebe3
     Sand (accent):     #c8b99a
     White:             #ffffff
*/

/* ── RESET ────────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── BASE ─────────────────────────────────────────────────── */

:root {
    --forest:  #1a2e20;
    --forest-light: #243d2c;
    --cream:   #f0ebe3;
    --sand:    #c8b99a;
    --sand-light: #ddd0b8;
    --white:   #ffffff;
    --text:    #2a2a2a;
    --text-muted: #666666;
    --border:  #e0d8ce;
    --error:   #c0392b;
    --success: #27ae60;
    --radius:  6px;
    --shadow:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

body.body--auth {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

a {
    color: var(--forest);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ── NAV ──────────────────────────────────────────────────── */

.nav {
    background: var(--forest);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo-img {
    display: block;
    height: 60px;
    width: auto;
    max-width: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav__links a {
    color: var(--sand);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.15s;
}

.nav__links a:hover {
    color: var(--cream);
    text-decoration: none;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile {
    display: none;
    background: var(--forest);
    position: sticky;
    top: 72px;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nav__mobile.is-open {
    display: block;
}

.nav__mobile-links {
    list-style: none;
}

.nav__mobile-links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__mobile-links a {
    display: block;
    padding: 16px 24px;
    color: var(--sand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav__mobile-links a:hover {
    color: var(--cream);
    text-decoration: none;
    background: rgba(255,255,255,0.04);
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/imgs/hero-bg.jpg');
    background-image: image-set(url('/imgs/hero-bg.webp') type('image/webp'), url('/imgs/hero-bg.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    max-width: 700px;
    width: 100%;
}

.hero__wordmark {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 200;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    line-height: 1;
}

.hero__rule {
    width: 40px;
    height: 1px;
    background: var(--sand);
    margin: 20px auto;
}

.hero__tagline {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--sand-light);
    margin-bottom: 32px;
}

.hero__search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__search-input {
    flex: 1;
    min-width: 260px;
    max-width: 380px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
}

.hero__postcode-input {
    width: 130px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
}

/* ── BUTTONS ──────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}

.btn--primary:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    text-decoration: none;
    color: var(--cream);
}

.btn--outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn--outline:hover {
    background: var(--forest);
    color: var(--cream);
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--cream);
    text-decoration: none;
}

.btn--full {
    width: 100%;
    text-align: center;
    display: block;
}

/* ── SECTIONS ─────────────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

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

.section__title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--forest);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.section__title--left {
    text-align: left;
}

.section__cta {
    text-align: center;
    margin-top: 40px;
}

.section--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */

.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.how-it-works__step h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--forest);
}

.how-it-works__step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ── LISTING GRID ─────────────────────────────────────────── */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.listing-card__image {
    aspect-ratio: 4/3;
    background: var(--cream);
    overflow: hidden;
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand);
    font-size: 40px;
}

.listing-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 2px;
}

.listing-card__botanical {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.listing-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.listing-card__price {
    font-size: 16px;
    font-weight: 600;
    color: var(--forest);
}

.listing-card__distance {
    font-size: 12px;
    color: var(--text-muted);
}

.listing-card__vendor {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--native {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge--pollinator {
    background: #fff8e1;
    color: #f57f17;
}

.badge--founding {
    background: var(--sand-light);
    color: var(--forest);
}

/* ── SEARCH LAYOUT ────────────────────────────────────────── */

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 72px);
}

.search-filters {
    background: var(--cream);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
}

.filters__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--forest);
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
    color: var(--text);
}

.filter-input:focus,
.filter-select:focus {
    outline: 2px solid var(--forest);
    outline-offset: 1px;
}

.filter-group--checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.search-results {
    padding: 32px;
}

.results-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── PAGINATION ───────────────────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination__btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--forest);
    transition: all 0.15s;
}

.pagination__btn:hover {
    background: var(--forest);
    color: var(--cream);
    text-decoration: none;
}

.pagination__info {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── AUTH CARD ────────────────────────────────────────────── */

.auth-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card__logo {
    display: block;
    text-align: center;
    background: var(--forest);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 28px;
}

.auth-logo-img {
    height: 28px;
    width: auto;
    display: inline-block;
}

.auth-card__title {
    font-size: 22px;
    font-weight: 300;
    color: var(--forest);
    margin-bottom: 24px;
}

.auth-card__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── FORMS ────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 18px;
}

.form-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-hint {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--forest);
}

.form-link {
    font-size: 13px;
    color: var(--forest);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
}

/* ── ALERTS ───────────────────────────────────────────────── */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert--error {
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    color: var(--error);
}

.alert--success {
    background: #edf7f0;
    border: 1px solid #c3e6cd;
    color: var(--success);
}

.alert p + p {
    margin-top: 4px;
}

/* ── FEATURE LIST ─────────────────────────────────────────── */

.feature-list {
    list-style: none;
    margin: 20px 0 28px;
}

.feature-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--sand);
}

/* ── NURSERY CTA IMAGE ────────────────────────────────────── */

.nursery-cta-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.nursery-cta-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
    background: var(--forest);
    color: var(--sand);
    padding: 40px 24px;
    text-align: center;
}

.footer a {
    color: var(--sand);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 16px;
    font-size: 13px;
}

.footer__copy {
    font-size: 12px;
    color: rgba(200, 185, 154, 0.6);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-filters {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 24px;
    }

    .how-it-works {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section--two-col {
        grid-template-columns: 1fr;
    }

    .nursery-cta-image {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 420px;
    }

    .hero__search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__search-input,
    .hero__postcode-input {
        max-width: 100%;
        width: 100%;
    }

    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

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