/* ===========================================================
   425 Fire & Water Restoration — Blog stylesheet
   Shared by blog/index.html and all article pages.
   =========================================================== */

:root {
  --primary: #0A2540;
  --primary-light: #1a3a5c;
  --accent: #E8530E;
  --accent-hover: #d44a0a;
  --blue: #0070E0;
  --blue-light: #e8f4fd;
  --success: #00A86B;
  --warning: #F5A623;
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-50: #f9fafb;
  --gray-100: #F0F2F5;
  --gray-200: #E2E5EA;
  --gray-300: #C8CDD5;
  --gray-400: #9BA3AE;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --text: #1a1a2e;
  --text-light: #555B6E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.blog-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.blog-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.blog-logo { display: flex; align-items: center; gap: 12px; }
.blog-logo img { width: 52px; height: 58px; }
.blog-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.blog-logo-name { font-weight: 800; font-size: 18px; color: var(--primary); }
.blog-logo-tagline { font-size: 11px; color: var(--gray-500); letter-spacing: 0.04em; text-transform: uppercase; }
.blog-nav-links { display: flex; align-items: center; gap: 28px; }
.blog-nav-links a { color: var(--gray-700); font-weight: 600; font-size: 15px; }
.blog-nav-links a:hover { color: var(--accent); }
.blog-nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
}
.blog-nav-call:hover { background: var(--accent-hover); color: var(--white); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px; color: var(--gray-500);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--gray-300); }

/* ---------- Article header ---------- */
.article-header { padding: 24px 0 8px; max-width: 800px; margin: 0 auto; }
.article-tag {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800; color: var(--primary);
  line-height: 1.18; margin-bottom: 18px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 14px; color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 24px;
}
.article-meta strong { color: var(--gray-700); font-weight: 600; }

/* ---------- Article body ---------- */
.article-body { max-width: 800px; margin: 0 auto; padding: 36px 0 20px; }
.article-body p { margin-bottom: 22px; font-size: 17px; color: var(--text-light); }
.article-body .lead {
  font-size: 20px; color: var(--gray-700); font-weight: 500;
  line-height: 1.6;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 800; color: var(--primary);
  margin: 44px 0 16px; line-height: 1.3;
}
.article-body h3 {
  font-size: 21px; font-weight: 700; color: var(--primary);
  margin: 32px 0 12px;
}
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 10px; font-size: 17px; color: var(--text-light); }
.article-body strong { color: var(--gray-800); }
.article-body a { font-weight: 600; text-decoration: underline; }

/* Callout box */
.callout {
  background: var(--off-white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 26px; margin: 30px 0;
}
.callout-title {
  font-weight: 800; color: var(--primary);
  font-size: 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.callout p { margin-bottom: 0; font-size: 16px; }

/* Key facts table */
.fact-table {
  width: 100%; border-collapse: collapse; margin: 26px 0;
  font-size: 16px;
}
.fact-table th, .fact-table td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.fact-table th { background: var(--primary); color: var(--white); font-weight: 700; }
.fact-table tr:nth-child(even) td { background: var(--gray-50); }

/* ---------- Inline CTA ---------- */
.article-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 38px 40px; margin: 44px auto; max-width: 800px;
  color: var(--white); text-align: center;
}
.article-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; color: var(--white); margin-bottom: 10px;
}
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 22px; font-size: 16px; }
.article-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); color: var(--primary); }

/* ---------- FAQ ---------- */
.article-faq { max-width: 800px; margin: 44px auto; }
.article-faq h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 800; color: var(--primary);
  margin-bottom: 18px;
}
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.faq-item p { font-size: 16px; color: var(--text-light); margin: 0; }

/* ---------- Related articles ---------- */
.related { background: var(--off-white); padding: 56px 0; margin-top: 48px; }
.related h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 800; color: var(--primary);
  text-align: center; margin-bottom: 30px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1000px; margin: 0 auto;
}
.related-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 24px;
  transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.related-card .article-tag { margin-bottom: 12px; font-size: 11px; padding: 4px 10px; }
.related-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.4; }
.related-card a { color: inherit; }
.related-card:hover h3 { color: var(--accent); }

/* ---------- Blog index ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); padding: 72px 0 64px; text-align: center;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 6vw, 54px); font-weight: 800;
  margin-bottom: 16px;
}
.blog-hero p { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto; }
.blog-index { padding: 56px 0 72px; }
.blog-index-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.index-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 26px;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.index-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gray-300); }
.index-card h2 {
  font-size: 18px; font-weight: 700; color: var(--primary);
  line-height: 1.4; margin: 12px 0 10px;
}
.index-card:hover h2 { color: var(--accent); }
.index-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; flex-grow: 1; }
.index-card .read-more { font-size: 14px; font-weight: 700; color: var(--accent); }
.blog-cat-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 800; color: var(--primary);
  margin: 48px 0 22px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}
.blog-cat-heading:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */
.blog-footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 48px 0 28px; margin-top: 0;
}
.blog-footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.blog-footer-brand { max-width: 360px; }
.blog-footer-brand .blog-logo-name { color: var(--white); }
.blog-footer-brand p { font-size: 14px; margin-top: 12px; color: rgba(255,255,255,0.55); }
.blog-footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.blog-footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 9px; }
.blog-footer-col a:hover { color: var(--accent); }
.blog-footer-bottom {
  padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .related-grid, .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-nav-links a:not(.blog-nav-call) { display: none; }
}
@media (max-width: 600px) {
  .related-grid, .blog-index-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 30px 24px; }
  .blog-logo-tagline { display: none; }
  .article-body p, .article-body li { font-size: 16px; }
}
