/*
Theme Name: DomRemont Lab Portal
Author: Senior Frontend Designer
Description: Концепция "Workshop Lab": Техническая лаборатория, минимум теории, максимум практики и прикладных решений.
Version: 1.0.0
Text Domain: domremont
*/

:root {
    /* Colors - Technical Lab & Industry */
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-dark: #334155;
    --primary: #f97316; /* Warning Orange */
    --primary-dim: rgba(249, 115, 22, 0.1);
    --accent: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #cbd5e1;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 100px;
    --container-width: 1400px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); }

/* Typography */
h1, h2, h3 { font-weight: 900; line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; }
.text-mono { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; }

/* Header - Technical Blueprint */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 950;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo::before {
    content: '';
    width: 30px;
    height: 30px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 3rem; }
.main-nav a { 
    font-weight: 800; 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--accent); }

.menu-toggle { display: none; background: var(--accent); color: #fff; border: none; padding: 12px; cursor: pointer; }
.hamburger { width: 24px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero - Option B: Image Left / Text Right with Industrial Filter */
.hero {
    padding: 8rem 0;
    background: #fff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    filter: contrast(1.1) brightness(0.9);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    box-shadow: 30px 30px 0px var(--primary-dim);
}

.hero-content h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 2rem; color: var(--accent); }
.hero-desc { font-size: 1.3rem; color: var(--text-muted); max-width: 500px; margin-bottom: 3rem; border-left: 5px solid var(--primary); padding-left: 2rem; }

/* Lab Blueprint Grid */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.lab-card {
    background: var(--accent);
    color: #fff;
    padding: 3.5rem 2.5rem;
    transition: 0.4s;
    border-bottom: 5px solid transparent;
}
.lab-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); }
.lab-card span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); margin-bottom: 1.5rem; display: block; }
.lab-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.lab-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Error Lab Section */
.error-lab {
    padding: 10rem 0;
}

.lab-header {
    margin-bottom: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--border);
    padding-bottom: 2rem;
}

.lab-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.lab-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.lab-badge {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 900;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.lab-item h4 { font-size: 1.4rem; margin-bottom: 1rem; }
.lab-item p { color: var(--text-muted); font-size: 1rem; }

/* Post Grid */
.section-header {
    padding: 8rem 0 3rem;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 4rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 8rem;
}

.post-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--accent);
    position: relative;
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; opacity: 0.8; }
.post-card:hover .card-img { transform: scale(1.05); opacity: 1; }

.card-body { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; display: block; }
.card-title { font-size: 1.5rem; margin-bottom: 1.5rem; line-height: 1.1; }
.card-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2.5rem; flex-grow: 1; }

.btn-lab {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    width: fit-content;
    letter-spacing: 1px;
}
.btn-lab:hover { background: var(--primary); }

/* Footer */
.site-footer {
    padding: 8rem 0 4rem;
    background: var(--accent);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-col h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); margin-bottom: 3rem; text-transform: uppercase; }
.footer-contact-item { margin-bottom: 3rem; }
.footer-contact-item label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-contact-item span { font-size: 1.2rem; font-weight: 700; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* Pagination */
.pagination-container { padding-bottom: 8rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border);
    font-weight: 900;
    font-family: var(--font-mono);
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
    .lab-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; padding-top: 4rem; }
    .lab-list { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%;
        background: #fff; padding: 2.5rem; border-bottom: 2px solid var(--accent);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .main-nav a { color: var(--text); }
    .menu-toggle { display: block; }
}

@media (max-width: 640px) {
    .lab-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}
