/**
 * TP Section Header — widget styles
 *
 * @package Technoproekt
 * @author  Kkalganov <https://kkalganov.com>
 */

/* ==========================================================================
   Section Header (tp-section-hdr)
   ========================================================================== */

.tp-section-hdr {
    margin-bottom: 48px;
}

/* Sections with smaller padding (80px) use tighter header spacing */
.tp-gallery-section .tp-section-hdr,
.tp-clients-mini-section .tp-section-hdr {
    margin-bottom: 40px;
}

/* Related section — compact header spacing */
.tp-related-section .tp-section-hdr {
    margin-bottom: 28px;
}

/* Content area sub-headings — compact spacing, no label line */
.tp-content-main .tp-section-hdr {
    margin-bottom: 12px;
    margin-top: 32px;
}

.tp-content-main .elementor-widget-tp_section_header:first-child .tp-section-hdr {
    margin-top: 0;
}

.tp-section-hdr__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-green-main);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tp-section-hdr__label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: currentColor;
}

.tp-section-hdr__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--tp-text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.tp-section-hdr__desc {
    font-size: 16px;
    color: var(--tp-text-light);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 700px;
}

/* --- Dark scheme (for dark backgrounds) --- */

.tp-section-hdr--dark .tp-section-hdr__label {
    color: var(--tp-yellow) !important;
}

.tp-section-hdr--dark .tp-section-hdr__title {
    color: var(--tp-white) !important;
}

.tp-section-hdr--dark .tp-section-hdr__desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tp-section-hdr__title {
        font-size: 22px;
    }

    .tp-section-hdr {
        margin-bottom: 40px;
    }
}
