/* ===========================================================================
   Fit Roofing — Blog stylesheet
   Shared by /blog/ (listing) and every /blog/<slug>/ post.
   Brand: navy #211e71 + gold #FFC700, Inter typeface.
   Self-contained on purpose (clean rebuild of a new section) — can be folded
   into the main Beaver Builder chrome during a later refresh without touching
   the post HTML, since posts only depend on these class names.
   ========================================================================= */

:root {
  --navy: #211e71;
  --navy-deep: #181555;
  --gold: #ffc700;
  --ink: #1c1c28;
  --muted: #5b5b6b;
  --line: #e7e7ef;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --maxw: 1120px;
  --readw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.site-logo img { height: 52px; width: auto; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
}
.site-nav a:hover { color: var(--navy-deep); text-decoration: none; border-bottom: 2px solid var(--gold); }
.btn-call {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-call:hover { text-decoration: none; filter: brightness(.96); }

/* ---- Hero / page intro -------------------------------------------------- */
.blog-hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.blog-hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
}
.blog-hero p { margin: 0; color: #d7d6f0; font-size: 19px; max-width: 720px; }
.eyebrow {
  display: inline-block;
  color: var(--navy);
  background: var(--gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---- Article cards (listing) ------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 48px 0 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 30px rgba(33,30,113,.10); transform: translateY(-2px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-cat { color: var(--navy); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.card h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; }
.card h2 a { color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-meta { margin-top: auto; color: var(--muted); font-size: 13.5px; padding-top: 8px; }

.empty-state {
  margin: 48px 0;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--muted);
  text-align: center;
}

/* ---- Article (single post) --------------------------------------------- */
.article { padding: 48px 0 24px; }
.article .readw { max-width: var(--readw); margin: 0 auto; padding: 0 24px; }
.article-head { max-width: var(--readw); margin: 0 auto 8px; padding: 0 24px; }
.article-head h1 { font-size: 36px; line-height: 1.18; font-weight: 800; margin: 10px 0 14px; }
.article-meta { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.article-hero-img { max-width: var(--maxw); margin: 24px auto; padding: 0 24px; }
.article-hero-img img { width: 100%; border-radius: 14px; }

.article .readw h2 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
}
.article .readw h3 { font-size: 21px; font-weight: 700; margin: 28px 0 10px; }
.article .readw p { margin: 0 0 18px; }
.article .readw ul, .article .readw ol { margin: 0 0 18px; padding-left: 1.4em; }
.article .readw li { margin-bottom: 8px; }

/* Answer-first lead: the 2-3 sentence direct answer under each H2 */
.answer { font-size: 19px; }

/* Key-takeaway / callout box (great for AI extraction) */
.callout {
  border-left: 5px solid var(--gold);
  background: var(--bg-alt);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.callout strong { color: var(--navy); }

/* Tables (comparisons, cost breakdowns — strong AEO/GEO assets) */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.article th, .article td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article th { background: var(--navy); color: #fff; font-weight: 700; }
.article tbody tr:nth-child(even) { background: var(--bg-alt); }

/* FAQ block */
.faq { max-width: var(--readw); margin: 40px auto 0; padding: 0 24px; }
.faq h2 { font-size: 27px; color: var(--navy); font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.faq-item p { margin: 0; color: var(--ink); }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 44px 24px;
  margin: 48px 0 0;
}
.cta-band h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.cta-band p { margin: 0 0 20px; color: #d7d6f0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #cfceea; margin-top: 56px; }
.site-footer .wrap { padding: 44px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #cfceea; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: block; text-align: center; padding: 18px 24px; font-size: 13.5px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .site-nav { gap: 16px; }
  .blog-hero h1 { font-size: 31px; }
  .article-head h1 { font-size: 29px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
