/* Neighborhood Quiz — warm earthy real-estate design system
   Palette: clay/terracotta + espresso brown + cream/parchment + sage + muted slate-blue
   Type: Fraunces (display serif) + Nunito Sans (body) */

:root {
  --clay: #b0653a;
  --clay-dark: #8f4f2c;
  --clay-soft: #d98b5f;
  --espresso: #3b2c20;
  --espresso-soft: #5b4636;
  --cream: #faf5ec;
  --parchment: #f2e8d7;
  --card: #fffdf8;
  --sage: #7f8a6f;
  --sage-dark: #616d52;
  --sage-light: #e6eadd;
  --slate-blue: #3f6382;
  --slate-blue-dark: #315070;
  --sand-line: #e4d6bf;
  --text: #33271c;
  --text-soft: #6d5c4b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(59, 44, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(59, 44, 32, 0.12);
  --shadow-lg: 0 20px 50px rgba(59, 44, 32, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--espresso);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--clay-dark); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }
strong { color: var(--espresso); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.4rem; color: var(--espresso); }
.brand:hover { color: var(--clay); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--espresso-soft); font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a.active { color: var(--clay); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--espresso); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #fff; font-weight: 700; font-family: 'Nunito Sans', sans-serif;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; font-size: 1rem;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--espresso); border: 2px solid var(--clay);
  box-shadow: none;
}
.btn-outline:hover { background: var(--clay); color: #fff; }
.btn-slate { background: linear-gradient(135deg, var(--slate-blue), var(--slate-blue-dark)); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero-media { position: relative; min-height: 460px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,32,22,.82) 8%, rgba(45,32,22,.32) 55%, rgba(45,32,22,.15) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 40px 0 46px; max-width: 820px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 800; color: #ffe9d6; background: rgba(176,101,58,.55); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero .lead { font-size: 1.2rem; color: #f6ece0; max-width: 640px; margin-bottom: 22px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (compact, for interior pages) */
.pagehead { background: linear-gradient(135deg, var(--parchment), #efe0c9); border-bottom: 1px solid var(--sand-line); }
.pagehead .container { padding-top: 46px; padding-bottom: 40px; }
.pagehead .eyebrow { color: var(--clay-dark); text-transform: uppercase; letter-spacing: .15em; font-weight: 800; font-size: .78rem; }

/* ---------- Content ---------- */
.content { padding: 52px 0 64px; }
.content .container-narrow > p:first-of-type { font-size: 1.15rem; color: var(--text-soft); }
figure { margin: 30px 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
figcaption { font-size: .9rem; color: var(--text-soft); margin-top: 10px; text-align: center; font-style: italic; }
.content a { border-bottom: 1px solid rgba(63,99,130,.35); }
.content a:hover { border-bottom-color: var(--clay); }

blockquote { margin: 26px 0; padding: 4px 22px; border-left: 4px solid var(--sage); background: var(--sage-light);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--espresso-soft); }

/* ---------- Market card grid ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--parchment); border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-top: 0; color: var(--espresso); }
.card-body p { color: var(--text-soft); font-size: .98rem; }
.card-link { margin-top: auto; font-weight: 700; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Feature / step chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { background: var(--card); border: 1px solid var(--sand-line); border-radius: 999px; padding: 10px 18px;
  font-weight: 600; color: var(--espresso-soft); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 8px; }
.chip .bi { color: var(--clay); }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 10px; }
.feature .ficon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); box-shadow: var(--shadow-sm); }
.feature:nth-child(2) .ficon { background: linear-gradient(135deg, var(--clay-soft), var(--clay)); }
.feature:nth-child(3) .ficon { background: linear-gradient(135deg, var(--slate-blue), var(--slate-blue-dark)); }
.feature h3 { margin-top: 0; }
.feature p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Interactive mini quiz ---------- */
.quizbox { background: var(--card); border: 1px solid var(--sand-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 34px; max-width: 720px; margin: 0 auto; }
.quiz-progress { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--sage-dark); margin-bottom: 8px; }
.quiz-q { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--espresso); margin-bottom: 20px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt { text-align: left; background: var(--cream); border: 2px solid var(--sand-line); border-radius: var(--radius);
  padding: 14px 18px; font-size: 1.02rem; font-weight: 600; color: var(--espresso-soft); cursor: pointer;
  font-family: inherit; transition: all .14s ease; }
.quiz-opt:hover { border-color: var(--clay); background: #fff; transform: translateX(3px); }
.quiz-result { text-align: center; }
.quiz-result .bi { font-size: 3rem; color: var(--sage); }
.quiz-bar { height: 7px; background: var(--sand-line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.quiz-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--clay-soft), var(--clay)); transition: width .3s ease; }

/* ---------- Contact form (SEO-only) ---------- */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--sand-line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--card); color: var(--text); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--clay); }

/* ---------- Callout ---------- */
.callout { background: linear-gradient(135deg, var(--espresso), var(--espresso-soft)); color: #f6ece0;
  border-radius: var(--radius-lg); padding: 44px; text-align: center; box-shadow: var(--shadow-md); }
.callout h2 { color: #fff; margin-top: 0; }
.callout p { color: #eaddcf; max-width: 620px; margin: 0 auto 22px; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #d9c9b6; padding: 54px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-family: 'Fraunces', serif; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer a { color: #d9c9b6; display: block; margin-bottom: 9px; font-size: .98rem; }
.site-footer a:hover { color: var(--clay-soft); }
.footer-brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-size: 1.35rem; color: #fff; margin-bottom: 12px; }
.footer-brand .mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); display: grid; place-items: center; color: #fff; }
.footer-about { color: #b7a794; font-size: .96rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid #4d3b2b; padding-top: 20px; font-size: .88rem; color: #a3917d; text-align: center; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound .big { font-family: 'Fraunces', serif; font-size: clamp(4rem, 14vw, 8rem); color: var(--clay); line-height: 1; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand-line); padding: 8px 22px 18px;
    box-shadow: var(--shadow-md); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--sand-line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-media { min-height: 400px; }
  .callout { padding: 32px 22px; }
  .quizbox { padding: 24px; }
}
