/*!
Theme Name: Blocksy
Theme URI: https://creativethemes.com/blocksy/
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Version: 2.1.42
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2019 CreativeThemes.
Requires at least: 6.5
Requires PHP: 7.0
Tested up to: 7.0
Text Domain: blocksy
Blocksy Minimum Companion Version: 2.1.36-dev1
Tags: accessibility-ready, blog, block-patterns, e-commerce, wide-blocks, block-styles, grid-layout, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments
*/


/* =========================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ (TESLA/APPLE STYLE)
   ========================================= */
:root {
    --bg-main: #0A0C13;          /* Глубокий темный фон */
    --bg-secondary: #171A21;     /* Графитовый оттенок карт */
    --accent: #2563EB;           /* Яркий Electric Blue */
    --accent-hover: #1d4ed8;
    --text-main: #F5F7FA !IMPORTANT;        /* Белая контрастная типографика */
    --text-muted: #B8C0CC;       /* Серый приглушенный оттенок */
    --border: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(23, 26, 33, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Защита: чтобы шапка не перекрывала заголовки при клике на меню */
}
h2, h3, h4 {
	color: white;
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Poppins', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.w-100 { width: 100%; }
.text-center { text-align: center; }

/* Сетки */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Общие заголовки секций */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 20px;
}
.section-title span {
    color: var(--accent);
}

.section-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =========================================
   2. HEADER И НАВИГАЦИЯ
   ========================================= */
.header {
    height: 80px;
    background: rgba(10, 12, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ФИКС: Расталкиваем логотип, меню и кнопки по краям */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}
.logo span { color: var(--accent); }

.nav-list { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.nav-list a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-list a:hover { color: var(--text-main); }

.header-actions { display: flex; align-items: center; gap: 15px; }

/* Языковой тумблер */
.lang-switcher { display: flex; gap: 2px; background: rgba(255,255,255,0.05); padding: 2px; border-radius: 6px; }
.lang-btn { background: transparent; border: none; color: var(--text-muted); font-weight: 700; font-size: 11px; padding: 4px 8px; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.lang-btn.active { background: var(--accent); color: #fff; }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* =========================================
   3. КНОПКИ (PREMIUM STYLE)
   ========================================= */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,99,235,0.4); }

.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(37,99,235,0.05); }

.btn-phone { background: rgba(255,255,255,0.05); color: #fff; }
.btn-phone:hover { background: rgba(255,255,255,0.1); }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }

/* =========================================
   4. СЕКЦИИ САЙТА
   ========================================= */
/* Hero */
.hero {
    padding: 160px 0 180px;
    background: linear-gradient(180deg, rgba(10,12,19,0.2) 0%, #0A0C13 100%), url('img/tesla-cinematic.jpg') center center no-repeat;
    background-size: cover;
    text-align: center;
}
.hero-title { font-size: 54px; font-weight: 800; max-width: 850px; margin: 0 auto 25px; line-height: 1.15; letter-spacing: -1px; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-weight: 400; }
.hero-actions { display: flex; justify-content: center; gap: 15px; }

/* About */
.about-section { padding: 100px 0; background: var(--bg-main); }
.image-placeholder, .image-placeholder-van { width: 100%; height: 350px; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 700; font-size: 14px; letter-spacing: 1px; position: relative; overflow: hidden; }

/* Why choose us & Glassmorphism */
.why-section { padding: 100px 0; background: var(--bg-secondary); }
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(37,99,235,0.3); }
.card-icon { font-size: 32px; margin-bottom: 20px; }
.glass-card h3 { font-size: 20px; margin-top: 0; margin-bottom: 12px; font-weight: 700; }
.glass-card p { color: var(--text-muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* Services Section */
.services-section { padding: 100px 0; background: var(--bg-main); }
.service-card { background: var(--bg-secondary); border: 1px solid var(--border); padding: 40px 30px; border-radius: 16px; transition: all 0.2s; }
.service-card h3 { font-size: 20px; margin-top: 0; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.6; }
.service-card.highlight-card { border-color: var(--accent); background: linear-gradient(180deg, #171A21 0%, rgba(37,99,235,0.03) 100%); }

/* Mobile Focus */
.mobile-focus-section { padding: 100px 0; background: var(--bg-secondary); align-items: center; }

/* Reviews + Map */
.reviews-section { padding: 100px 0; background: var(--bg-main); }
.reviews-map-wrapper { background: var(--bg-secondary); border-radius: 24px; padding: 40px; border: 1px solid var(--border); }
.rating-header { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 25px; }
.rating-number { font-size: 32px; font-weight: 800; color: #fff; }
.rating-header p { margin: 0; font-size: 14px; color: var(--text-muted); }
.review-item-card { background: var(--bg-main); padding: 25px; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--border); }
.review-author { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.review-stars { font-size: 12px; margin-bottom: 10px; }
.review-text { margin: 0; font-size: 14px; color: var(--text-muted); italic; }
.map-holder { width: 100%; height: 100%; min-height: 350px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }

/* Service Areas */
.areas-section { padding: 80px 0; background: var(--bg-secondary); }
.areas-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.areas-grid span { background: var(--bg-main); border: 1px solid var(--border); padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
select option {
    color: white;
}
/* Contact & Form */
.contact-section { padding: 100px 0; background: var(--bg-main); }
.contact-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 15px; line-height: 1.6; }
.contact-links-box p { font-size: 16px; margin-bottom: 15px; }
.contact-links-box a { color: var(--accent); text-decoration: none; font-weight: 600; }
.premium-form { background: var(--bg-secondary); border: 1px solid var(--border); padding: 40px; border-radius: 20px; display: flex; flex-direction: column; gap: 15px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg-main); min-height:55px; border: 1px solid var(--border); padding: 15px 20px; border-radius: 8px; color: #fff; font-family: inherit; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

/* Footer */
.footer { background: #07080d; color: var(--text-muted); padding: 60px 0 30px; border-top: 1px solid var(--border); font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-moto { max-width: 300px; line-height: 1.6; margin-top: 15px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-nav-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-nav-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; text-align: center; font-size: 12px; }

/* =========================================
   12. МОБИЛЬНЫЙ АДАПТИВ ДЛЯ СМАРТФОНОВ
   ========================================= */
@media (max-width: 768px) {
	.footer-moto { max-width: 300px; line-height: 1.6; margin-top: 15px; margin:auto }
    .grid-2, .grid-3, .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-title { font-size: 30px; }
    
    .burger { display: flex; }
    .main-nav { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: var(--bg-main); padding-top: 40px; transition: 0.3s ease-in-out; }
    .main-nav.active { left: 0; }
    .nav-list { flex-direction: column; align-items: center; gap: 25px; }
    .nav-list a { font-size: 18px; }
    
    .header-actions .btn-primary { display: none; } /* Скрываем одну кнопку в шапке на мелких дисплеях */
    .hero { padding: 120px 0 100px; }
    .hero-title { font-size: 34px; }
    .reviews-map-wrapper { padding: 20px; }
}
/* =========================================
   HERO SECTION (TESLA DIAGNOSTICS)
   ========================================= */
.hero {
    position: relative;
    padding: 180px 0 200px; /* Большие отступы для премиум-вида */
    text-align: center;
    background-color: var(--bg-main); /* Основной темный фон #0A0C13 */
    overflow: hidden; /* Чтобы размытие не выходило за края */
}

.hero-container {
    position: relative;
    z-index: 2; /* Текст поверх фона */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title { 
    font-size: 54px; 
    font-weight: 800; 
    max-width: 850px; 
    margin: 0 auto 25px; 
    line-height: 1.15; 
    letter-spacing: -1px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.9); /* Тень для идеальной читаемости */
    color: var(--text-main);
}

.hero-subtitle { 
    font-size: 18px; 
    color: var(--text-muted); 
    max-width: 600px; 
    margin: 0 auto 40px; 
    font-weight: 400; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}

.hero-actions { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
}

/* =========================================
   ЭЛЛИПТИЧЕСКАЯ МАСКА (ТОЛЬКО ДЛЯ ДЕСКТОПА)
   ========================================= */
@media (min-width: 769px) {
    .hero-bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        /* Убедись, что путь к картинке правильный относительно твоего style.css */
        background-image: url('https://evrepairmiami.com/wp-content/uploads/2026/05/f07e5610-1804-457b-83a0-2bb0646206d0.webp');
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 0;
        
        /* Та самая эллиптическая маска */
        -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 25%, transparent 75%);
        mask-image: radial-gradient(ellipse at 50% 40%, black 25%, transparent 75%);
        
        /* Легкое затемнение картинки, чтобы белый текст читался идеально */
        filter: brightness(0.6);
    }
}

/* =========================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (Смартфоны)
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 0px;
        /* На мобайле эллипс не нужен, делаем просто линейный градиент снизу вверх */
        background: linear-gradient(180deg, rgba(10,12,19,0.7) 0%, #0A0C13 100%), url('https://evrepairmiami.com/wp-content/uploads/2026/05/f07e5610-1804-457b-83a0-2bb0646206d0.webp') center top no-repeat;
        background-size: cover;
    }
    .hero-bg-overlay {
        display: none; /* Выключаем маску на мобилках */
    }
    .hero-title { 
        font-size: 34px; 
    }
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        max-width: 300px; 
        margin: 0 auto; 
    }
    /* Убираем отступ у второй кнопки на мобильном */
    .hero-actions .btn-outline {
        margin-left: 0;
    }
    /* Уменьшаем высоту картинки механика (About Us) на мобильных */
    .about-image, 
    .about-image-box img {
        min-height: 220px !important; /* Убираем десктопные 400px */
        height: 220px !important;     /* Делаем её компактной по высоте */
        object-fit: cover;            /* Картинка будет красиво кадрироваться, а не сплющиваться */
        border-radius: 16px;          /* Сохраняем красивые углы */
    }
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover; /* Картинка будет идеально заполнять блок без искажений */
    border-radius: 16px; /* Закругленные углы, как у Apple */
    border: 1px solid var(--border); /* Легкая рамка */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Глубокая тень */
}
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 0; /* Немного увеличим верхний отступ, чтобы текст не перекрывал машину */
        
        background: linear-gradient(180deg, rgba(10, 12, 19, 0.6) 0%, #0A0C13 100%), 
                    url('https://evrepairmiami.com/wp-content/uploads/2026/05/f07e5610-1804-457b-83a0-2bb0646206d0.webp') center top no-repeat;
        
        /* Фикс ширины: картинка сожмется ровно до краев экрана телефона, а высота уменьшится пропорционально */
        background-size: 100% auto; 
        background-color: var(--bg-main); /* Черный фон заполнит оставшееся снизу место */
    }
    
    .hero-title { 
        font-size: 32px; 
    }
    
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        max-width: 300px; 
        margin: 0 auto; 
    }
    
    .hero-actions .btn-outline {
        margin-left: 0;
    }
    /* Центрируем текст в текстовых блоках на мобильных устройствах */
    .about-content,
    .mobile-focus-content,
    .contact-info-side {
        text-align: center;
    }
    .footer-top-grid {
        text-align: center;
    }

    /* Чтобы ссылки в футере тоже выстроились ровно по центру */
    .footer-nav-col ul {
        align-items: center;
    }
    
}
/* =========================================
   ПРЕМИУМ-ИЗОБРАЖЕНИЯ (О НАС И ВЫЕЗД)
   ========================================= */
   
/* 1. Выравниваем текст и картинку ровно по центру друг напротив друга */
.about-section .grid-2, 
.mobile-focus-section .grid-2 {
    align-items: center; 
}

/* 2. Контейнеры для картинок */
.about-image-box, 
.image-container-van {
    position: relative;
    width: 100%;
    border-radius: 20px; /* Плавные углы */
    overflow: hidden; 
    border: 1px solid rgba(37, 99, 235, 0.15); /* Еле заметная синяя рамка */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    
    /* Делаем красивую пропорцию, чтобы картинка не была слишком высокой */
    aspect-ratio: 4 / 3; 
}

/* 3. Сами фотографии */
.about-image, 
.van-image,
.about-image-box img,
.image-container-van img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. ВНУТРЕННЯЯ ГОЛУБАЯ ДЫМКА (Свечение по краям) */
.about-image-box::after, 
.image-container-van::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none; /* Пропускает клики сквозь себя */
    
    /* Многослойная внутренняя тень: черная основа + голубое свечение */
    box-shadow: 
        inset 0 0 60px rgba(10, 12, 19, 0.95),  /* Темные края идеально сливаются с фоном сайта */
        inset 0 0 30px rgba(37, 99, 235, 0.4);  /* Голубая неоновая дымка (Electric Blue) */
        
    /* Легкий тонирующий фильтр поверх всей картинки */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(10,12,19,0) 100%);
}

/* =========================================
   ФИКС ДЛЯ МОБИЛЬНЫХ ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 768px) {
    .about-image-box, 
    .image-container-van {
        /* На мобайле делаем картинки широкими, но короткими по высоте */
        aspect-ratio: 16 / 9; 
        min-height: auto !important;
        height: auto !important;
    }
}
/* Стили для нового логотипа-картинки */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.85; /* Легкий премиальный эффект при наведении */
}

.logo-img {
    height: 70px;     /* Оптимальная высота, чтобы знак смотрелся крупно и аккуратно */
    width: auto;      /* Ширина подстроится автоматически, сохраняя пропорции */
    display: block;
}

/* Центрирование логотипа в футере на мобилках (дополнение к прошлому шагу) */
@media (max-width: 768px) {
    .logo-link, .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    /* Увеличиваем отступ сверху для кнопки WhatsApp на мобайле */
    .btn-whatsapp {
        margin-top: 25px; 
        display: inline-block; /* Гарантирует, что верхний отступ отработает правильно */
    }
    .logo-img {
    height: 55px;     /* Оптимальная высота, чтобы знак смотрелся крупно и аккуратно */
    width: auto;      /* Ширина подстроится автоматически, сохраняя пропорции */
    display: block;
}
}