/*
Theme Name: PRO Pereklad
Theme URI: https://propereklad.ua
Author: PRO Pereklad
Description: Професійна тема WordPress для бюро перекладів з повною інтеграцією Bootstrap 5.3.2
Version: 1.5.0 (Final Full)
*/

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #e8f1ff;
    --accent-yellow: #ffd54f;
    --accent-green: #4caf50;
    --text-dark: #1e2a3a;
    --text-light: #4a5568;
    --border-color: #dee2e6;
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-blue: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    --gradient-green: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* === Global & Reset === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    font-size: 18px; /* Базовый размер для ПК */
    line-height: 1.7;
}

/* Переопределение цветов Bootstrap под бренд */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-success { color: var(--accent-green) !important; }

a { text-decoration: none; }

/* === Header & Top Bar === */
.top-info-bar {
    background: var(--gradient-main);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-info-bar a {
    color: #fff;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.top-info-bar a:hover, .top-info-bar i { color: var(--accent-yellow); }
.top-info-bar i { margin-right: 5px; font-size: 1rem; }

.top-info-bar .contact-item {
    margin: 5px 8px 5px 0;
    padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}
.top-info-bar .contact-item:hover { background: rgba(255,255,255,0.25); }

.social-contact-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    margin: 5px 0 5px 20px;
}
.bi-telegram.white-icon { color: #fff !important; }

@media (min-width: 1200px) { .social-contact-link:first-of-type { margin-left: 0; } }

/* === Navigation === */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

/* Логотип */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Поддержка обоих классов логотипа */
.navbar-brand img.main-site-logo, 
.navbar-brand img.site-logo-img {
    width: 350px; 
    height: auto;
    display: block;
    transition: width 0.3s;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active { 
    color: var(--secondary-color); 
}

/* === Dropdown Menu (Ultra Compact Fixed) === */
.dropdown-menu {
    padding: 12px 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-color);
    margin-top: 0;
    overflow: hidden;
    
}

.navbar-nav .dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.navbar-nav .dropdown-menu .nav-link {
    padding: 6px 20px !important;
    font-size: 15px;
    line-height: 1.2 !important;
    color: var(--text-dark);
    margin: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    white-space: nowrap;
}

.navbar-nav .dropdown-menu li:last-child .nav-link { border-bottom: none; }

.navbar-nav .dropdown-menu .nav-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding-left: 25px !important;
}

.navbar-nav .dropdown-menu .nav-link.active {
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
}

/* === Hero Section (Ultra Compact) === */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #fff 100%);
    padding: 20px 0 30px; /* Компактные отступы */
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem; /* Было: 0.5rem - увеличиваем отступ после заголовка */
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem; /* Было: 1.5rem - увеличиваем отступ после параграфа */
    line-height: 1.5;
    position: relative;
    z-index: 1;
}



.hero-stats-strip {
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem !important; /* Добавляем внутренние отступы */
    margin-top: 2rem !important; /* Увеличиваем отступ сверху */
}


.hero-stats-strip {
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--secondary-color);
}

/* === Buttons === */
.btn-primary { 
    background: var(--gradient-main); 
    border: none; 
    color: #fff; 
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
    color: #fff;
    background: var(--gradient-main); 
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: #fff;
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-cta-pulse {
    background: var(--gradient-main);
    border: none;
    padding: 16px 45px;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
    transition: all 0.3s;
}
.btn-cta-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.6);
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-whatsapp:hover {
    background-color: #1EB354;
    border-color: #1EB354;
    color: #fff;
    transform: translateY(-2px);
}

/* === Sections === */
.content-section { padding: 80px 0; position: relative; }
.content-section.bg-light { background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%); }
.content-section.bg-gradient-purple { background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%); }
.content-section.bg-gradient-green { background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%); }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* === Cards & Elements === */
.service-card, .price-card, .stat-card, 
.advantage-card, .process-step {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card { padding: 40px 30px; }
.advantage-card { padding: 40px 25px; text-align: center; }
.process-step { padding: 30px 20px; text-align: center; }
.stat-card { padding: 30px 20px; border: none; background: transparent; }

.service-card:hover, .advantage-card:hover, .process-step:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    transform: translateY(-8px);
    border-color: var(--secondary-color);
}

.price-card { border-width: 2px; padding: 35px 25px; text-align: center; }
.price-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

/* Icons */
.service-icon, .stat-icon, .advantage-icon, .step-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.3s;
    position: relative;
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(5deg); color: var(--primary-color); }
.stat-card:hover .stat-icon { transform: scale(1.2); color: var(--primary-color); }

.advantage-icon, .step-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.advantage-icon { background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 90, 160, 0.1)); }
.advantage-card:hover .advantage-icon { background: var(--gradient-main); color: #fff; transform: rotateY(360deg); }

.step-icon { background: var(--accent-color); margin-inline: auto; }
.process-step:hover .step-icon { background: var(--gradient-blue); color: #fff; }

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s;
}

/* Typography inside Cards */
.service-card h3, .advantage-card h4, .process-step h4, .price-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}
.price-card h3 { font-size: 1.2rem; color: var(--text-dark); margin: 15px 0; }

.service-card p, .advantage-card p, .process-step p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 15px;
}
.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 15px 0;
}
.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-green);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Clients & Logos Section === */
.clients-section {
    padding: 60px 0;
}
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; 
    padding: 0 10px;
}
.client-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
}
.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* === CTA & Forms === */
.cta-section {
    background: var(--gradient-main);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section h2 { font-size: 3rem; font-weight: 700; margin-bottom: 25px; }
.cta-section p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; }

/* Contact Form 7 Fix */
.wpcf7-form p {
  display: contents;
  margin: 0;
}

/* Кастомизация Bootstrap кнопок внутри CTA */
.cta-section .btn-light { 
    background: #fff; 
    color: var(--primary-color); 
    border: none; 
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.cta-section .btn-light:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-section .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s;
}
.cta-section .btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Form Controls */
.cta-section .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
}
.cta-section .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}
.cta-section input[type="submit"], 
.cta-section button[type="submit"] {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}
.cta-section input[type="submit"]:hover,
.cta-section button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

/* Accordion */
.accordion-button { font-size: 1.1rem; }
.accordion-body { font-size: 1rem; }

/* === Footer === */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 25px;
}
.footer h5 { font-weight: 600; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer a { 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    display: block; 
    margin: 0.5rem 0; 
    transition: color 0.3s;
}
.footer a:hover { color: #fff; text-decoration: none; }
.footer-border-top { border-color: rgba(255,255,255,0.2) !important; }

/* Mobile Sticky Bar */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}
.mobile-bar-label { font-size: 0.75rem; display: block; margin-top: 2px; }

/* Utility classes */
.icon-whatsapp { color: #25D366 !important; }

/* === Blog & Posts (Internal Pages) === */
.entry-content h1, .entry-content h2, .entry-content h3 { 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    font-weight: 600; 
    color: var(--text-dark); 
}
.entry-content p { 
    margin-bottom: 1.5rem; 
    line-height: 1.8; 
}
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* WordPress Alignments */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 1200px; margin-inline: auto; }
.alignfull { max-width: 100%; width: 100vw; margin-left: calc(50% - 50vw); }

.post-meta { color: var(--text-light); font-size: 0.95rem; }
.post-meta a { color: var(--text-light); text-decoration: none; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.post-tags a {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.post-tags a:hover { background: var(--primary-color); color: #fff; }

.custom-logo { max-height: 60px; width: auto; }

/* === Responsive === */
@media (max-width: 991px) {
    .hero-section { padding: 20px 0 30px; } /* Сохраняем компактность */
    .hero-section h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .content-section { padding: 60px 0; }
    
    .navbar-brand img.main-site-logo, 
    .navbar-brand img.site-logo-img { width: 280px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; padding-bottom: 70px; }
    
    /* Мобильный логотип */
    .navbar-brand img.main-site-logo, 
    .navbar-brand img.site-logo-img { width: 220px; }
    
    .hero-section { padding: 40px 0 30px; } /* Сохраняем компактность и тут */
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }
    
    .section-title { font-size: 1.7rem; }
    .cta-section h2 { font-size: 2rem; }
    
    .mobile-contact-bar { display: block; }
    
    .btn-light, .btn-outline-light { width: 100%; margin-bottom: 10px; }
    .btn-primary, .btn-outline-primary { padding: 12px 25px; font-size: 1rem; width: 100%; margin-bottom: 10px; }
    
    .service-card, .advantage-card, .process-step, 
    .price-card, .stat-card { padding: 30px 20px; }
    
    .service-icon, .advantage-icon, .step-icon, .stat-icon { font-size: 2.8rem; }
    .stat-number { font-size: 2.3rem; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.7rem; }
}