/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Author: PANORAMA ECO TECH
Template: blocksy
Version: 1.0.0
*/

/* Імпорт стилів батьківської теми */
@import url("../blocksy/style.css");






/* =========================================
   СТОРІНКА 404 (DARK PREMIUM STYLE)
   ========================================= */

/* 1. КОНТЕЙНЕР І ФОН */
.error-404-container {
    /* Темний градієнт фону */
    background: radial-gradient(circle at center, #1a2226 0%, #000000 100%);
    min-height: 80vh; /* Висота майже на весь екран */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центруємо вертикально */
    align-items: center;     /* Центруємо горизонтально */
    padding: 120px 20px 80px 20px; /* Верхній відступ 120px рятує від накладання хедера */
    text-align: center;
}

.error-404-content {
    max-width: 700px;
    width: 100%;
}

/* 2. ТИПОГРАФІЯ */

/* Велика цифра 404 */
.error-code {
    font-size: 150px;
    line-height: 1;
    font-weight: 900;
    color: #e6ff2b; /* Лайм */
    /* Ефект прозорості з обводкою (опціонально) */
    -webkit-text-stroke: 2px #e6ff2b;
    color: transparent; 
    opacity: 0.8;
    margin-bottom: 0px;
}

/* Заголовок H1 */
.error-404-container h1 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Текст опису */
.error-text {
    color: #cccccc;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. ПОШУК (Адаптація під темний фон) */
.error-search {
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
/* Стилізація поля пошуку Blocksy всередині 404 */
.error-search .search-form {
    position: relative;
}
.error-search input[type="search"] {
    background: rgba(255, 255, 255, 0.1) !important; /* Напівпрозорий фон */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    width: 100%;
}
.error-search input[type="search"]:focus {
    border-color: #e6ff2b !important;
    background: rgba(0, 0, 0, 0.5) !important;
}
/* 4. КНОПКИ */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px; /* Відступ між кнопками */
    flex-wrap: wrap;
}


/* =========================================
   МОБІЛЬНА АДАПТАЦІЯ
   ========================================= */
@media (max-width: 768px) {
    .error-code {
        font-size: 100px; /* Менша цифра */
    }
    .error-404-container h1 {
        font-size: 24px;
    }
    .error-actions {
        flex-direction: column; /* Кнопки одна під одною */
        width: 100%;
    }
    .btn-lime, .btn-outline {
        width: 100%; /* На всю ширину */
        text-align: center;
        box-sizing: border-box;
    }
}






/* Вимикаємо хедер та футер тільки для сторінки з цим URL */
.page-id-2947 #custom-header, 
.page-id-2947 .custom-smart-header, 
.page-id-2947 header, 
.page-id-2947 footer, 
.page-id-2947 .ct-footer {
    display: none !important;
}

/* Прибираємо верхній відступ, якщо він був доданий для компенсації фіксованого хедера */
.page-id-2947 body {
    padding-top: 0 !important;
}


/* Спочатку ховаємо блок з формою */
#form-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Для плавної появи */
}

/* Коли додамо клас .visible, форма з'явиться */
#form-section.visible {
    display: block; /* Або flex, залежно від верстки */
    opacity: 1;
}

/* Додатково: курсор для кнопки, щоб було зрозуміло, що це клікабельно */
#start-btn {
    cursor: pointer;
}





/* ========================================================
   UTILITY: CONTENT CORE (ОБМЕЖУВАЧ ШИРИНИ)
   Використовувати всередині секцій на всю ширину
   ======================================================== */
.content-core {
    /* 1. Геометрія */
    width: 100%;
    max-width: 800px; /* Ваша ідеальна ширина для читання */
    
    /* 2. Центрування */
    margin-left: auto;
    margin-right: auto;
    
    /* 3. Безпечні відступи для мобільного */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    
    /* 4. Технічне (щоб не ламати фон батька) */
    background-color: transparent;
}

/* Широкий контейнер (для Bento Grid) — 1200px */
.content-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

	


/* ========================================================
   CUSTOM FAQ (NATIVE STYLE - INHERIT)
   Бере шрифти з налаштувань теми
   ======================================================== */

/* 1. Контейнер одного питання */
.wp-block-details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Тонка лінія розділення */
    margin: 0 !important;   /* Прибираємо зовнішні відступи */
    padding: 20px 0;        /* Внутрішній простір */
    transition: all 0.3s ease;
}

/* 2. Заголовок (Summary) -> Виглядає як H3 */
.wp-block-details summary {
    cursor: pointer;
    list-style: none; 
    position: relative;
    padding-right: 40px; /* Місце для плюсика */
    
    /* --- ТИПОГРАФІЯ (НАСЛІДУВАННЯ) --- */
    font-family: inherit !important; /* Бере шрифт із Теми */
    font-weight: 700 !important;     /* Жирність як у заголовків */
    font-size: 1.25em !important;    /* ~H3 (або поставте inherit, якщо налаштували в редакторі) */
    line-height: 1.4 !important;
    color: inherit !important;       /* Бере колір тексту групи (напр. білий) */
    
    transition: color 0.3s ease;
}

/* Ховаємо стандартний трикутник браузера */
.wp-block-details summary::-webkit-details-marker { display: none; }

/* 3. Малюємо "ПЛЮС" (+) */
.wp-block-details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0; /* Вирівнювання по верхньому краю рядка */
    
    font-weight: 300;
    font-size: 1.5em; /* Розмір плюса залежить від розміру шрифту */
    color: #e6ff2b;   /* Ваш акцентний лайм */
    line-height: 1;
    transition: transform 0.3s ease;
}

/* 4. Стан "ВІДКРИТО" */
.wp-block-details[open] summary {
    color: #e6ff2b !important; /* Заголовок стає лаймовим */
    margin-bottom: 15px;       /* Відступ до тексту відповіді */
}

/* Плюс перетворюється на Хрестик */
.wp-block-details[open] summary::after {
    transform: rotate(45deg);
}

/* 5. Тіло відповіді (Параграф) */
.wp-block-details p {
    font-family: inherit !important;
    font-size: 1rem !important;      /* Стандартний розмір тексту теми */
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important; /* Трохи прозорий для ієрархії */
    margin-top: 0;
    margin-bottom: 0;
    
    /* Плавна поява */
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}





/* ========================================================
   STATIC INDUSTRIAL GLASS (NO HOVER EFFECTS)
   ======================================================== */

/* 1. Налаштування Сітки */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2; 
}

/* 2. Картка "Скло" (СТАТИЧНА) */
.bento-card {
    /* Ефект скла */
    background: rgba(20, 20, 20, 0.6); 
    backdrop-filter: blur(12px);      
    -webkit-backdrop-filter: blur(12px); 
    
    /* Тонка, ледь помітна рамка */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 24px;
    padding: 40px;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Важливо: ніяких transition і transform, щоб картка не рухалась */
    position: relative;
    overflow: hidden;
		background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Розмір клітинки */
}

/* 3. Декоративна лінія знизу (Завжди видима, статична) */
.bento-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    
    /* Градієнт, що зникає по краях — виглядає дуже дорого */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.7;
}

/* --- FIX: РОЗТЯГУВАННЯ КАРТОК ПО ВИСОТІ --- */

/* 1. Налаштовуємо батьківський блок колонок */
.columns-stretch .wp-block-column {
    display: flex !important;       /* Вмикаємо режим гумового контейнера */
    flex-direction: column !important; /* Елементи один під одним */
}

/* 2. Змушуємо вашу картку (або будь-яку групу всередині) рости */
.columns-stretch .wp-block-column > .wp-block-group, /* Стандартна група */
.columns-stretch .bento-card {                         /* Ваша картка */
    flex-grow: 1 !important;    /* Займай весь вільний простір! */
    height: auto !important;    /* 100% тут не працює, треба auto + flex-grow */
    width: 100%;                /* Щоб не звужувалась */
}

/* 5. Модифікатори (Тільки статичні кольори) */

/* Проблема (Червоний відтінок) */
.bento-card.is-problem {
    background: rgba(40, 10, 10, 0.5); /* Трохи темніший червоний */
    border-color: rgba(255, 50, 50, 0.15);
}
/* Лінія знизу для проблеми - червона */
.bento-card.is-problem::after {
    background: linear-gradient(90deg, transparent, #ff3b30, transparent);
}

/* Рішення (Лаймовий відтінок) */
.bento-card.is-solution {
    background: rgba(20, 30, 10, 0.5); /* Трохи темніший зелений */
    border-color: rgba(230, 255, 43, 0.15);
}
/* Лінія знизу для рішення - лаймова */
.bento-card.is-solution::after {
    background: linear-gradient(90deg, transparent, #e6ff2b, transparent);
}

/* 6. ВЕЛИКА ЦИФРА (СУПЕРГРАФІЗМ) 
   Додайте клас: bento-big-num до абзацу або заголовку
*/
.bento-big-num {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #e6ff2b;
    opacity: 0.4;
    margin-top: auto; /* Притиснути до низу */
}

/* 7. для мобільних телефонів 
*/
@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобільному */
        gap: 15px; /* Менший відступ */
    }
    .bento-card {
        padding: 20px; /* Менше повітря всередині, щоб влазив текст */
        min-height: auto; /* Висота по контенту */
    }
}


/* ========================================================
   TYPOGRAPHY SYSTEM v2.0 (БЕЗ КОНФЛІКТУ З H1-H6)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Roboto+Mono:wght@500;700&display=swap');

/* ========================================================
   СЕМАНТИЧНІ ЗАГОЛОВКИ (для структури сторінки)
   ======================================================== */

h1 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px 0;
}

h2 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 20px 0;
}

h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 16px 0;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: #e6ff2b;
  margin: 0 0 12px 0;
}

/* ========================================================
   ДЕКОРАТИВНІ КЛАСИ (для Абзаців і Груп)
   ======================================================== */

/* --- ВЕЛИКІ ЦИФРИ (використовуйте <p> з класом!) --- */

.display-hero {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
  margin: 0;
}

.display-xl {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
  margin: 0;
}

.display-lg {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: #e6ff2b;
  display: block;
  margin: 0;
}

.display-md {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #ff6b35;
  display: block;
  margin: 0;
}

/* --- ДЕКОРАТИВНІ ЗАГОЛОВКИ (великі, але не H1-H6) --- */

.text-hero {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
  margin: 0 0 24px 0;
}

.text-display {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  display: block;
  margin: 0 0 20px 0;
}
.text-h4 {
font-family: 'Inter', sans-serif; /* Ваш шрифт заголовків */
    font-size: 1.25rem; /* Розмір як у H4 */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px; /* Відступ до опису */
    display: block;
}
.text-h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 16px 0;
}

/* Клас для тексту опису */
.text-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* --- ОСНОВНИЙ ТЕКСТ --- */

p, .text-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.text-body-lg {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.7;
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
}

/* --- LABELS (ПІДПИСИ ВЕЛИКИМИ ЛІТЕРАМИ) --- */

.label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
  display: block;
  margin-bottom: 8px;
}

.label-lg {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #888;
}


