/* ============================================= */
/* CUSTOM STYLES - Адвокат Павлин Стаматов */
/* ============================================= */

/* ============================================= */
/* 1. FINAL CTA SECTION */
/* ============================================= */
#contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px 80px 15px;
}

.cta-box {
    background: linear-gradient(135deg, #18181b, #111111);
    border: 1px solid #3f3f46;
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.cta-box h3 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
}

.cta-box p {
    max-width: 100%;
    margin: 0 auto 35px auto;
    font-size: 1.15rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 38px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff000;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: #c5a26f;
    color: #fff000;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-btn i {
    font-size: 1.25rem;
}

/* ============================================= */
/* 2. RELATED TOPICS + SOURCES */
/* ============================================= */
.related-box {
    background: linear-gradient(135deg, #18181b, #111111);
    border: 1px solid #3f3f46;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.related-box h3 {
    color: #c5a26f;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.related-list li {
    background: #1f1f23;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.related-list li:hover {
    background: #27272a;
    transform: translateY(-2px);
}

.related-list a {
    display: block;
    padding: 14px 20px;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.related-list a:hover {
    color: #c5a26f;
}

.sources-box {
    border-top: 1px solid #3f3f46;
    padding-top: 30px;
    margin-top: 30px;
}

.sources-box h3 {
    color: #c5a26f;
    font-size: 1.35rem;
    margin-bottom: 18px;
    text-align: center;
}

.sources-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sources-box li {
    margin-bottom: 10px;
}

.sources-box a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 1rem;
}

.sources-box a:hover {
    color: #c5a26f;
    text-decoration: underline;
}

.consult-text {
    background: #1f1f23;
    border-radius: 16px;
    padding: 30px 35px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #3f3f46;
}

.consult-text p {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.consult-text a {
    color: #c5a26f;
    font-weight: 600;
}

.last-edit {
    text-align: center;
    margin-top: 35px;
    color: #666;
    font-size: 0.95rem;
}

.last-edit i {
    margin-right: 6px;
}

/* ============================================= */
/* 3. HEADER + NAVIGATION + LOGO + TEXT */
/* ============================================= */
.header-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #111113 !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
    transition: none !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

.header-wrapper {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Header при скрол */
.header-wrapper.scrolled {
    padding-top: 4px !important;
    padding-bottom: 16px !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.55) !important;
    border-radius: 22px !important;
}

.top-bar {
    padding: 16px 25px !important;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0 !important;
    background: #111113 !important;
}

.header-wrapper.scrolled .top-bar {
    padding-top: 24px !important;
    padding-bottom: 14px !important;
}

.nav-bar {
    padding: 6px 20px !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-wrapper.scrolled .nav-bar {
    border-radius: 0 0 20px 20px !important;
}

/* ============================================= */
/* 4. ВЕЗНИЧКА + ТЕКСТ „Адв. Стаматов“ */
/* ============================================= */
.logo-with-scales {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

.scales-wrapper {
    background: rgba(197, 162, 111, 0.35);
    padding: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(197, 162, 111, 0.35);
}

.scales-wrapper:hover {
    background: rgba(197, 162, 111, 0.48);
    transform: scale(1.1);
}

.scales-icon {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.adv-text {
    font-family: 'EB Garamond', serif;
    font-size: 2.35rem;
    font-weight: 700;
    font-style: normal;
    color: #c5a26f;
    letter-spacing: 1.4px;
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* ============================================= */
/* 5. ДОЛНА СЕКЦИЯ (Content Wrapper) */
/* ============================================= */
.content-wrapper {
    max-width: 1140px !important;
    margin: 0 auto !important;
    background: #111113 !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    overflow: hidden !important;
}

.content-wrapper h2.bottom-name {
    font-family: 'EB Garamond', serif !important;
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #000000 !important;
    letter-spacing: 1.3px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    padding: 14px 0 !important;
}

/* ============================================= */
/* 6. ПАДАЩИ МЕНЮТА */
/* ============================================= */
.nav-bar .dropdown-menu {
    background: #18181b !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.75) !important;
    padding: 12px 0 !important;
    min-width: 260px !important;
    margin-top: 0 !important;
    z-index: 9999999 !important;
    position: absolute !important;
}

.nav-bar .dropdown:hover .dropdown-menu {
    display: block !important;
}

.nav-bar .dropdown-item {
    color: #d1d5db !important;
    padding: 14px 26px !important;
    font-size: 1.05rem !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    margin: 3px 12px !important;
}

.nav-bar .dropdown-item:hover {
    background: #27272a !important;
    color: #c5a26f !important;
}

/* ============================================= */
/* 7. МОБИЛНА ВЕРСИЯ (992px и по-малко) */
/* ============================================= */
@media (max-width: 992px) {

    /* Прави ъгли на всички елементи */
    .header-wrapper,
    .header-wrapper.scrolled,
    .top-bar,
    .nav-bar,
    .header-wrapper.scrolled .nav-bar,
    .content-wrapper {
        border-radius: 0 !important;
    }

    .header-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .top-bar {
        padding: 14px 15px !important;
        transition: opacity 0.35s ease;
    }

    .top-bar-right {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* При скрол – скриваме топ-бара */
    .header-wrapper.scrolled .top-bar {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .header-wrapper.scrolled .nav-bar {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    /* Лого и текст */
    .logo-with-scales {
        gap: 8px;
        padding: 6px 0;
    }

    .scales-wrapper {
        padding: 6px;
    }

    .scales-icon {
        height: 34px;
    }

    .adv-text {
        font-size: 1.45rem;
        letter-spacing: 0.5px;
    }

    .content-wrapper h2.bottom-name {
        font-size: 1.55rem !important;
        color: #000000 !important;
    }
}