:root {
  --ink: #101514;
  --muted: #625b55;
  --paper: #f8eee8;
  --sand: #ead4c4;
  --clay: #b5633f;
  --sage: #0f4938;
  --teal: #087f8f;
  --gold: #d3a33e;
  --navy: #102f5f;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(16, 21, 20, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 238, 232, 0.94);
  border-bottom: 1px solid rgba(16, 21, 20, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  width: 96px;
}

.brand img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.header-call {
  text-decoration: none;
}

.site-nav a:hover,
.header-call:hover,
.site-footer a:hover {
  color: var(--clay);
}

.header-call {
  font-weight: 800;
  color: var(--teal);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  min-height: calc(100svh - 92px);
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(38px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(180deg, rgba(248, 238, 232, 0), var(--paper));
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 238, 232, 0.88), rgba(248, 238, 232, 0.48) 48%, rgba(248, 238, 232, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(248, 238, 232, 0.94)),
    url("assets/albuquerque-hero.png"),
    linear-gradient(145deg, #d7e7df 0%, #ead4c4 48%, #b5633f 100%);
  background-size: cover;
  background-position: center;
}

.mountain-sun {
  position: absolute;
  inset: 12% auto auto 8%;
  width: min(56vw, 720px);
  aspect-ratio: 1.5 / 1;
  background:
    radial-gradient(circle at 74% 16%, rgba(211, 163, 62, 0.72) 0 11%, transparent 12%),
    linear-gradient(145deg, transparent 0 42%, rgba(8, 127, 143, 0.42) 43% 50%, transparent 51%),
    linear-gradient(25deg, transparent 0 38%, rgba(16, 47, 95, 0.48) 39% 48%, transparent 49%),
    linear-gradient(155deg, transparent 0 45%, rgba(181, 99, 63, 0.38) 46% 55%, transparent 56%);
  opacity: 0.78;
}

.skyline {
  position: absolute;
  right: 4vw;
  bottom: 13vh;
  display: flex;
  align-items: end;
  gap: 10px;
  opacity: 0.28;
}

.skyline span {
  display: block;
  width: clamp(36px, 4vw, 72px);
  background: var(--ink);
}

.skyline span:nth-child(1) { height: 74px; }
.skyline span:nth-child(2) { height: 122px; }
.skyline span:nth-child(3) { height: 92px; }
.skyline span:nth-child(4) { height: 156px; }
.skyline span:nth-child(5) { height: 110px; }

.hero-content {
  max-width: 760px;
  padding-bottom: clamp(24px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 610px;
  color: #273731;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(8, 127, 143, 0.24);
}

.button.primary:hover {
  background: #066d79;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 31, 0.16);
}

.agent-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.headshot {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.agent-panel h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.agent-panel p {
  margin-bottom: 5px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.search-section {
  background: var(--white);
}

.property-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.property-card,
.service {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: var(--radius);
  background: var(--white);
}

.property-card {
  display: grid;
  gap: 14px;
  padding: 12px 12px 22px;
  color: var(--muted);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-image {
  min-height: 210px;
  border-radius: calc(var(--radius) - 2px);
}

.property-image.foothills {
  background:
    linear-gradient(160deg, rgba(23, 33, 31, 0) 0 42%, rgba(23, 33, 31, 0.35) 43% 48%, transparent 49%),
    linear-gradient(22deg, transparent 0 35%, rgba(15, 73, 56, 0.86) 36% 56%, transparent 57%),
    linear-gradient(180deg, #cbe4e1 0%, #ead4c4 58%, #b5633f 100%);
}

.property-image.new-listings {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 0 20%, transparent 21%),
    linear-gradient(0deg, rgba(23, 33, 31, 0.55) 0 30%, transparent 31%),
    linear-gradient(135deg, #087f8f, #ead4c4 58%, #ffffff);
}

.property-image.move-up {
  background:
    radial-gradient(circle at 80% 24%, rgba(211, 163, 62, 0.78) 0 15%, transparent 16%),
    linear-gradient(150deg, transparent 0 46%, rgba(181, 99, 63, 0.72) 47% 56%, transparent 57%),
    linear-gradient(180deg, #d7e7df, #f8eee8 58%, #0f4938);
}

.property-label {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.property-card span:not(.property-image):not(.property-label) {
  padding: 0 8px;
}

.disclaimer {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.area-section {
  background: var(--sand);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  color: #263832;
  font-weight: 800;
}

.services-section {
  background: var(--paper);
}

.service {
  padding: 28px;
}

.service p {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: clamp(18px, 4vw, 56px);
  padding: clamp(34px, 6vw, 62px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(16, 47, 95, 0.94), rgba(15, 73, 56, 0.92)),
    linear-gradient(135deg, var(--teal), var(--clay));
  border-radius: var(--radius);
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-section .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #0d1514;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin-bottom: 4px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.legal {
  grid-column: 1 / -1;
  max-width: 980px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    width: 76px;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
    width: 44px;
    height: 44px;
    gap: 4px;
    place-items: center;
    border: 1px solid rgba(23, 33, 31, 0.16);
    border-radius: var(--radius);
    background: var(--white);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 4px;
    padding-top: 8px;
  }

  .site-nav.is-open a {
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(8, 127, 143, 0.1);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .agent-panel {
    max-width: 360px;
  }

  .property-grid,
  .service-grid,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .property-image {
    min-height: 170px;
  }

  .service {
    padding: 22px;
  }

  .contact-section {
    margin: 0;
    border-radius: 0;
  }
}
