/*
Theme Name: Top Tier Home Building Solutions
Theme URI: https://example.com/tthbs
Author: Top Tier Home Building Solutions
Author URI: https://example.com
Description: Blank, optimized, and compatibility-focused classic WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.1
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: tthbs
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/


/* ============================================================
   BLOG — Added 2026-04-10
   ============================================================ */

/* ── Hero (shared by home.php and single-post.php) ── */
.tthbs-blog-hero,
.tthbs-post-hero {
    position: relative;
    min-height: 340px;
    background-color: var(--tthbs-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.tthbs-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,11,20,.85) 0%, rgba(7,11,20,.65) 100%);
}
.tthbs-blog-hero__title,
.tthbs-post-hero__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    max-width: 700px;
}
.tthbs-blog-hero__lead {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    max-width: 600px;
}
.tthbs-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.tthbs-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.tthbs-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.tthbs-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Section kicker ── */
.tthbs-section-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tthbs-accent);
    margin-bottom: .5rem;
}

/* ── Featured post ── */
.tthbs-blog-featured__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}
.tthbs-blog-featured__title a {
    color: var(--tthbs-dark);
    text-decoration: none;
}
.tthbs-blog-featured__title a:hover { color: var(--tthbs-accent); }
.tthbs-blog-featured__excerpt { color: #4b5563; line-height: 1.7; }
.tthbs-blog-featured__img-wrap { border-radius: .75rem; overflow: hidden; }
.tthbs-blog-featured__img-wrap img { transition: transform .35s ease; }
.tthbs-blog-featured__img-wrap:hover img { transform: scale(1.03); }

/* ── Category label ── */
.tthbs-blog-cat-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tthbs-accent);
    border: 1px solid var(--tthbs-accent);
    border-radius: 3px;
    padding: 2px 8px;
}

/* ── Blog meta ── */
.tthbs-blog-meta { font-size: .85rem; color: #6b7280; }
.tthbs-blog-meta--light { color: rgba(255,255,255,.75); font-size: .9rem; }
.tthbs-blog-tag {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: .75rem;
    margin-right: 4px;
}

/* ── Card grid ── */
.tthbs-blog-card {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.tthbs-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.tthbs-blog-card__img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.tthbs-blog-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tthbs-blog-card:hover .tthbs-blog-card__img-wrap img { transform: scale(1.04); }
.tthbs-blog-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tthbs-blog-card__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.tthbs-blog-card__title a { color: var(--tthbs-dark); text-decoration: none; }
.tthbs-blog-card__title a:hover { color: var(--tthbs-accent); }
.tthbs-blog-card__excerpt { font-size: .875rem; color: #6b7280; line-height: 1.6; flex: 1; }
.tthbs-blog-card__link { font-size: .85rem; font-weight: 600; color: var(--tthbs-accent); text-decoration: none; }
.tthbs-blog-card__link:hover { text-decoration: underline; }

/* ── Pagination ── */
.tthbs-blog-pagination { text-align: center; }
.tthbs-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 3px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--tthbs-dark);
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: background .2s, color .2s, border-color .2s;
}
.tthbs-blog-pagination .page-numbers:hover,
.tthbs-blog-pagination .page-numbers.current {
    background: var(--tthbs-accent);
    color: #fff;
    border-color: var(--tthbs-accent);
}

/* ── CTA Banner ── */
.tthbs-cta-banner { background: var(--tthbs-dark); }
.tthbs-cta-banner__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff; }
.tthbs-cta-banner__sub { color: rgba(255,255,255,.75); }
.btn-accent {
    background: var(--tthbs-accent);
    color: var(--tthbs-dark);
    border-color: var(--tthbs-accent);
    font-weight: 700;
}
.btn-accent:hover { background: #c4954a; border-color: #c4954a; color: var(--tthbs-dark); }
.btn-outline-accent {
    border: 2px solid var(--tthbs-accent);
    color: var(--tthbs-accent);
    font-weight: 600;
    background: transparent;
}
.btn-outline-accent:hover { background: var(--tthbs-accent); color: var(--tthbs-dark); }

/* ── Single post content ── */
.tthbs-post-content { font-size: 1.05rem; line-height: 1.8; color: var(--tthbs-text, #0f172a); }
.tthbs-post-content h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.tthbs-post-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.tthbs-post-content p { margin-bottom: 1.2rem; }
.tthbs-post-content ul, .tthbs-post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.tthbs-post-content li { margin-bottom: .4rem; }
.tthbs-post-content a { color: var(--tthbs-accent); }
.tthbs-post-content strong { font-weight: 700; }
.tthbs-post-content blockquote {
    border-left: 4px solid var(--tthbs-accent);
    padding: .75rem 1.25rem;
    background: var(--tthbs-bg, #f2f4f7);
    border-radius: 0 .5rem .5rem 0;
    margin: 1.5rem 0;
    font-style: italic;
}

/* ── Sidebar ── */
.tthbs-sidebar-cta {
    background: var(--tthbs-dark);
    color: #fff;
    border-radius: .75rem;
    padding: 1.5rem;
}
.tthbs-sidebar-cta__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.tthbs-sidebar-cta__sub { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1rem; }
.tthbs-sidebar-related {
    background: var(--tthbs-bg, #f2f4f7);
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
}
.tthbs-sidebar-related__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--tthbs-dark); }
.tthbs-sidebar-related__link { color: var(--tthbs-dark); text-decoration: none; font-size: .9rem; font-weight: 500; }
.tthbs-sidebar-related__link:hover { color: var(--tthbs-accent); }
.tthbs-sidebar-service {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
}
.tthbs-sidebar-service__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--tthbs-dark); margin: 0; }

/* ── Section title ── */
.tthbs-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tthbs-dark);
}
