/* ==========================================================================
   Dow Real Estate Group : dowreg.com
   Shipped brand palette: ink #1B2A33, gold #C8A24A, bone #F4F1EA, body #44525C.
   Gold #C8A24A is a FILL/RULE colour only (2.3:1 on bone). Gold as TEXT uses
   --gold-text #7E5F14 (5.4:1 on bone), per the 2615 Industrial build.
   ========================================================================== */

:root {
  --ink:        #1B2A33;
  --ink-soft:   #2B3C47;
  --body:       #44525C;
  --muted:      #6E7C86;
  --bone:       #F4F1EA;
  --paper:      #FFFFFF;
  --raised:     #EDE8DE;

  --gold:       #C8A24A;   /* fills, rules, markers */
  --gold-text:  #7E5F14;   /* gold as readable text */
  --gold-soft:  rgba(200, 162, 74, 0.16);

  --green:      #2F6B4F;
  --green-soft: rgba(47, 107, 79, 0.12);
  --rust:       #8A4B2A;
  --rust-soft:  rgba(138, 75, 42, 0.12);

  --hairline:        rgba(27, 42, 51, 0.13);
  --hairline-strong: rgba(27, 42, 51, 0.26);

  --shadow-sm: 0 1px 2px rgba(27,42,51,.05), 0 2px 10px rgba(27,42,51,.04);
  --shadow-md: 0 2px 8px rgba(27,42,51,.07), 0 18px 40px rgba(27,42,51,.09);

  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --wrap: 1140px;
  --gut: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .20em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-text);
  margin: 0 0 1rem;
}
.eyebrow.on-ink { color: var(--gold); }

.lede { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); }

.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: none; }

.nav-toggle {
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 3px; padding: .5rem .7rem; font-size: .9rem; cursor: pointer;
  line-height: 1;
}
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0 0 1rem;
  display: flex; flex-direction: column; gap: 0;
}
.site-nav a {
  display: block; padding: .75rem 0;
  color: rgba(255,255,255,.86); text-decoration: none;
  font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-cta {
  margin-top: .6rem; border: 1px solid var(--gold); color: var(--gold);
  text-align: center; padding: .7rem 1.2rem; border-radius: 2px;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.9rem; padding: 0; }
  .site-nav a { padding: 0; border: 0; font-size: .78rem; letter-spacing: .13em; }
  .site-nav .nav-cta { margin: 0; padding: .6rem 1.1rem; }
  .brand-text { display: block; }
  .brand-text strong {
    display: block; font-family: var(--serif); color: #fff;
    font-size: 1.02rem; letter-spacing: .02em; font-weight: 600; line-height: 1.1;
  }
  .brand-text span {
    display: block; color: var(--gold);
    font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700;
  }
}
@media (max-width: 899px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .40; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(27,42,51,.95) 0%, rgba(27,42,51,.78) 45%, rgba(27,42,51,.45) 100%);
}
.hero-inner { position: relative; padding: 5rem 0 4.5rem; max-width: 740px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.84); font-size: 1.12rem; }
@media (min-width: 900px) { .hero-inner { padding: 7.5rem 0 7rem; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: .95rem 1.8rem; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-gold { background: var(--gold); color: #241c05; border-color: var(--gold); }
.btn-gold:hover { background: #b38f37; color: #241c05; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #0f1a21; color: #fff; }
.btn-outline { border-color: var(--hairline-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- sections ---------- */
section { padding: 3.75rem 0; }
@media (min-width: 900px) { section { padding: 5.5rem 0; } }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: rgba(255,255,255,.80); }
.sec-ink h2, .sec-ink h3 { color: #fff; }
.sec-head { max-width: 680px; margin-bottom: 2.75rem; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 3px; padding: 2rem 1.75rem;
}
.sec-paper .card { background: var(--bone); }
.card .num {
  font-family: var(--serif); font-size: .9rem; color: var(--gold-text);
  display: block; margin-bottom: .9rem; letter-spacing: .12em;
}
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- listing cards ---------- */
.listing-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card .shot { position: relative; aspect-ratio: 3 / 2; background: var(--raised); }
.listing-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.listing-card h3 { font-size: 1.28rem; margin-bottom: .25rem; }
.listing-card .where { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.listing-card .price {
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  margin: 0 0 .9rem; font-weight: 600;
}
.listing-card .blurb { font-size: .95rem; margin-bottom: 1.25rem; }
.listing-card .more {
  margin-top: auto; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-text); text-decoration: none;
}
.listing-card .more::after { content: " \2192"; }
.listing-card a.more:hover { color: var(--ink); }

.badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700;
  padding: .42rem .75rem; border-radius: 2px; background: var(--ink); color: #fff;
}
.badge-active { background: var(--green); color: #fff; }
.badge-contract { background: var(--rust); color: #fff; }
.badge-inline {
  position: static; display: inline-block; margin: 0 .5rem .5rem 0;
}

.meta-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tag {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--body); background: var(--raised); padding: .35rem .6rem; border-radius: 2px;
}
.sec-paper .tag { background: var(--bone); }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--hairline); margin-bottom: 2.5rem;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-group .label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin-right: .35rem; width: 100%;
}
@media (min-width: 560px) { .filter-group .label { width: auto; } }
.chip {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .08em; font-weight: 600;
  padding: .5rem .95rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: transparent; color: var(--body);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { font-size: .9rem; color: var(--muted); margin-bottom: 1.75rem; }
.no-results { padding: 3rem 0; color: var(--muted); }

/* ---------- listing detail ---------- */
.listing-hero { background: var(--ink); color: #fff; padding: 3rem 0 2.5rem; }
.listing-hero h1 { color: #fff; margin-bottom: .3rem; }
.listing-hero .where { color: rgba(255,255,255,.7); margin: 0 0 1.25rem; font-size: 1.02rem; }
.listing-hero .price {
  font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold); margin: 0; font-weight: 600;
}
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.crumbs a { color: rgba(255,255,255,.65); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: rgba(255,255,255,.4); }

.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .g-main { grid-column: 1 / -1; }
}
.gallery figure { margin: 0; position: relative; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  background: var(--raised); cursor: zoom-in;
}
.gallery .g-main img { aspect-ratio: 16 / 7; }
.gallery .g-thumb img { aspect-ratio: 4 / 3; }
.gallery figcaption {
  font-size: .76rem; color: var(--muted); padding-top: .45rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12,19,24,.94);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox .close {
  position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox .cap {
  position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.8); font-size: .85rem; padding: 0 2rem;
}

.detail-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: 1fr 340px; gap: 4rem; } }

.fact-table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; }
.fact-table th, .fact-table td {
  text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--hairline);
  vertical-align: top; font-size: .97rem;
}
.fact-table th {
  font-family: var(--sans); font-weight: 700; color: var(--muted);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  width: 44%; padding-right: 1rem;
}
.fact-table td { color: var(--ink); font-weight: 500; }

.bullets { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.bullets li { position: relative; padding-left: 1.35rem; margin-bottom: .7rem; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.note {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: 1.1rem 1.35rem; font-size: .94rem; margin: 0 0 2rem; border-radius: 0 2px 2px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.map-embed {
  border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden;
  background: var(--raised);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- sidebar / agent ---------- */
.agent-card {
  background: var(--ink); color: rgba(255,255,255,.82);
  border-radius: 3px; padding: 2rem 1.75rem; position: sticky; top: 100px;
}
.agent-card img.face {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1.1rem; border: 2px solid var(--gold);
}
.agent-card h3 { color: #fff; margin-bottom: .1rem; font-size: 1.25rem; }
.agent-card .role {
  color: var(--gold); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 1.25rem;
}
.agent-card a { color: #fff; text-decoration: none; display: block; padding: .3rem 0; font-size: .97rem; }
.agent-card a:hover { color: var(--gold); }
.agent-card .btn { margin-top: 1.4rem; width: 100%; text-align: center; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label {
  display: block; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin-bottom: .45rem;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: 2px; padding: .8rem .9rem;
}
.sec-paper .field input, .sec-paper .field textarea, .sec-paper .field select { background: var(--bone); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { display: none; color: #9A2A2A; font-size: .82rem; margin-top: .35rem; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #9A2A2A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.1rem; font-size: .95rem; padding: .9rem 1.1rem; border-radius: 2px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-soft); color: #1E4A36; border-left: 3px solid var(--green); }
.form-status.bad { background: var(--rust-soft); color: #6E3A20; border-left: 3px solid var(--rust); }
.form-fine { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* ---------- stats ---------- */
.stat-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.stat .n { font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1; display: block; }
.sec-ink .stat .n { color: #fff; }
.stat .l { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: .5rem; display: block; }
.sec-ink .stat .l { color: rgba(255,255,255,.6); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: rgba(255,255,255,.82); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: #121D24; color: rgba(255,255,255,.62); font-size: .9rem; padding: 3.5rem 0 2rem; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 1.1rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.1rem; }
.footer-logos { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.footer-logos img { height: 46px; width: auto; }
.footer-legal {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; line-height: 1.75; color: rgba(255,255,255,.45);
}
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
.footer-legal .links a { color: rgba(255,255,255,.62); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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