/*
Theme Name: Astra Child - BonSeeds
Template: astra
Author: BonSeeds Team
Description: Professional Agricultural Theme - Silver Meadow Design System
Version: 8.0
*/

/* ========================================
   КРИТИЧЕСКИ ВАЖНО: ПЕРЕОПРЕДЕЛЯЕМ ASTRA
   ======================================== */
:root {
    /* Переопределяем ВСЕ цвета Astra на Silver Meadow */
    --ast-global-color-0: #84CC16 !important;
    --ast-global-color-1: #65A30D !important;
    --ast-global-color-2: #18181B !important;
    --ast-global-color-3: #52525B !important;
    --ast-global-color-4: #FFFFFF !important;
    --ast-global-color-5: #FAFAFA !important;
    --ast-global-color-6: #F4F4F5 !important;
    --ast-global-color-7: #E4E4E7 !important;
    --ast-global-color-8: #18181B !important;
    
    /* Другие переменные Astra */
    --ast-border-color: #E4E4E7 !important;
    --ast-primary-header-bar: #FFFFFF !important;
}

/* ========================================
   ИСПРАВЛЯЕМ ВСЕ СИНИЕ ЭЛЕМЕНТЫ
   ======================================== */

/* Ссылки */
a {
    color: #84CC16 !important;
}

a:hover,
a:focus {
    color: #65A30D !important;
}

/* Кнопки - убираем синий */
.wp-block-button__link,
.ast-button,
.button,
button,
input[type="submit"],
input[type="button"],
.elementor-button,
.btn {
    background-color: #84CC16 !important;
    border-color: #84CC16 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    background-color: #65A30D !important;
    border-color: #65A30D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(132, 204, 22, 0.2) !important;
}

/* Формы - убираем синий фокус */
input:focus,
textarea:focus,
select:focus {
    border-color: #84CC16 !important;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1) !important;
    outline: none !important;
}

/* Меню - убираем синий */
.main-navigation a {
    color: #18181B !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #84CC16 !important;
}

/* Подменю */
.ast-builder-menu-1 .sub-menu {
    border-top-color: #84CC16 !important;
}

/* Мобильное меню */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
    color: #84CC16 !important;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: #84CC16 !important;
}

/* ========================================
   MODERN LAYOUT СТРАНИЦЫ
   ======================================== */

/* Page Header - как на главной */
.page-header {
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
    padding: 120px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.page-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    color: white !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
}

.breadcrumb a {
    color: white !important;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* Page Content */
.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.content-inner {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 60px;
}

/* ========================================
   КОМПОНЕНТЫ СТРАНИЦ
   ======================================== */

/* Hero Sections */
.about-hero,
.contact-hero {
    background: linear-gradient(135deg, #F9FAFB 0%, #F4F4F5 100%);
    padding: 60px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #18181B;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #52525B;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Cards */
.info-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.info-card,
.contact-card {
    background: white;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #84CC16;
}

.info-icon,
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E4E4E7;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #84CC16;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background: white;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    padding: 30px;
    width: calc(50% - 40px);
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    .content-inner {
        padding: 40px 20px;
    }
    
    .info-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-year {
        position: static;
        transform: none;
        margin-bottom: 20px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 40px;
    }
}

/* ========================================
   УБИРАЕМ ASTRA МУСОР
   ======================================== */

/* Убираем Astra границы */
.ast-separate-container .ast-article-inner {
    box-shadow: none !important;
    border: none !important;
}

/* Убираем Astra отступы */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    padding: 0 !important;
}

/* Убираем Astra копирайт */
.ast-footer-copyright a[href*="wpastra.com"] {
    display: none !important;
}
