/* ==========================================================================
   Vega Homes — warm editorial realtor
   Warm white #faf6ef · Forest #274234 · Brass #b08d4f
   Libre Caslon Text (display) + Archivo (UI)
   ========================================================================== */

:root {
  --white: #faf6ef;
  --cream: #f1e9da;
  --forest: #274234;
  --forest-deep: #1b3024;
  --brass: #b08d4f;
  --brass-deep: #8f7038;
  --ink: #2c3a32;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 1.5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.55em;
  color: var(--forest-deep);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--brass-deep); }

.overline {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--brass-deep);
  margin: 0 0 0.9rem;
}

.overline-light { color: var(--brass); }

/* ---------- Header: brand + one scrolling caslon nav row ---------- */

.site-header {
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  border-bottom: 1px solid var(--brass);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest-deep);
  padding-bottom: 0.9rem;
}

.brand-mono {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brass-deep);
}

.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }

.brand-text em { font-style: italic; font-weight: 400; color: var(--brass-deep); }

.site-nav { max-width: 100%; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0 1rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--forest-deep);
  border-bottom-color: var(--brass);
}

.site-nav .nav-cta { color: var(--brass-deep); }

@media (max-width: 700px) {
  .site-header { padding-top: 0.9rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 1.3rem; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 3rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.hero-lede { max-width: 52ch; font-size: 1.12rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid var(--forest);
}

.btn:hover, .btn:focus-visible { background: var(--brass-deep); border-color: var(--brass-deep); }

.btn-line { background: transparent; color: var(--forest-deep); }

.btn-line:hover, .btn-line:focus-visible { background: var(--forest); color: var(--white); }

.stat-rail {
  margin: 0;
  border-left: 1.5px solid var(--brass);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-self: center;
}

.stat-rail dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  opacity: 0.7;
}

.stat-rail dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--forest-deep);
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .stat-rail {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    border-left: 0;
    border-top: 1.5px solid var(--brass);
    padding: 1.25rem 0 0;
  }
  .stat-rail dd { font-size: 1.5rem; }
}

/* ---------- Sections ---------- */

.section {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.25rem) 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  max-width: 58rem;
}

.section-green {
  max-width: none;
  background: var(--forest);
  color: #e8e2d4;
}

.section-green > * { max-width: 63.5rem; margin-left: auto; margin-right: auto; }

.section-green h2 { color: var(--white); }

.section-green a { color: var(--brass); }

.section-cream { max-width: none; background: var(--cream); }

.section-cream > * { max-width: 63.5rem; margin-left: auto; margin-right: auto; }

/* ---------- Neighborhoods ---------- */

.hood-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 50rem;
}

.hood-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cream);
}

.hood-list strong { color: var(--forest-deep); }

.text-link { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.06em; text-decoration: none; }

.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

/* ---------- Quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem;
}

.quote-grid blockquote { margin: 0; }

.quote-grid p {
  font-style: italic;
  font-size: 1.05rem;
}

.quote-grid footer {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 50rem; }

.faq-list details { border-bottom: 1px solid var(--cream); }

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  color: var(--forest-deep);
}

.faq-list summary:hover { color: var(--brass-deep); }

.faq-list details p { padding-bottom: 1.1rem; margin: 0; }

/* ---------- Contact ---------- */

.contact-lede { max-width: 46rem; font-size: 1.12rem; margin: 0; }

.contact-lede a { color: var(--white); }

/* ---------- Listings page ---------- */

.listings-head { padding-bottom: 0.5rem; }

.listings-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }

.listings-lede { max-width: 52ch; }

.listing-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  padding: 1.1rem 0;
  margin: 1.75rem 0 0.9rem;
}

.tool { display: flex; align-items: center; gap: 0.8rem; }

.tool-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
}

.seg { display: flex; }

.seg button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--forest);
  border-left-width: 0;
  color: var(--forest-deep);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.seg button:first-child { border-left-width: 1.5px; }

.seg button:hover { background: var(--cream); }

.seg button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--white);
}

.listing-count {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  min-height: 1.2em;
  margin: 0;
}

.listings-grid-wrap { padding-top: 0.75rem; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.75rem;
}

.listing {
  border: 1.5px solid var(--forest);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
}

.listing[hidden] { display: none; }

.house {
  display: block;
  width: 100%;
  height: auto;
  background: var(--cream);
  border-bottom: 1.5px solid var(--forest);
}

.listing-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }

.listing-status {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.badge-new { color: var(--brass-deep); }
.badge-sale { color: var(--forest); }
.badge-pending { color: #8c5a45; }

.listing h3 { margin-bottom: 0.1rem; font-size: 1.25rem; }

.listing-hood {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.listing-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--forest-deep);
  margin-bottom: 0.15rem;
}

.listing-specs {
  font-family: var(--sans);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.listing-blurb { font-size: 0.97rem; flex: 1; }

.listing-cta { margin: 0; }

.listing-cta a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.listing-cta a:hover, .listing-cta a:focus-visible { text-decoration: underline; }

.listings-empty {
  border: 1.5px solid var(--brass);
  background: var(--cream);
  max-width: 34rem;
  padding: 1.5rem;
  margin: 1rem 0 0;
}

.listings-empty[hidden],
.listing-tools[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--brass);
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.footer-fine { font-size: 0.8rem; opacity: 0.75; }

.social-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  justify-content: center;
  padding: 0 1.5rem;
  margin: 1.2rem auto 0;
}

.social-links a { display: inline-flex; color: var(--forest); opacity: 0.8; }

.social-links a:hover, .social-links a:focus-visible { opacity: 1; }

.social-links svg { width: 1.3rem; height: 1.3rem; }
