/* ==============================================================
   Candid Home Inspections - Shared article page styles
   ============================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fbfbfd; color: #1d1d1f;
  font-size: 17px; line-height: 1.47059;
  font-weight: 400; letter-spacing: -.022em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #0071e3; text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
::selection { background: #1d1d1f; color: #fbfbfd; }

/* Nav */
nav.global { position: sticky; top: 0; z-index: 9999; height: 120px; background: rgba(251, 251, 253, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .04); }
nav.global .container { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
nav.global .logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
nav.global .logo img { height: 100px; width: auto; max-width: none; display: block; }
nav.global ul { display: flex; gap: 26px; align-items: center; }
nav.global ul a { color: #1d1d1f; font-size: 12px; font-weight: 400; letter-spacing: -.01em; opacity: .82; }
nav.global ul a:hover { opacity: 1; text-decoration: none; }
nav.global .schedule-pill { background: #1d1d1f; color: #fff !important; padding: 6px 14px; border-radius: 980px; font-size: 12px; font-weight: 500; letter-spacing: -.01em; opacity: 1 !important; transition: background .2s ease; }
nav.global .schedule-pill:hover { background: #f8433d; text-decoration: none; }

/* Breadcrumb */
.breadcrumb { max-width: 1440px; margin: 0 auto; padding: 18px 22px 0; font-size: 13px; color: #86868b; letter-spacing: -.01em; }
.breadcrumb a { color: #6e6e73; }
.breadcrumb a:hover { color: #1d1d1f; }
.breadcrumb .sep { margin: 0 8px; color: #d2d2d7; }
.breadcrumb .current { color: #1d1d1f; font-weight: 500; }

/* Article */
article.post { max-width: 720px; margin: 0 auto; padding: 56px 24px 64px; }
article.post header { text-align: center; margin-bottom: 40px; }
article.post .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #f8433d; margin-bottom: 18px; }
article.post h1 { font-size: 56px; line-height: 1.06; font-weight: 600; letter-spacing: -.015em; color: #1d1d1f; margin-bottom: 20px; }
article.post .meta { font-size: 14px; color: #86868b; letter-spacing: -.005em; }
article.post .meta span { margin: 0 8px; color: #d2d2d7; }
article.post .body { font-size: 19px; line-height: 1.6; color: #1d1d1f; letter-spacing: -.005em; }
article.post .body p { margin-bottom: 22px; }
article.post .body h2 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: #1d1d1f; margin: 44px 0 16px; }
article.post .body h3 { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.005em; color: #1d1d1f; margin: 36px 0 12px; }
article.post .body ol, article.post .body ul { margin: 0 0 22px 0; padding-left: 0; list-style: none; counter-reset: list; }
article.post .body ol li { position: relative; padding-left: 44px; margin-bottom: 18px; counter-increment: list; }
article.post .body ol li::before { content: counter(list); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; background: #f8433d; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: 0; }
article.post .body ul li { position: relative; padding-left: 24px; margin-bottom: 12px; }
article.post .body ul li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #f8433d; }
article.post .body strong { font-weight: 600; color: #1d1d1f; }
article.post .body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
article.post .body table th, article.post .body table td { padding: 10px 14px; border: 1px solid rgba(0,0,0,.1); text-align: left; }
article.post .body table th { background: #f5f5f7; font-weight: 600; }

/* Inline CTA */
.inline-cta { background: linear-gradient(135deg, #254d63 0%, #1a3847 100%); color: #fff; border-radius: 18px; padding: 40px 32px; text-align: center; margin: 56px auto; max-width: 720px; }
.inline-cta .eyebrow { font-size: 13px; color: #ff6b66; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.inline-cta h3 { font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: #fff; margin-bottom: 12px; }
.inline-cta p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.inline-cta .btn { display: inline-block; background: #f8433d; color: #fff; padding: 12px 30px; border-radius: 980px; font-size: 17px; font-weight: 500; transition: background .2s ease; }
.inline-cta .btn:hover { background: #e63730; text-decoration: none; }
.inline-cta .secondary { display: block; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); }
.inline-cta .secondary a { color: #fff; font-weight: 500; }

/* Related */
.related-row { max-width: 1440px; margin: 0 auto 14px; padding: 0 14px; }
.related-tile { max-width: 1100px; margin: 0 auto 14px; padding: 64px 24px; background: #fff; border-radius: 18px; }
.related-tile h2 { font-size: 36px; font-weight: 600; letter-spacing: -.01em; text-align: center; color: #1d1d1f; margin-bottom: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: #f5f5f7; border-radius: 14px; padding: 24px 22px; transition: background .2s ease; }
.related-card:hover { background: #ebebed; }
.related-card a { color: #1d1d1f; }
.related-card a:hover { text-decoration: none; }
.related-card .label { font-size: 12px; color: #f8433d; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.related-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; color: #1d1d1f; }

/* Footer */
footer { background: #f5f5f7; color: #6e6e73; font-size: 12px; padding: 44px 0 22px; margin-top: 14px; }
footer .container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #d2d2d7; margin-bottom: 22px; }
.footer-top .footer-logo { height: 36px; width: auto; }
.footer-top .footer-badge { height: 60px; width: auto; }
footer .legal-note { font-size: 12px; line-height: 1.5; padding-bottom: 18px; border-bottom: 1px solid #d2d2d7; margin-bottom: 18px; }
footer .columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 28px; border-bottom: 1px solid #d2d2d7; margin-bottom: 18px; }
footer .col h4 { font-size: 12px; font-weight: 600; color: #1d1d1f; margin-bottom: 8px; letter-spacing: -.01em; }
footer .col li { margin-bottom: 6px; }
footer .col a { color: #6e6e73; font-size: 12px; letter-spacing: -.01em; }
footer .col a:hover { color: #1d1d1f; text-decoration: underline; }
footer .bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6e6e73; }
footer .bottom .social { display: flex; gap: 18px; }
footer .bottom .social a { color: #6e6e73; }

/* Responsive */
@media (max-width: 1068px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  nav.global { height: 80px; }
  nav.global .logo img { height: 60px; }
  nav.global ul { gap: 14px; }
  nav.global ul li.hide-mobile { display: none; }
  article.post { padding: 36px 18px 48px; }
  article.post h1 { font-size: 36px; }
  article.post .body { font-size: 18px; }
  article.post .body h2 { font-size: 26px; }
  article.post .body h3 { font-size: 21px; }
  .inline-cta { padding: 32px 24px; }
  .inline-cta h3 { font-size: 24px; }
  .related-tile { padding: 48px 20px; }
  .related-tile h2 { font-size: 28px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 18px; }
  footer .columns { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  footer .bottom { flex-direction: column; gap: 14px; text-align: center; }
}
