/*
 * Neighborhood Review Template — Shared Styles
 * 11-section template for all 10 flagship neighborhoods
 * Prefix: nb- (neighborhood)
 * Accessibility: 16px+ font, 4.5:1 contrast, 44px touch targets
 */

/* === Section Framework === */

.nb-section {
  padding: 3rem 1.5rem;
}

.nb-section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.nb-section--dark {
  background: #0f172a;
  color: #e2e8f0;
}

.nb-section--dark h2,
.nb-section--dark h3 {
  color: #f8fafc;
}

.nb-section--dark p,
.nb-section--dark li {
  color: #cbd5e1;
}

.nb-inner {
  max-width: 860px;
  margin: 0 auto;
}

.nb-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.nb-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.nb-prose {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.nb-section--dark .nb-prose {
  color: #cbd5e1;
}

.nb-prose strong {
  font-weight: 600;
  color: #1e293b;
}

.nb-section--dark .nb-prose strong {
  color: #f1f5f9;
}

.nb-section-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* === Section 1: Hero / 60-Second Pitch === */

.nb-hero {
  background: #fff;
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 1px solid #e2e8f0;
}

.nb-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.nb-hero-archetype {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.nb-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.nb-hero-tagline {
  font-size: 1.25rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.nb-hero-pitch {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.nb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nb-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  color: #475569;
}

.nb-meta-value {
  font-weight: 600;
  color: #0f172a;
}

/* Quick-nav anchors inside hero */
.nb-section-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.nb-section-anchor {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid #6366f1;
  color: #6366f1;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.18s, color 0.18s;
}

.nb-section-anchor:hover {
  background: #6366f1;
  color: #fff;
}

.nb-section-anchor:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* === Section 2: Work Setup === */

.nb-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.nb-work-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.nb-section--alt .nb-work-card {
  background: #fff;
}

.nb-work-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.375rem;
}

.nb-work-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.nb-work-card-detail {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

.nb-fiber-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.75rem 0;
}

.nb-fiber-status--live {
  background: #dcfce7;
  color: #166534;
}

.nb-fiber-status--no {
  background: #fef3c7;
  color: #92400e;
}

.nb-fiber-status--coming {
  background: #dbeafe;
  color: #1e40af;
}

.nb-coworking-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nb-coworking-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
}

.nb-coworking-list li:last-child {
  border-bottom: none;
}

.nb-coworking-name {
  font-weight: 600;
  color: #0f172a;
}

/* === Section 3: Honest Downsides === */

.nb-downsides {
  background: #0f172a;
}

.nb-downside-items {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nb-downside-items li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #334155;
  font-size: 1.0625rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.nb-downside-items li:last-child {
  border-bottom: none;
}

.nb-downside-items li strong {
  color: #f1f5f9;
}

/* === Section 4: Who Swaps Here === */

.nb-swap-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0;
}

.nb-swap-profile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.nb-section--alt .nb-swap-profile {
  background: #fff;
}

.nb-swap-profile-title {
  font-weight: 600;
  font-size: 1.0625rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.nb-swap-profile-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

/* === Section 5: Your Day Here (Timeline) === */

.nb-timeline {
  margin: 1.25rem 0;
  border-left: 3px solid #6366f1;
  padding-left: 1.5rem;
}

.nb-timeline-block {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.nb-timeline-block:last-child {
  border-bottom: none;
}

.nb-timeline-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.nb-timeline-activity {
  font-size: 1.0625rem;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.nb-timeline-detail {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

/* === Section 6: Space & Housing === */

.nb-housing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.nb-housing-tier {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.nb-section--alt .nb-housing-tier {
  background: #fff;
}

.nb-tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.nb-tier-gets {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

.nb-market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.nb-market-stat {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.nb-section--alt .nb-market-stat {
  background: #fff;
}

.nb-market-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.nb-market-stat-label {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.25rem;
}

/* === Section 7: Food & Culture === */

.nb-restaurant-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nb-restaurant-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.5;
}

.nb-restaurant-list li:last-child {
  border-bottom: none;
}

.nb-restaurant-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: #0f172a;
}

.nb-restaurant-type {
  font-size: 1rem;
  color: #475569;
}

/* === Section 8: Outdoor Access === */

.nb-trail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nb-trail-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
}

.nb-trail-list li:last-child {
  border-bottom: none;
}

.nb-trail-name {
  font-weight: 600;
  color: #0f172a;
}

.nb-trail-drive {
  font-size: 0.875rem;
  color: #475569;
}

/* === Section 9: Schools & Family (Collapsible) === */

.nb-schools-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  min-height: 44px;
  transition: background 0.15s;
}

.nb-schools-toggle:hover {
  background: #f8fafc;
}

.nb-schools-toggle:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.nb-schools-toggle-icon {
  font-size: 1.25rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nb-schools-toggle[aria-expanded="true"] .nb-schools-toggle-icon {
  transform: rotate(180deg);
}

.nb-schools-content {
  display: none;
  padding: 1rem 0;
}

.nb-schools-content.open {
  display: block;
}

.nb-school-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.nb-section--alt .nb-school-card {
  background: #fff;
}

.nb-school-name {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
}

.nb-school-rating {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 0.5rem;
}

.nb-school-rating--a { background: #dcfce7; color: #166534; }
.nb-school-rating--b { background: #dbeafe; color: #1e40af; }
.nb-school-rating--c { background: #fef3c7; color: #92400e; }

.nb-school-detail {
  font-size: 1rem;
  color: #475569;
  margin-top: 0.375rem;
  line-height: 1.5;
}

/* === Section 10: Summer Reality === */

.nb-summer-temp {
  font-size: 2rem;
  font-weight: 700;
  color: #ea580c;
  margin: 0.5rem 0;
}

.nb-section--dark .nb-summer-temp {
  color: #fb923c;
}

.nb-summer-tips {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nb-summer-tips li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #334155;
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.nb-summer-tips li:last-child {
  border-bottom: none;
}

.nb-summer-tips li strong {
  color: #f1f5f9;
}

/* === Section 11: The Numbers + Best For / Not For === */

.nb-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.nb-number-card {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.nb-section--alt .nb-number-card {
  background: #fff;
}

.nb-number-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.nb-number-label {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.25rem;
}

/* Rating badges */
.nb-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.nb-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 120px;
  flex: 1;
}

.nb-section--alt .nb-rating {
  background: #fff;
}

.nb-rating-dim {
  font-size: 0.875rem;
  color: #475569;
  text-align: center;
  margin-bottom: 0.25rem;
}

.nb-rating-grade {
  font-size: 1.5rem;
  font-weight: 700;
}

.nb-grade-a { color: #166534; }
.nb-grade-b { color: #1e40af; }
.nb-grade-c { color: #92400e; }
.nb-grade-d { color: #991b1b; }

/* Best For / Not For tags */
.nb-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.nb-tag {
  border-radius: 8px;
  padding: 1.25rem;
}

.nb-tag--best {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.nb-tag--not {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.nb-tag-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.nb-tag--best .nb-tag-title {
  color: #166534;
}

.nb-tag--not .nb-tag-title {
  color: #92400e;
}

.nb-tag-text {
  font-size: 1rem;
  line-height: 1.5;
}

.nb-tag--best .nb-tag-text {
  color: #14532d;
}

.nb-tag--not .nb-tag-text {
  color: #78350f;
}

/* === CTA at bottom of each review === */

.nb-cta {
  text-align: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.nb-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.nb-cta p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1rem;
}

.nb-cta-alt {
  font-size: 1rem;
  color: #475569;
  margin-top: 1rem;
}

.nb-cta-alt a {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 600;
}

.nb-cta-alt a:hover {
  color: #4f46e5;
}

/* === Scroll margin for sticky nav === */

.nb-hero,
.nb-section {
  scroll-margin-top: 70px;
}

/* === Responsive === */

@media (max-width: 768px) {
  .nb-hero h1 { font-size: 1.75rem; }
  .nb-hero-tagline { font-size: 1.1rem; }
  .nb-work-grid { grid-template-columns: 1fr; }
  .nb-swap-profiles { grid-template-columns: 1fr; }
  .nb-housing-tiers { grid-template-columns: 1fr; }
  .nb-market-stats { grid-template-columns: 1fr; }
  .nb-numbers-grid { grid-template-columns: 1fr; }
  .nb-tags { grid-template-columns: 1fr; }
  .nb-ratings { justify-content: center; }
}

@media (max-width: 639px) {
  .nb-hero { padding: 2.5rem 1rem 2rem; }
  .nb-section { padding: 2rem 1rem; }
  .nb-section-anchors { gap: 0.375rem; }
}
