/* ========================================
   SHARED SECTION INTRO ALIGNMENT
   Center section-intro copy only when the heading owns the full container width.
   Split layouts, cards, forms and other partial-width content stay left-aligned.
======================================== */

.page-section > .container > .section-heading,
.section > .container > .section-heading,
.service-section > .container > .section-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-section > .container > .section-heading p,
.section > .container > .section-heading p,
.service-section > .container > .section-heading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep the preferred Poppins treatment consistent on section titles. */
.section-heading h2,
.market-report-heading h2,
.market-state-subheading h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ========================================
   MARKET REPORT
======================================== */

.market-report-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.market-report-section > .container > .market-report-heading:not(.market-report-heading-split),
.market-report-section > .container > .market-state-subheading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.market-report-section > .container > .market-report-heading:not(.market-report-heading-split) p,
.market-report-section > .container > .market-state-subheading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   HOT LISTINGS / NEW ON MARKET
======================================== */

.hot-listings-heading-row {
  position: relative;
  align-items: center;
  justify-content: center;
}

.hot-listings-heading-row > .hot-listings-heading {
  width: min(820px, calc(100% - 140px));
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hot-listings-heading-row > .hot-listings-heading p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hot-listings-heading-row > .hot-listings-controls {
  position: absolute;
  right: 0;
  bottom: 6px;
}

.hot-listings-note {
  text-align: center;
}

/* ========================================
   YOUTUBE CAROUSELS
======================================== */

.youtube-video-content,
.youtube-video-card h4 {
  text-align: center;
}

/* ========================================
   CLIENT REVIEWS
======================================== */

.review-card-home {
  text-align: center;
}

.review-card-home .review-source {
  align-self: center;
}

.review-card-home .review-stars {
  text-align: center;
}

.review-card-home .review-meta {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.review-links {
  justify-content: center;
}

/* Older/shared review component, retained for pages that still use it. */
.reviews-carousel .review-card {
  align-items: center;
  text-align: center;
}

.reviews-carousel .review-platform,
.reviews-carousel .review-stars,
.reviews-carousel .review-quote,
.reviews-carousel .review-meta {
  text-align: center;
}

.reviews-carousel .review-stars,
.reviews-carousel .review-meta {
  justify-content: center;
}

@media (max-width: 767px) {
  .hot-listings-heading-row > .hot-listings-heading {
    width: 100%;
  }

  .hot-listings-heading-row > .hot-listings-controls {
    position: static;
  }
}

/* ========================================
   DARK SURFACE CONTRAST SAFETY
   home-modern.css intentionally gives normal headings a dark text color.
   These contextual rules ensure headings on dark shared components stay light.
======================================== */

body.modern-home .service-hero h1,
body.modern-home .service-hero h2,
body.modern-home .service-hero h3,
body.modern-home .service-section-dark h1,
body.modern-home .service-section-dark h2,
body.modern-home .service-section-dark h3,
body.modern-home .service-cta h1,
body.modern-home .service-cta h2,
body.modern-home .service-cta h3,
body.modern-home .market-research-cta h1,
body.modern-home .market-research-cta h2,
body.modern-home .market-research-cta h3,
body.modern-home .cta-box h1,
body.modern-home .cta-box h2,
body.modern-home .cta-box h3 {
  color: #ffffff;
}

body.modern-home .service-hero p,
body.modern-home .service-section-dark p,
body.modern-home .service-cta p,
body.modern-home .market-research-cta p,
body.modern-home .cta-box p {
  color: rgba(255, 255, 255, 0.82);
}

/* ========================================
   SEARCH DECISION FRAMEWORK
======================================== */

.decision-fit-section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.decision-fit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.decision-fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  line-height: 1.7;
}

.decision-fit-list i {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  font-size: 12px;
}

.decision-fit-note {
  max-width: 920px;
  margin: 24px 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.78;
}

/* ========================================
   RELATED RESEARCH
======================================== */

.related-research-section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.related-research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.related-research-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.related-research-card:hover,
.related-research-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.related-research-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.65;
}

.related-research-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.related-research-card p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.8;
}

.related-research-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
}

/* ========================================
   RESEARCH NOTES / SOURCE TRANSPARENCY
======================================== */

.research-notes-section {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.research-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: start;
}

.research-notes-layout h2 {
  margin-top: 8px;
}

.research-notes-layout p {
  line-height: 1.8;
}

.research-reviewed {
  font-weight: 700;
}

.research-source-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
}

.research-source-panel h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.research-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.research-source-list li + li {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.research-source-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
}

.research-source-list a:hover strong,
.research-source-list a:focus-visible strong {
  text-decoration: underline;
}

.research-source-list strong {
  grid-column: 1;
  font-size: 0.96rem;
}

.research-source-list span {
  grid-column: 1;
  font-size: 0.78rem;
  opacity: 0.65;
}

.research-source-list i {
  grid-column: 2;
  grid-row: 1 / span 2;
  opacity: 0.55;
}

@media (max-width: 1050px) {
  .related-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-fit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .related-research-grid,
  .research-notes-layout {
    grid-template-columns: 1fr;
  }

  .research-notes-layout {
    gap: 26px;
  }

  .research-source-panel,
  .related-research-card,
  .decision-fit-list li {
    padding: 20px;
  }
}

/* ========================================
   QUICK TAKE
======================================== */

.quick-take-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.quick-take-heading {
  max-width: 820px;
}

.quick-take-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.quick-take-card {
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #fff;
}

.quick-take-card > span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.quick-take-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.quick-take-card p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.82;
}

@media (max-width: 1050px) {
  .quick-take-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .quick-take-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RESEARCH BREADCRUMBS + JUMP NAV
======================================== */

.research-breadcrumbs,
.neighborhood-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.research-breadcrumbs a,
.neighborhood-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.research-breadcrumbs a:hover,
.research-breadcrumbs a:focus-visible,
.neighborhood-breadcrumbs a:hover,
.neighborhood-breadcrumbs a:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

.research-breadcrumbs span,
.neighborhood-breadcrumbs span {
  opacity: 0.58;
}

.research-jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.research-jump-nav > span {
  margin-right: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.research-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: inherit;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.research-jump-nav a:hover,
.research-jump-nav a:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

@media (max-width: 650px) {
  .research-jump-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .research-jump-nav > span,
  .research-jump-nav a {
    white-space: nowrap;
  }
}

/* ========================================
   NEIGHBORHOOD MARKET CONTEXT
======================================== */

.neighborhood-market-context {
  padding-top: 32px;
  padding-bottom: 32px;
}

.market-context-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background: #fff;
}

.market-context-callout h2 {
  margin: 7px 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.market-context-callout p {
  max-width: 900px;
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 820px) {
  .market-context-callout {
    grid-template-columns: 1fr;
  }

  .market-context-callout .site-button {
    width: fit-content;
  }
}
