/* Arlington Park Realtors
   Static stylesheet. No build step. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/geist.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/geist-mono.woff2") format("woff2");
}

:root {
  --ink: #1f1c1b;
  --white: #ffffff;
  --paper: #f5f4f0;
  --sand: #ebe9e1;
  --line: #dcd8cd;
  --taupe-1: #746861;
  --taupe-2: #a69b92;
  --taupe-3: #bfb9af;
  --orange: #ff5522;
  --orange-dark: #e8461a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: 24px;
  --section: 144px;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
dl, dd, dt, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden,
.entry-number {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--taupe-1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(245, 244, 240, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(31, 28, 27, 0.08);
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 440;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
}
.site-nav a:hover { opacity: 0.6; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle { border-color: rgba(255, 255, 255, 0.4); }
.is-scrolled .nav-toggle,
.is-open .nav-toggle { border-color: rgba(31, 28, 27, 0.25); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 920px);
  padding: 150px 0 72px;
  overflow: hidden;
  background: #241812;
  color: var(--white);
}
.hero-bg,
.hero-bg::before,
.hero-bg::after,
.hero-grain,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg {
  z-index: -3;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(255, 196, 128, 0.78) 0%, rgba(255, 196, 128, 0) 70%),
    radial-gradient(50% 60% at 22% 18%, rgba(196, 128, 84, 0.75) 0%, rgba(196, 128, 84, 0) 72%),
    radial-gradient(70% 60% at 55% 75%, rgba(150, 96, 62, 0.85) 0%, rgba(150, 96, 62, 0) 70%),
    radial-gradient(45% 50% at 96% 88%, rgba(70, 52, 44, 0.9) 0%, rgba(70, 52, 44, 0) 75%),
    linear-gradient(180deg, #7b6252 0%, #9a6b47 45%, #4a3125 100%);
}
/* soft light leaks, echoing a warm lens flare */
.hero-bg::before {
  content: "";
  inset: -30% -10%;
  background:
    linear-gradient(112deg, rgba(255, 221, 170, 0) 16%, rgba(255, 221, 170, 0.55) 22%, rgba(255, 150, 90, 0.28) 27%, rgba(255, 221, 170, 0) 34%),
    linear-gradient(118deg, rgba(255, 240, 214, 0) 52%, rgba(255, 240, 214, 0.22) 58%, rgba(255, 240, 214, 0) 66%);
  filter: blur(46px);
  transform: translate3d(0, 0, 0);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  background:
    radial-gradient(38% 30% at 68% 42%, rgba(255, 233, 196, 0.5) 0%, rgba(255, 233, 196, 0) 70%),
    radial-gradient(30% 34% at 8% 64%, rgba(36, 24, 18, 0.55) 0%, rgba(36, 24, 18, 0) 75%);
  filter: blur(30px);
}
.hero-grain {
  z-index: -2;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 22, 17, 0.42) 0%, rgba(31, 22, 17, 0) 22%),
    linear-gradient(90deg, rgba(31, 22, 17, 0.6) 0%, rgba(31, 22, 17, 0.28) 48%, rgba(31, 22, 17, 0.05) 100%),
    linear-gradient(0deg, rgba(31, 22, 17, 0.5) 0%, rgba(31, 22, 17, 0) 55%);
}
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0); }
  to { transform: translate3d(4%, 2%, 0); }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 64px;
  align-items: end;
}
.hero h1 {
  max-width: 13.5em;
  font-size: clamp(38px, 5vw, 60px);
}
.hero-intro {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.hero-updated {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bubble {
  padding: 14px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 244, 232, 0.13);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.95);
}
.bubble:nth-child(1) { width: 100%; border-bottom-right-radius: 4px; }
.bubble:nth-child(2) { width: 82%; background: rgba(255, 244, 232, 0.07); border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.bubble:nth-child(3) { border-top-right-radius: 4px; }
.bubble-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* Sections */
.section { padding: var(--section) 0; }
.section-tight-top { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.split-body {
  display: grid;
  gap: 16px;
  padding-top: 30px;
  color: var(--ink);
}
.split-head .display { max-width: 11em; }

/* Directory */
.directory { background: var(--white); }
.directory-head { margin-bottom: 56px; }
.directory-head .display { max-width: 15em; }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.agent-grid > li {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  margin-bottom: 20px;
}
.card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
@supports not (grid-template-rows: subgrid) {
  .agent-grid > li { display: flex; }
  .card { display: flex; flex-direction: column; width: 100%; }
  .card-bio { flex: 1; }
}
.card:hover { background: var(--sand); }

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(160deg, #4c423d 0%, #2b2523 55%, #1f1c1b 100%);
  color: var(--white);
  min-height: 150px;
  display: flex;
  align-items: flex-end;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.025); }
.card-media::after {
  display: none;
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, rgba(31, 28, 27, 0) 0%, rgba(31, 28, 27, 0.55) 55%, rgba(31, 28, 27, 0.86) 100%);
  pointer-events: none;
}
.card-title {
  position: relative;
  z-index: 1;
  padding: 20px 20px 18px;
}
.card-title h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 420;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card-brokerage {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.95);
}
.card-location {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.card-facts {
  display: grid;
  align-content: start;
  padding: 6px 20px 0;
}
.card-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.card-facts dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--taupe-1);
}
.card-facts dd {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.card-bio {
  padding: 16px 20px 0;
  font-size: 14px;
  line-height: 21px;
  color: #5b514b;
}
.card-foot { padding: 20px 20px 22px; align-self: end; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 28, 27, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.card-link svg { transition: transform 0.25s var(--ease); }
.card-link:hover { border-color: var(--orange); color: var(--orange-dark); }
.card-link:hover svg { transform: translate(2px, -2px); }

/* FAQ panel */
.panel {
  padding: 88px 72px;
  border-radius: 12px;
  background: var(--sand);
}
.panel .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.faq-list { border-top: 1px solid #cfcabd; }
.faq-item { border-bottom: 1px solid #cfcabd; }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--taupe-1); }
.faq-item summary h3 { font: inherit; }
.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); opacity: 0; }
.faq-answer {
  max-width: 600px;
  padding: 0 38px 26px 0;
  color: #4a413c;
}

/* Source note */
.source-note {
  max-width: 760px;
  margin-top: 48px;
  font-size: 13px;
  line-height: 20px;
  color: var(--taupe-1);
}
.source-note .eyebrow { margin-bottom: 8px; color: var(--taupe-2); }

/* Footer */
.site-footer {
  padding: 72px 0 56px;
  background: var(--ink);
  color: var(--white);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.site-footer .wordmark { font-size: 30px; }
.footer-meta {
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--taupe-3);
  text-align: right;
}
.footer-meta .copyright { color: var(--taupe-2); }

/* Responsive */
@media (max-width: 1080px) {
  :root { --section: 112px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 40px; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 64px 48px; }
  .split, .panel .split { gap: 48px; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 136px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-bubbles { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .hero-bubbles .bubble { width: auto; border-radius: 12px; background: rgba(255, 244, 232, 0.12); }
  .split, .panel .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-body { padding-top: 0; }
  .split-head .display, .directory-head .display { max-width: none; }
}

@media (max-width: 700px) {
  :root { --section: 80px; --gutter: 20px; }
  html { scroll-padding-top: 76px; }
  .site-header .wrap { height: 60px; }
  .wordmark { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 60px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 16px;
    background: rgba(245, 244, 240, 0.98);
    color: var(--ink);
    box-shadow: 0 16px 30px -18px rgba(31, 28, 27, 0.35);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    opacity: 1;
  }
  .site-nav a:last-child { border-bottom: 0; }

  .hero { padding: 120px 0 44px; }
  .hero-intro { margin-top: 22px; }
  .bubble { padding: 10px 14px 12px; font-size: 14px; line-height: 20px; }

  .directory-head { margin-bottom: 36px; }
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-grid > li { margin-bottom: 16px; }

  .panel { padding: 44px 22px; margin-inline: -8px; }
  .faq-item summary { font-size: 16px; line-height: 24px; padding: 18px 0; gap: 16px; }
  .faq-answer { padding-right: 0; }

  .site-footer { padding: 56px 0 44px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover .card-media img { transform: none; }
}

@media print {
  .site-header, .hero-bg, .hero-grain, .hero-shade, .hero-bubbles { display: none; }
  .hero { min-height: 0; padding: 24px 0; background: none; color: var(--ink); }
  .hero-intro, .hero-updated { color: var(--ink); }
  .faq-item:not([open]) .faq-answer { display: block; }
}
