﻿/* ==========================================================================
   Topwood & Compaq Style Blog Stylesheet
   ========================================================================== */

:root {
    --brand-primary: #800000; /* Maroon / Burgundy accent */
    --brand-dark: #0D0E0F; /* Charcoal Black for strong headers */
    --brand-hover: #5A0000; /* Darker Maroon for button hover */
    --text-body: #374151; /* Slate grey for smooth reading */
    --text-light: #6B7280; /* Subtle grey for dates & meta */
    --bg-light: #F9FAFB; /* Light background tint */
    --bg-white: #FFFFFF; /* Cards background */
    --border-color: #E5E7EB; /* Clean light borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Base resets & fonts */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Headings setup based on your brand rules */
h1, .h1design {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 20px;
}

h2, .h2design {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

h3, .h3design {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 22px;
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 10px;
}

h4, .h4design {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--brand-hover);
        text-decoration: underline;
    }

/* Page Layout Grid (Content + Sticky Sidebar) */
.blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .blog-wrapper {
        grid-template-columns: 1fr 340px;
    }
}

/* Header & Meta */
.blog-header {
    margin-bottom: 2rem;
}

.category-tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 1.25rem;
    margin-top: 10px;
}

/* Lead Intro Box */
.lead-box {
    background-color: var(--bg-light);
    border-left: 5px solid var(--brand-primary);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-dark);
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

/* Checkmark Lists */
.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

    .check-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 0.8rem;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--brand-primary);
            font-weight: 800;
            font-size: 1.1rem;
        }

/* Process Step Cards */
.process-step {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .process-step:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .process-step h3 {
        margin-top: 0;
        color: var(--brand-primary);
    }

/* Accordion FAQ Box */
.faq-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

    .faq-box h3 {
        margin-top: 0;
        font-size: 1.1rem;
        color: var(--brand-dark);
    }

    .faq-box p:last-child {
        margin-bottom: 0;
    }

/* Sticky Sidebar & Call to Action Widget */
.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.cta-widget {
    background-color: var(--brand-dark);
    color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    border-top: 6px solid var(--brand-primary);
    box-shadow: var(--shadow-md);
    text-align: center;
}

    .cta-widget h3 {
        color: #FFFFFF;
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    .cta-widget p {
        color: #D1D5DB;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: var(--brand-hover);
        color: #FFFFFF;
        text-decoration: none;
    }
