/* === Inner page extras (service pages, blog posts, blog index) === */

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
  padding: 14px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
}
.breadcrumb ol {
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.45;
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb [aria-current="page"] {
  color: var(--steel);
}

/* ── Inner page hero (service/blog) ────────────────────────────── */
.inner-hero {
  padding: clamp(52px, 8vw, 100px) 18px clamp(40px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(0,45,66,0.10) 0%, rgba(0,45,66,0.84) 100%),
    var(--inner-hero-image, none) center / cover no-repeat,
    var(--navy);
  color: var(--white);
}
.inner-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.inner-hero .eyebrow {
  color: var(--gold);
}
.inner-hero .eyebrow::before {
  background: var(--blue);
}
.inner-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin: 12px 0 20px;
  line-height: 1.1;
}
.inner-hero .lede {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  max-width: 640px;
  line-height: 1.65;
}
.inner-hero .cta-row {
  margin-top: 28px;
}

/* ── Article body (blog posts) ──────────────────────────────────── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 18px 72px;
}
.article-wrap h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin: 40px 0 14px;
  color: var(--navy);
}
.article-wrap h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin: 28px 0 10px;
  color: var(--navy);
}
.article-wrap p {
  margin: 0 0 18px;
  line-height: 1.72;
  font-size: clamp(0.97rem, 1.8vw, 1.06rem);
  color: var(--ink);
}
.article-wrap ul, .article-wrap ol {
  margin: 0 0 20px 20px;
  line-height: 1.7;
  font-size: clamp(0.96rem, 1.8vw, 1.04rem);
}
.article-wrap li + li {
  margin-top: 6px;
}
.article-wrap .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.article-meta .blog-tag {
  background: var(--blue-soft);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-meta time, .article-meta .article-byline {
  font-size: 0.85rem;
  color: var(--steel);
  font-weight: 600;
}
.article-photo {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 36px;
  display: block;
}
.article-cta-box {
  margin: 48px 0 0;
  padding: 32px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
}
.article-cta-box h3 {
  color: var(--white);
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}
.article-cta-box p {
  color: rgba(255,255,255,0.82);
  margin: 0 0 20px;
}

/* ── Blog index ─────────────────────────────────────────────────── */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.blog-index-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 150ms ease, transform 150ms ease;
  display: flex;
  flex-direction: column;
}
.blog-index-card:hover {
  box-shadow: 0 8px 28px rgba(0,45,66,0.14);
  transform: translateY(-2px);
}
.blog-index-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-index-card .card-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-index-card .blog-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.blog-index-card h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.25;
}
.blog-index-card p {
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.blog-index-card .read-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}

/* ── Service page body ──────────────────────────────────────────── */
.service-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 18px 80px;
}
.service-body h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin: 42px 0 14px;
}
.service-body h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--navy);
  margin: 28px 0 10px;
}
.service-body p {
  font-size: clamp(0.97rem, 1.8vw, 1.06rem);
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 18px;
}
.service-body ul, .service-body ol {
  margin: 0 0 20px 20px;
  line-height: 1.7;
  font-size: clamp(0.96rem, 1.8vw, 1.04rem);
}
.service-body li + li {
  margin-top: 6px;
}
.service-faq {
  margin-top: 52px;
  border-top: 2px solid var(--navy-soft);
  padding-top: 40px;
}
.service-faq h2 {
  margin-top: 0;
}
.service-related {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.service-related h3 {
  margin-top: 0;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.related-links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.related-links a:hover {
  background: var(--navy);
  color: var(--white);
}

/* FIX 2026-07-08: inner-page hero/article <h1> was inheriting the homepage
   `h1 { max-width: 10ch }` cap (shared.css:331). At the inner-hero font-size
   that is ~152px, so long single words ("Chiropractic", "Rehabilitation",
   "Decompression") overflowed and broke mid-glyph ("Chiropracti / c Care").
   Widen so titles wrap only at word boundaries. */
.inner-hero h1 { max-width: 24ch; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.article-wrap h1 { max-width: 28ch; word-break: normal; overflow-wrap: break-word; hyphens: none; }

/* ============================================================
   FIX 2026-07-09: subpage footer was effectively unstyled.
   shared.css's .footer-bottom/.footer-links were written for the
   homepage's DARK contact section (white/gold text), so on inner
   pages the footer rendered white-on-cream — invisible, "broken".
   The .site-footer block below gives inner pages a real footer and
   overrides those homepage-scoped rules inside its own context.
   ============================================================ */
.site-footer {
  margin-top: 72px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
.site-footer .footer-inner {
  display: grid;
  gap: 32px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 52px 18px 40px;
}
@media (min-width: 760px) {
  .site-footer .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.site-footer .logo-text {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.site-footer .logo-accent { color: var(--gold); }
.site-footer .footer-brand p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer .footer-links {
  display: block;          /* override homepage flex/gold rule */
  color: inherit;
  font-weight: 400;
}
.site-footer .footer-links ul,
.site-footer .footer-contact address {
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 2;
}
.site-footer .footer-links a,
.site-footer .footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 150ms ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover { color: var(--gold); }
.site-footer .footer-bottom {
  display: block;           /* override homepage grid rule */
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
.site-footer .footer-bottom p { margin: 0; }

/* Credential rail — client-approved wording, shown near the first viewport */
.credential-rail {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  /* Sits on the dark hero — navy-on-navy was unreadable. Light text, gold name. */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.credential-rail b { color: var(--gold); }

/* Patient Center: downloadable forms list */
.form-list { display: grid; gap: 14px; margin: 22px 0 8px; }
.form-list a.form-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
  transition: border-color 150ms ease, background 150ms ease;
}
.form-list a.form-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.form-list a.form-card .pdf-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.form-list a.form-card small {
  display: block;
  font-weight: 400;
  color: var(--steel);
  margin-top: 2px;
}

/* Honest placeholder marker for content awaiting client approval */
.pending-copy {
  margin: 26px 0;
  padding: 18px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.65;
}
.pending-copy strong { color: var(--navy); }

/* FIX 2026-07-09: .sticky-call-bar had no styles anywhere, so it rendered as a
   stray trailing "Call (908) 771-0220" text link under the footer (duplicating
   the footer's phone). Make it what it was meant to be: a mobile-only sticky
   call bar; hidden entirely on desktop. */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 -6px 18px rgba(0, 45, 66, 0.18);
}
@media (max-width: 759px) {
  .sticky-call-bar { display: flex; }
  body { padding-bottom: 54px; }
}

/* FIX 2026-07-09: .btn-gold was used 38x across the site but never defined —
   CTAs rendered as bare uppercase text (white-on-navy boxes looked like plain
   copy, invisible affordance). */
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #e6ad00; transform: translateY(-1px); }

/* btn-secondary is a white-outline button for DARK sections; the reviews
   section is light, so "Read all 94 reviews" was white-on-cream. */
.reviews .btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}


/* Hours strip in the hero — replaces the cramped one-line ticker */
.hours-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 34px auto 0;
  width: min(100%, var(--max));
}
@media (min-width: 860px) { .hours-strip { grid-template-columns: repeat(6, 1fr); } }
.hours-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(0, 45, 66, 0.55);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}
.hours-cell b {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hours-cell.hours-call { justify-content: center; }
.hours-cell.hours-call a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Homepage: site-footer sits directly under the dark contact section */
.site-footer.flush { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* FIX 2026-07-09 (2nd pass): `.service-body h3`/`.service-body p` are declared
   LATER in this file than `.article-cta-box h3/p` at equal specificity, so the
   CTA box inside a service body rendered navy/ink text on its navy background
   — unreadable. Higher-specificity late overrides win everywhere. */
.service-body .article-cta-box h3,
.article-wrap .article-cta-box h3,
.article-cta-box h3 {
  color: var(--white);
}
.service-body .article-cta-box p,
.article-wrap .article-cta-box p,
.article-cta-box p {
  color: rgba(255, 255, 255, 0.85);
}
