/* ════════════════════════════════════════════════════════════
   Shared design system — Indianapolis Home Inspection Services
   Extracted from the site's existing per-page inline <style>
   (source of truth: index.html). Used by /blog/ pages only —
   the homepage and city landing pages keep their own inline CSS
   untouched.
   ════════════════════════════════════════════════════════════ */

:root {
  --brand:    #374151;
  --brand-dk: #1F2937;
  --dark:     #2D3748;
  --text:     #2D3748;
  --light-bg: #F9FAFB;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
  line-height: 1.3;
}
.btn:active { transform: scale(.98); }
.btn-primary  { background: var(--brand); color: #fff; }
.btn-primary:hover  { background: var(--brand-dk); }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover  { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-white    { background: #fff; color: var(--brand); }
.btn-white:hover    { background: #f0f0f0; }
.section      { padding: 72px 0; }
.text-center  { text-align: center; }
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 1.05rem;
  color: #718096;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sticky Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.logo span { color: #9CA3AF; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; font-size: 1rem; color: #fff; }
.header-phone a { color: #fff; }
.site-header .btn-primary { background: #fff; color: var(--dark); }
.site-header .btn-primary:hover { background: #E5E7EB; }
@media (max-width: 520px) {
  .header-phone { display: none; }
  .logo { font-size: .72rem; white-space: normal; line-height: 1.3; max-width: 58%; }
  .site-header .btn-primary { padding: 8px 12px; font-size: .8rem; }
  .header-inner { height: 60px; }
}
.menu-wrap { position: relative; }
.menu-btn { background: none; border: 1.5px solid rgba(255,255,255,.35); border-radius: 6px; color: #fff; padding: 7px 13px; font-size: .88rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: border-color .2s; }
.menu-btn:hover { border-color: #fff; }
.menu-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: #1F2937; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; min-width: 180px; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 300; }
.menu-dropdown.open { display: block; }
.menu-dropdown a { display: block; padding: 11px 20px; color: #E5E7EB; font-size: .92rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.menu-dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Breadcrumb (matches city landing pages) ── */
.breadcrumb { background: #F3F4F6; border-bottom: 1px solid #E5E7EB; padding: 10px 0; font-size: .83rem; color: #718096; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* ── Hero ── */
.hero {
  background: #ffffff;
  color: var(--dark);
  padding: 80px 0 72px;
  border-bottom: 1px solid #E5E7EB;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 52px;
  align-items: start;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 520px; margin: 0 auto; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #374151;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.13;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub {
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  color: #718096;
}
.check { color: #22c55e; font-size: 1rem; }
.hero .btn-outline { color: var(--dark); border-color: #E5E7EB; }
.hero .btn-outline:hover { background: #F9FAFB; border-color: var(--dark); }

/* ── Stats Bar ── */
.stats-bar { background: var(--brand); padding: 26px 0; }
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: #fff; }
.stat-num  { font-size: 1.9rem; font-weight: 900; display: block; line-height: 1.1; }
.stat-label{ font-size: .82rem; opacity: .88; letter-spacing: .3px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.25); }
@media (max-width: 600px) { .stat-divider { display: none; } }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  padding: 68px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.cta-banner p {
  font-size: 1.08rem;
  opacity: .92;
  margin-bottom: 34px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: #888; padding: 52px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-brand span { color: #9CA3AF; }
.footer-nap { font-size: .88rem; line-height: 2.1; }
.footer-nap a { color: #9CA3AF; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .87rem; color: #718096; transition: color .2s; }
.footer-links a:hover { color: #9CA3AF; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  text-align: center;
  font-size: .8rem;
  color: #444;
}

/* ── Responsive polish ── */
@media (max-width: 768px) {
  .hero { padding: 52px 0 44px; }
  .section { padding: 52px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════════════
   BLOG-SPECIFIC STYLES
   ════════════════════════════════════════════════════════════ */

/* ── Blog hero (index + article pages) ── */
.blog-hero {
  background: var(--light-bg);
  padding: 48px 0 44px;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}
.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.blog-hero p { font-size: 1.05rem; color: #718096; max-width: 620px; margin: 0 auto; }

/* ── Blog index grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.blog-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 26px 24px;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.09); transform: translateY(-4px); }
.blog-card-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--light-bg);
  color: var(--brand);
  border: 1px solid #E5E7EB;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.blog-card h2 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card p { font-size: .9rem; color: #718096; line-height: 1.65; margin-bottom: 16px; flex-grow: 1; }
.blog-card-meta { font-size: .78rem; color: #999; display: flex; gap: 10px; align-items: center; }
.blog-card-link { font-size: .88rem; font-weight: 700; color: var(--brand); margin-top: 14px; }

/* ── Article layout ── */
.article-header { background: #fff; padding: 44px 0 8px; }
.article-cat {
  display: inline-block;
  background: var(--light-bg);
  color: var(--brand);
  border: 1px solid #E5E7EB;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.22;
  margin-bottom: 16px;
  max-width: 820px;
}
.article-meta { font-size: .88rem; color: #718096; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.article-meta span { display: inline-flex; align-items: center; }

.article-wrap { padding: 20px 0 20px; }
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 9px; line-height: 1.7; }
.article-body strong { color: var(--dark); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-dk); }
/* Specificity fix: a general "article body links" rule (element+class) can
   outrank a single-class .btn-primary selector and strip the button's
   white text/underline. Re-assert button styling explicitly for any CTA
   buttons that appear inside article prose. */
.article-body a.btn-primary,
.article-body a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}
.article-body a.btn-outline,
.article-body a.btn-outline:hover {
  text-decoration: none;
}
.article-body blockquote {
  border-left: 4px solid var(--brand);
  background: var(--light-bg);
  padding: 16px 22px;
  margin: 0 0 22px;
  font-size: .98rem;
  color: #4a5568;
  border-radius: 0 8px 8px 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: .92rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E5E7EB; }
.article-body th { font-weight: 700; color: var(--dark); background: var(--light-bg); }

/* ── Inline CTA block (used once per article) ── */
.article-cta {
  max-width: 760px;
  margin: 8px auto 34px;
  background: var(--light-bg);
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 26px 26px;
  text-align: center;
}
.article-cta h3 { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.article-cta p { font-size: .92rem; color: #718096; margin-bottom: 18px; }
.article-cta .cta-actions { gap: 12px; }
.article-cta .btn { font-size: .95rem; padding: 13px 24px; }
.article-cta .btn-outline { color: var(--dark); border-color: #cbd5e0; }
.article-cta .btn-outline:hover { background: #fff; border-color: var(--dark); }

/* ── Related posts ── */
.related-posts { max-width: 760px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid #E5E7EB; }
.related-posts h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card {
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  transition: border-color .2s, color .2s;
}
.related-card:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 600px) {
  .article-header { padding: 32px 0 4px; }
  .article-body { font-size: 1rem; }
}
