/* ─────────────────────────────────────────────────────────────
   352 Electric — Blog / CMS layer
   Loaded AFTER responsive.css. Post template, archive cards,
   author box, category badges, pagination, sidebar widgets.
   Reuses the existing tokens, .ph hero, .detail-grid sidebar,
   .cta-banner and .area-grid blocks — nothing here invents a
   new colour or font, only new components.
───────────────────────────────────────────────────────────── */

/* ───────── Category badge ───────── */
.cat-badge{display:inline-flex;align-items:center;gap:7px;font-family:var(--condensed);font-weight:700;letter-spacing:.16em;text-transform:uppercase;font-size:12px;padding:6px 12px;border-radius:5px;background:var(--yellow);color:var(--black);line-height:1}
.cat-badge.ghost{background:transparent;color:var(--yellow);border:1px solid rgba(245,200,0,.55)}

/* ───────── Post hero meta line ───────── */
.ph-title.post-h1{font-size:clamp(34px,4.4vw,58px);line-height:1.04;letter-spacing:.01em;margin:0}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:24px;font-family:var(--condensed);font-weight:500;letter-spacing:.05em;font-size:14.5px;color:#D5D5D2}
.post-meta .dot{width:4px;height:4px;border-radius:50%;background:var(--yellow);flex:0 0 4px}
.post-meta b{color:#fff;font-weight:600}

/* ───────── Post layout: article + sidebar ───────── */
.post-layout{display:grid;grid-template-columns:1fr 360px;gap:64px;align-items:start}

/* ───────── Article body typography ───────── */
.post-body{font-size:18px;line-height:1.7;color:#2B2B2B;max-width:760px}
.post-body > *:first-child{margin-top:0}
.post-body p{margin:0 0 22px}
.post-body b,.post-body strong{font-weight:700;color:var(--black)}
.post-body a{color:#1A1A1A;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:2px;text-underline-offset:3px}
.post-body a:hover{color:var(--yellow-dark)}
.post-body h2{font-family:var(--display);font-size:44px;letter-spacing:.01em;line-height:1.02;margin:48px 0 16px;color:var(--black)}
.post-body h3{font-family:var(--display);font-size:30px;letter-spacing:.01em;line-height:1.05;margin:36px 0 12px;color:var(--black)}
.post-body ul,.post-body ol{margin:0 0 22px;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.post-body ul li{position:relative;padding-left:28px;font-size:17px;line-height:1.6}
.post-body ul li::before{content:"";position:absolute;left:0;top:11px;width:8px;height:8px;background:var(--yellow);transform:rotate(45deg)}
.post-body ol{counter-reset:pb}
.post-body ol li{position:relative;padding-left:42px;font-size:17px;line-height:1.6;counter-increment:pb}
.post-body ol li::before{content:counter(pb,decimal-leading-zero);position:absolute;left:0;top:-2px;font-family:var(--display);font-size:22px;color:var(--yellow);letter-spacing:.04em}
.post-body blockquote{margin:32px 0;padding:24px 30px;background:var(--gray-50);border-left:4px solid var(--yellow);font-size:20px;line-height:1.5;font-weight:500;color:var(--black)}
.post-body blockquote p:last-child{margin:0}
.post-body img,.post-body figure img{width:100%;height:auto;border-radius:12px;border:1px solid var(--gray-100);margin:8px 0}
.post-body figure{margin:32px 0}
.post-body figcaption{font-family:var(--condensed);font-weight:500;letter-spacing:.04em;font-size:13.5px;color:var(--gray-500);text-transform:uppercase;margin-top:10px}
.post-body hr{border:0;border-top:1px solid var(--gray-100);margin:40px 0}

/* Featured image at the top of an article */
.post-feature{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--gray-100);margin-bottom:40px;display:block}

/* ───────── Author box ───────── */
.author-box{display:flex;gap:22px;align-items:center;margin-top:52px;padding:30px;background:var(--black);border-radius:12px;border-left:5px solid var(--yellow)}
.author-box .avatar{flex:0 0 72px;width:72px;height:72px;border-radius:50%;background:var(--charcoal);color:var(--yellow);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:30px;letter-spacing:.04em;border:2px solid var(--yellow)}
.author-box .who{font-family:var(--condensed);font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:12px;color:var(--yellow);margin-bottom:7px}
.author-box h4{font-family:var(--display);font-size:28px;letter-spacing:.02em;color:#fff;margin:0 0 7px;line-height:1}
.author-box p{margin:0;color:#BFBFBA;font-size:14.5px;line-height:1.5}

/* ───────── Sidebar widgets ───────── */
.side-card h5{font-family:var(--condensed);font-weight:700;letter-spacing:.2em;text-transform:uppercase;font-size:12px;color:var(--gray-500);margin:0 0 14px;display:flex;align-items:center;gap:10px}
.side-card.light h5::before{content:"";width:22px;height:2px;background:var(--yellow)}

/* Gold "Get a Free Estimate" CTA card */
.side-card.gold{background:var(--yellow);color:var(--black);border-left:5px solid var(--black)}
.side-card.gold h4{color:var(--black)}
.side-card.gold p{color:#5a4d00}
.side-card.gold .estimate-phone{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:10px;padding:14px;border-radius:8px;background:var(--black);color:#fff;font-family:var(--condensed);font-weight:700;letter-spacing:.06em;font-size:16px;transition:background .15s}
.side-card.gold .estimate-phone:hover{background:#000}
.side-card.gold .estimate-phone svg{color:var(--yellow);width:18px;height:18px}

.mini-posts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.mini-posts li{border-bottom:1px solid var(--gray-100)}
.mini-posts li:last-child{border-bottom:0}
.mini-posts a{display:block;padding:13px 0}
.mini-posts a:hover .mp-title{color:var(--yellow-dark)}
.mp-date{font-family:var(--condensed);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:11px;color:var(--gray-500);margin-bottom:4px}
.mp-title{font-family:var(--condensed);font-weight:600;font-size:16px;line-height:1.25;color:var(--black);transition:color .15s}

.side-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.side-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;font-family:var(--condensed);font-weight:600;letter-spacing:.04em;font-size:15.5px;color:var(--black);border-bottom:1px solid var(--gray-100);transition:color .15s}
.side-links li:last-child a{border-bottom:0}
.side-links a:hover{color:var(--yellow-dark)}
.side-links svg{width:15px;height:15px;color:var(--yellow);flex:0 0 15px}

/* ───────── Archive / blog grid ───────── */
.blog-intro{max-width:780px;font-size:19px;line-height:1.6;color:var(--gray-700);margin:0 0 4px}
.blog-intro b{color:var(--black);font-weight:700}

.post-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.post-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--gray-100);border-radius:12px;overflow:hidden;transition:border-color .2s,box-shadow .2s,transform .2s}
.post-card:hover{border-color:var(--yellow);box-shadow:0 18px 40px rgba(0,0,0,.07);transform:translateY(-2px)}
.post-card .thumb{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--gray-50)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.post-card:hover .thumb img{transform:scale(1.03)}
.post-card .thumb .cat-badge{position:absolute;top:14px;left:14px;z-index:2}
.post-card .pc-body{padding:26px 28px 28px;display:flex;flex-direction:column;flex:1}
.post-card .pc-date{font-family:var(--condensed);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:11.5px;color:var(--gray-500);margin-bottom:12px}
.post-card h3{font-family:var(--display);font-size:30px;letter-spacing:.01em;line-height:1.04;margin:0 0 12px;color:var(--black)}
.post-card p{margin:0 0 22px;font-size:15.5px;line-height:1.55;color:var(--gray-700)}
.post-card .read-more{margin-top:auto;display:inline-flex;align-items:center;gap:9px;font-family:var(--condensed);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:13.5px;color:var(--black)}
.post-card .read-more svg{width:16px;height:16px;color:var(--yellow);transition:transform .2s}
.post-card:hover .read-more svg{transform:translateX(4px)}

/* Placeholder thumbnail when a post has no featured image */
.thumb-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--black);position:relative;overflow:hidden}
.thumb-ph::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(45deg,transparent 0 30px,rgba(245,200,0,.05) 30px 31px)}
.thumb-ph svg{width:60px;height:60px;color:var(--yellow);opacity:.55;position:relative}

/* ───────── Pagination ───────── */
.pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:56px;font-family:var(--condensed);font-weight:700;letter-spacing:.04em}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;padding:0 16px;border:1px solid var(--gray-200);border-radius:8px;color:var(--black);font-size:15px;transition:all .15s}
.pagination a.page-numbers:hover{border-color:var(--black);background:var(--black);color:#fff}
.pagination .page-numbers.current{background:var(--yellow);border-color:var(--yellow);color:var(--black)}
.pagination .page-numbers.dots{border-color:transparent}

/* ───────── Centered section header (blog/archive) ───────── */
.head-center{text-align:center;display:flex;flex-direction:column;align-items:center;margin-bottom:48px}
.head-center .sec-eyebrow{justify-content:center}
.head-center .blog-intro{margin-left:auto;margin-right:auto;text-align:left}

/* ───────── Service-page prose: real H2 sections ───────── */
.prose h2{font-family:var(--display);font-size:46px;letter-spacing:.01em;line-height:1.04;margin:46px 0 14px;color:var(--black)}
.prose > h2:first-child,.prose > h3:first-child{margin-top:0}
.section-dark .prose h2,.section-charcoal .prose h2{color:#fff}

/* ───────── 404 / search empty states ───────── */
.empty-state{text-align:center;max-width:680px;margin:0 auto}
.empty-state .big404{font-family:var(--display);font-size:clamp(96px,20vw,200px);line-height:.85;color:var(--yellow);letter-spacing:.02em;margin:0 0 8px}
.empty-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}

/* ───────── Blog responsive ───────── */
@media (max-width:900px){
  .post-layout{grid-template-columns:1fr;gap:40px}
  .post-grid{grid-template-columns:1fr;gap:24px}
  .post-body h2{font-size:clamp(30px,6vw,44px)}
}
@media (max-width:600px){
  .post-body{font-size:17px}
  .author-box{flex-direction:column;align-items:flex-start;text-align:left}
}
