/*
Theme Name: RenovTula Services
Author: Construction Design Studio
Description: Коммерческий стиль "RenovTula": Индустриальная эстетика, четкие линии, акцент на качестве работ и договорных обязательствах.
Version: 1.0.0
Text Domain: renovtula
*/

:root {
    /* Colors - Industrial & Solid */
    --bg: #fdfdfd;
    --surface: #ffffff;
    --surface-dark: #212121;
    --primary: #d35400; /* Terracotta Orange */
    --secondary: #2c3e50; /* Slate Blue */
    --accent: #f1c40f; /* Construction Yellow */
    --text: #333333;
    --text-muted: #7f8c8d;
    --border: #ecf0f1;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 90px;
    --container-width: 1200px;
    
    /* Fonts */
    --font-display: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 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;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

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

/* Typography */
h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--surface-dark); }

/* Header - Solid Top Nav */
.site-header {
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    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.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    flex-shrink: 0;
    color: var(--primary);
}
.logo span { color: var(--secondary); font-weight: 300; }

.main-nav ul { display: flex; gap: 3rem; }
.main-nav a { 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    color: var(--secondary);
    position: relative;
    padding: 0.5rem 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--primary);
    transition: 0.3s;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }

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

/* Hero - Option B: Image Left, Text Right */
.hero {
    padding: 10rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

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

.hero-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background: var(--primary);
    color: #fff;
    padding: 2rem;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 20px 40px rgba(211, 84, 0, 0.3);
}

.hero-content { position: relative; z-index: 2; }
.hero-pretitle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
}
.hero-pretitle::before { content: ''; width: 50px; height: 2px; background: currentColor; }

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 2.5rem; color: var(--secondary); }
.hero h1 span { color: var(--primary); }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 4rem; max-width: 600px; }

.btn-cta {
    background: var(--secondary);
    color: #fff;
    padding: 1.5rem 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    transition: 0.4s;
    border: none;
    letter-spacing: 0.05em;
}
.btn-cta:hover { background: var(--primary); transform: translateY(-5px); }

/* Competencies Section */
.competencies { padding: 10rem 0; background: var(--bg); }
.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.comp-card {
    padding: 4rem;
    background: #fff;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.comp-card:hover { border-color: var(--primary); box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.comp-icon { 
    width: 60px; height: 60px; 
    background: var(--primary); 
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 900;
}
.comp-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comp-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Quality Section */
.quality {
    padding: 10rem 0;
    background: var(--secondary);
    color: #fff;
}
.quality-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}
.quality h2 { color: #fff; font-size: 3rem; margin-bottom: 2.5rem; }
.quality-list li {
    margin-bottom: 2rem;
    padding-left: 3.5rem;
    position: relative;
}
.quality-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 2.5rem; height: 2.5rem;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
}

/* Post Grid */
.section-header {
    margin: 10rem 0 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 4px solid var(--secondary);
    padding-bottom: 2rem;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    position: relative;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.post-card:hover .card-img { transform: scale(1.1); }

.card-body { padding: 3rem 0; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 0.7rem; font-weight: 900; color: var(--primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.card-title { font-size: 1.6rem; margin-bottom: 1.5rem; line-height: 1.3; }
.card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; flex-grow: 1; }

.btn-read {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    align-self: flex-start;
}

/* Single Page & Post Styles */
.single-post-header { padding: 8rem 0; background: var(--secondary); color: #fff; text-align: left; }
.single-post-header h1 { font-size: 3.5rem; color: #fff; max-width: 1000px; }
.breadcrumbs { margin-bottom: 2rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.1em; }
.breadcrumbs .sep { margin: 0 0.8rem; color: var(--primary); }

.single-post-layout { max-width: 900px; margin: 6rem auto 10rem; }
.post-content-body { font-size: 1.2rem; line-height: 1.8; color: var(--text); }
.post-content-body h2 { font-size: 2.2rem; margin: 4rem 0 2rem; color: var(--secondary); }
.post-content-body p { margin-bottom: 2rem; }

.post-content-body li { 
    list-style: none;
    margin-bottom: 1.2rem; 
    padding: 1.5rem 2.5rem 1.5rem 4rem;
    background: #f9f9f9;
    position: relative;
    border-right: 4px solid var(--primary);
}
.post-content-body li::before {
    content: '';
    position: absolute;
    top: 50%; left: 1.5rem;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Pagination */
.pagination-container { margin: 6rem 0; display: flex; justify-content: center; }
.pagination-list { display: flex; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 800;
    font-size: 0.9rem;
}
.pagination-item.is-active span { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* Footer */
.site-footer {
    padding: 8rem 0 4rem;
    background: #fff;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 { font-size: 0.9rem; color: var(--secondary); text-transform: uppercase; margin-bottom: 3rem; letter-spacing: 0.1em; font-weight: 900; }
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a { color: var(--text-muted); font-weight: 700; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact-item { margin-bottom: 3rem; }
.footer-contact-item label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 800; }
.footer-contact-item span { font-size: 1.2rem; font-weight: 900; color: var(--secondary); }

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

/* Mobile */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%; height: 100vh;
        background: #fff; padding: 4rem 0; z-index: 999;
    }
    .main-nav.is-active ul { flex-direction: column; align-items: center; gap: 2.5rem; }
    .menu-toggle { display: block; }
    .hero-inner { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-image-wrap { order: -1; max-width: 500px; margin: 0 auto; }
    .hero-pretitle { justify-content: center; }
    .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quality-inner { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 768px) {
    .comp-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
    .single-post-header h1 { font-size: 2.4rem; }
}
