/*
Theme Name: GeneratePress Child - Remonttivinkit
Template: generatepress
Version: 1.0
*/

/* Construction Color Scheme */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #27ae60;
    --text-color: #333333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-navigation .main-nav ul li a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.entry-title {
    color: var(--primary-color);
    font-size: 2.2em;
    font-weight: 700;
}

h2 {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.button, .wp-block-button__link {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.widget {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
}

.site-footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 40px 0;
}

.ad-header {
    text-align: center;
    padding: 15px 0;
    background: var(--light-bg);
    margin-bottom: 20px;
}

.ad-sidebar-top {
    margin-bottom: 20px;
    text-align: center;
}

.ad-in-content {
    margin: 30px 0;
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8em;
    }
}

/* Fix font loading for CLS */
@font-face {
    font-family: 'Open Sans';
    font-display: swap;
}

/* Prevent layout shifts */
img {
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Reserve space for images */
.entry-content img {
    aspect-ratio: attr(width) / attr(height);
}

/* Fix sidebar CLS */
.widget-area {
    min-height: 300px;
}

/* Fix Cumulative Layout Shift (CLS) */
@font-face {
    font-family: 'Open Sans';
    font-display: swap;
}

/* Prevent layout shifts */
img, video {
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Reserve space for sidebar */
.widget-area {
    min-height: 300px;
}

/* Fix body CLS */
body.home {
    min-height: 100vh;
}
