:root {
  --ink: #171717;
  --soft-ink: #35322d;
  --muted: #6d665d;
  --paper: #faf8f3;
  --warm: #efe7d9;
  --white: #fffefb;
  --line: #ded5c8;
  --garden: #26483b;
  --brick: #8c4f3f;
  --charcoal: #101417;
  --gold: #b8945a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgb(250 248 243 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  font-size: 13px;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.language-switcher a,
.language-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher a.active,
.language-switcher button.active {
  color: var(--white);
  background: var(--charcoal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero {
  padding: 72px clamp(20px, 5vw, 72px) 54px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgb(16 20 23 / 92%), rgb(38 72 59 / 74%)),
    url("../media/listings/1023-huntingdon/photos/original/photo-01.jpg") center / cover;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1;
}

h1 {
  max-width: 840px;
  font-size: clamp(44px, 7vw, 84px);
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  margin: 0 0 10px;
  color: var(--garden);
}

.lead {
  max-width: 800px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero .lead {
  color: rgb(255 255 255 / 82%);
}

section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.warm {
  background: var(--warm);
}

.dark {
  color: var(--white);
  background: var(--charcoal);
}

.dark .lead,
.dark p {
  color: rgb(255 255 255 / 72%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.media-card {
  padding: 0;
}

.card-media,
.profile-photo,
.place-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--warm);
}

.card-media {
  height: 220px;
}

.card-body {
  padding: 24px;
}

.agent-profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.profile-photo {
  height: 520px;
}

.portrait-copy {
  padding: 22px;
}

.portrait-copy p {
  margin: 0;
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-links span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.source-links a:hover {
  color: var(--white);
  background: var(--brick);
  border-color: var(--brick);
}

.dark .card {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  padding: 18px;
  background: var(--white);
}

.stat b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.map-frame {
  overflow: hidden;
  margin-top: 30px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.source-list {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--garden);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline-row b {
  color: var(--brick);
}

footer {
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgb(255 255 255 / 60%);
  background: var(--charcoal);
  font-size: 12px;
}

@media (max-width: 860px) {
  .grid,
  .grid.two,
  .stat-grid,
  .agent-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgb(16 20 23 / 18%);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .language-switcher {
    align-self: flex-start;
    margin: 12px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
