/*
 Theme Name:   Travis Goltz Child
 Description:  Child theme for travisgoltz.com/blog
 Template:     astra
 Version:      1.0.0
 Text Domain:  travis-goltz-child
*/

/* Kill Astra's header and footer — we replace them */
#masthead,
.site-header,
#ast-desktop-header,
#ast-mobile-header,
#colophon,
.site-footer,
.ast-small-footer,
.footer-widget-area {
    display: none !important;
}

/* Remove Astra content padding */
#content,
.site-content,
#primary,
.ast-container,
.content-area,
.ast-article-post,
.entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    background: transparent !important;
}

.ast-separate-container .site-content > .ast-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ============================================================
   BLOG-SPECIFIC STYLES
   (Nav, footer, fonts all come from main site css/style.css)
   ============================================================ */

/* Blog hero — matches main site dark sections */
.tg-blog-hero {
    background: #0F0F0F;
    padding: 80px 25px 90px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.tg-blog-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tg-blog-hero h1 {
    color: white !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 20px !important;
    max-width: 700px;
    font-family: 'Montserrat', sans-serif !important;
}

.tg-blog-hero .tg-eyebrow {
    color: var(--granite-gold, #D4A017);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    border-bottom: 1px solid var(--granite-gold, #D4A017);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.tg-blog-hero p.sub {
    font-size: 1.05rem;
    color: #ccc;
    max-width: 560px;
    border-left: 3px solid var(--granite-gold, #D4A017);
    padding-left: 20px;
    margin: 0;
    line-height: 1.7;
}

/* Blog layout */
.tg-blog-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 25px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
    background: #F6F5F3;
}

/* Post cards */
.tg-post-list { display: flex; flex-direction: column; gap: 30px; }

.tg-card {
    background: white;
    border-top: 4px solid var(--granite-gold, #D4A017);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.tg-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.tg-card-thumb { display: block; width: 100%; height: 230px; object-fit: cover; }
.tg-card-body { padding: 30px; }
.tg-card-meta {
    display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; color: #8E9196;
}
.tg-card-cat { color: var(--granite-gold, #D4A017); border-bottom: 1px solid var(--granite-gold, #D4A017); padding-bottom: 2px; text-decoration: none; }
.tg-card h2 { font-size: 1.3rem !important; margin-bottom: 10px !important; line-height: 1.3 !important; font-family: 'Montserrat', sans-serif !important; }
.tg-card h2 a { color: #0F0F0F !important; text-decoration: none; }
.tg-card h2 a:hover { color: var(--granite-gold, #D4A017) !important; }
.tg-card p.excerpt { font-size: 0.95rem; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 22px; }
.tg-read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: #0F0F0F; border-bottom: 2px solid var(--granite-gold, #D4A017);
    padding-bottom: 3px; transition: color 0.2s, gap 0.2s; text-decoration: none;
}
.tg-read-more::after { content: '→'; }
.tg-read-more:hover { color: var(--granite-gold, #D4A017); gap: 13px; }

/* Single post */
.tg-single-header {
    background: #0F0F0F; padding: 80px 25px 70px;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.tg-single-header-inner { max-width: 840px; margin: 0 auto; }
.tg-cat-badge { display: inline-block; color: var(--granite-gold, #D4A017); font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--granite-gold, #D4A017); padding-bottom: 4px; margin-bottom: 18px; text-decoration: none; }
.tg-single-header h1 { color: white !important; font-family: 'Montserrat', sans-serif !important; }
.tg-single-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #8E9196; }
.tg-featured-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.tg-post-content-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 25px; display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; background: #F6F5F3; }
.tg-post-content { font-size: 1.05rem; line-height: 1.85; color: #2A2E32; }
.tg-post-content h2 { border-left: 4px solid var(--granite-gold, #D4A017); padding-left: 18px; margin-top: 2.5em; font-family: 'Montserrat', sans-serif !important; }
.tg-post-content h3, .tg-post-content h4 { margin-top: 2em; font-family: 'Montserrat', sans-serif !important; }
.tg-post-content p { color: #444; margin-bottom: 1.5rem; }
.tg-post-content a { color: var(--granite-gold, #D4A017); }
.tg-post-content ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: #444; list-style: none; }
.tg-post-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--granite-gold, #D4A017); font-weight: bold; }
.tg-post-content blockquote { border-left: 8px solid var(--granite-gold, #D4A017); padding: 28px 36px; margin: 2.5rem 0; background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.08); font-style: italic; font-size: 1.1rem; color: #0F0F0F; }

/* Author box */
.tg-author-box { background: #0F0F0F; padding: 30px 34px; display: flex; gap: 20px; align-items: flex-start; margin: 48px 0; border-left: 4px solid var(--granite-gold, #D4A017); }
.tg-author-avatar { width: 70px; height: 70px; border: 3px solid var(--granite-gold, #D4A017); object-fit: cover; flex-shrink: 0; }
.tg-author-info h4 { color: white !important; font-size: 1rem !important; margin-bottom: 4px !important; font-family: 'Montserrat', sans-serif !important; }
.tg-author-info p { color: rgba(255,255,255,0.68) !important; font-size: 0.875rem; margin: 0; }

/* Post nav */
.tg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.tg-post-nav a { display: block; padding: 20px 22px; background: white; border-top: 3px solid var(--granite-gold, #D4A017); box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: transform 0.2s; text-decoration: none; }
.tg-post-nav a:hover { transform: translateY(-3px); }
.tg-post-nav .nav-label { font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8E9196; margin-bottom: 6px; }
.tg-post-nav .nav-title { font-family: 'Montserrat', sans-serif; font-weight: 600; color: #0F0F0F; font-size: 0.875rem; line-height: 1.4; }
.tg-post-nav .tg-next { text-align: right; }

/* Sidebar */
.tg-sidebar { display: flex; flex-direction: column; gap: 26px; }
.tg-widget { background: white; border-top: 4px solid var(--granite-gold, #D4A017); box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; }
.tg-widget-header { background: #0F0F0F; color: white; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 13px 20px; }
.tg-widget-body { padding: 20px; }
.tg-widget-cta { background: #0F0F0F; border-top: 4px solid var(--granite-gold, #D4A017); box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 30px 22px; text-align: center; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 50px 50px; }
.tg-widget-cta .cta-avatar { width: 74px; height: 74px; border: 3px solid var(--granite-gold, #D4A017); object-fit: cover; margin: 0 auto 16px; display: block; border-radius: 50%; }
.tg-widget-cta h3 { color: white !important; font-size: 1rem !important; margin-bottom: 8px !important; font-family: 'Montserrat', sans-serif !important; }
.tg-widget-cta p { color: rgba(255,255,255,0.65) !important; font-size: 0.84rem; margin-bottom: 18px !important; }
.tg-widget-cta .btn { display: block; margin-bottom: 10px; text-align: center; }

.tg-search-form { display: flex; gap: 6px; }
.tg-search-form input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; background: #F6F5F3; color: #2A2E32; font-family: 'Inter', sans-serif; font-size: 0.875rem; border-radius: 2px; outline: none; transition: border-color 0.2s; }
.tg-search-form input:focus { border-color: var(--granite-gold, #D4A017); }
.tg-search-form button { background: var(--granite-gold, #D4A017); color: #000; border: none; padding: 10px 14px; border-radius: 2px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.tg-search-form button:hover { background: #0F0F0F; color: white; }

.tg-recent-posts { list-style: none; padding: 0; margin: 0; }
.tg-recent-posts li { padding: 11px 0; border-bottom: 1px solid #eee; display: flex; gap: 11px; align-items: flex-start; }
.tg-recent-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.tg-recent-thumb { width: 56px; height: 46px; object-fit: cover; flex-shrink: 0; }
.tg-recent-posts a { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 600; color: #0F0F0F; line-height: 1.35; display: block; margin-bottom: 3px; text-decoration: none; }
.tg-recent-posts a:hover { color: var(--granite-gold, #D4A017); }
.tg-recent-date { font-size: 0.7rem; color: #8E9196; }

.tg-cat-list { list-style: none; padding: 0; margin: 0; }
.tg-cat-list li { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.tg-cat-list li:last-child { border-bottom: none; }
.tg-cat-list a { font-family: 'Montserrat', sans-serif; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; color: #0F0F0F; text-decoration: none; }
.tg-cat-list a:hover { color: var(--granite-gold, #D4A017); }
.tg-cat-count { background: #F6F5F3; color: #8E9196; font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 2px; }

/* Pagination */
.tg-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tg-pagination a, .tg-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 2px; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700; border: 1px solid #ddd; color: #0F0F0F; background: white; transition: all 0.2s; text-decoration: none; }
.tg-pagination a:hover { background: #0F0F0F; border-color: #0F0F0F; color: white; }
.tg-pagination .current { background: var(--granite-gold, #D4A017); border-color: var(--granite-gold, #D4A017); color: white; }

/* Tags */
.tg-post-tags { margin-top: 36px; padding-top: 22px; border-top: 1px solid #e0e0e0; display: flex; flex-wrap: wrap; gap: 8px; }
.tg-tag { background: white; border: 1px solid #ddd; color: #2A2E32; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 2px; transition: all 0.2s; text-decoration: none; }
.tg-tag:hover { background: var(--granite-gold, #D4A017); border-color: var(--granite-gold, #D4A017); color: white; }

/* Responsive */
@media (max-width: 960px) {
    .tg-blog-body, .tg-post-content-wrap { grid-template-columns: 1fr; padding: 40px 20px; gap: 36px; }
    .tg-blog-hero { padding: 60px 20px 70px; }
    .tg-single-header { padding: 60px 20px 50px; }
}
@media (max-width: 600px) {
    .tg-post-nav { grid-template-columns: 1fr; }
    .tg-author-box { flex-direction: column; align-items: center; text-align: center; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
