/* ─────────────────────────────────────────────────────────────
   BLOG PAGE — Copper Roofing Specialists Louisville
   ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reuse tokens from main style */
:root {
    --copper-50: #fdf3ea;
    --copper-100: #fae0c4;
    --copper-200: #f5c08a;
    --copper-300: #ee9d52;
    --copper-400: #e8834a;
    --copper-500: #c96e30;
    --copper-600: #b5541e;
    --copper-700: #8b3a10;
    --dark-900: #0c0a09;
    --dark-800: #141210;
    --off-white: #f8f4f0;
    --text-primary: #1a1210;
    --text-secondary: #5a4a3a;
    --text-muted: #8a7a6a;
    --border: rgba(201, 110, 48, 0.15);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --nav-height: 76px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
    --shadow-copper: 0 8px 32px rgba(201, 110, 48, 0.25);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* BLOG HERO */
.blog-hero {
    background: var(--dark-900);
    padding: calc(var(--nav-height) + 60px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 110, 48, 0.2), transparent 70%);
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--copper-400);
    margin-bottom: 14px;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, var(--copper-300), var(--copper-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
}

/* BLOG LAYOUT */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

/* BLOG GRID */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    height: 240px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 28px 28px 28px 32px;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--copper-500);
    background: var(--copper-50);
    border: 1px solid var(--copper-200);
    padding: 3px 10px;
    border-radius: 20px;
}

.blog-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.blog-card-body h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-800);
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card-body h2 a:hover {
    color: var(--copper-600);
}

.blog-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--copper-500);
    transition: var(--transition);
}

.blog-read-link span {
    transition: transform 0.3s;
}

.blog-read-link:hover {
    color: var(--copper-700);
}

.blog-read-link:hover span {
    transform: translateX(4px);
}

/* SIDEBAR */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--copper-100);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--copper-400), var(--copper-700));
    border: none;
    color: #fff;
}

.sidebar-cta h3 {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    line-height: 1.6;
}

.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-900);
    background: var(--copper-200);
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.sidebar-cta a:hover {
    background: #fff;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recent-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    transition: var(--transition);
}

.recent-post:hover {
    transform: translateX(4px);
}

.recent-post-img {
    width: 64px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-800);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: var(--transition);
}

.recent-post:hover .recent-post-title {
    color: var(--copper-600);
}

.recent-post-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--copper-600);
    background: var(--copper-50);
    border: 1px solid var(--copper-200);
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover {
    background: var(--copper-400);
    color: #fff;
    border-color: var(--copper-400);
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-img {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .blog-layout {
        padding: 32px 16px 60px;
    }
}