/* ==========================================================================
   Section Shop — shared base stylesheet
   Mobile-first (spec §4). Breakpoint: 760px.
   Later agents extend via separate files:
     assets/css/map.css    — availability map (spec §7)
     assets/css/home.css   — home page sections
     assets/css/forms.css  — registration / offer / contact forms
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette — professional real-estate navy + gold (spm-derived) */
    --navy:        #0B192C;
    --navy-800:    #12253E;
    --navy-700:    #1B3353;
    --gold:        #D4AF37;
    --gold-dark:   #B8952B;

    /* Neutrals */
    --ink:         #1E293B;
    --muted:       #64748B;
    --line:        #E2E8F0;
    --surface:     #FFFFFF;
    --surface-alt: #F8FAFC;

    /* Status colours (spec §7 status model) */
    --status-available:      var(--gold);
    --status-under-offer:    #F59E0B;
    --status-under-contract: #3B82F6;
    --status-sold:           #94A3B8;

    /* Feedback */
    --success: #15803D;
    --error:   #B91C1C;

    /* Type */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;

    /* Shape & rhythm */
    --radius:    10px;
    --radius-sm: 6px;
    --shadow:    0 1px 3px rgba(11, 25, 44, .08), 0 4px 14px rgba(11, 25, 44, .06);
    --shadow-lg: 0 8px 30px rgba(11, 25, 44, .14);
    --container: 1160px;

    --bp-mobile: 760px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--navy-700); }
a:hover { color: var(--gold-dark); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Visible keyboard focus everywhere (spec §7 accessibility) */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Header / navigation (mobile-first)
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 12px;
}

.site-nav__brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: -.01em;
    padding-block: 10px;
}
.site-nav__brand:hover { color: #fff; }
.site-nav__brand-dot { color: var(--gold); }

.site-nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.site-nav__toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.site-nav__menu {
    display: none;                    /* collapsed on mobile until toggled */
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px 20px 20px;
    list-style: none;
    background: var(--navy-800);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-nav__menu.is-open { display: flex; }

.site-nav__menu a {
    display: block;
    padding: 10px 6px;
    color: #E6EDF6;
    text-decoration: none;
    font-weight: 500;
}
.site-nav__menu a:hover { color: var(--gold); }

.site-nav__cta {
    text-align: center;
    margin-top: 8px;
}

@media (min-width: 760px) {
    .site-nav__toggle { display: none; }

    .site-nav__menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        background: transparent;
        border-top: 0;
    }
    .site-nav__menu a { padding: 8px 10px; font-size: .95rem; }
    .site-nav__cta { margin-top: 0; margin-left: 8px; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
}
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }

.btn--navy {
    background: var(--navy);
    color: #fff;
}
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn--block { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card__media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-alt); }

.card__body { padding: 18px 20px 20px; }

.card__title { margin: 0 0 4px; font-size: 1.15rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--gold-dark); }

.card__meta { color: var(--muted); font-size: .9rem; margin: 0; }

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 760px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Status badge (shared by lots/availability UI) */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    background: var(--status-available);
}
.badge--under-offer    { background: var(--status-under-offer); color: #fff; }
.badge--under-contract { background: var(--status-under-contract); color: #fff; }
.badge--sold           { background: var(--status-sold); color: #fff; }

/* --------------------------------------------------------------------------
   6. Forms (base only — forms.css extends)
   -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid var(--gold);
    outline-offset: 0;
    border-color: var(--gold-dark);
}

.field .field__hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }

/* Honeypot: present in DOM, invisible to humans (spec §13) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Flash messages
   -------------------------------------------------------------------------- */
.flash {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-alt);
}
.flash--success { border-color: var(--success); color: var(--success); }
.flash--error   { border-color: var(--error);   color: var(--error); }

/* --------------------------------------------------------------------------
   8. Hero (generic; home.css refines)
   -------------------------------------------------------------------------- */
.hero {
    background: var(--navy);
    color: #fff;
    padding: 64px 0 56px;
    text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
.hero__tagline { color: var(--gold); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.25rem); }
.hero__lead { color: #C9D6E6; max-width: 640px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   9. Sections & footer
   -------------------------------------------------------------------------- */
.section { padding: 48px 0; }
.section--alt { background: var(--surface-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }

.site-footer {
    background: var(--navy);
    color: #C9D6E6;
    padding: 48px 0 28px;
    margin-top: 48px;
    font-size: .92rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
}
@media (min-width: 760px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__wordmark { color: #fff; font-weight: 800; font-size: 1.25rem; margin: 0 0 4px; }
.site-footer__tagline { color: var(--gold); margin: 0 0 10px; }
.site-footer__legal { color: #C9D6E6; font-weight: 600; margin: 0; }
.site-footer__heading { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 6px; }
.site-footer__col a { color: #C9D6E6; text-decoration: none; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__disclaimer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
    font-size: .8rem;
    color: #8FA3BC;
    line-height: 1.6;
}
.site-footer__copy { font-size: .8rem; color: #8FA3BC; margin: 0; }

/* --------------------------------------------------------------------------
   10. Motion preferences (spec §7 accessibility)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   EXTENSION POINTS — leave these sections at the bottom.
   Later agents: add assets/css/map.css, home.css, forms.css rather than
   growing this file (spec §10).
   ========================================================================== */
/* --- MAP (assets/css/map.css): SVG overlay, hotspots, legend, popup -------- */
/* --- HOME (assets/css/home.css): hero search, featured grid, Land Index ---- */
/* --- FORMS (assets/css/forms.css): register/offer/contact layouts --------- */
