/* ==========================================================================
   Section Shop — home & content page styles (spec §6, §10 extension point)
   Extends assets/css/style.css tokens. Mobile-first; breakpoint 760px.
   Covers: home hero/search, stats strip, steps, bands, development cards,
   post cards, guides TOC layout, article typography, legal pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home hero (refines .hero from style.css)
   -------------------------------------------------------------------------- */
.hero--home { padding: 72px 0 60px; }

.hero__kicker {
    color: var(--gold);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.hero-search {
    max-width: 560px;
    margin: 28px auto 0;
}
.hero-search__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-search__row input[type="search"] {
    flex: 1;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 0;
    border-radius: var(--radius-sm);
}
.hero-search__row input[type="search"]:focus {
    outline: 3px solid var(--gold);
    outline-offset: 0;
}
@media (min-width: 760px) {
    .hero-search__row { flex-direction: row; }
}

.hero__trust {
    margin: 22px 0 0;
    font-size: .85rem;
    color: #8FA3BC;
}

/* --------------------------------------------------------------------------
   2. Stats strip (live from DB; static fallback copy when DB is down)
   -------------------------------------------------------------------------- */
.stats-strip {
    background: var(--navy-800);
    color: #C9D6E6;
    padding: 22px 0;
}
.stats-strip__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
}
@media (min-width: 760px) {
    .stats-strip__grid { grid-template-columns: repeat(3, 1fr); }
}
.stats-strip .stat__num {
    display: block;
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.stats-strip .stat__label { font-size: .9rem; }
.stats-strip__fallback {
    margin: 0;
    text-align: center;
    color: #C9D6E6;
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   3. Development cards (featured grid on home)
   -------------------------------------------------------------------------- */
.dev-card__availability {
    display: inline-block;
    margin: 0 0 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.dev-card__price {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
}
.dev-card__link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    text-decoration: none;
}
.dev-card__link::after { content: " →"; }

/* --------------------------------------------------------------------------
   4. Steps ("How it works")
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    counter-reset: step;
}
@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 22px;
}
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.step__title { margin: 0 0 6px; font-size: 1.1rem; }
.step__text { margin: 0; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   5. Bands (developers CTA, register CTA)
   -------------------------------------------------------------------------- */
.band {
    background: var(--navy);
    color: #C9D6E6;
    padding: 52px 0;
    text-align: center;
}
.band h2 { color: #fff; }
.band p { max-width: 620px; margin-inline: auto; }
.band--gold {
    background: var(--gold);
    color: var(--navy);
}
.band--gold h2 { color: var(--navy); }
.band__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}
@media (min-width: 760px) {
    .band__actions { flex-direction: row; }
}
.band .btn--ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}
.band .btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* --------------------------------------------------------------------------
   6. Post cards (news teasers, guides teaser)
   -------------------------------------------------------------------------- */
.post-card__date {
    color: var(--muted);
    font-size: .85rem;
    margin: 0 0 6px;
}
.post-card__excerpt { margin: 8px 0 0; font-size: .95rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   7. Guides layout: sticky TOC + article (spec §6 knowledge hub)
   -------------------------------------------------------------------------- */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.guide-toc {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.guide-toc__heading {
    margin: 0 0 8px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { margin-bottom: 6px; }
.guide-toc a { text-decoration: none; font-size: .95rem; }
.guide-toc a:hover { color: var(--gold-dark); }

@media (min-width: 760px) {
    .guide-layout { grid-template-columns: 280px 1fr; align-items: start; }
    .guide-toc { position: sticky; top: 76px; }
}

/* --------------------------------------------------------------------------
   8. Article typography (guides, news posts, legal pages)
   -------------------------------------------------------------------------- */
.article { max-width: 760px; }
.article > h2 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 1.5rem;
}
.article > h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.article h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.article p, .article li { line-height: 1.7; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article blockquote {
    margin: 0 0 1em;
    padding: 12px 18px;
    border-left: 4px solid var(--gold);
    background: var(--surface-alt);
    color: var(--navy-700);
}
.article img { border-radius: var(--radius); }

.guide-section__cta {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: .95rem;
    margin: 1.2rem 0 0;
}

/* News post page */
.post-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
    background: var(--surface-alt);
}
.post-meta { color: var(--muted); font-size: .9rem; }

/* Intro / note blocks */
.intro-block {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 32px;
}
.intro-block h2 { margin-top: 0; font-size: 1.2rem; }

/* Legal pages: simple single column */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   9. Development identity: suburb-first headings + feature badges
   (shared by development.php, developments.php, region.php, index.php)
   -------------------------------------------------------------------------- */

/* Development name as secondary line under the suburb heading */
.dev-head__name {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-700);
}

/* Development name as secondary line on cards (suburb is the card title) */
.card__project {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
}

/* Feature badges — gold-outline pills ("✓ Titles Issued" etc.) */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 0;
}
.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    background: rgba(212, 175, 55, .08);
    color: var(--navy);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.feature-badges--sm { gap: 6px; margin: 8px 0; }
.feature-badge--sm { padding: 2px 9px; font-size: .75rem; }

/* Supporting line under the register CTA row (development.php) */
.share-row__support {
    margin: 0 0 8px;
    font-size: .88rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Availability table: mobile card layout (labels from data-label;
       columns hidden server-side simply have no cell to label)
   -------------------------------------------------------------------------- */
@media (max-width: 759px) {
    .lot-table thead { display: none; }
    .lot-table,
    .lot-table tbody,
    .lot-table tr,
    .lot-table td { display: block; width: 100%; }
    .lot-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
    .lot-table tbody tr:last-child { border-bottom: 0; }
    .lot-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-bottom: 0;
        padding: 4px 0;
        text-align: right;
    }
    .lot-table td::before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--muted);
        text-align: left;
    }
    .lot-table td.num { text-align: right; }
}
