/* Project: CaliDoor Craft
   Version: 2.2 (Final Production)
   Focus: Readability, Modern Layout, Ad-Network Compliance, Fixed Cookie Banner Background
*/

:root {
    --primary-color: #1a1a1a;
    --accent-color: #c5a059;
    --text-dark: #333333;
    --text-muted: #555555;
    --bg-light: #ffffff;
    --bg-muted: #f9f9f9;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

/* 1. ГЛОБАЛЬНЫЕ СБРОСЫ И ССЫЛКИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Убираем синий цвет ссылок навсегда */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* 2. ШАПКА И НАВИГАЦИЯ */
.top-utility-bar {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-utility-bar .container {
    display: flex;
    justify-content: space-between;
}

.navbar {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-color) !important;
}

.logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a.active, .nav-links a:hover { color: var(--accent-color); }

/* 3. ГЛАВНЫЙ БАННЕР (HERO) С ФИЛЬТРОМ ЧИТАЕМОСТИ */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
}

/* Черный слой поверх картинки */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff !important;
}

.hero-content p {
    font-size: 1.4rem;
    color: #eeeeee !important;
    margin-bottom: 35px;
}

/* 4. ОСНОВНОЙ КОНТЕНТ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

section { padding: 90px 0; }

.content-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    margin: 50px 0 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Стили для изображений внутри текста */
.mid-image-box {
    margin: 50px 0;
    text-align: center;
}

.mid-image-box img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.caption {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: #888;
}

/* Сетка экспертизы */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.exp-item {
    background: var(--bg-muted);
    padding: 40px;
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.exp-item:hover { transform: translateY(-5px); }

.exp-item h4 { margin-bottom: 15px; font-size: 1.3rem; }

/* 5. КНОПКИ */
.btn-main {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-outline {
    display: inline-block;
    padding: 18px 40px;
    border: 2px solid #fff;
    color: #fff !important;
    margin-left: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-main:hover { background: #ac8a46; }
.btn-outline:hover { background: #fff; color: #000 !important; }

/* 6. ФУТЕР - БЕЗ СИНИХ ССЫЛОК */
.footer-corporate {
    background: var(--primary-color);
    color: #aaa;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-corporate h4, .footer-corporate h5 { color: #fff; margin-bottom: 25px; }

.footer-nav a {
    color: #aaa !important; /* Принудительно серый */
    display: block;
    margin-bottom: 12px;
}

.footer-nav a:hover { color: var(--accent-color) !important; }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* 7. АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* 8. КУКИ БАННЕР (Cookie Banner) - ИСПРАВЛЕН ФОН */
.cookie-banner-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Добавляем плотный непрозрачный фон (почти черный) */
    background-color: rgba(26, 26, 26, 0.98); 
    color: #ffffff;
    padding: 20px 0;
    z-index: 9999;
    /* Скрыт по умолчанию, JS покажет */
    display: none; 
    border-top: 2px solid var(--accent-color);
    /* Добавляем тень, чтобы отделить от белого фона */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.btn-cookie {
    background-color: var(--accent-color);
    border: none;
    padding: 10px 25px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-cookie:hover {
    background-color: #ffffff;
    color: #000000;
}
/* Стили для сообщений формы */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Убедимся, что кнопка внутри формы выглядит как btn-main */
#contact-form button.btn-main {
    width: auto;
    min-width: 200px;
}

/* Стили для формы на странице Contact Us */
.contact-form-container {
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.pro-form input, 
.pro-form select, 
.pro-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px; /* Отступ между полями */
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    display: block;
}

.pro-form input:focus, 
.pro-form select:focus, 
.pro-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--accent-color);
}

.form-disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}