/*
Theme Name: Intentionally Blank
Theme URI: https://www.nilovelez.com/blank/
Author: Nilo Velez
Author URI: https://www.nilovelez.com/
Description: This theme was intentionally left blank. There are times when all you need is the WordPress dashboard and an blank frontend. You might be using the WordPress REST API as a backend for a mobile App or you might be a minimalism obsessed hipster. This is your theme.
Version: 3.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: featured-images, custom-background, theme-options, translation-ready
Text Domain: intentionally-blank
Requires at least: 4.6
Tested up to: 6.6
Requires PHP: 7.4
*/
/* === СТИЛИ ДЛЯ HEADER === */

/* --- GLOBAL VARIABLES --- */
:root {
    --header-bg: #ffffff;
    --text-primary: #333333;
    --accent: #d89f66; /* Золотистый/Древесный */
    --accent-hover: #c58b52;
    --border: #eeeeee;
    --footer-bg: #2c2c2c;
    --white: #ffffff;
}

body { margin: 0; font-family: 'Open Sans', Arial, sans-serif; background-color: #f9f9f9; color: var(--text-primary); }
.container-content { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- HEADER STYLES --- */
.site-header { background: var(--header-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; z-index: 1000; }
.header-top { border-bottom: 1px solid var(--border); padding: 15px 0; }
.header-row { display: flex; justify-content: space-between; align-items: center; }

/* Logo */
.logo-area { display: flex; align-items: center; gap: 20px; }
.text-logo { font-size: 26px; font-weight: 800; color: #333; text-transform: uppercase; }
.text-logo span { color: var(--accent); }
.slogan { font-size: 13px; color: #777; border-left: 1px solid #ccc; padding-left: 15px; line-height: 1.3; }

/* Header Contacts */
.header-contacts { display: flex; align-items: center; gap: 25px; }
.header-phone { font-size: 18px; font-weight: bold; color: var(--text-primary); transition: 0.3s; }
.header-phone:hover { color: var(--accent); }

/* Buttons */
.cta-button { 
    background: var(--accent); color: white; padding: 10px 25px; border-radius: 5px; 
    font-weight: bold; cursor: pointer; transition: 0.3s; display: inline-block; 
}
.cta-button:hover { background: var(--accent-hover); transform: translateY(-1px); color: white; }

/* Main Nav */
.header-bottom { background: #fff; border-bottom: 1px solid var(--border); }
.main-nav ul { display: flex; justify-content: center; gap: 0; }
.main-nav a { 
    display: block; padding: 15px 20px; font-weight: 600; font-size: 14px; text-transform: uppercase; 
    color: #333; transition: 0.3s; border-bottom: 2px solid transparent; 
}
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Mobile Header */
.mobile-header, .mobile-phone-bar { display: none; }
.mobile-logo { font-size: 22px; }

/* Mobile Menu Panel */
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; }
.mobile-menu-panel { 
    position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100%; 
    background: #333; color: white; z-index: 9999; transition: left 0.3s ease; 
    display: flex; flex-direction: column; 
}
.mobile-menu-panel.is-open { left: 0; }
.mobile-menu-header { padding: 20px; background: #222; display: flex; justify-content: space-between; align-items: center; }
.close-menu-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-menu-nav { overflow-y: auto; padding: 10px 0; }
.mobile-menu-nav a { display: block; padding: 12px 20px; color: #eee; border-bottom: 1px solid #444; }

/* --- FOOTER STYLES --- */
.site-footer { background-color: var(--footer-bg); color: #ecf0f1; padding: 60px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-heading { font-size: 18px; margin-bottom: 20px; color: #ffffff; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-description { font-size: 14px; line-height: 1.6; color: #bdc3c7; margin-top: 15px; }
.footer-links li, .footer-contacts li { margin-bottom: 12px; }
.footer-links a, .footer-contacts a { color: #ccc; transition: 0.3s; font-size: 14px; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contacts li { display: flex; gap: 10px; color: #ccc; font-size: 14px; }
.footer-contacts i { color: var(--accent); margin-top: 3px; }
.social-links-footer { margin-top: 20px; display: flex; gap: 15px; }
.social-links-footer a { color: #fff; font-size: 20px; background: #444; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; }
.social-links-footer a:hover { background: var(--accent); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #888; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .header-top, .header-bottom { display: none; }
    .mobile-header { display: block; background: #fff; padding: 10px 0; border-bottom: 1px solid #eee; }
    .menu-toggle { background: none; border: none; font-size: 24px; color: #333; }
    .mobile-phone-bar { display: block; background: var(--accent); text-align: center; padding: 10px 0; }
    .mobile-phone-bar a { color: white; font-weight: bold; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-heading { border-bottom: none; }
    .footer-contacts li { justify-content: center; }
    .social-links-footer { justify-content: center; }
}

/* --- MODAL UTILS --- */
.body-no-scroll { overflow: hidden; }

/* Исправление миниатюр в секции Северное Сияние */
#project-sauna-pano .small-thumbs {
    display: grid !important; /* Принудительно включаем сетку */
    grid-template-columns: repeat(4, 1fr) !important; /* 4 равные колонки */
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

#project-sauna-pano .small-thumb {
    width: 100% !important; /* Растягиваем на всю ширину ячейки */
    height: 80px !important; /* Фиксируем высоту */
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    display: block;
}

#project-sauna-pano .small-thumb:hover {
    opacity: 1;
    border: 1px solid #fff;
}

/* === ИСПРАВЛЕНИЕ МОДАЛЬНОГО ОКНА === */

/* Фон затемнения */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999 !important; /* Критически важно: самый высокий приоритет */
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Позволяет скроллить саму модалку, если она высокая */
    padding: 20px;
}

/* Контейнер самого окна */
.modal-container {
    position: relative;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    margin: auto;
    z-index: 1000000; /* Еще выше фона */
    animation: fadeInModal 0.3s ease-out;
}

/* Кнопка закрытия (крестик) */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
    z-index: 10;
}
.modal-close-btn:hover {
    color: #d89f66;
}

/* Блокировка скролла страницы */
.body-no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Анимация появления */
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для формы внутри */
.form-group { margin-bottom: 15px; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
.form-submit {
    width: 100%;
    background: #d89f66;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.form-submit:hover { background: #c58b52; }

/* === ИСПРАВЛЕНИЕ ЛОГОТИПА В ФУТЕРЕ === */
.site-footer .footer-logo.text-logo {
    color: #ffffff !important; /* Белый цвет текста */
    display: inline-block;
    opacity: 1;
}

.site-footer .footer-logo.text-logo span {
    color: #d89f66 !important; /* Оранжевый акцент для .RU */
}

/* Дополнительно: поправим цвет ссылок в футере, чтобы было контрастно */
.site-footer a {
    color: #cccccc;
    transition: 0.3s;
}
.site-footer a:hover {
    color: #d89f66;
}