/*
Theme Name: RenovaPro Portal
Author: Senior Frontend Designer
Description: Концепция "Modernist Portfolio": Чистота форм, журнальная верстка и экспертная глубина.
Version: 1.0.0
Text Domain: renovapro
*/

:root {
    /* Colors - Sophisticated & Warm */
    --bg: #fafaf9; /* Stone 50 */
    --surface: #f5f5f4; /* Stone 100 */
    --surface-dark: #1c1917; /* Stone 900 */
    --primary: #c2410c; /* Orange 700 - Terracotta accent */
    --primary-dim: rgba(194, 65, 12, 0.1);
    --accent: #44403c; /* Stone 700 */
    --text: #1c1917;
    --text-muted: #78716c;
    --border: #e7e5e4;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 110px;
    --container-width: 1400px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space 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.5; 
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
ul { list-style: none; }

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

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

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 5rem; /* MEMO check */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--surface-dark);
    flex-shrink: 0;
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 3.5rem; }
.main-nav a { 
    font-weight: 500; 
    font-size: 0.95rem; 
    color: var(--text-muted);
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

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

/* Hero - Option B: Image Left / Text Right */
.hero {
    display: flex;
    align-items: center;
    padding: 8rem 0;
    min-height: 70vh;
}

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

.hero-image-wrap {
    position: relative;
    padding-right: 2rem;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    filter: sepia(0.2);
    border-radius: 2rem 0 2rem 0; /* Unconventional framing */
    box-shadow: 40px -40px 0 var(--surface);
}

.hero-content h1 { font-size: clamp(3.5rem, 8vw, 5.5rem); margin-bottom: 2.5rem; }
.hero-content span { color: var(--primary); }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 480px; margin-bottom: 3.5rem; border-left: 2px solid var(--primary); padding-left: 2rem; }

/* Budget Matrix Block */
.budget-matrix {
    padding: 10rem 0;
    background: var(--surface-dark);
    color: #fff;
}

.matrix-header { margin-bottom: 6rem; text-align: center; }
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.matrix-item {
    background: rgba(255,255,255,0.03);
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.5s;
}
.matrix-item:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.02); }
.matrix-item h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.matrix-item p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.matrix-item:hover p { color: #fff; }

/* Case Studies Section */
.case-section { padding: 10rem 0; }
.case-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    overflow: hidden;
}
.case-img { width: 40%; object-fit: cover; }
.case-content { width: 60%; padding: 4rem; }
.case-tag { color: var(--primary); font-family: var(--font-mono); font-size: 0.7rem; margin-bottom: 1.5rem; display: block; }

/* Post Grid */
.section-header {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

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

.post-card {
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1/1; /* Square grid */
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: var(--surface);
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); filter: grayscale(0.5); }
.post-card:hover .card-img { transform: scale(1.1); filter: grayscale(0); }

.card-title { font-size: 1.6rem; margin-bottom: 1.5rem; line-height: 1.2; }
.card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem; flex-grow: 1; }

.btn-renova {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary);
    width: fit-content;
}
.btn-renova:hover { color: var(--primary); border-bottom-width: 4px; }

/* Footer */
.site-footer {
    padding: 10rem 0 5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

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

.footer-col h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3rem; }
.footer-contact-item { margin-bottom: 3rem; }
.footer-contact-item label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-contact-item span { font-size: 1.3rem; font-weight: 700; color: var(--text); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-image-wrap { padding-right: 0; order: 2; }
    .hero-content { order: 1; }
    .matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg); padding: 3rem var(--gap); border-bottom: 1px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .menu-toggle { display: block; }
}

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