﻿:root {
    --hr-topgap: 2px;
    --hr-height-mobile:280px;
   
}
.hero {
    background: var(--navy);
    background-image: url('../../Content/Images/background/tehran_bg.jpg');
    background-position: center;
    background-size: cover;
    min-height: var(--hero-height);
    width: 100%;
    display: flex;
    padding: var(--topgap) var(--gap);
    position: relative;
    z-index: 1;
    overflow: visible; /* چون سایدبار با مارجین منفی رویش کشیده شده، نباید overflow:hidden بذاریم وگرنه کارت بریده می‌شه */
}

@media (max-width:759px)
{
    .hero {
        background: var(--navy);
        background-image: url('../../Content/Images/background/tehran_bg.jpg');
        background-position: center;
        background-size: cover;
        min-height: var(--hr-height-mobile);
        width: 100%;
        display: flex;
        padding: var(--hr-topgap) var(--gap);
        position: relative;
        z-index: 1;
        overflow: visible; /* چون سایدبار با مارجین منفی رویش کشیده شده، نباید overflow:hidden بذاریم وگرنه کارت بریده می‌شه */
    }
}

    /* لایه تیره‌کننده روی تصویر */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(15 23 42 / 55%);
        z-index: 1;
    }

    /* لایه گرید نقطه‌چین */
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .10;
        z-index: 1;
        background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
        background-size: 42px 42px;
        -webkit-mask-image: linear-gradient(180deg,#000,transparent 85%);
        mask-image: linear-gradient(180deg,#000,transparent 85%);
    }
    /*
    .hero::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: linear-gradient( 180deg, rgba(9, 9, 88, 0) 0%, #eef0f5 100% /* رنگ دقیق --page-bg شما 
        );
        pointer-events: none;
        z-index: 1; /* پایین‌تر از سایدباری که با overlap روی هیرو نشسته
    }
*/
  
.hero-photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,var(--navy-900) 0%, var(--navy-800) 55%, #123056 100%);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: auto;
}

    .hero-photo svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .5;
    }

    .hero-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 420px at 85% -10%, rgba(226,147,44,.20), transparent 60%), linear-gradient(120deg, rgba(11,22,34,.88) 0%, rgba(13,27,42,.78) 45%, rgba(18,48,86,.7) 100%);
    }


.hero__inner {
    max-width: var(--hero-width);
    margin: 0 auto;
    width: 100%;
    color: #fff;
    display: flex;
    z-index:10;
}

.hero_blank {
    min-width: var(--hero-blank-width);
    text-align: -webkit-center;
}

.hero-panel {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
@media (max-width:759px)
{
    .hero__inner {
        max-width: var(--hero-width);
        margin: 0 auto;
        width: 100%;
        color: #fff;
        display: flex;
        z-index: 10;
        flex-direction:column;
    }
    .hero_blank {
       display:none;
    }

    .hero-panel {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction:column;
    }
}

.hero-panel {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.hero h1 {
    font-size: clamp(25px, 3.5vw, 40px);
    margin-bottom: 8px;
}

.hero p {
    opacity: .85;
    font-size: 15px;
    max-width: 60ch;
}

    .hero .bold {
        opacity: 1;
        font-size: clamp(24px, 3.3vw, 38px);
        font-weight:500;
        max-width: 60ch;
        margin-top:-10px;
    }

.hero .bold-2 {
    opacity: 1;
    font-size: clamp(17px, 2.5vw, 30px);
    font-weight: 500;
    max-width: 60ch;
    margin-top: -10px;
}

.orange {
    color: var(--brand-orange);
}
.hero-stats {
   
    z-index: 3;
    right: 56px;
    bottom: 30px;
    display: flex;
    align-items: stretch;
    color: var(--white);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 26px;
    min-width: 96px;
    align-items: center;
    margin-top:150px;
}

    .hero-stat:first-child {
        padding-right: 0;
    }

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    text-align:center;
}

    .hero-stat-value:empty::before {
        content: '—';
        color: rgba(255,255,255,.35);
    }

.hero-stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,.68);
    text-align:center;
}

.hero-stat-divider {
    width: 2px;
    align-self: stretch;
    background: rgb(255 255 255 / 67%);
    max-height: 90px;
    margin-top: 125px;
}


/*- - - - - - - - -   نسخ موبایل - - - - - - - - - - -*/
@media (max-width:759px) {
    .hero-stats {
        z-index: 3;
        right: 56px;
        bottom: 30px;
        display: flex;
        align-items: stretch;
        color: var(--white);
    }

    .hero-stat {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
        padding: 0 4px;
        min-width: 96px;
        align-items: center;
        margin-top: 50px;
    }

        .hero-stat:first-child {
            padding-right: 0;
        }

    .hero-stat-value {
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        text-shadow: 0 2px 8px rgba(0,0,0,.3);
        text-align: center;
    }

        .hero-stat-value:empty::before {
            content: '—';
            color: rgba(255,255,255,.35);
        }

    .hero-stat-label {
        font-size: 12.5px;
        font-weight: 500;
        color: rgba(255,255,255,.68);
        text-align: center;
    }

    .hero-stat-divider {
        width: 2px;
        align-self: stretch;
        background: rgb(255 255 255 / 67%);
        max-height: 90px;
        margin-top: 25px;
    }
}

    .hstat {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .hstat .ic {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255,255,255,.08);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

            .hstat .ic svg {
                --amber-400: #ffa531;
                width: 18px;
                height: 18px;
                color: var(--amber-400);
            }

        .hstat b {
            display: block;
            font-size: 14px;
            font-weight: 700;
            font-family: 'JetBrains Mono','Vazirmatn';
        }

        .hstat span {
            display: block;
            font-size: 11.5px;
            color: #9FB3CC;
        }

    .hero-logo-wrap {
        position: relative;
        flex-shrink: 0;
        width: clamp(120px, 16vw, 210px);
        height: clamp(120px, 16vw, 210px);
    }

    .hero-logo-badge {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 0 0 5px rgba(255,255,255,.10), 0 0 0 2px var(--amber-400), 0 22px 44px -14px rgba(0,0,0,.55);
        transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1);
    }

    .hero-logo-wrap:hover .hero-logo-badge {
        transform: translateY(-5px);
        box-shadow: 0 0 0 5px rgba(255,255,255,.14), 0 0 0 2px var(--amber-400), 0 28px 54px -14px rgba(0,0,0,.6);
    }

    .hero-logo-badge img {
        max-width: 68%;
        max-height: 68%;
        object-fit: contain;
    }

    .hero-logo-check {
        position: absolute;
        bottom: 4%;
        left: 2%;
        width: 15%;
        aspect-ratio: 1;
        min-width: 30px;
        background: var(--success);
        border: 3px solid #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,.3);
    }

        .hero-logo-check svg {
            width: 52%;
            height: 52%;
            color: #fff;
        }

    @media (max-width:640px) {
        .demo-hero {
            flex-direction: column-reverse;
            text-align: center;
            padding: 32px 22px;
        }

        .hero-logo-wrap {
            width: 110px;
            height: 110px;
        }

        .demo-hero .text p {
            margin: 0 auto;
        }
    }

    @media (max-width:720px) {
        .hero-stats {
            position: static;
            margin-top: 22px;
            padding: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .hero-stat {
            min-width: 84px;
        }

        .hero-stat-value {
            font-size: 22px;
        }
    }

    @media (max-width:720px) {
        .city-hero {
            min-height: 280px;
        }

        .city-hero-text {
            padding: 0 24px;
        }
    }


