/* ==========================================================================
   WWR Properties — design tokens
   ========================================================================== */
:root {
  --ink:        #1C1A17;
  --ink-soft:   #322E28;
  --brick:      #AB2121;
  --brick-dark: #6B1414;
  --brick-tint: #F4E3E1;
  --paper:      #FAF8F5;
  --paper-dim:  #F2EFE9;
  --stone:      #E7E3DB;
  --line:       #DCD6C9;
  --slate:      #55524C;
  --slate-60:   rgba(85, 82, 76, .68);
  --white:      #FFFFFF;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em 0; }

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

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--brick);
  display: flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brick);
  display: inline-block;
}
.eyebrow.on-dark { color: #E7B7B0; }
.eyebrow.on-dark::before { background: #E7B7B0; }

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 640px;
}

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

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--body);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--brick); border-color: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: var(--white); }
.btn-on-dark { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-on-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-solid { background: var(--paper); border-bottom-color: var(--line); padding: 12px 0; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; transition: filter .25s ease; }

.site-header.transparent:not(.is-solid) .brand img { filter: brightness(0) invert(1); }
.site-header.transparent:not(.is-solid) .nav-list a { color: var(--white); }
.site-header.transparent:not(.is-solid) .nav-toggle span { background: var(--white); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0; padding: 0;
}
.nav-list a {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brick); border-color: var(--brick); }
.site-header.transparent:not(.is-solid) .nav-list a:hover,
.site-header.transparent:not(.is-solid) .nav-list a[aria-current="page"] { color: #F1C9C4; border-color: #F1C9C4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 78vw);
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { color: var(--paper) !important; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12) !important; width: 100%; }
  .site-header.transparent:not(.is-solid) .nav-toggle span { background: var(--white); }
  body.nav-open { overflow: hidden; }
}
body.lb-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,.35) 0%, rgba(28,26,23,.28) 40%, rgba(28,26,23,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 76px; width: 100%; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .lede { color: rgba(255,255,255,.86); font-size: 1.2rem; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-sub {
  min-height: 52vh;
  align-items: center;
}
.hero-sub .hero-inner { padding-bottom: 0; }
.hero-sub .kicker {
  font-family: var(--mono);
  color: rgba(255,255,255,.75);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6em;
}

/* No-photo hero variant (ledger band) ---------------------------------- */
.hero-plain {
  background: var(--ink);
  color: var(--white);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 120px);
}
.hero-plain::after { content: none; }

/* ==========================================================================
   Sections / layout helpers
   ========================================================================== */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .slate { color: rgba(250,248,245,.65); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 64px;
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }

.slate { color: var(--slate); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Ledger card (deed / stat block) --------------------------------------- */
.ledger {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 34px;
}
.ledger dl { margin: 0; }
.ledger .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .88rem;
}
.ledger .row:first-child { border-top: none; }
.ledger .row dt { color: var(--slate); }
.ledger .row dd { margin: 0; text-align: right; font-weight: 500; }
.ledger-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  color: var(--brick);
  margin-bottom: 18px;
}

/* Stat row (home) -------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.stat-strip div { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat-strip div:first-child { border-left: none; }
.stat-num { font-family: var(--display); font-size: 2.3rem; color: var(--brick); font-weight: 600; }
.stat-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; color: var(--slate); margin-top: 6px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } .stat-strip div { border-left: none; border-top: 1px solid var(--line); } .stat-strip div:first-child { border-top: none; } }

/* Property grid ----------------------------------------------------------- */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prop-grid { grid-template-columns: 1fr; } }

.prop-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.prop-card:hover { color: var(--ink); }
.prop-photo {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.prop-card.no-photo .prop-photo {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px);
}
.prop-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--brick); color: var(--white);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px;
}
.prop-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.prop-body h3 { margin-bottom: .2em; }
.prop-city { font-family: var(--mono); font-size: .78rem; color: var(--slate); margin-bottom: .8em; }
.prop-more { margin-top: auto; font-family: var(--body); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; padding-top: 14px; }

/* Tenant / rent-roll table ------------------------------------------------ */
.roll-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.roll {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: .86rem;
  min-width: 480px;
}
table.roll th {
  text-align: left;
  font-family: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  color: var(--white);
  background: var(--ink);
  padding: 12px 18px;
}
table.roll td { padding: 11px 18px; border-top: 1px solid var(--line); }
table.roll tr:nth-child(even) td { background: var(--paper-dim); }
table.roll td:last-child, table.roll th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Radius / demographics --------------------------------------------------- */
.radius-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 700px) { .radius-grid { grid-template-columns: 1fr; } }
.radius-card { background: var(--white); padding: 28px 26px; }
.radius-card .r-dist { font-family: var(--display); font-size: 1.5rem; color: var(--brick); margin-bottom: 14px; }
.radius-card .r-metric { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .84rem; }
.radius-card .r-metric:first-of-type { border-top: none; }
.radius-card .r-metric img { width: 18px; height: 18px; opacity: .72; }
.radius-card .r-metric .r-val { margin-left: auto; font-weight: 600; }

/* Timeline (history) ------------------------------------------------------ */
.timeline { position: relative; padding-left: 46px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.t-item { position: relative; padding-bottom: 64px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -46px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--brick); border: 3px solid var(--paper); outline: 1px solid var(--brick);
}
.t-year { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brick); font-size: .78rem; margin-bottom: .6em; }
.t-photos { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.t-photos img { width: 280px; height: 200px; object-fit: cover; cursor: zoom-in; transition: opacity .15s ease; }
.t-photos img:hover { opacity: .82; }

/* Partner nameplates -------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card { background: var(--paper); padding: 38px 30px; }
.partner-photo {
  width: 180px;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  margin-bottom: 24px;
}
.partner-role { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--slate); margin: .3em 0 1em; }
.partner-card.has-bio { cursor: pointer; transition: background .15s ease; }
.partner-card.has-bio:hover, .partner-card.has-bio:focus-visible { background: var(--paper-dim); }
.partner-more { font-family: var(--body); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brick); }

/* Gallery ------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 300px; object-fit: cover; cursor: zoom-in; transition: opacity .15s ease; }
.gallery img:hover { opacity: .82; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery img { height: 220px; } }

/* CTA band -------------------------------------------------------------------- */
.cta-band { background: var(--brick); color: var(--white); text-align: center; padding: 76px 0; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,.85); margin: 0 auto 30px; }

/* Footer ------------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(250,248,245,.78); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 34px; } }
.footer-top img { height: 34px; margin-bottom: 18px; }
.footer-addr { font-family: var(--mono); font-size: .88rem; line-height: 1.9; }
.footer-addr a { color: rgba(250,248,245,.86); }
.footer-heading { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: rgba(250,248,245,.5); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(250,248,245,.82); font-size: .92rem; }
.footer-links a:hover { color: var(--white); }

/* Same layout as footer-links, but for use on light backgrounds */
.quick-links { list-style: none; margin: 0; padding: 0; }
.quick-links li { color: var(--slate); }
.quick-links a { color: var(--brick); font-weight: 600; }
.quick-links a:hover { color: var(--brick-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .78rem; color: rgba(250,248,245,.45); flex-wrap: wrap; gap: 10px; }

/* Page header (non-hero interior pages) ------------------------------------------ */
.page-top { padding: 168px 0 60px; }
.page-top .eyebrow { margin-bottom: 1.1em; }

/* misc */
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(28,26,23,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 60px 24px;
}
.lightbox.is-open { display: flex; }
.lightbox .lb-image {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.lightbox .lb-close {
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  font-size: 1.6rem; line-height: 1;
}
.lightbox .lb-prev, .lightbox .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 1.3rem;
  border-radius: 50%;
}
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}
@media (max-width: 640px) {
  .lightbox .lb-prev, .lightbox .lb-next { width: 42px; height: 42px; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
}

/* Bio modal ------------------------------------------------------------------ */
.bio-modal {
  position: fixed; inset: 0;
  background: rgba(28,26,23,.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 40px 20px;
}
.bio-modal.is-open { display: flex; }
.bio-modal-inner {
  background: var(--paper);
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 46px;
  position: relative;
}
.bio-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bio-modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bio-modal-photo {
  width: 110px;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  margin-bottom: 22px;
}
.bio-modal-name { margin-bottom: .15em; }
.bio-modal-role { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--brick); margin-bottom: 22px; }
.bio-modal-body p { color: var(--slate); }
.bio-modal-body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .bio-modal-inner { padding: 34px 26px; max-height: 82vh; }
}
