:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent2: #c7a26a;
  --accent3: #1f2937;
  --shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent3);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus-visible {
  top: 10px;
}

:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
}

.top-header {
  display: none;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 0;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--accent3);
  margin: 0 auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.98);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 110;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: grid;
  gap: 1.1rem;
  text-align: center;
}

.mobile-menu a {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.atlas-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1440px;
  margin: 0 auto;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.brand-rail {
  margin-bottom: 1.4rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.rail-pills {
  display: grid;
  gap: 0.5rem;
  padding-right: 0.35rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.rail-pills a {
  display: block;
  font-size: 0.93rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.rail-pills a:hover,
.rail-pills a.is-active {
  color: var(--accent3);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.07);
}

.main-content {
  min-width: 0;
}

.panel {
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  background: transparent;
}

.panel-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.9));
}

.kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: start;
}

.hero-copy p {
  max-width: 62ch;
}

.pulse-strip {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--surface);
}

.pulse-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.quick-form,
.contact-form,
.newsletter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.quick-form {
  display: grid;
  gap: 0.55rem;
}

label {
  font-size: 0.88rem;
  color: var(--accent3);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d2d5db;
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

button,
.btn-solid,
.btn-ghost {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  display: inline-block;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

button,
.btn-solid {
  background: var(--accent3);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--accent3);
}

.form-note {
  min-height: 1.1rem;
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
}

.kpi-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-tile strong {
  font-size: 1.35rem;
  color: var(--accent3);
}

.charts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 0.45rem;
  padding-top: 1rem;
}

.bars span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent2), var(--accent));
}

.sparkline {
  position: relative;
  height: 150px;
  margin-top: 0.9rem;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sparkline span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  left: var(--x);
  bottom: var(--y);
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.sparkline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, transparent 14%, rgba(15, 118, 110, 0.35) 14.7% 16.2%, transparent 16.5%),
    linear-gradient(130deg, transparent 30%, rgba(15, 118, 110, 0.35) 30.7% 32.2%, transparent 32.5%),
    linear-gradient(155deg, transparent 50%, rgba(15, 118, 110, 0.35) 50.7% 52.2%, transparent 52.5%),
    linear-gradient(136deg, transparent 66%, rgba(15, 118, 110, 0.35) 66.7% 68.2%, transparent 68.5%),
    linear-gradient(150deg, transparent 81%, rgba(15, 118, 110, 0.35) 81.7% 83.2%, transparent 83.5%);
  opacity: 0.95;
}

.disclaimer {
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.masonry {
  column-count: 4;
  column-gap: 0.9rem;
  margin-top: 1rem;
}

.property-card {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.property-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.property-card.tall img {
  height: 260px;
}

.property-card.wide img {
  height: 210px;
}

.property-card div {
  padding: 0.85rem;
}

.property-card h3 {
  font-size: 1.02rem;
}

.property-card p {
  margin: 0.2rem 0 0.55rem;
  color: var(--muted);
}

.property-card span {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  z-index: 120;
}

.spotlight-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 94vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(17, 24, 39, 0.18);
  padding: 1.2rem;
  z-index: 130;
  transform: translateX(102%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.spotlight-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 1.6rem;
}

.drawer-tag {
  margin-top: 1.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.drawer-price {
  font-size: 1.5rem;
  color: var(--accent3);
}

#drawerFeatures {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.neighborhood-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
}

.neighborhood-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.vibe {
  color: var(--muted);
  margin: 0.15rem 0 0.7rem;
}

.meter-list {
  display: grid;
  gap: 0.5rem;
}

.meter-list > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 0.6rem;
}

.meter-list span {
  font-size: 0.86rem;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #ecedf0;
  overflow: hidden;
}

.meter i,
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editorial-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.editorial-services article {
  border-left: 2px solid var(--accent2);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.checklist-grid li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.8rem;
}

.checklist-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.team-grid article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem;
}

.team-grid img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.quote-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  position: relative;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 10px;
  font-size: 3.5rem;
  color: rgba(199, 162, 106, 0.3);
  line-height: 1;
}

blockquote p {
  position: relative;
  margin-top: 1rem;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.pricing-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.price-card.featured {
  border-color: var(--accent2);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.price span {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.counter-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.counter-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.counter-grid strong {
  display: block;
  font-size: 2rem;
  color: var(--accent3);
}

.counter-grid span {
  color: var(--muted);
}

.progress-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.progress-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #ecedf0;
  overflow: hidden;
}

.contact-wrap {
  margin-top: 0.8rem;
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
}

.contact-cards article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

footer {
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--accent3);
  color: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-services,
.footer-links {
  display: grid;
  gap: 0.42rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.area-tags a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.newsletter {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.newsletter label,
.newsletter .form-note,
.newsletter h3 {
  color: #fff;
}

.newsletter input {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

@media (max-width: 1180px) {
  .atlas-layout {
    grid-template-columns: 220px 1fr;
  }

  .masonry {
    column-count: 3;
  }

  .editorial-services {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .top-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .hero-panel,
  .two-col,
  .charts-grid,
  .neighborhood-grid,
  .pricing-grid,
  .team-grid,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 2;
  }

  .editorial-services {
    grid-template-columns: 1fr 1fr;
  }

  .checklist-grid,
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .progress-list > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 1.3rem 1rem;
  }

  .masonry {
    column-count: 1;
  }

  .property-card img,
  .property-card.tall img,
  .property-card.wide img {
    height: 200px;
  }

  .editorial-services {
    grid-template-columns: 1fr;
  }
}
