/* ========================================
   ФИНАЛНА ВЕРСИЯ – АДВОКАТСКИ САЙТ
   Професионална цветова палета 60-30-10
   Оптимизирана за доверие и конверсии
   ======================================== */

:root {
    /* ========== 60-30-10 ПРАВИЛО (BeamLocal) ========== */
    --primary: #0A253F;        /* 60% - Дълбоко navy синьо (доверие) */
    --primary-dark: #041B2F;   /* За footer и градиенти */
    --primary-light: #1C3A5E;  /* За hover ефекти */

    --secondary: #F8F9FA;      /* 30% - Светъл неутрален фон */
    --white: #FFFFFF;          /* 30% - Бял фон за съдържание */

    /* Акцент – елегантно, приглушено злато */
    --accent: #B8974F;         /* 10% - Премиум златисто (само за CTA) */
    --accent-dark: #9C7A3E;    /* За hover ефекти */
    --accent-light: #D2B67A;   /* За леки акценти и икони */

    /* Текстови цветове – пълна йерархия */
    --text-primary: #1C2B44;   /* Основен текст */
    --text-secondary: #56657A; /* Вторичен текст (дати, пояснения) */
    --text-muted: #78889E;     /* Най-малки елементи */
    --text-on-primary: #FFFFFF;
    --text-on-accent: #0A253F; /* Тъмен текст върху златисти бутони */

    /* Рамки и разделители */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Ефекти и анимации */
    --shadow: 0 4px 20px rgba(10, 37, 63, 0.08);
    --shadow-hover: 0 10px 35px rgba(10, 37, 63, 0.13);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TOPBAR ========== */
.topbar {
    background: var(--primary-dark);
    color: var(--text-on-primary);
    padding: 12px 0;
    font-size: 14px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.topbar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.topbar-info a {
    color: var(--text-on-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.topbar-info a:hover {
    color: var(--accent);
}

.topbar-social {
    display: flex;
    gap: 16px;
}

.topbar-social a {
    color: var(--text-on-primary);
    text-decoration: none;
    transition: var(--transition);
}

.topbar-social a:hover {
    color: var(--accent);
}

/* ========== HEADER ========== */
.header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.logo h1 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo h1 a:hover {
    color: var(--accent);
}

.logo p {
    font-size: 14px;
    color: var(--accent);
}

/* ========== НАВИГАЦИЯ ========== */
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

/* CTA бутон в хедъра (винаги в акцентния цвят) */
.header-cta {
    background: var(--accent);
    color: var(--text-on-accent) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    margin-left: 16px;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: var(--text-on-accent) !important;
    box-shadow: 0 4px 12px rgba(184, 151, 79, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ========== HERO СЕКЦИЯ (оптимизиран градиент) ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%, #0F2A4A 100%);
    color: var(--text-on-primary);
    padding: 100px 0 90px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-on-primary);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* ========== БУТОНИ (всички CTA в акцентния цвят) ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 151, 79, 0.3);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-on-primary);
    border: none;
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

/* ========== СЕКЦИИ ========== */
.section {
    padding: 80px 0;
}

/* Заглавия с подчертаване (професионален акцент) */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
}

/* ========== УСЛУГИ ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(184, 151, 79, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 32px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-card .btn-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-card .btn-link:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

/* ========== ЗА МЕН ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ========== БЛОГ ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-card h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card .blog-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.blog-card .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.blog-card .read-more:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* ========== FAQ ========== */
.faq {
    background: var(--white);
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--white);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
}

/* ========== ФОРМА ========== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 151, 79, 0.1);
}

/* ========== ФЛОТИРАЩИ БУТОНИ (унифицирани в златисто) ========== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Всички флотиращи бутони в акцентния цвят */
.floating-btn.phone,
.floating-btn.viber,
.floating-btn.whatsapp {
    background: var(--accent);
    color: var(--text-on-accent);
}

.floating-btn.phone:hover,
.floating-btn.viber:hover,
.floating-btn.whatsapp:hover {
    background: var(--accent-dark);
}

/* Анимация само за телефона */
.floating-btn.phone {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 151, 79, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(184, 151, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(184, 151, 79, 0);
    }
}

/* ========== TRUST БАДЖОВЕ ========== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.trust-badge {
    text-align: center;
}

.trust-badge i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
}

.trust-badge span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========== ОТЗИВИ ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.review-card i {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
}

.review-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: var(--text-on-primary);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--border-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== КАРТА ========== */
.map-container {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========== МОБИЛЕН СТИЛ ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 40px;
        gap: 16px;
        box-shadow: var(--shadow);
        transition: all 0.35s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 16px;
    }

    .header-cta {
        display: block;
        text-align: center;
        margin: 16px 0 0 0;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .blog-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .trust-badges {
        gap: 20px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== DROPDOWN МЕНЮ ========== */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1002;
}

.dropdown li a {
    padding: 12px 16px;
    display: block;
}

.has-dropdown:hover .dropdown {
    display: flex;
}

/* ========== СТРАНИЧНИ СТИЛОВЕ ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--text-on-primary);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-on-primary);
}

/* ========== ВЪЗСТАНОВЯВАНЕ НА АНИМАЦИИТЕ ПРИ ХОВЕР ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}