/* ═══════════════════════════════════════════
   Movement Improvement Massage — blog.css
   Shared styles for /blog/ pages (hub + individual posts)
   Last updated: 2026-05-05
   ═══════════════════════════════════════════ */

/* ─── ARTICLE HERO (individual post header) ─── */
.article-hero {
  padding-top: calc(72px + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(140deg, #063B52 0%, #0B4F6C 55%, #0B7FAD 100%);
  position: relative;
  overflow: hidden;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.article-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.18;
  color: #fff;
  margin-bottom: 1.25rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1.5rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--color-accent-bg);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text-muted); margin: 0 0.4rem; }

/* ─── ARTICLE BODY ─── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 0;
  font-size: 1.075rem;
  line-height: 1.78;
  color: var(--color-text);
}
.article-body .lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.25;
  color: var(--color-text);
  margin: 2.75rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
  margin: 1.85rem 0 0.6rem;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.article-body p strong {
  color: var(--color-text);
  font-weight: 600;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--color-text);
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
/* Body-text links — excludes .btn so primary CTA buttons render with their site-wide button styling intact */
.article-body a:not(.btn) {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.article-body a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ─── INLINE CTA BLOCK ─── */
.article-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--color-accent-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}
.article-cta p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.article-cta .btn {
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
}

/* ─── ARTICLE FAQ ─── */
.article-faq {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.article-faq h2 { margin-top: 0; }
.faq-q-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.faq-q-block:last-child { border-bottom: none; }
.faq-q-block h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0 0 0.6rem;
}
.faq-q-block p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── AUTHOR BIO ─── */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-text { flex: 1; }
.author-bio-text p:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.author-bio-text p:last-child {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── RELATED POSTS ─── */
.related-posts {
  margin: 2.5rem 0 3rem;
}
.related-posts h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.related-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-posts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.related-posts li:last-child { border-bottom: none; }
.related-posts a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.related-posts a:hover { color: var(--color-accent); }
.related-posts .related-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

/* ─── BLOG HUB (index.html) ─── */
.blog-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(140deg, #063B52 0%, #0B4F6C 55%, #0B7FAD 100%);
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.blog-hero .hero-tag { color: rgba(255,255,255,0.65); }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.blog-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  line-height: 1.7;
}

.blog-list-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}
.blog-list-grid { display: grid; gap: 1.5rem; }

.blog-card {
  display: block;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(11, 127, 173, 0.10);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}
.blog-card-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 1rem;
  color: var(--color-text-muted);
}
.blog-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--color-text);
}
.blog-card-excerpt {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}
.blog-card-readmore::after {
  content: '→';
  transition: transform 0.2s;
}
.blog-card:hover .blog-card-readmore::after { transform: translateX(3px); }

.blog-intro {
  padding: var(--section-pad) 0 0;
  background: var(--color-bg);
}
.blog-intro-content { max-width: 720px; }
.blog-intro p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .article-hero { padding-top: calc(64px + 2rem); padding-bottom: 2rem; }
  .article-body { font-size: 1.02rem; }
  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .blog-hero { padding-top: calc(64px + 2.5rem); padding-bottom: 2.5rem; }
  .blog-hero h1 { font-size: 1.85rem; }
  .blog-card { padding: 1.5rem; }
}
