/* ==========================================================================
   Excellent House — Tony Verde, Broker
   Design tokens: Navy Deep / Ivory Sand / Muted Brass / Seafoam
   Display: Fraunces  |  Body: Inter  |  Data/Utility: IBM Plex Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Brand colors sampled from Excellent House logo */
  --navy: #35363a;         /* header/footer/hero dark (was navy) */
  --navy-soft: #46474b;
  --ivory: #f6f7f6;        /* page background (was ivory) */
  --ivory-dim: #eceeec;
  --brass: #27a449;        /* brand green — primary accent/buttons (was brass) */
  --brass-light: #4fc26c;  /* lighter green — hovers, ticker */
  --seafoam: #1e8339;      /* deeper green — focus rings, secondary accent */
  --charcoal: #2b2b2d;     /* body text — brand gray, darkened for contrast */
  --white: #ffffff;
  --danger: #b5493f;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--navy);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 1px 0 rgba(43,43,45,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.brand .brand-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand .brand-text .g { color: var(--brass); }
.brand .brand-text .k { color: var(--charcoal); }

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  opacity: 0.75;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  border-color: var(--brass);
}

.header-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--brass);
  color: var(--white);
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
}

.header-cta:hover { background: var(--seafoam); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53,54,58,0.55), rgba(53,54,58,0.88)),
    url('/images/photo-pool.jpg');
  background-size: cover;
  background-position: center 30%;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seafoam);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: var(--white);
  max-width: 14ch;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}

.hero p.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(242,237,227,0.82);
}

/* ---------- Search bar (signature element) ---------- */
.search-panel {
  margin-top: 40px;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 720px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.55);
}

.search-panel input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
}

.search-panel input[type="text"]:focus {
  outline: 2px solid var(--seafoam);
  outline-offset: -2px;
  border-radius: 2px;
}

.search-panel button {
  border: none;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 0 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-panel button:hover { background: var(--navy-soft); }

/* City ticker strip — signature nav motif */
.city-ticker {
  border-top: 1px solid rgba(242,237,227,0.14);
  border-bottom: 1px solid rgba(242,237,227,0.14);
  background: var(--navy-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.city-ticker::-webkit-scrollbar { display: none; }

.city-ticker ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.city-ticker li {
  border-right: 1px solid rgba(242,237,227,0.1);
  flex-shrink: 0;
}

.city-ticker a {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(242,237,227,0.72);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.city-ticker a:hover {
  background: rgba(111,169,160,0.14);
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(34,48,58,0.14);
  padding-bottom: 16px;
}

.section-head h2 {
  font-size: 28px;
}

.section-head .view-all {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1px solid var(--brass);
}

.section-alt { background: var(--white); }

/* ---------- Listing cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--white);
  border: 1px solid rgba(34,48,58,0.1);
  display: flex;
  flex-direction: column;
}

.listing-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--seafoam), var(--navy-soft));
  position: relative;
}

.listing-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--navy);
  padding: 4px 8px;
}

.listing-body { padding: 18px; }

.listing-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}

.listing-address {
  font-size: 14px;
  color: var(--charcoal);
  margin-top: 4px;
}

.listing-meta {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--navy-soft);
  border-top: 1px solid rgba(34,48,58,0.08);
  padding-top: 12px;
}

.listing-mls {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #7c8a92;
}

/* ---------- Filter bar (search page) ---------- */
.filter-bar {
  background: var(--white);
  border: 1px solid rgba(34,48,58,0.12);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 32px;
}

.filter-field { display: flex; flex-direction: column; gap: 6px; }

.filter-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8a92;
}

.filter-field select,
.filter-field input {
  border: 1px solid rgba(34,48,58,0.2);
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--ivory);
  min-width: 140px;
}

.filter-bar button {
  border: none;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 11px 20px;
  cursor: pointer;
}
.filter-bar button:hover { background: var(--navy-soft); }

.results-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7c8a92;
  margin-bottom: 18px;
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--navy), var(--seafoam));
  background-size: cover;
  background-position: center;
}

.split h2 { font-size: 30px; margin-bottom: 16px; }
.split p { color: var(--charcoal); margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: var(--font-mono);
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-soft); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border: 1px solid var(--navy);
}
.btn-secondary:hover { background: rgba(13,36,54,0.06); }

.btn-secondary[aria-pressed="true"] {
  background: var(--brass);
  color: var(--white);
  border-color: var(--brass);
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid rgba(34,48,58,0.12);
  padding: 32px;
  max-width: 560px;
}

.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8a92;
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid rgba(34,48,58,0.2);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--ivory);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 12px;
  color: #7c8a92;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(242,237,227,0.7);
  padding: 48px 0 28px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(242,237,227,0.12);
}

.footer-grid h4 {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--brass-light); }

.footer-legal {
  padding-top: 22px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  line-height: 1.7;
  color: rgba(242,237,227,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .main-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .search-panel { flex-direction: column; }
  .search-panel button { padding: 12px; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--seafoam);
  outline-offset: 2px;
}
