/* ============================================================
   WASATCH BACK LAND — Design System v5 (White + Sage)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --sage-dk:    #2D4A2E;
  --sage-mid:   #4A7A4A;
  --sage-lt:    #7AAB7A;
  --sage-bg:    #EEF4EE;
  --sage-line:  #C8DEC8;
  --stone:      #F2F0EB;
  --limestone:  #E8E0CC;
  --ink:        #1A2A1A;
  --muted:      #6B7B6B;
  --border:     #DDE8DD;
  --white:      #FFFFFF;
  --gold:       #B8860B;
  --gold-bg:    #FDF8EC;
  --gold-line:  #E8D08A;
  --blue:       #1E40AF;
  --blue-bg:    #EFF6FF;
  --blue-line:  #BFDBFE;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(45,74,46,0.06);
  --shadow-md: 0 4px 16px rgba(45,74,46,0.1);
  --shadow-lg: 0 12px 40px rgba(45,74,46,0.15);

  --max-width: 1200px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center; padding: 0 40px;
}
.nav-inner { max-width: var(--max-width); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-main { font-family: var(--font-display); font-size: 1.2rem; color: var(--sage-dk); letter-spacing: -0.01em; }
.nav-logo-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-lt); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--sage-dk); font-weight: 600; }
.nav-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-fsbo { font-size: 0.78rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--sage-mid); color: var(--sage-mid); transition: all 0.15s; }
.nav-fsbo:hover { background: var(--sage-bg); }
.nav-cta { background: var(--sage-mid); color: var(--white); font-size: 0.78rem; font-weight: 600; padding: 9px 20px; border-radius: 999px; transition: background 0.15s; }
.nav-cta:hover { background: var(--sage-dk); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sage-dk); border-radius: 2px; transition: all 0.2s; }

/* ── HERO ── */
.hero { padding-top: var(--nav-height); min-height: 100vh; background: var(--white); display: grid; grid-template-rows: 1fr auto; }
.hero-body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 32px 48px; }
.hero-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-mid); background: var(--sage-bg); border: 1px solid var(--sage-line); padding: 5px 14px; border-radius: 999px; margin-bottom: 24px; }
.hero-eye::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-mid); }
.hero-h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; color: var(--sage-dk); line-height: 1.08; margin-bottom: 18px; max-width: 720px; }
.hero-h1 em { font-style: italic; color: var(--sage-mid); }
.hero-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 500px; margin: 0 auto 36px; }

/* ── AI BAR ── */
.ai-wrap { width: 100%; max-width: 680px; margin: 0 auto 16px; }
.ai-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-lt); text-align: left; padding: 0 4px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ai-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-lt); }
.ai-bar { display: flex; align-items: center; gap: 10px; background: var(--sage-dk); border-radius: var(--radius-md); padding: 12px 16px; }
.ai-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--sage-mid); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; color: var(--white); font-weight: 600; }
.ai-input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-ui); font-size: 0.9rem; color: var(--white); }
.ai-input::placeholder { color: rgba(255,255,255,0.4); }
.ai-send { background: var(--sage-mid); color: var(--white); border: none; border-radius: 8px; font-size: 0.75rem; font-weight: 600; padding: 7px 14px; cursor: pointer; letter-spacing: 0.04em; transition: background 0.15s; }
.ai-send:hover { background: var(--sage-lt); }
.ai-suggestions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.ai-suggestion { font-size: 0.72rem; color: var(--muted); background: var(--stone); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all 0.15s; }
.ai-suggestion:hover { border-color: var(--sage-mid); color: var(--sage-dk); }

/* ── SEARCH BAR ── */
.search-wrap { width: 100%; max-width: 680px; margin: 0 auto; }
.search-or { text-align: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.search-or::before, .search-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.search-bar { display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--sage-mid); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 24px rgba(74,122,74,0.12); }
.search-bar-input { flex: 1; border: none; outline: none; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink); padding: 14px 20px; background: transparent; }
.search-bar-input::placeholder { color: #A0B0A0; }
.search-bar-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.search-bar-select { border: none; outline: none; background: transparent; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); padding: 14px 14px; cursor: pointer; min-width: 130px; -webkit-appearance: none; }
.search-bar-btn { background: var(--sage-mid); color: var(--white); border: none; cursor: pointer; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; padding: 14px 24px; letter-spacing: 0.04em; transition: background 0.15s; white-space: nowrap; border-radius: 0 9px 9px 0; }
.search-bar-btn:hover { background: var(--sage-dk); }
.mls-tags { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.mls-tag { font-size: 0.7rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.mls-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-lt); }

/* ── STAT BAR ── */
.stats-bar { background: var(--sage-bg); border-top: 1px solid var(--sage-line); padding: 20px 40px; }
.stats-bar-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-around; align-items: center; }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--sage-dk); line-height: 1; }
.stat-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-lt); margin-top: 3px; }
.stat-divider { width: 1px; height: 32px; background: var(--sage-line); }

/* ── SERVICE STRIP ── */
.service-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 40px; overflow-x: auto; }
.service-strip-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; min-width: max-content; }
.strip-lbl { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 15px 18px 15px 0; white-space: nowrap; }
.strip-link { font-size: 0.78rem; font-weight: 500; color: var(--sage-dk); padding: 15px 16px; border-left: 1px solid var(--border); display: flex; align-items: center; gap: 6px; transition: background 0.15s; white-space: nowrap; }
.strip-link:hover { background: var(--sage-bg); }
.strip-link.county { color: var(--muted); font-size: 0.74rem; }
.strip-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; align-self: center; }
.strip-all { font-size: 0.72rem; font-weight: 600; color: var(--sage-mid); padding: 15px 0 15px 18px; border-left: 1px solid var(--border); white-space: nowrap; }

/* ── QUICK FILTERS ── */
.quick-filters { background: var(--stone); border-bottom: 1px solid var(--border); padding: 14px 40px; position: sticky; top: var(--nav-height); z-index: 50; overflow-x: auto; }
.quick-filters-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 8px; min-width: max-content; }
.filter-chip { font-size: 0.76rem; font-weight: 500; color: var(--muted); background: var(--white); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.filter-chip:hover { border-color: var(--sage-mid); color: var(--sage-dk); }
.filter-chip.active { background: var(--sage-mid); color: var(--white); border-color: var(--sage-mid); }
.filter-chip-gold.active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── SECTION LAYOUT ── */
.section { padding: 64px 40px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-eye { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 10px; }
.section-headline { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; color: var(--sage-dk); line-height: 1.15; margin-bottom: 12px; }
.section-sub { font-size: 0.95rem; color: var(--muted); max-width: 520px; line-height: 1.75; }

/* ── LISTING CARDS ── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
.listing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; }
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-img-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sage-bg) 0%, var(--stone) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.listing-body { padding: 18px 20px; }
.listing-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--sage-dk); margin-bottom: 3px; }
.listing-address { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.listing-location { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.listing-meta { display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.listing-meta-item { font-size: 0.76rem; color: var(--muted); }
.listing-meta-item strong { color: var(--sage-dk); font-weight: 600; }

/* ── CORRIDOR CARDS ── */
.corridor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.corridor-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; display: flex; align-items: center; justify-content: space-between; transition: all 0.15s; cursor: pointer; }
.corridor-card:hover { border-color: var(--sage-mid); box-shadow: var(--shadow-sm); }
.corridor-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--sage-dk); margin-bottom: 3px; }
.corridor-sub { font-size: 0.76rem; color: var(--muted); }
.corridor-count { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: var(--sage-mid); text-align: right; white-space: nowrap; }

/* ── CTA SECTION ── */
.cta-section { background: var(--sage-dk); padding: 80px 40px; text-align: center; }
.cta-headline { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; color: var(--white); margin-bottom: 14px; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary { background: var(--sage-mid); color: var(--white); font-size: 0.85rem; font-weight: 600; padding: 13px 28px; border-radius: 999px; display: inline-block; transition: background 0.15s; }
.btn-primary:hover { background: var(--sage-dk); }
.btn-white { background: var(--white); color: var(--sage-dk); font-size: 0.85rem; font-weight: 600; padding: 13px 28px; border-radius: 999px; display: inline-block; transition: background 0.15s; }
.btn-white:hover { background: var(--sage-bg); }
.btn-outline { background: transparent; color: var(--white); font-size: 0.85rem; font-weight: 500; padding: 12px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); display: inline-block; transition: border-color 0.15s; }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.btn-sage-outline { background: transparent; color: var(--sage-mid); font-size: 0.85rem; font-weight: 600; padding: 12px 28px; border-radius: 999px; border: 1.5px solid var(--sage-mid); display: inline-block; transition: all 0.15s; }
.btn-sage-outline:hover { background: var(--sage-bg); }

/* ── FOOTER ── */
.footer { background: var(--ink); padding: 48px 40px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 240px; }
.footer-col-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.83rem; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.28); line-height: 1.6; }
.footer-legal a { color: rgba(255,255,255,0.28); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
.mls-badges { display: flex; gap: 8px; }
.mls-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; color: rgba(255,255,255,0.28); }

/* ── TAGS ── */
.tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sage-bg); border: 1px solid var(--sage-line); color: var(--sage-dk); padding: 3px 8px; border-radius: 4px; }
.post-cat { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; }
.cat-land-banking { background:#FDF8EC; border:1px solid #E8D08A; color:#8A6A00; }
.cat-water { background:var(--blue-bg); border:1px solid var(--blue-line); color:var(--blue); }
.cat-community { background:var(--sage-bg); border:1px solid var(--sage-line); color:var(--sage-mid); }
.cat-market { background:#FDF2F8; border:1px solid #F0ABFC; color:#7E22CE; }
.cat-how-to { background:#F0FDF4; border:1px solid #BBF7D0; color:#15803D; }

/* ── UTILITIES ── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }
.text-sage { color: var(--sage-mid); }
.text-muted { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-fsbo { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .section { padding: 48px 20px; }
  .stats-bar { padding: 18px 20px; }
  .stats-bar-inner { gap: 16px; }
  .stat-divider { display: none; }
  .search-bar { flex-direction: column; border-radius: var(--radius-md); }
  .search-bar-btn { border-radius: 0 0 9px 9px; width: 100%; padding: 13px; text-align: center; }
  .search-bar-divider { display: none; }
  .search-bar-select { width: 100%; }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-section { padding: 60px 20px; }
  .footer { padding: 40px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
