
/* ============================================
   ContractorGearLab — Custom Theme CSS
   Brand: Orange #E67E22, Navy #2C3E50, Green #27AE60
   ============================================ */

/* --- Global Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2C3E50;
    line-height: 1.7;
    background: #FAFAFA;
}

/* --- Site Header --- */
.wp-site-blocks > header,
.wp-block-template-part > header {
    background: #2C3E50 !important;
    border-bottom: 4px solid #E67E22 !important;
    padding: 0 !important;
}

.wp-block-site-title a,
.wp-block-site-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.wp-block-site-tagline {
    color: #E67E22 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wp-block-navigation a {
    color: #ECF0F1 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-block-navigation a:hover {
    color: #E67E22 !important;
}

/* --- Hero / Page Title Area --- */
.wp-block-post-title,
.entry-title,
h1.wp-block-post-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #1A1A2E !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
    margin-bottom: 16px !important;
}

/* --- Content Area --- */
.wp-block-post-content,
.entry-content {
    max-width: 780px !important;
    margin: 0 auto !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #34495E;
}

/* --- Headings --- */
.entry-content h2,
.wp-block-post-content h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2C3E50 !important;
    margin-top: 48px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px;
    border-bottom: 3px solid #E67E22;
}

.entry-content h3,
.wp-block-post-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin-top: 36px !important;
    margin-bottom: 12px !important;
}

/* --- Article Cards on Homepage --- */
.wp-block-post-template .wp-block-post,
.wp-block-query .wp-block-post {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #E8E8E8;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wp-block-post-template .wp-block-post:hover,
.wp-block-query .wp-block-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wp-block-post-template .wp-block-post-title a {
    color: #2C3E50 !important;
    text-decoration: none !important;
}

.wp-block-post-template .wp-block-post-title a:hover {
    color: #E67E22 !important;
}

/* --- Tables (Comparison Tables) --- */
.entry-content table,
.wp-block-post-content table,
table.cgl-comparison-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    font-size: 15px !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.entry-content table thead th,
table.cgl-comparison-table thead th,
.entry-content table th {
    background: #2C3E50 !important;
    color: #FFFFFF !important;
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content table tbody td,
table.cgl-comparison-table tbody td,
.entry-content table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #ECF0F1 !important;
    vertical-align: top;
}

.entry-content table tbody tr:nth-child(even),
table.cgl-comparison-table tbody tr:nth-child(even) {
    background: #F8F9FA !important;
}

.entry-content table tbody tr:hover,
table.cgl-comparison-table tbody tr:hover {
    background: #FFF3E0 !important;
}

/* --- CTA Buttons --- */
.cgl-cta-button,
.entry-content .cgl-cta-button {
    display: inline-block;
    background: #27AE60 !important;
    color: #FFFFFF !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    text-align: center;
    margin: 16px 0;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(39,174,96,0.3);
}

.cgl-cta-button:hover {
    background: #219A52 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39,174,96,0.3);
}

/* --- Top Pick Callout --- */
.cgl-top-pick {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
    border: 2px solid #E67E22;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
}

.cgl-top-pick::before {
    content: "\1F3C6  OUR TOP PICK";
    position: absolute;
    top: -14px;
    left: 20px;
    background: #E67E22;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Pros & Cons --- */
.cgl-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.cgl-pros-cons .pros {
    background: #F0FFF4;
    border-left: 4px solid #27AE60;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
}

.cgl-pros-cons .cons {
    background: #FFF5F5;
    border-left: 4px solid #E74C3C;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
}

.cgl-pros-cons h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cgl-pros-cons .pros h4 { color: #27AE60; }
.cgl-pros-cons .cons h4 { color: #E74C3C; }
.cgl-pros-cons ul { margin: 0; padding-left: 0; list-style: none; }
.cgl-pros-cons li { padding: 4px 0; }

/* --- Author Box --- */
.cgl-author-box {
    background: #F8F9FA;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 24px;
    margin: 48px 0 24px;
    border-top: 3px solid #E67E22;
}

.cgl-author-box strong:first-child {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #E67E22;
    margin-bottom: 8px;
}

/* --- Blockquotes / Callouts --- */
.entry-content blockquote,
.wp-block-post-content blockquote {
    border-left: 4px solid #E67E22 !important;
    background: #FFF8F0;
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-style: normal !important;
    color: #2C3E50;
}

/* --- Lists --- */
.entry-content ul li,
.wp-block-post-content ul li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.entry-content ul li::marker {
    color: #E67E22;
}

/* --- Links --- */
.entry-content a {
    color: #E67E22;
    text-decoration: underline;
    text-decoration-color: rgba(230,126,34,0.3);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: #D35400;
    text-decoration-color: #D35400;
}

/* --- Footer --- */
.wp-site-blocks > footer,
.wp-block-template-part:last-child {
    background: #1A1A2E !important;
    color: #95A5A6 !important;
    padding: 48px 0 !important;
    margin-top: 64px !important;
}

.wp-site-blocks > footer a {
    color: #E67E22 !important;
}

/* --- Post Meta --- */
.wp-block-post-date,
.taxonomy-category,
.post-meta {
    font-size: 13px;
    color: #95A5A6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .wp-block-post-title, .entry-title, h1.wp-block-post-title {
        font-size: 26px !important;
    }
    .entry-content h2, .wp-block-post-content h2 {
        font-size: 22px !important;
    }
    .cgl-pros-cons {
        grid-template-columns: 1fr;
    }
    .entry-content table {
        font-size: 13px !important;
    }
    .entry-content table th, .entry-content table td {
        padding: 8px 10px !important;
    }
    .cgl-cta-button {
        display: block; text-align: center; width: 100%; box-sizing: border-box;
    }
}
