:root {
  --bg: #f4efe6;
  --bg-contrast: #162028;
  --surface: #fffaf3;
  --surface-strong: #f0e4d0;
  --text: #182128;
  --muted: #57626a;
  --line: rgba(24, 33, 40, 0.12);
  --accent: #d36d3d;
  --accent-deep: #8a3f1e;
  --shadow: 0 24px 60px rgba(16, 28, 35, 0.12);
  --radius: 24px;
  --radius-small: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(211, 109, 61, 0.2), transparent 32%),
    linear-gradient(180deg, #f7f2ea 0%, #f4efe6 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg-contrast);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10;
}

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

.wrap {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 230, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand img {
  width: 160px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a,
.inline-link {
  text-decoration: none;
  color: var(--accent-deep);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 5rem 0 3rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 32, 40, 0.94), rgba(22, 32, 40, 0.72)),
    url("../images/3809-1st-ave-n.png") center/cover;
  transform: scale(1.04);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.hero-copy,
.hero-featured {
  position: relative;
  color: white;
}

.hero-copy h1,
.section h2,
.panel-heading h2,
.leadership-copy h3,
.listing-card h3,
.detail-copy h3,
.contact-card h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 54ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  background: transparent;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
}

.hero-stats div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stats dd {
  margin: 0.4rem 0 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-featured,
.listing-detail,
.leadership-card,
.contact-form {
  background: rgba(255, 250, 243, 0.92);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-featured {
  padding: 1.2rem;
}

.featured-list {
  display: grid;
  gap: 1rem;
}

.featured-card,
.listing-card {
  width: 100%;
  border: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  box-shadow: 0 14px 32px rgba(18, 31, 40, 0.08);
}

.featured-card img,
.listing-card img,
.detail-image {
  aspect-ratio: 4 / 2.35;
  width: 100%;
  object-fit: cover;
}

.featured-card-copy,
.listing-card-copy,
.detail-copy,
.leadership-copy {
  padding: 1rem;
}

.featured-card-copy p,
.listing-card-copy p,
.detail-copy p,
.body-copy p {
  margin-top: 0;
}

.featured-card-copy h3,
.listing-card h3,
.detail-copy h3,
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.featured-card-copy span,
.listing-card-meta,
.listing-card-footer,
.results-count,
.contact-status {
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.section-contrast {
  background:
    linear-gradient(180deg, rgba(22, 32, 40, 0.04), rgba(22, 32, 40, 0.08)),
    linear-gradient(180deg, rgba(211, 109, 61, 0.06), rgba(211, 109, 61, 0));
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.body-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.leadership-card {
  overflow: hidden;
}

.leadership-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.listings-shell {
  display: grid;
  gap: 2rem;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.8rem;
  width: min(100%, 680px);
}

.filter-bar label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.filter-bar input,
.filter-bar select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  color: var(--text);
}

.listings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 1.5rem;
  align-items: start;
}

.listing-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.listing-card {
  border: 1px solid transparent;
}

.listing-card.is-active {
  border-color: rgba(211, 109, 61, 0.44);
  transform: translateY(-2px);
}

.listing-card-meta,
.listing-card-footer,
.detail-meta,
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(211, 109, 61, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-detail {
  position: sticky;
  top: 6rem;
  overflow: hidden;
}

.detail-meta {
  margin: 1.5rem 0;
}

.detail-meta div {
  min-width: 120px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-meta dd {
  margin: 0.3rem 0 0;
  font-weight: 700;
}

.detail-card-empty {
  padding: 2rem;
}

.empty-state {
  padding: 1rem 0;
  color: var(--muted);
}

.contact-cards {
  margin-top: 2rem;
}

.contact-card,
.contact-form {
  padding: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.field-error {
  min-height: 1.1rem;
  color: #aa3b24;
  font-size: 0.84rem;
}

.site-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .listings-grid,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .listing-detail {
    position: static;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 1rem;
    background: rgba(255, 250, 243, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .filter-bar,
  .listing-results,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero {
    padding-top: 4rem;
  }
}
