/* ════════════════════════════════════════════════════════════
   Shared design system — Louisville 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 ── */
/* Drop a licensed photo at /assets/hero.jpg to fill the background.
   Until it exists, the solid tint ramping to --brand shows cleanly. */
.hero {
  background-color: var(--brand-dk);
  background-image:
    linear-gradient(rgba(20,27,38,.72), rgba(20,27,38,.82)),
    url('/assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 80px 0 72px;
}
.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: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  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;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero h1 em { font-style: normal; color: #fff; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.92);
  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: #4ade80; font-size: 1rem; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── 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; } }

/* ════════════════════════════════════════════════════════════
   CITY LANDING PAGE STYLES
   Used by the generated suburb pages (scripts/generate-cities.js).
   The homepage keeps its own inline copy of these rules.
   ════════════════════════════════════════════════════════════ */

.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-content h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 900; line-height: 1.13; margin-bottom: 18px; }

.hero-form-card { background: #fff; border-radius: 16px; padding: 36px 30px; box-shadow: 0 4px 24px rgba(0,0,0,.08); border: 1px solid #E5E7EB; }
.form-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.form-sub { font-size: .88rem; color: #777; margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-family: inherit; font-size: .93rem; color: var(--text); transition: border-color .2s; outline: none; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit { width: 100%; padding: 15px; font-size: 1rem; font-weight: 700; background: var(--brand); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background .2s; margin-top: 6px; font-family: inherit; }
.form-submit:hover { background: var(--brand-dk); }
.form-privacy { text-align: center; font-size: .76rem; color: #999; margin-top: 9px; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success .check-big { font-size: 3rem; margin-bottom: 14px; }
.form-success h3 { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.form-success p { font-size: .92rem; color: #718096; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 48px; }
.service-card { border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 28px 22px; transition: box-shadow .25s, transform .25s; background: #fff; }
.service-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.09); transform: translateY(-4px); }
.service-icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: #718096; line-height: 1.65; }

.about-city { background: #fff; }
.about-city-inner { max-width: 820px; margin: 0 auto; }
.about-city-inner p { font-size: 1rem; color: #4A5568; line-height: 1.85; margin-bottom: 18px; }

.why-section { background: var(--light-bg); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; margin-top: 48px; }
.why-item { text-align: center; }
.why-icon { width: 66px; height: 66px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.55rem; font-weight: 900; }
.why-item h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.why-item p { font-size: .88rem; color: #718096; line-height: 1.65; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 48px; }
.process-step { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 30px 22px; text-align: center; }
.step-num { width: 50px; height: 50px; background: var(--brand); color: #fff; font-weight: 900; font-size: 1.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: #718096; line-height: 1.65; }

.areas-section { background: var(--light-bg); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; margin-top: 40px; }
.area-pill { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 8px; padding: 12px 14px; text-align: center; font-size: .88rem; font-weight: 600; color: var(--dark); transition: border-color .2s, color .2s; }
.area-pill:hover { border-color: var(--brand); color: var(--brand); }
.area-pill.current { background: var(--brand); color: #fff; border-color: var(--brand); }

.faq-list { margin-top: 48px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item { border: 1.5px solid #E5E7EB; border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-question { width: 100%; background: transparent; border: none; padding: 20px 22px; text-align: left; font-family: inherit; font-size: .98rem; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question:hover { background: #fafafa; }
.faq-chevron { flex-shrink: 0; width: 20px; height: 20px; transition: transform .25s; color: var(--brand); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 22px 20px; font-size: .92rem; color: #718096; line-height: 1.75; }

/* ── 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; }
}
