/* Blog: index, the four category pages and the article template.
   Loads AFTER the frozen shared site.css. site.css is NOT edited.
   Components repeated from the other page sheets (.hero-eyebrow, .faq, .band-cta,
   .warranty-card, .btn-ink) are byte-identical to those sheets on purpose — the
   design system lives in the six existing pages, this file does not fork it. */

/* ---- carried from services.css / our-work.css, unchanged ---- */
.hero-eyebrow{color:var(--orange);font-weight:800;font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;margin:0 0 .7rem}
.btn-ink{background:#000;color:#fff;border-color:#000;display:inline-flex;align-items:center;gap:10px;justify-content:center}
.btn-ink:hover{background:#1c1c1c;border-color:#1c1c1c}
.btn-ico{width:18px;height:18px;fill:currentColor;flex:none}

/* ---- warranty (verbatim from RENEWITHQ.md) — same component as the other pages ---- */
.sec-warranty{background:#fff;border-top:1px solid var(--line)}
.warranty-card{display:flex;gap:22px;align-items:flex-start;background:var(--cream);border:1px solid var(--line);border-left:5px solid var(--orange);border-radius:var(--radius);padding:30px 32px}
.warranty-ico{flex:none;width:52px;height:52px;border-radius:50%;border:2px solid var(--orange);display:grid;place-items:center}
.warranty-ico svg{width:26px;height:26px;fill:none;stroke:var(--orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.warranty-card h2{font-size:1.25rem;margin-bottom:.4em}
.warranty-text{margin:0;font-size:1rem}

/* ---- FAQ accordion — same component as services.css / contact.css ---- */
.sec-faq{background:var(--cream);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.faq{max-width:900px;margin:0 auto}
.faq details{border:1px solid var(--line);border-radius:10px;margin-bottom:12px;background:#fff}
.faq summary{cursor:pointer;list-style:none;padding:18px 22px;font-weight:700;color:var(--ink);display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:11px;height:11px;border-right:2px solid var(--orange);border-bottom:2px solid var(--orange);transform:rotate(45deg);flex:none;margin-top:-4px}
.faq details[open] summary::after{transform:rotate(225deg);margin-top:3px}
.faq details>div{padding:0 22px 20px}
.faq p{margin:0 0 .8rem;font-size:.95rem}
.faq p:last-child{margin-bottom:0}

/* ---- closing CTA band — same component as services.css / our-work.css ---- */
.band-cta{border-top:1px solid rgba(255,255,255,.12)}
.band-cta-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:40px;align-items:center}
.band-cta h2{color:#fff;margin-bottom:.4em}
.band-cta p{color:#C9CDD3;margin:0}
.band-cta-actions{display:flex;flex-direction:column;gap:12px}
/* the mockup's two CTA bands sit on a photo; the black band is the same component
   with an image behind it and a flat scrim so the copy keeps its contrast */
.band-photo{position:relative;isolation:isolate;overflow:hidden;border-top:0}
.band-photo .band-media{position:absolute;inset:0;z-index:-2}
.band-photo .band-media img{width:100%;height:100%;object-fit:cover}
.band-photo::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.86) 45%,rgba(0,0,0,.66) 100%)}

/* ================= blog-only components ================= */

/* left-aligned section head (FEATURED GUIDE, BEFORE YOU START, PROJECT INSPIRATION) */
.head-left{display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:26px}
.head-left h2{margin:0}
.head-left .hero-eyebrow{margin:0 0 .35rem}
.head-left-note{margin:0;font-size:.92rem}

/* ---- BROWSE BY TOPIC: four numbered category cards ---- */
.sec-topics{background:#fff}
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.topic-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease}
.topic-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(0,0,0,.14)}
.topic-card a{display:flex;flex-direction:column;height:100%;padding:26px 24px 24px;text-decoration:none}
.topic-num{display:block;font-size:.82rem;font-weight:800;letter-spacing:.18em;color:var(--orange);margin-bottom:1.1rem}
.topic-card h3{font-size:1.05rem;margin-bottom:.55em}
.topic-card p{font-size:.92rem;margin-bottom:1.4rem}
.topic-card .more{margin-top:auto}

/* ---- FEATURED GUIDE panel ---- */
.sec-featured-guide{background:var(--cream);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.feat-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.feat-media{position:relative}
.feat-media img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
.feat-body{padding:38px 40px;display:flex;flex-direction:column}
.feat-body h3{font-size:clamp(1.35rem,2.2vw,1.8rem);margin:.55em 0 .5em}
.feat-body p{font-size:.98rem}
.feat-body .checks{margin:.4rem 0 1.6rem}
.feat-body .btn{align-self:flex-start;margin-top:auto}

/* byline + read time, shared by the panel, the cards and the article template */
.byline{margin:0;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6B7280}
.byline span{color:var(--line);margin:0 .5em}

/* orange category tag sitting on an image */
.cat-tag{position:absolute;top:16px;left:16px;background:var(--orange);color:#111;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:7px 12px;border-radius:6px}

/* ---- two article cards ---- */
.sec-articles{background:#fff}
.art-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.art-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.art-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(0,0,0,.14)}
.art-card a{display:flex;flex-direction:column;height:100%;text-decoration:none}
.art-media{position:relative;background:var(--cream)}
.art-media img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.art-body{padding:24px 26px 26px;display:flex;flex-direction:column;flex:1}
.art-body h3{font-size:1.18rem;margin:.7em 0 .5em}
.art-body p{font-size:.93rem;margin-bottom:1.1rem}
.art-body .more{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}

/* ---- black band: four planning questions ---- */
.q-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:46px;align-items:center}
.q-intro h2{color:#fff;margin-bottom:.5em}
.q-intro p{color:#C9CDD3;margin:0;font-size:.96rem}
.q-cards{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.q-card{display:flex;gap:16px;align-items:flex-start;background:#0C0C0C;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:22px 22px 24px}
.q-num{flex:none;font-size:1.15rem;font-weight:800;letter-spacing:-.02em;color:var(--orange);line-height:1.2}
.q-card h3{font-size:1rem;color:#fff;margin-bottom:.45em}
.q-card p{font-size:.86rem;color:#C9CDD3;margin:0}

/* ---- project inspiration: before/after pair + copy ---- */
.sec-inspo{background:#fff}
.inspo-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:46px;align-items:center}
.inspo-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.inspo-pair figure{margin:0;position:relative;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.inspo-pair img{width:100%;height:auto;aspect-ratio:8/9;object-fit:cover}
.inspo-body h2{margin-bottom:.5em}
.inspo-body .btn{margin-top:1.1rem}

/* ---- breadcrumbs (category pages + article template) ---- */
.crumbs{background:var(--cream);border-bottom:1px solid var(--line);font-size:.85rem}
.crumbs ol{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 0;margin:0}
.crumbs li{display:flex;align-items:center;gap:8px}
.crumbs li+li::before{content:"/";color:#9AA1AA}
.crumbs a{text-decoration:none;font-weight:600}
.crumbs a:hover{color:var(--orange)}
.crumbs [aria-current]{color:var(--ink);font-weight:700}

/* ---- category page: empty state until the articles land ---- */
.sec-catlist{background:#fff}
.empty-state{max-width:760px;margin:0 auto;text-align:center;background:var(--cream);border:1px dashed var(--line);border-radius:var(--radius);padding:44px 32px}
.empty-state h2{font-size:1.3rem}
.empty-state p{margin-bottom:1.2rem}
.sec-othertopics{background:var(--cream);border-top:1px solid var(--line)}

/* ---- article template ---- */
.sec-article{background:#fff}
.article-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:52px;align-items:start}
.article-head{max-width:760px;margin:0 auto 34px}
.article-head h1{font-size:clamp(1.9rem,3.6vw,2.7rem);margin:.5em 0 .45em}
.article-lead{font-size:1.08rem}
.article-figure{margin:0 0 30px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.article-figure img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.article-figure figcaption{background:var(--cream);border-top:1px solid var(--line);padding:12px 18px;font-size:.85rem}
.prose{max-width:760px;margin:0 auto}
.prose h2{font-size:clamp(1.35rem,2.2vw,1.7rem);margin:1.9em 0 .55em}
.prose h3{font-size:1.1rem;margin:1.5em 0 .5em}
.prose ul.bullets{list-style:disc;padding-left:1.3em;margin:0 0 1rem}
.prose ul.bullets li{margin-bottom:.4em}
.prose ol.numbered{list-style:decimal;padding-left:1.4em;margin:0 0 1rem}
.prose ol.numbered li{margin-bottom:.4em}
.prose .warranty-card{margin:34px 0}
.placeholder{background:#FFF6EE;border:1px dashed var(--orange);border-radius:10px;padding:16px 18px;margin:0 0 1.2rem;font-size:.92rem}
.placeholder b{color:var(--ink)}
.article-cta{background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);padding:28px 30px;margin:36px 0 0;text-align:center}
.article-cta h2{font-size:1.25rem;margin-bottom:.5em}

/* ---- responsive ---- */
@media (max-width:1024px){
  .topic-grid{grid-template-columns:1fr 1fr}
  .feat-panel,.q-grid,.inspo-grid,.band-cta-grid,.article-grid{grid-template-columns:1fr;gap:28px}
  .feat-body{padding:28px 26px}
  .band-photo::before{background:linear-gradient(180deg,rgba(0,0,0,.90) 0%,rgba(0,0,0,.82) 100%)}
}
@media (max-width:767px){
  .topic-grid,.art-grid,.q-cards{grid-template-columns:1fr}
  .warranty-card{flex-direction:column;gap:16px;padding:22px}
  .band-cta-actions .btn,.hero-actions .btn{width:100%}
  .head-left{margin-bottom:22px}
  .empty-state{padding:30px 20px}
  .article-cta{padding:22px 20px}
}
