:root {
  --bg-light: #f5f5f7;
  --bg-dark: #111827;
  --text-main: #111827;
  --text-muted: #6b7280;
  --primary: #1f4f8f;      /* professional blue */
  --accent: #f97316;       /* warm orange */
  --card-bg: #ffffff;
  --border-subtle: #e5e7eb;
  --radius-xl: 1.5rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --max-width: 960px;
  --transition: 200ms ease;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 245, 247, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, #111827, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-weight: 600;
  font-size: 0.98rem;
}

.brand-text span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-links a:hover {
  border-bottom-color: rgba(31, 79, 143, 0.7);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 79, 143, 0.3);
  background: linear-gradient(135deg, #1f4f8f, #2563eb);
  color: #f9fafb !important;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.28);
}

.main {
  flex: 1;
}

.page-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.hero-highlight {
  background: linear-gradient(120deg, #1f4f8f, #2563eb, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #1f4f8f, #2563eb);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: var(--primary);
}

.hero-card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: calc(var(--radius-xl) * 1.1);
  padding: 1.4rem 1.5rem;
  color: #e5e7eb;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.65);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.hero-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.hero-card-text {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.9rem;
}

.hero-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.hero-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.section-heading {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.section-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-dark {
  background: var(--bg-dark);
  color: #e5e7eb;
}

.section-dark .page-section {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.section-dark .section-intro {
  color: #9ca3af;
}

.section-dark .card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.6);
}

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  background: #f9fafb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Simple page variants */

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.5rem;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.93rem;
}

.stack h2 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Neighborhood page */

.neighborhood-header {
  margin-bottom: 1.5rem;
}

.neighborhood-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-card {
    order: -1;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-wrap: wrap;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}