/* =========================================================================
   Feldstein Family Law — Help Centre
   Template-specific styles for archive-help_center.php and single-help_center.php

   Source of truth: extracted from approved Daedalus mockups
     /website-project/help-center-mockups/archive.html
     /website-project/help-center-mockups/topic-landing.html
     /website-project/help-center-mockups/article.html

   Design tokens (--wine, --navy, --cream, etc.) and shared components
   (.blog-card, .blog-grid, .page-hero, .cta, .locations) are owned by
   global.css / archive.css. This file holds only the help-centre-specific
   chrome — topic sections, sidebar, article prose, callouts.
   ========================================================================= */

/* =========================================
   ARCHIVE — HERO INTRO (archive-help_center.php)
   ========================================= */
.page-hero-intro {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: center;
}
.page-hero-intro p {
  margin: 0 0 1em;
}
.page-hero-intro p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .page-hero-intro {
    margin-top: 22px;
    font-size: 1rem;
    text-align: left;
  }
}

/* =========================================
   ARCHIVE — TOPIC SECTIONS (archive.html)
   ========================================= */
.topic-section {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border-light);
}
.topic-section:nth-child(even) { background: var(--warm); }
.topic-section:last-of-type { border-bottom: none; }

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.topic-header-text { max-width: 720px; }
.topic-header .topic-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
  display: inline-block;
}
.topic-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.topic-header p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 60ch;
}
.topic-view-all {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wine);
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 6px;
}
.topic-view-all:hover { color: var(--wine-deep); }
.topic-view-all .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform .25s var(--ease);
}
.topic-view-all:hover .arrow { transform: translateX(4px); }

/* Help Centre uses a 4-up blog grid by default; archive.css ships a 3-up.
   Override here for topic sections only — keep blog archive at 3-up. */
.topic-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================================
   SINGLE — TWO-COLUMN LAYOUT
   ========================================= */
.hc-section {
  padding: 90px 0 110px;
  background: var(--cream);
}
.hc-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

/* =========================================
   SINGLE — SIDEBAR
   ========================================= */
.hc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  border-radius: 3px;
  padding: 30px 0 28px;
  box-shadow: 0 12px 40px rgba(12, 23, 43, 0.12);
}
.hc-sidebar-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 28px;
  margin-bottom: 10px;
}
.hc-sidebar-heading {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
  padding: 0 28px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hc-sidebar-list { list-style: none; padding: 0; margin: 0; }
.hc-sidebar-list li { margin: 0; }
.hc-sidebar-list li a {
  display: block;
  padding: 11px 28px 11px 24px;
  border-left: 3px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,0.65);
  transition: color .2s, border-color .2s, background .2s;
}
.hc-sidebar-list li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.hc-sidebar-list li.active a {
  color: #fff;
  border-left-color: var(--wine);
  background: rgba(137,46,83,0.18);
  font-weight: 600;
}

.hc-sidebar-cta {
  margin: 24px 28px 0;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
}
.hc-sidebar-cta p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hc-sidebar-cta a.cta-link {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 2px;
  transition: background .25s;
}
.hc-sidebar-cta a.cta-link:hover { background: var(--wine-deep); color: #fff; }

/* =========================================
   SINGLE — TOPIC ROOT MAIN COLUMN (topic-landing.html)
   ========================================= */
.hc-main {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.hc-main h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.hc-main .hc-section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 12px;
  display: block;
}
.hc-main p { margin-bottom: 1.2em; }
.hc-main p:last-child { margin-bottom: 0; }
.hc-main strong { color: var(--ink); font-weight: 600; }
.hc-main a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: rgba(137, 46, 83, 0.35);
  text-underline-offset: 3px;
}
.hc-main a:hover {
  color: var(--wine-deep);
  text-decoration-color: var(--wine-deep);
}

/* =========================================
   SINGLE — CHILD ARTICLE PROSE (article.html)
   Scoped under .hc-section so we don't collide with post.css's
   global .article-prose block (one-source-of-truth rule, pre-ship-qc B1).
   ========================================= */
.hc-section .article-prose {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.hc-section .article-prose .lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.6em;
  padding-bottom: 1.6em;
  border-bottom: 1px solid var(--border);
}
.hc-section .article-prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}
.hc-section .article-prose h2:first-of-type { margin-top: 0.4em; }
.hc-section .article-prose h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.hc-section .article-prose p { margin-bottom: 1.2em; }
.hc-section .article-prose p:last-child { margin-bottom: 0; }
.hc-section .article-prose strong { color: var(--ink); font-weight: 600; }
.hc-section .article-prose a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: rgba(137, 46, 83, 0.35);
  text-underline-offset: 3px;
  border-bottom: none;
}
.hc-section .article-prose a:hover {
  color: var(--wine-deep);
  text-decoration-color: var(--wine-deep);
}
.hc-section .article-prose ul,
.hc-section .article-prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.hc-section .article-prose li { margin-bottom: 0.4em; padding-left: 0; }

/* Pull-quote / callout (article-only) */
.article-callout {
  margin: 2em 0;
  padding: 32px 36px;
  background: var(--warm);
  border-left: 3px solid var(--wine);
  border-radius: 0 3px 3px 0;
}
.article-callout p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}
.article-callout p:last-child { margin-bottom: 0; }
.article-callout cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wine);
  display: block;
}

/* Inline contact CTA inside the prose column */
.hc-contact-cta {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--warm);
  border-left: 3px solid var(--wine);
  border-radius: 0 3px 3px 0;
}
.hc-section .article-prose .hc-contact-cta {
  margin-top: 48px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--wine);
}
.hc-contact-cta p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}
.hc-contact-cta a { font-weight: 600; }

/* =========================================
   SINGLE — BREADCRUMB IN HERO (article branch)
   ========================================= */
.page-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 24px;
  display: inline-block;
}
.page-hero .breadcrumb a { color: var(--wine); transition: opacity .2s; }
.page-hero .breadcrumb a:hover { opacity: 0.7; }
.page-hero .breadcrumb .crumb-sep {
  margin: 0 8px;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* =========================================
   SINGLE — ALL ARTICLES / MORE FROM TOPIC GRIDS
   ========================================= */
.hc-articles,
.hc-more {
  padding: 90px 0 100px;
  background: var(--warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hc-articles-header,
.hc-more-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.hc-articles-header .overline,
.hc-more-header .overline { margin-bottom: 18px; display: inline-block; }
.hc-articles-header h2,
.hc-more-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.hc-articles-header p,
.hc-more-header p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* hc-articles uses 4-up; hc-more uses 3-up — match mockups */
.hc-articles .blog-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hc-more .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .topic-section .blog-grid,
  .hc-articles .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .hc-grid { grid-template-columns: 280px 1fr; gap: 56px; }
}
@media (max-width: 1024px) {
  .topic-section .blog-grid,
  .hc-articles .blog-grid,
  .hc-more .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hc-grid { grid-template-columns: 1fr; gap: 40px; }
  .hc-sidebar { position: static; }
}
@media (max-width: 768px) {
  .topic-section { padding: 60px 0 50px; }
  .hc-section { padding: 60px 0 70px; }
  .hc-articles,
  .hc-more { padding: 60px 0 70px; }
  .topic-section .blog-grid,
  .hc-articles .blog-grid,
  .hc-more .blog-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 20px;
  }
  .hc-contact-cta,
  .article-callout { padding: 24px 24px; }
  .article-callout p { font-size: 1.15rem; }
  .hc-section .article-prose .lede { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .hc-sidebar-heading { font-size: 1.4rem; }
  .hc-sidebar-list li a { padding: 10px 22px 10px 20px; font-size: 0.88rem; }
  .hc-sidebar-cta { margin: 20px 22px 0; padding: 18px; }
}

/* =========================================
   DARK MODE
   Sidebar already darker than dark-mode page background — keep navy.
   Only swap the warm background bands.
   ========================================= */
[data-theme="dark"] .topic-section:nth-child(even) { background: var(--warm); }
[data-theme="dark"] .hc-articles,
[data-theme="dark"] .hc-more { background: var(--warm); border-color: var(--border); }
[data-theme="dark"] .article-callout { background: var(--warm); }
[data-theme="dark"] .hc-contact-cta { background: var(--warm); }
[data-theme="dark"] .hc-section .article-prose .hc-contact-cta {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--wine);
}
