/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://minueleketer.ee
 Description:  Дочерняя тема для GeneratePress
 Author:       Constantine
 Author URI:   https://minueleketer.ee
 Template:     generatepress
 Version:      1.0.0
*/

/* Сюда мы будем добавлять все наши стили */

/* ==========================================================================
   Переменные и общие стили
   ========================================================================== */

.site-header .header-image {
    max-width: 300px;
}

:root {
    --color-primary: #005A9C; /* Глубокий синий */
    --color-secondary: #FDB813; /* Яркий желтый акцент */
    --color-dark: #1a202c; /* Очень темный, почти черный для текста */
    --color-body-text: #4a5568;
    --color-light-bg: #f7fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-heading: 'Montserrat', sans-serif; /* Нужен плагин для добавления шрифтов или @import */
    --font-body: 'Inter', sans-serif;
    --border-radius: 8px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Общая настройка страницы */
body.page-template-ideaalne-avaleht .site-content { width: 100%; padding: 0; }
body.page-template-ideaalne-avaleht .page-header { display: none; }
body { font-family: var(--font-body); color: var(--color-body-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-dark); font-weight: 700; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
.grid-container { max-width: 1140px; }

/* ============================ 1. HERO SECTION ============================= */
.hero-section-v2 { background-color: var(--color-light-bg); padding: 6rem 0; }
.hero-subheading { color: var(--color-primary); font-weight: 600; display: block; margin-bottom: 1rem; }
.hero-title-v2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-description { font-size: 1.1rem; max-width: 600px; margin-bottom: 2.5rem; }
.hero-buttons .button { padding: 1rem 2.5rem; font-weight: 600; border-radius: var(--border-radius); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.hero-button-primary { background-color: var(--color-primary); color: var(--color-white); }
.hero-button-primary:hover { background-color: #004a80; }
.hero-button-secondary { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.hero-button-secondary:hover { background-color: var(--color-primary); color: var(--color-white); }

/* ============================ 2. TRUST BAR ============================= */
.trust-bar-section { background-color: #eef4f9; padding: 1.5rem 0; }
.trust-bar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; text-align: center; }
.trust-item { font-size: 1rem; color: var(--color-dark); font-weight: 500; }

/* ============================ 3. SERVICE CATEGORIES ============================= */
.service-categories-section { padding: 5rem 0; background: var(--color-white); }
.service-categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.category-card { display: block; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 2rem; text-decoration: none; transition: all 0.3s ease; box-shadow: var(--shadow-md); }
.category-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.category-card h3 { margin-top: 0; font-size: 1.5rem; }
.category-card p { color: var(--color-body-text); }
.category-card-link { color: var(--color-primary); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 1rem; }
.category-card-link::after { content: ' →'; }

/* ============================ 4. HOW IT WORKS ============================= */
.how-it-works-section { background-color: var(--color-light-bg); padding: 5rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card { text-align: center; }
.step-number { width: 50px; height: 50px; background-color: var(--color-secondary); color: var(--color-dark); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.3rem; }

/* ============================ 7. TESTIMONIALS ============================= */
.testimonials-section-v2 { padding: 5rem 0; background: var(--color-white); }
.testimonials-grid-v2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card-v2 { background-color: var(--color-light-bg); padding: 2rem; border-radius: var(--border-radius); border-left: 5px solid var(--color-primary); }
.testimonial-content { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-content::before { content: '“'; font-size: 3rem; color: var(--color-primary); opacity: 0.5; float: left; margin-right: 0.5rem; line-height: 1; }
.author-name { font-weight: 700; color: var(--color-dark); }
.author-service { font-size: 0.9rem; color: var(--color-body-text); }

/* ============================ 8. FAQ ============================= */
.faq-section { background-color: var(--color-light-bg); padding: 5rem 0; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 0; font-size: 1.2rem; font-weight: 600; color: var(--color-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 2rem; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding-bottom: 1.5rem; margin: 0; }

/* ============================ 10. FINAL CTA ============================= */
.final-cta-section { background-color: var(--color-dark); color: var(--color-white); padding: 5rem 0; }
.cta-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-wrapper h3 { color: var(--color-white); font-size: 2rem; }
.cta-wrapper p { color: #a0aec0; }
/* Стили для формы (пример для Contact Form 7) */
.cta-form-wrapper .wpcf7-form p { margin-bottom: 1rem; }
.cta-form-wrapper .wpcf7-form-control { width: 100%; background-color: #2d3748; border: 1px solid #4a5568; color: var(--color-white); padding: 0.8rem 1rem; border-radius: var(--border-radius); }
.cta-form-wrapper .wpcf7-submit { width: 100%; background-color: var(--color-secondary); color: var(--color-dark); border: none; padding: 1rem; font-weight: 700; text-transform: uppercase; cursor: pointer; }

/* ============================ Responsive ============================= */
@media(max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title-v2 { font-size: 2.5rem; }
    .trust-bar-grid, .cta-wrapper { grid-template-columns: 1fr; text-align: center; }
    .cta-text-content { margin-bottom: 2rem; }
}