/*
Theme Name: Bold City Blog
Theme URI: https://guttercleaning-jacksonvillefl.com/
Author: Bold City Gutter Cleaning
Description: Blog theme that matches the Bold City Gutter Cleaning static site. Inherits the "Storm & Sand" design system from /assets/css/main.css at the site root, so any change to the main site's CSS flows straight into the blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boldcity-blog
Tags: blog, custom-menu, featured-images
*/

/* ============================================================
   This file only ADDS what the main site's CSS doesn't have:
   article prose, post meta, pagination, sidebar, comments.
   Colors, fonts, header, footer, buttons, cards all come from
   /assets/css/main.css — do not duplicate them here.
   ============================================================ */

/* ---------- Post meta line ---------- */
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .9rem;font-size:.85rem;color:var(--olive);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin:.9rem 0 0}
.page-hero .post-meta{color:#A9A296}
.post-meta .dot{opacity:.5}
.post-meta a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.post-meta a:hover{border-bottom-color:currentColor}

/* ---------- Article body (prose) ---------- */
.prose{max-width:72ch}
.prose > *:first-child{margin-top:0}
.prose p{margin:0 0 1.15rem;color:var(--ink-soft)}
.prose h2{font-size:clamp(1.45rem,3vw,2rem);margin:2.6rem 0 .9rem;color:var(--ink)}
.prose h3{font-size:clamp(1.12rem,2vw,1.35rem);margin:2rem 0 .5rem;color:var(--ink)}
.prose h4{font-family:var(--ff-display);font-weight:650;font-size:1.05rem;margin:1.6rem 0 .4rem}
.prose a{color:var(--sky-deep);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.prose a:hover{color:var(--sky-ink)}
.prose strong{color:var(--ink);font-weight:700}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.3rem;color:var(--ink-soft);display:grid;gap:.45rem}
.prose li::marker{color:var(--sand-deep);font-weight:700}
.prose ul.checks{list-style:none;padding-left:0}
.prose blockquote{margin:1.6rem 0;padding:1.1rem 1.3rem;background:var(--olive-tint);border-left:4px solid var(--olive);border-radius:0 10px 10px 0;color:var(--ink);font-weight:500}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:1.8rem 0}
.prose img{border-radius:14px;box-shadow:var(--sh)}
.prose figcaption,.prose .wp-caption-text{font-size:.85rem;color:var(--ink-soft);margin-top:.55rem;text-align:center}
.prose hr{border:0;border-top:1px solid var(--line);margin:2.4rem 0}
.prose table{margin:1.6rem 0;background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--sh)}
.prose code{background:var(--sand-tint);border:1px solid var(--line);border-radius:5px;padding:.12em .38em;font-size:.9em}
.prose pre{background:var(--ink);color:#EFEAE1;padding:1.1rem 1.2rem;border-radius:12px;overflow:auto;margin:1.6rem 0}
.prose pre code{background:none;border:0;color:inherit;padding:0}
.prose .alignleft{float:left;margin:.4rem 1.6rem 1.2rem 0;max-width:50%}
.prose .alignright{float:right;margin:.4rem 0 1.2rem 1.6rem;max-width:50%}
.prose .aligncenter{margin-left:auto;margin-right:auto}
.prose .alignwide,.prose .alignfull{max-width:none}
@media(max-width:640px){.prose .alignleft,.prose .alignright{float:none;margin:1.4rem 0;max-width:100%}}

/* Answer-first callout, reusable inside posts via a "Key takeaway" paragraph */
.prose .answer{color:var(--ink)}

/* ---------- Article layout with sidebar ---------- */
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:3rem;align-items:start}
@media(max-width:980px){.post-layout{grid-template-columns:1fr;gap:2.4rem}}
.sidebar{position:sticky;top:92px;display:grid;gap:1.2rem}
@media(max-width:980px){.sidebar{position:static}}
.widget{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:1.3rem 1.4rem;box-shadow:0 2px 0 rgba(26,23,19,.04)}
.widget h3{font-size:1.02rem;margin-bottom:.7rem}
.widget ul{list-style:none;display:grid;gap:.5rem;font-size:.94rem}
.widget a{color:var(--ink);text-decoration:none}
.widget a:hover{color:var(--sky-deep);text-decoration:underline}
.widget-cta{background:var(--ink);color:#fff;text-align:center}
.widget-cta h3{color:#fff}
.widget-cta p{color:#C9C3B8;font-size:.92rem;margin-bottom:1rem}
.widget-cta .btn{width:100%;justify-content:center}

/* ---------- Featured image on single ---------- */
.post-hero-img{border-radius:16px;overflow:hidden;box-shadow:var(--sh);margin:0 0 2.2rem}
.post-hero-img img{width:100%;aspect-ratio:16/8;object-fit:cover}

/* ---------- Archive cards ---------- */
.post-card{padding:0;overflow:hidden}
.post-card .thumb{display:block;overflow:hidden;background:var(--sand-tint)}
.post-card .thumb img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .35s ease}
.post-card:hover .thumb img{transform:scale(1.04)}
.post-card .body{padding:1.4rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.post-card h3{font-size:1.2rem;margin-bottom:.15rem}
.post-card .post-meta{margin:0 0 .35rem;font-size:.75rem}
.post-card p{color:var(--ink-soft);font-size:.96rem;margin:0 0 1rem}
@media(prefers-reduced-motion:reduce){.post-card .thumb img{transition:none}.post-card:hover .thumb img{transform:none}}

/* Featured (first) post on the blog index */
.post-feature{display:grid;grid-template-columns:6fr 5fr;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--sh);margin-bottom:2.2rem}
.post-feature .thumb img{width:100%;height:100%;object-fit:cover;min-height:280px}
.post-feature .body{padding:2rem 2.2rem;display:flex;flex-direction:column;justify-content:center;gap:.4rem}
.post-feature h2{margin-bottom:.3rem}
@media(max-width:860px){.post-feature{grid-template-columns:1fr}.post-feature .body{padding:1.6rem}}

/* ---------- Category filter pills ---------- */
.cat-filter{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 2rem}
.cat-filter a{display:inline-block;background:var(--white);border:1px solid var(--line);color:var(--ink-soft);font-size:.86rem;font-weight:700;padding:.4rem .95rem;border-radius:999px;text-decoration:none;transition:transform .12s ease}
.cat-filter a:hover{transform:translateY(-2px);color:var(--sky-deep);border-color:var(--sky)}
.cat-filter a[aria-current]{background:var(--ink);color:#fff;border-color:var(--ink)}
@media(prefers-reduced-motion:reduce){.cat-filter a:hover{transform:none}}

/* ---------- Pagination ---------- */
.pager{display:flex;justify-content:center;align-items:center;gap:.45rem;margin-top:3rem;flex-wrap:wrap}
.pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 .85rem;background:var(--white);border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none;font-weight:700;font-size:.95rem}
.pager .page-numbers:hover{border-color:var(--sky);color:var(--sky-deep)}
.pager .page-numbers.current{background:var(--ink);color:#fff;border-color:var(--ink)}
.pager .page-numbers.dots{background:none;border:0}

/* ---------- Prev / next post ---------- */
.postnav{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.postnav a{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:1.1rem 1.3rem;text-decoration:none;color:var(--ink);transition:transform .12s ease,box-shadow .12s ease;display:block}
.postnav a:hover{transform:translateY(-3px);box-shadow:var(--sh)}
.postnav .lbl{display:block;font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sand-deep);margin-bottom:.35rem}
.postnav b{font-family:var(--ff-display);font-weight:650;font-size:1.02rem;line-height:1.25;display:block}
.postnav .next{text-align:right}
@media(max-width:640px){.postnav{grid-template-columns:1fr}.postnav .next{text-align:left}}
@media(prefers-reduced-motion:reduce){.postnav a:hover{transform:none}}

/* ---------- Search form ---------- */
.searchform{display:flex;gap:.5rem}
.searchform input[type=search]{flex:1;min-width:0;padding:.7rem .85rem;border:1px solid var(--line);border-radius:9px;font:inherit;background:var(--white)}
.searchform button{background:var(--ink);color:#fff;border:0;border-radius:9px;padding:.7rem 1.1rem;font-weight:700;cursor:pointer;font:inherit}
.searchform button:hover{background:var(--sky-deep)}

/* ---------- Empty / 404 states ---------- */
.empty{text-align:center;padding:3rem 1rem;max-width:56ch;margin:0 auto}
.empty h2{margin-bottom:.6rem}
.empty p{color:var(--ink-soft);margin-bottom:1.4rem}

/* ---------- Comments (kept minimal) ---------- */
.comments{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line);max-width:72ch}
.comments ol{list-style:none;display:grid;gap:1.2rem}
.comments .comment-body{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:1.1rem 1.3rem}
.comments .comment-meta{font-size:.82rem;color:var(--olive);font-weight:700;margin-bottom:.4rem}
.comment-form{display:grid;gap:.9rem;max-width:72ch;margin-top:1.6rem}
.comment-form input,.comment-form textarea{width:100%;padding:.75rem .85rem;border:1px solid var(--line);border-radius:9px;font:inherit;background:var(--white)}
.comment-form .submit{background:var(--sky);color:#fff;border:0;box-shadow:0 3px 0 var(--sky-deep);border-radius:9px;padding:.85rem 1.4rem;font-weight:700;cursor:pointer;justify-self:start}

/* ---------- WP core alignment/screen-reader classes ---------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sticky,.gallery-caption,.bypostauthor{}

/* Give the sticky-header offset to in-page anchors */
:target{scroll-margin-top:90px}
