:root {
  --accent: #96702f;
  --accent-dark: #7a5a24;
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-2: #f1ebdd;
  --text: #211d16;
  --text-muted: #6b6255;
  --border: #e4dcc9;
  --radius: 4px;
  --radius-lg: 6px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --c-block-text: #211d16;
  --c-block-text-muted: #6b6255;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #17140f;
  --surface: #201b14;
  --surface-2: #2a2318;
  --text: #f2ede1;
  --text-muted: #b6ac97;
  --border: #3a3122;
  --c-block-text: #f2ede1;
  --c-block-text-muted: #b6ac97;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 600;
  color: var(--accent); margin: 0 0 10px;
}
.section { padding: 88px 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: 32px; max-width: 560px; }
.link-more { font-weight: 600; font-size: 14px; color: var(--accent); white-space: nowrap; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.brand-mark { width: 20px; height: 20px; background: var(--accent); border-radius: 3px; display: inline-block; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); margin: 0 auto; display: block; }

/* Hero */
.hero { padding: 64px 0 60px; }
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 46px; margin: 14px 0 20px; }
.hero .accent { color: var(--accent); }
.hero-lead { font-size: 17px; color: var(--text-muted); max-width: 480px; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg);
}
.hero-visual-badge {
  position: absolute; left: -20px; bottom: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 28px rgba(23,20,15,0.12);
}
[data-theme="dark"] .hero-visual-badge { box-shadow: none; }
.hero-visual-badge-value { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.hero-visual-badge-label { font-size: 12px; color: var(--text-muted); }
.search-bar {
  margin: 36px 0 0; max-width: 100%; display: flex; gap: 0; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px;
  text-align: left;
}
.search-field { flex: 1 1 160px; padding: 8px 14px; border-right: 1px solid var(--border); }
.search-field:last-of-type { border-right: none; }
.search-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.search-field input, .search-field select {
  border: none; background: transparent; font: inherit; font-size: 14px; color: var(--text); width: 100%; padding: 0;
}
.search-field input:focus, .search-field select:focus { outline: none; }
.search-submit { flex: 0 0 auto; margin: 4px; }

/* Clients strip */
.clients { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-row { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.clients-label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.clients-row span { font-family: var(--font-display); font-size: 16px; color: var(--text-muted); }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.listing-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.listing-thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--surface-2); }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.listing-card:hover .listing-thumb img { transform: scale(1.04); }
.listing-tag {
  position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--text);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 10px; border-radius: var(--radius);
}
.listing-body { padding: 18px 20px 22px; }
.listing-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--accent); }
.listing-period { font-size: 13px; color: var(--text-muted); font-family: var(--font-body); }
.listing-body h3 { font-size: 17px; margin: 6px 0 2px; }
.listing-address { color: var(--text-muted); font-size: 14px; }
.listing-meta { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* Values band */
.band-values { background: var(--surface-2); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-index { font-family: var(--font-display); font-size: 26px; color: var(--accent); display: block; margin-bottom: 12px; }
.value-item h3 { font-size: 17px; margin-bottom: 8px; }
.value-item p { color: var(--c-block-text-muted); font-size: 14px; }

/* Neighborhoods */
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.neighborhood-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: block;
  transition: border-color 0.15s ease;
}
.neighborhood-card:hover { border-color: var(--accent); }
.neighborhood-index { font-family: var(--font-display); font-size: 20px; color: var(--accent); display: block; margin-bottom: 30px; }
.neighborhood-card h3 { font-size: 18px; margin-bottom: 4px; }
.neighborhood-card p { color: var(--text-muted); font-size: 13px; }

/* Stats band */
.band-stats { background: var(--accent); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: 38px; color: #fff; }
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 6px; }

/* Agents */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.agent-card { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 20px; }
.agent-avatar {
  display: block; margin: 0 auto 16px; width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; object-position: top center; border: 2px solid var(--border);
}
.agent-card h3 { font-size: 17px; margin-bottom: 4px; }
.agent-role { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.agent-contact { font-size: 13px; color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: 30px; margin-bottom: 18px; }
.about-copy p { color: var(--text-muted); }
.pull-quote { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--font-display); font-size: 19px; font-style: italic; color: var(--text); margin-bottom: 8px; }
.pull-quote span { font-size: 13px; color: var(--text-muted); }
.about-panel { background: var(--surface-2); border-radius: var(--radius-lg); padding: 28px; }
.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.about-facts li {
  display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border);
  color: var(--c-block-text-muted); font-size: 14px;
}
.about-facts li:last-child { border-bottom: none; }
.about-facts strong { color: var(--c-block-text); font-family: var(--font-display); font-weight: 600; }

/* Testimonials */
.band-testimonials { background: var(--surface-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin: 0; }
.testimonial-card p { font-size: 15px; color: var(--text); margin-bottom: 18px; }
.testimonial-card footer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-copy h2 { font-size: 30px; margin-bottom: 14px; }
.contact-copy p { color: var(--text-muted); margin-bottom: 24px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14px; }
.contact-details strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px; resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.footer-bottom { margin-top: 40px; border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 13px; color: var(--text-muted); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; font-size: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .listing-grid, .neighborhood-grid, .agent-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-visual-badge { left: 12px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 24px; visibility: hidden;
  }
  .main-nav.is-open { visibility: visible; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .hero h1 { font-size: 36px; }
  .search-bar { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-field:last-of-type { border-bottom: none; }
  .search-submit { width: 100%; }
  .listing-grid, .neighborhood-grid, .agent-grid, .testimonial-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Footer credit logo (added) */
.template-credit { display: flex; align-items: center; gap: 6px; }
.template-credit .credit-logo { height: 16px; width: auto; }
.template-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sticky book/contact bar (added) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--accent-dark); border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px;
}
.sticky-cta-text { color: #fff; font-size: 0.92rem; }
.sticky-cta-text strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.sticky-cta-text span { color: rgba(255, 255, 255, 0.68); }
.sticky-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; color: var(--accent-dark); font-weight: 600; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 4px; white-space: nowrap; transition: background-color 0.15s ease;
}
.sticky-cta-btn:hover { background: rgba(255, 255, 255, 0.88); }
@media (max-width: 640px) {
  .sticky-cta-text span { display: none; }
}
