/*
Theme Name: BuildCraft Journal Concept
Description: Industrial, high-contrast, and technical design for construction and engineering blogs.
Version: 2.0
*/

:root {
    --c-bg: #0C0C0C;
    --c-surface: #161616;
    --c-accent: #E2FF00; /* Neon Yellow */
    --c-text: #FFFFFF;
    --c-muted: #888888;
    --c-border: #222222;
    --f-main: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-main); text-transform: uppercase; font-weight: 700; line-height: 1; }

a { text-decoration: none; color: inherit; transition: 0.2s; }

.container { max-width: 1500px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header {
    height: 100px;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { font-family: var(--f-main); font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--c-accent); }

.main-nav ul { display: flex; list-style: none; gap: 40px; }
.main-nav a { font-family: var(--f-main); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--c-accent); }

/* Hero */
.hero-industrial {
    padding: 150px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    border-bottom: 1px solid var(--c-border);
}

.hero-text h1 { font-size: clamp(4rem, 10vw, 9rem); margin-bottom: 40px; letter-spacing: -5px; }
.hero-text p { font-size: 1.3rem; color: var(--c-muted); max-width: 500px; margin-bottom: 50px; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; border: 1px solid var(--c-border); filter: grayscale(1) contrast(1.2); }
.hero-tag {
    position: absolute; top: -20px; right: -20px;
    background: var(--c-accent); color: #000;
    padding: 10px 20px; font-family: var(--f-main); font-weight: 700; font-size: 0.8rem;
}

/* Tech Grid (Unique Block 1) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--c-border);
}
.tech-item { padding: 80px 40px; border-right: 1px solid var(--c-border); }
.tech-item:last-child { border: none; }
.t-num { font-family: var(--f-main); color: var(--c-accent); font-size: 0.8rem; margin-bottom: 20px; display: block; }
.t-title { font-size: 1.5rem; margin-bottom: 15px; }
.t-desc { font-size: 0.9rem; color: var(--c-muted); }

/* Split Feature (Unique Block 2) */
.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--c-surface);
}
.split-img { height: 100%; min-height: 600px; position: relative; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.5; }
.split-text { padding: 120px 10%; display: flex; flex-direction: column; justify-content: center; }
.split-text h2 { font-size: 4rem; margin-bottom: 30px; }
.split-text p { font-size: 1.2rem; color: var(--c-muted); margin-bottom: 40px; }

/* Bento Archive (Unique Block 3) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 120px 0;
}
.bento-card { 
    grid-column: span 4; 
    background: var(--c-surface); 
    border: 1px solid var(--c-border); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative;
    min-height: 450px;
}
.bento-card:nth-child(1) { grid-column: span 8; }
.bento-card:nth-child(2) { grid-row: span 2; min-height: 920px; }
.bento-card:nth-child(5) { grid-column: span 8; }

.bento-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bento-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.3; 
    filter: grayscale(1); 
    transition: 0.5s; 
}
.bento-card:hover .bento-img { opacity: 0.6; transform: scale(1.05); }

.bento-content { 
    position: relative; 
    z-index: 10; 
    padding: 40px; 
    margin-top: auto; 
    background: linear-gradient(to top, rgba(12,12,12,1) 0%, rgba(12,12,12,0.8) 50%, rgba(12,12,12,0) 100%);
    width: 100%;
}
.bento-meta { font-family: var(--f-main); color: var(--c-accent); font-size: 0.7rem; margin-bottom: 15px; display: block; }
.bento-card h3 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.bento-card:nth-child(1) h3, .bento-card:nth-child(5) h3 { font-size: 2.5rem; }

/* Buttons */
.bc-btn {
    display: inline-flex;
    align-items: center;
    padding: 25px 50px;
    background: var(--c-accent);
    color: #000;
    font-family: var(--f-main);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    transition: 0.3s;
    justify-content: flex-start;
}
.bc-btn:hover { background: #fff; padding-left: 60px; }

.bc-btn-wide {
    display: flex;
    width: 100%;
}

/* Pagination */
.bc-pagination {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 50px;
    padding-bottom: 100px;
}
.bc-pg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--c-border);
    font-family: var(--f-main);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-muted);
    transition: 0.3s;
}
.bc-pg-link.current {
    background: var(--c-accent);
    color: #000;
    border-color: var(--c-accent);
}
.bc-pg-link:hover:not(.current) {
    color: #fff;
    border-color: #fff;
}

/* Footer */
.site-footer { 
    padding: 150px 0 60px; 
    border-top: 1px solid var(--c-border); 
    background: var(--c-bg);
}
.f-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 100px; 
    margin-bottom: 100px; 
}
.f-col h4 { 
    font-size: 0.8rem; 
    color: var(--c-accent); 
    margin-bottom: 30px; 
    letter-spacing: 2px;
}
.f-links { 
    list-style: none; 
    padding: 0;
    margin: 0;
}
.f-links li { 
    margin-bottom: 15px; 
    color: var(--c-muted); 
    font-size: 0.9rem; 
}
.f-links a:hover { color: #fff; }

.f-bottom { 
    padding-top: 50px; 
    border-top: 1px solid var(--c-border); 
    display: flex; 
    justify-content: space-between; 
    font-family: var(--f-main); 
    font-size: 0.7rem; 
    color: var(--c-muted); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
.burger { display: none; cursor: pointer; }

@media (max-width: 1200px) {
    .hero-industrial { grid-template-columns: 1fr; text-align: center; padding: 100px 0; }
    .hero-text p { margin: 0 auto 40px; }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .tech-item { border-bottom: 1px solid var(--c-border); }
    .split-feature { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card, .bento-card:nth-child(1), .bento-card:nth-child(2), .bento-card:nth-child(5) { 
        grid-column: span 1; 
        grid-row: span 1;
        min-height: 400px; 
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: block; font-family: var(--f-main); font-weight: 700; color: var(--c-accent); }
    .tech-grid { grid-template-columns: 1fr; }
    .f-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-text h1 { font-size: 4rem; letter-spacing: -2px; }
    .f-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

body.menu-open .main-nav {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--c-bg);
    flex-direction: column; align-items: center; justify-content: center; z-index: 2000;
}
body.menu-open .main-nav ul { flex-direction: column; align-items: center; }
body.menu-open .main-nav a { font-size: 2rem; }
