/* =====================================================================
   Modern design — sewickleyrealtor.com

   Carried forward from the original site:
     #552448  plum       the brand colour, straight out of the old style.css
     #949494  grey       darkened to #6B6069 for text contrast, kept for rules
     ::       the section marker, now a brass glyph

   New:
     #A8894C  brass      small accents only, never a fill
     #E4E6E1  valley     page ground
     #2A1523  aubergine  ink

   Two families: Faustina (display + figures) and Figtree (body/UI).
   ===================================================================== */

:root {
  --plum:    #552448;
  --plum-dk: #3C1933;
  --ink:     #2A1523;
  --muted:   #6B6069;
  --rule:    #D6D2CC;
  --valley:  #E4E6E1;
  --paper:   #FFFFFF;
  --brass:   #A8894C;

  --measure: 68ch;
  --max:     1080px;
  --pad:     clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--valley);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: Faustina, Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--plum);
  letter-spacing: -0.01em;
}

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: var(--pad); top: 0.5rem; z-index: 20;
  background: var(--paper); color: var(--plum);
  padding: 0.5rem 0.875rem; border-radius: 3px;
}

/* ---- utility bar: the old purple menu strip, repurposed --------------- */

.util {
  background: var(--plum);
  color: #E8DCE4;
  font-size: 0.8125rem;
}
.util .wrap {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
  align-items: center; justify-content: flex-end;
  padding-block: 0.5rem;
}
.util a { color: #F4ECF1; text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
.util .lbl { color: #C4A8BA; }

/* ---- masthead -------------------------------------------------------- */

.mast { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1.5rem;
}
.mark { text-decoration: none; display: block; }
.mark .name {
  font-family: Faustina, Georgia, serif;
  font-size: 1.5rem; font-weight: 500; color: var(--plum);
  line-height: 1.1; display: block;
}
.mark .role {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 0.25rem;
}

nav.main ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem;
}
nav.main a {
  text-decoration: none; font-size: 0.9375rem; color: var(--ink);
  padding-block: 0.25rem; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--plum); border-bottom-color: var(--brass); }
nav.main a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--plum); }

/* ---- hero: the four Ps ---------------------------------------------- */

.hero { background: var(--paper); }
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

.creed { margin: 0; padding: 0; list-style: none; }
.creed li {
  font-family: Faustina, Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1.05;
  color: var(--plum);
  font-weight: 500;
  padding-block: 0.35em;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.015em;
}
.creed li:first-child { border-top: none; padding-top: 0; }
.creed li::first-letter { color: var(--brass); }

.hero .lede {
  margin: 1.75rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.hero figure { margin: 0; }
.hero figure img { width: 100%; border-radius: 2px; }
.hero figcaption {
  margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted);
}

/* ---- page header (non-home) ----------------------------------------- */

.phead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.phead .wrap { padding-block: clamp(2rem, 5vw, 3.25rem); }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 0.625rem;
}
.phead h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
.phead .sub { margin: 0.875rem 0 0; color: var(--muted); max-width: var(--measure); }

/* ---- listings type nav ------------------------------------------------
   The main nav has one flat "Listings" link, which reaches residential only.
   This strip is how commercial, multi-unit and sold are reached; before it
   they were linked from the footer and nowhere else. No hover and no JS, so
   it works on touch, which is exactly what the legacy dropdown does not. */

.types { margin-top: 1.5rem; }
.types ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.types a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.types a:hover { color: var(--plum); border-color: var(--brass); }
.types a[aria-current="page"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--paper);
}

/* ---- sections -------------------------------------------------------- */

main { display: block; }

.band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.band.paper { background: var(--paper); }

.band > .wrap > h2 {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.band > .wrap > h2::before {
  content: "::";
  color: var(--brass);
  margin-right: 0.5rem;
  font-family: Figtree, sans-serif;
  font-size: 0.8em;
  vertical-align: 0.08em;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* ---- listing grid ---------------------------------------------------- */

.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  margin: 0; padding: 0; list-style: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.band.paper .card { background: var(--valley); }

.card .shot {
  aspect-ratio: 4 / 3;
  background: var(--valley);
  overflow: hidden;
}
.band.paper .card .shot { background: #DAD7D1; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card .shot.empty {
  display: grid; place-items: center;
  color: var(--muted); font-size: 0.8125rem;
}

.card .body { padding: 1rem 1.125rem 1.125rem; display: grid; gap: 0.4rem; }
.card .price {
  font-family: Faustina, Georgia, serif;
  font-size: 1.375rem; font-weight: 500; color: var(--plum);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.card .addr { font-size: 0.9375rem; line-height: 1.45; }
.card .addr .street { display: block; }
.card .addr .town { display: block; color: var(--muted); font-size: 0.875rem; }
.card .meta {
  font-size: 0.8125rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem;
}
.card a.more {
  margin-top: 0.35rem; font-size: 0.875rem; text-decoration: none;
  border-bottom: 1px solid var(--brass); align-self: start;
}
.card a.more:hover { border-bottom-color: currentColor; }

.pill {
  display: inline-block; font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 2px;
  border: 1px solid var(--rule); color: var(--muted); align-self: start;
}
.pill.is-active { border-color: var(--brass); color: var(--brass); }
.pill.is-sold { border-color: var(--rule); }

/* ---- detail ---------------------------------------------------------- */

.detail { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 54rem) {
  .detail { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.detail .shot { border: 1px solid var(--rule); background: var(--paper); border-radius: 2px; }
.detail .shot img { width: 100%; }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.detail .price {
  font-family: Faustina, Georgia, serif; font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--plum); font-weight: 500; font-variant-numeric: tabular-nums;
  margin: 0 0 0.75rem;
}

/* ---- empty state ----------------------------------------------------- */

.empty-state {
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 46ch;
}
.band.paper .empty-state { background: var(--valley); }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.empty-state p { margin: 0 0 1rem; color: var(--muted); }
.empty-state p:last-child { margin-bottom: 0; }

.calls { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.calls a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--brass); }
.calls .lbl { color: var(--muted); font-size: 0.8125rem; display: block; }

/* ---- footer ---------------------------------------------------------- */

footer.site { background: var(--plum-dk); color: #D8C6D1; padding-block: 2.5rem; }
footer.site .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) {
  footer.site .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
footer.site a { color: #F4ECF1; }
footer.site a:hover { color: var(--brass); }
footer.site nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.9375rem;
}
footer.site nav a { text-decoration: none; }
footer.site nav a:hover { text-decoration: underline; }
footer.site .fine { font-size: 0.8125rem; color: #B79FAD; margin: 0; }
footer.site .addr { font-style: normal; font-size: 0.9375rem; line-height: 1.7; }

.disclaimer {
  font-size: 0.8125rem; color: var(--muted);
  max-width: var(--measure); margin: 2rem 0 0;
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
}

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