:root {
  --bg: #0c0c0e;
  --bg-subtle: #131318;
  --fg: #e8e6e1;
  --fg-muted: #9a9890;
  --accent: #c9a84c;
  --accent-glow: #d4b85c;
  --border: #2a2a30;
  --card-bg: #18181e;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
}
.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-accent {
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 540px;
}
.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-width: 280px;
  margin-bottom: 1rem;
}
.card-offset {
  margin-left: 3rem;
}
.card-borough {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.card-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.card-detail {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
}

/* BOROUGHS */
.boroughs {
  padding: 8rem 2rem;
  background: var(--bg-subtle);
}
.boroughs-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.accent { color: var(--accent); }
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}
.borough-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.borough-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s;
}
.borough-item:hover {
  border-color: var(--accent);
}
.borough-item-wide {
  grid-column: span 2;
}
.borough-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.borough-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* SERVICES */
.services {
  padding: 8rem 2rem;
}
.services-inner {
  max-width: 900px;
  margin: 0 auto;
}
.service-block {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child {
  border-bottom: none;
}
.service-number {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  min-width: 80px;
  line-height: 1;
}
.service-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* STATS */
.stats {
  padding: 5rem 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* CLOSING */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* =========================================================
   INNER PAGES — neighborhood explorer
   ========================================================= */

/* Make nav links clickable on inner pages */
.nav-link {
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--accent);
}

.inner-main {
  min-height: 100vh;
}

/* BREADCRUMB */
.breadcrumb {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--accent); }

/* PAGE HERO — inner pages */
.page-hero {
  padding: 10rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.page-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* BOROUGH OVERVIEW CARDS */
.borough-overview {
  padding: 5rem 2rem;
}
.borough-overview-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.borough-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.3s, transform 0.2s;
}
.borough-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.borough-card-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.borough-card-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
}
.borough-card-count {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.borough-card-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}
.borough-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.metric {}
.metric-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.borough-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* NEIGHBORHOOD LIST (borough page) */
.neighborhood-list-section {
  padding: 5rem 2rem;
}
.neighborhood-list-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.nh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.nh-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.3s, transform 0.2s;
}
.nh-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.nh-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.nh-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.nh-yield-badge {
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.nh-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.nh-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.nh-metric {
  display: flex;
  flex-direction: column;
}
.nh-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}
.nh-metric-lbl {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}
.nh-subway {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.nh-subway-icon {
  margin-right: 0.25rem;
}
.nh-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* NEIGHBORHOOD DETAIL */
.detail-section {
  padding: 4rem 2rem 6rem;
}
.detail-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.detail-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.detail-metric {
  background: var(--card-bg);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.accent-metric {
  background: rgba(201, 168, 76, 0.07);
}
.detail-metric-val {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 0.3rem;
}
.accent-metric .detail-metric-val {
  color: var(--accent);
}
.detail-metric-lbl {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}
.detail-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.detail-card-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.transit-lines {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.score-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.score-block { flex: 1; }
.score-num {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.score-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.score-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.commute-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.commute-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.commute-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* CTA BLOCK */
.detail-cta-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
}
.detail-cta-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.detail-cta-text {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0c0c0e;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

/* EXPLORE MORE */
.explore-more {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}
.explore-more-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.explore-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.explore-more-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
}
.explore-more-card:hover {
  border-color: var(--accent);
}
.explore-more-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.explore-more-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 7rem 1.5rem 4rem;
    min-height: auto;
  }
  .hero-visual {
    position: static;
    transform: none;
    margin-top: 3rem;
  }
  .hero-card { min-width: auto; }
  .card-offset { margin-left: 1rem; }
  .borough-grid {
    grid-template-columns: 1fr;
  }
  .borough-item-wide {
    grid-column: span 1;
  }
  .service-block {
    flex-direction: column;
    gap: 1rem;
  }
  .service-number {
    font-size: 2rem;
    min-width: auto;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .nav-links { display: none; }
  .hero-bg-pattern { width: 100%; }

  /* Inner page mobile */
  .borough-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .nh-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}