/* ── HVAC Experts — Blog Styles ──────────────────────────────────────────── */

/* ── BLOG ARCHIVE ── */
.blog-archive { background: var(--light); }

.blog-filter-bar {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 24px; margin-bottom: 8px;
}
.blog-filter-left { flex: 1; min-width: 280px; }
.blog-filter-cats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.blog-grid-archive {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Blog Card Meta Row */
.blog-meta-row {
    display: flex; align-items: center; gap: 14px;
    font-size: .75rem; color: var(--grey); margin-bottom: 10px;
}
.blog-meta-row span {
    display: inline-flex; align-items: center; gap: 4px;
}
.blog-read-time { color: var(--cyan); }

/* ── BLOG PAGINATION ── */
.blog-pagination {
    margin-top: 56px; display: flex; justify-content: center;
}
.pagination-inner {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    justify-content: center;
}
.page-numbers-wrap { display: flex; gap: 4px; }
.page-num {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-family: var(--ff-head); font-weight: 700; font-size: .85rem;
    color: var(--grey); background: #fff; border: 1px solid rgba(0,0,0,.08);
    transition: all .25s; text-decoration: none; cursor: pointer;
}
.page-num:hover { border-color: var(--cyan); color: var(--cyan); background: var(--blue-light); }
.page-num.active {
    background: var(--cyan); color: #fff; border-color: var(--cyan);
    box-shadow: 0 4px 12px rgba(1,112,185,.3);
}
.page-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; font-family: var(--ff-head);
    font-weight: 700; font-size: .82rem; color: var(--cyan);
    background: #fff; border: 1px solid rgba(1,112,185,.2);
    text-decoration: none; transition: all .25s;
}
.page-btn:hover {
    background: var(--cyan); color: #fff; border-color: var(--cyan);
    transform: translateY(-1px);
}

/* ── BLOG EMPTY STATE ── */
.blog-empty {
    text-align: center; padding: 80px 24px;
    background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,.06);
    margin-top: 36px;
}
.blog-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.blog-empty h3 {
    font-family: var(--ff-head); font-weight: 800; font-size: 1.4rem;
    color: var(--navy); margin-bottom: 8px;
}
.blog-empty p {
    color: var(--grey); font-size: .92rem; margin-bottom: 24px;
    max-width: 400px; margin-left: auto; margin-right: auto;
}

/* ── NEWSLETTER / SUBSCRIBE ── */
.blog-subscribe {
    background: var(--navy); padding: 72px 0;
}
.subscribe-inner {
    text-align: center;
}
.blog-subscribe .section-title { color: #fff; }
.blog-subscribe .section-sub {
    color: rgba(255,255,255,.55); max-width: 520px;
    margin: 0 auto 32px;
}
.subscribe-features {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.subscribe-feature {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600;
    font-family: var(--ff-head);
}
.sf-icon { display: flex; align-items: center; flex-shrink: 0; color: var(--accent); }
.subscribe-btns {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-top: 32px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── SINGLE BLOG POST ── */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Blog Hero ── */
.page-hero-blog { padding: 64px 0 72px; text-align: center; }
.page-hero-blog .container { max-width: 800px; }
.page-hero-blog .breadcrumb {
    justify-content: center; margin-top: 0; margin-bottom: 22px;
    font-size: 12.5px; color: rgba(255,255,255,.5);
}
.page-hero-blog .breadcrumb a { color: rgba(255,255,255,.65); }
.page-hero-blog .breadcrumb a:hover { color: #fff; }
.blog-hero-cat {
    display: inline-block; font-size: .68rem; font-weight: 700;
    background: rgba(255,255,255,.18); color: #fff; padding: 5px 16px;
    border-radius: 100px; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 18px; border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
}
.page-hero-blog h1 {
    font-size: clamp(1.7rem, 3.8vw, 2.75rem); max-width: 760px;
    margin: 0 auto 22px; line-height: 1.2; color: #fff; font-weight: 800;
}
.blog-hero-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 6px 20px; flex-wrap: wrap;
    color: rgba(255,255,255,.75); font-size: .83rem; font-weight: 500;
}
.blog-hero-meta-item {
    display: inline-flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.75);
}
.blog-hero-meta-item svg { opacity: .8; color: rgba(255,255,255,.9); }
.blog-hero-meta-item + .blog-hero-meta-item::before {
    content: '·'; color: rgba(255,255,255,.3); margin-right: 4px;
}

/* ── Single Blog Layout ── */
.single-blog-section {
    background: #eef1f7;
    padding: 52px 0 88px;
}
.single-blog-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 42px;
    align-items: start;
}

/* ── Main Content ── */
.single-blog-content {
    background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 4px 32px rgba(0,0,30,.08);
}

.single-blog-featured-img {
    height: 420px; overflow: hidden; position: relative;
}
.single-blog-featured-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,40,.18) 100%);
    pointer-events: none;
}
.single-blog-featured-img img,
.single-blog-featured-img .ai-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.single-blog-featured-img:hover img { transform: scale(1.02); }

.single-blog-body {
    padding: 44px 44px 36px;
    font-size: 1.05rem; line-height: 1.9; color: #334155;
}
/* First paragraph lead text */
.single-blog-body > p:first-of-type {
    font-size: 1.12rem; line-height: 1.8; color: #1e293b;
    font-weight: 400;
}
.single-blog-body h2 {
    font-family: var(--ff-head); font-size: 1.45rem; font-weight: 800;
    color: var(--navy); margin: 40px 0 14px; line-height: 1.3;
    padding-left: 16px;
    border-left: 4px solid var(--cyan);
}
.single-blog-body h3 {
    font-family: var(--ff-head); font-size: 1.15rem; font-weight: 700;
    color: #1e293b; margin: 32px 0 10px;
    display: flex; align-items: center; gap: 8px;
}
.single-blog-body h3::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--cyan); flex-shrink: 0;
}
.single-blog-body h4 {
    font-family: var(--ff-head); font-size: 1rem; font-weight: 700;
    color: var(--navy); margin: 24px 0 8px;
}
.single-blog-body p { margin-bottom: 20px; }
.single-blog-body ul, .single-blog-body ol {
    margin: 0 0 22px 0; padding: 0;
    list-style: none;
}
.single-blog-body ul li,
.single-blog-body ol li {
    margin-bottom: 10px; padding-left: 24px; position: relative;
    color: #334155; line-height: 1.75;
}
.single-blog-body ul li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); opacity: .75;
}
.single-blog-body ol { counter-reset: ol-counter; }
.single-blog-body ol li { counter-increment: ol-counter; }
.single-blog-body ol li::before {
    content: counter(ol-counter); position: absolute; left: 0; top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--cyan); color: #fff;
    font-size: .68rem; font-weight: 700; font-family: var(--ff-head);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.single-blog-body blockquote {
    margin: 32px 0; padding: 24px 28px; border-left: 5px solid var(--cyan);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 0 16px 16px 0;
    font-style: italic; color: var(--navy); font-size: 1.08rem; line-height: 1.75;
    position: relative;
}
.single-blog-body blockquote::before {
    content: '\201C'; position: absolute; top: -8px; left: 20px;
    font-size: 4rem; color: var(--cyan); opacity: .2;
    font-family: Georgia, serif; line-height: 1;
}
.single-blog-body img {
    border-radius: 14px; margin: 28px 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    max-width: 100%;
}
.single-blog-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.single-blog-body a:hover { color: var(--cyan2); }
.single-blog-body pre {
    background: #0f172a; color: #e2e8f0; padding: 24px;
    border-radius: 12px; overflow-x: auto; font-size: .88rem;
    margin: 24px 0; line-height: 1.65;
}
.single-blog-body code {
    background: rgba(27,22,158,.07); color: var(--cyan);
    padding: 2px 7px; border-radius: 5px; font-size: .88em;
    border: 1px solid rgba(27,22,158,.1);
}
.single-blog-body pre code { background: none; color: inherit; padding: 0; border: none; }

/* ── Content divider ── */
.single-blog-body hr {
    border: none; border-top: 2px dashed rgba(27,22,158,.12);
    margin: 36px 0;
}

/* ── Tags ── */
.single-blog-tags {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 0 44px 26px; border-top: 1px solid rgba(0,0,0,.06);
    padding-top: 20px;
}
.tags-label {
    font-family: var(--ff-head); font-weight: 700; font-size: .78rem;
    color: var(--navy); text-transform: uppercase; letter-spacing: .06em;
}
.blog-tag {
    display: inline-block; font-size: .73rem; font-weight: 600;
    color: var(--cyan); background: rgba(27,22,158,.07); padding: 5px 14px;
    border-radius: 8px; text-decoration: none; transition: all .25s;
    font-family: var(--ff-head); border: 1px solid rgba(27,22,158,.12);
}
.blog-tag:hover { color: #fff; background: var(--cyan); border-color: var(--cyan); }

/* ── Share Buttons ── */
.single-blog-share {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 44px; border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #f8fafc;
}
.share-label {
    font-family: var(--ff-head); font-weight: 700; font-size: .78rem;
    color: var(--navy); white-space: nowrap; text-transform: uppercase;
    letter-spacing: .06em;
}
.share-buttons { display: flex; gap: 8px; }
.share-btn {
    width: 36px; height: 36px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; transition: all .25s;
    text-decoration: none;
}
.share-fb { background: #1877f2; color: #fff; }
.share-fb:hover { background: #0d65d9; transform: translateY(-2px); }
.share-tw { background: #1da1f2; color: #fff; }
.share-tw:hover { background: #0c8de4; transform: translateY(-2px); }
.share-wa { background: #25d366; color: #fff; }
.share-wa:hover { background: #1fb855; transform: translateY(-2px); }

/* ── Post Navigation ── */
.single-blog-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: #f8fafc;
}
.post-nav-item {
    padding: 22px 44px;
}
.post-nav-prev { border-right: 1px solid rgba(0,0,0,.07); }
.post-nav-next { text-align: right; }
.post-nav-item a {
    text-decoration: none; display: block; transition: all .25s;
}
.post-nav-item a:hover { transform: translateY(-1px); }
.post-nav-label {
    display: block; font-size: .72rem; font-weight: 700;
    color: var(--cyan); text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 4px; font-family: var(--ff-head);
}
.post-nav-title {
    display: block; font-family: var(--ff-head); font-weight: 700;
    font-size: .88rem; color: var(--navy); line-height: 1.4;
}

/* ── Author Box ── */
.single-blog-author {
    display: flex; align-items: center; gap: 20px;
    padding: 28px 44px; background: linear-gradient(135deg, #f0f4ff, #eef1f7);
    border-top: 2px solid rgba(27,22,158,.08);
}
.author-avatar-wrap { flex-shrink: 0; }
.author-avatar-wrap img {
    width: 72px; height: 72px; border-radius: 50%;
    border: 3px solid var(--cyan); box-shadow: 0 4px 12px rgba(1,112,185,.15);
}
.author-label {
    font-size: .7rem; font-weight: 700; color: var(--cyan);
    text-transform: uppercase; letter-spacing: .08em;
    font-family: var(--ff-head); margin-bottom: 2px;
}
.author-name {
    font-family: var(--ff-head); font-weight: 800; font-size: 1rem;
    color: var(--navy); margin-bottom: 4px;
}
.author-bio { font-size: .84rem; color: var(--grey); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── SIDEBAR ── */
/* ══════════════════════════════════════════════════════════════════════════ */
.single-blog-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
    background: #fff; border-radius: 14px; padding: 24px;
    border: 1px solid rgba(0,0,0,.06); margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.widget-title {
    font-family: var(--ff-head); font-weight: 800; font-size: .9rem;
    color: var(--navy); margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--cyan); display: inline-block;
}

/* Search */
.sidebar-search {
    display: flex; gap: 0; border: 1.5px solid rgba(0,0,0,.08);
    border-radius: 8px; overflow: hidden; transition: border-color .25s;
}
.sidebar-search:focus-within { border-color: var(--cyan); }
.sidebar-search input {
    flex: 1; padding: 10px 14px; border: none; outline: none;
    font-family: var(--ff-body); font-size: .88rem; color: var(--navy);
    background: transparent;
}
.sidebar-search input::placeholder { color: var(--grey); }
.sidebar-search button {
    padding: 10px 14px; background: var(--cyan); border: none;
    color: #fff; cursor: pointer; transition: background .25s;
    display: flex; align-items: center;
}
.sidebar-search button:hover { background: var(--cyan2); }

/* Categories */
.sidebar-categories { list-style: none; }
.sidebar-categories li { margin-bottom: 0; }
.sidebar-categories a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 8px; font-size: .85rem;
    color: var(--grey); text-decoration: none; transition: all .25s;
    font-weight: 500;
}
.sidebar-categories a:hover, .sidebar-categories a.active {
    background: var(--blue-light); color: var(--cyan);
}
.cat-count {
    font-size: .72rem; font-weight: 700; background: rgba(1,112,185,.08);
    color: var(--cyan); padding: 2px 8px; border-radius: 20px;
    font-family: var(--ff-head);
}

/* Recent Posts */
.sidebar-recent-post {
    display: flex; gap: 12px; padding: 10px 0;
    text-decoration: none; transition: all .25s;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-post:hover { transform: translateX(4px); }
.srp-img {
    width: 62px; height: 52px; flex-shrink: 0; border-radius: 8px;
    overflow: hidden; background: var(--light);
}
.srp-img img { width: 100%; height: 100%; object-fit: cover; }
.srp-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; color: var(--grey);
}
.srp-content h5 {
    font-family: var(--ff-head); font-weight: 700; font-size: .82rem;
    color: var(--navy); line-height: 1.35; margin-bottom: 3px;
}
.srp-date {
    font-size: .72rem; color: var(--grey);
}

/* Tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
    display: inline-block; font-size: .73rem; font-weight: 600;
    color: var(--grey); background: var(--light); padding: 5px 12px;
    border-radius: 6px; text-decoration: none; transition: all .25s;
    font-family: var(--ff-head);
}
.sidebar-tag:hover { color: var(--cyan); background: var(--blue-light); }

/* CTA Widget */
.sidebar-cta {
    background: linear-gradient(155deg, #07093f 0%, #1a15a0 60%, #2a1a8a 100%);
    border: none; padding: 32px 24px; overflow: hidden; position: relative;
}
.sidebar-cta::before {
    content: ''; position: absolute;
    top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,109,72,.22) 0%, transparent 65%);
    pointer-events: none;
}
.sidebar-cta::after {
    content: ''; position: absolute;
    bottom: -40px; left: -40px; width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(100,130,255,.28) 0%, transparent 65%);
    pointer-events: none;
}
.sidebar-cta-inner { text-align: center; position: relative; z-index: 1; }

.cta-icon-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: #fff; margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.sidebar-cta .cta-badge {
    display: inline-block; font-size: .68rem; font-weight: 700;
    color: #fff; background: rgba(255,255,255,.15); padding: 4px 14px;
    border-radius: 100px; margin-bottom: 14px; font-family: var(--ff-head);
    letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.2);
}
.sidebar-cta h4 {
    font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem;
    color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.sidebar-cta p {
    font-size: .84rem; color: rgba(255,255,255,.65);
    line-height: 1.65; margin-bottom: 22px;
}
.cta-quote-btn {
    display: block; width: 100%;
    padding: 13px 20px; border-radius: 10px;
    background: var(--accent); color: #fff;
    font-family: var(--ff-head); font-weight: 700; font-size: .9rem;
    text-decoration: none; text-align: center;
    transition: all .25s; letter-spacing: .02em;
    box-shadow: 0 4px 18px rgba(255,109,72,.4);
    margin-bottom: 18px;
}
.cta-quote-btn:hover {
    background: #e8552e; transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,109,72,.5);
    color: #fff;
}
.cta-divider {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.cta-divider::before,
.cta-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.15);
}
.cta-divider span {
    font-size: .68rem; color: rgba(255,255,255,.4);
    font-family: var(--ff-head); letter-spacing: .06em; white-space: nowrap;
}
.sidebar-phone {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: #fff; font-size: .92rem; font-weight: 700;
    text-decoration: none; transition: all .25s; font-family: var(--ff-head);
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    padding: 10px 18px; border-radius: 8px; width: 100%;
    letter-spacing: .01em;
}
.sidebar-phone:hover {
    background: rgba(255,255,255,.2); color: #fff;
    border-color: rgba(255,255,255,.3);
    transform: translateY(-1px);
}
.sidebar-phone svg { flex-shrink: 0; opacity: .85; }

/* ── RELATED POSTS ── */
.related-posts { background: #fff; }
.related-posts .blog-grid { margin-top: 42px; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── RESPONSIVE ── */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .single-blog-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }
    .single-blog-featured-img { height: 320px; }
}

@media (max-width: 768px) {
    .single-blog-layout {
        grid-template-columns: 1fr;
    }
    .single-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .sidebar-cta { grid-column: 1 / -1; }
    .single-blog-featured-img { height: 260px; }
    .single-blog-body { padding: 28px 28px 24px; }
    .single-blog-tags { padding: 16px 28px 20px; }
    .single-blog-share { padding: 16px 28px; }
    .post-nav-item { padding: 18px 28px; }
    .single-blog-author { padding: 24px; flex-direction: column; text-align: center; }
    .blog-grid-archive { grid-template-columns: 1fr 1fr; }
    .blog-filter-bar { flex-direction: column; align-items: flex-start; }
    .blog-hero-meta { gap: 14px; }
    .single-blog-nav { grid-template-columns: 1fr; }
    .post-nav-prev { border-right: none; border-bottom: 1px solid rgba(0,0,0,.06); }
    .post-nav-next { text-align: left; }
}

@media (max-width: 640px) {
    .single-blog-sidebar {
        grid-template-columns: 1fr;
    }
    .blog-grid { gap: 18px; }
    .blog-grid-archive { grid-template-columns: 1fr; gap: 18px; }
    .subscribe-features { flex-direction: column; gap: 12px; align-items: center; }
    .subscribe-btns { flex-direction: column; align-items: stretch; }
    .subscribe-btns a { text-align: center; justify-content: center; }
    .page-hero-blog h1 { font-size: 1.5rem; word-break: break-word; overflow-wrap: break-word; }
    .page-hero-blog .breadcrumb { flex-wrap: wrap; gap: 4px; }
    .page-hero-blog .breadcrumb span { word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
    .single-blog-body { font-size: .92rem; }
    .single-blog-body h2 { font-size: 1.25rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .blog-card:hover { transform: none; }
    .sidebar-recent-post:hover { transform: none; }
    .share-btn:hover { transform: none; }
    .page-btn:hover { transform: none; }
}
