/**
 * TP Page Hero — inner pages hero section
 *
 * Rendered by tp_page_hero widget. Self-contained section with
 * background image, overlay, geo decoration, breadcrumbs, title.
 *
 * @package Technoproekt
 * @author  Kkalganov <https://kkalganov.com>
 */

/* ==========================================================================
   Page Hero Section
   ========================================================================== */

.tp-page-hero {
    padding: 110px 20px 36px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Gradient overlay */
.tp-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg,
        rgba(46, 49, 46, 0.95) 0%,
        rgba(30, 33, 30, 0.92) 50%,
        rgba(1, 1, 1, 0.72) 100%);
}

/* Decorative geo circle */
.tp-page-hero__geo {
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(232, 213, 47, 0.06);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.tp-page-hero__geo::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    bottom: 60px;
    border: 1px solid rgba(232, 213, 47, 0.04);
    border-radius: 50%;
}

/* Inner container */
.tp-page-hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.tp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    flex-wrap: wrap;
}

.tp-breadcrumbs a {
    color: var(--tp-white-50);
    transition: color 0.2s;
    text-decoration: none;
}

.tp-breadcrumbs a:hover {
    color: var(--tp-yellow);
}

.tp-breadcrumbs__sep {
    color: var(--tp-white-30);
    font-size: 10px;
}

.tp-breadcrumbs__current {
    color: var(--tp-white-80);
}

/* ==========================================================================
   Hero Label
   ========================================================================== */

.tp-page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tp-yellow);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tp-page-hero__label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--tp-yellow);
}

/* ==========================================================================
   Hero Title (h1)
   ========================================================================== */

.tp-page-hero__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--tp-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    max-width: 650px;
}

/* ==========================================================================
   Hero Description
   ========================================================================== */

.tp-page-hero__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 550px;
    line-height: 1.7;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

/* ==========================================================================
   Hero Stats (optional — services listing)
   ========================================================================== */

.tp-page-hero__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--tp-white-10);
}

.tp-page-hero__stat-number {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--tp-yellow);
    line-height: 1;
    margin-bottom: 4px;
}

.tp-page-hero__stat-label {
    font-size: 13px;
    color: var(--tp-white-60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Hero Badges (optional — service detail pages)
   ========================================================================== */

.tp-page-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tp-page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--tp-white-10);
    color: var(--tp-white-80);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
}

.tp-page-hero__badge:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tp-page-hero__badge svg {
    color: var(--tp-yellow);
    flex-shrink: 0;
}

/* ==========================================================================
   Parent Link (optional — sub-service pages)
   ========================================================================== */

.tp-page-hero__parent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(232, 213, 47, 0.1);
    border: 1px solid rgba(232, 213, 47, 0.2);
    color: var(--tp-yellow);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
}

.tp-page-hero__parent-link:hover {
    background: rgba(232, 213, 47, 0.2);
}

.tp-page-hero__parent-link svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Stats Strip (green bar below hero)
   ========================================================================== */

.tp-page-hero__strip {
    background: var(--tp-green-main);
}

.tp-page-hero__strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tp-page-hero__strip-item {
    padding: 40px;
    text-align: center;
    border-right: 1px solid var(--tp-white-10);
    transition: background 0.3s;
}

.tp-page-hero__strip-item:last-child {
    border-right: none;
}

.tp-page-hero__strip-item:hover {
    background: var(--tp-black-10);
}

.tp-page-hero__strip-number {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--tp-yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.tp-page-hero__strip-label {
    font-size: 13px;
    color: var(--tp-white-80);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

@media (min-width: 769px) {
    .tp-page-hero {
        padding: 130px 40px 40px;
    }

    .tp-page-hero__stats {
        gap: 48px;
        flex-wrap: nowrap;
    }

    .tp-page-hero__stat-number {
        font-size: 32px;
    }
}

@media (min-width: 1025px) {
    .tp-page-hero {
        padding: 140px 40px 48px;
    }
}

/* Strip responsive */
@media (max-width: 1024px) {
    .tp-page-hero__strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tp-page-hero__strip-item {
        padding: 24px 16px;
    }

    .tp-page-hero__strip-number {
        font-size: 32px;
    }

    .tp-page-hero__strip-label {
        font-size: 11px;
    }
}
