/* رنگ‌ها و فونت‌ها از تم Trendine */
:root {
    --td-black: #1C1C1C;
    --td-cream: #F5F1E9;
    --td-brown: #A68A74;
    --td-rose: #B76E79;
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

/* Section */
.td-parallax-highlight {
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--td-cream);
    background: var(--td-black);
    font-family: var(--font-fa), sans-serif;
}

/* Skeleton */
.td-parallax-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #dedede 25%, #f1f1f1 50%, #dedede 75%);
    background-size: 200% 100%;
    animation: td-skel 1.5s infinite;
}

@keyframes td-skel {
    from {
        background-position: 200% 0
    }
    to {
        background-position: -200% 0
    }
}

/* Background */
.td-parallax-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.td-parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease-out;
}

.td-parallax-highlight.loaded .td-parallax-bg img {
    opacity: 1
}

/* Overlay content */
.td-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem
}

.td-parallax-title {
    font-size: 2rem;
    margin-bottom: .75rem;
    color: var(--td-cream)
}

.td-parallax-text {
    max-width: 820px;
    margin: 0 auto 1.75rem;
    color: rgba(245, 241, 233, .95);
    line-height: 1.9
}

/* Stats grid */
.td-stats {
    display: grid;
    gap: 18px;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-items: center;
}

/* Stat item */
.td-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem
}

.td-stat__bubble {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: radial-gradient(60% 60% at 40% 35%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #1fbf8b 0%, #169b74 100%); /* سبز ملایم */
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 0 0 6px rgba(183, 110, 121, .25);
    border: 2px solid rgba(183, 110, 121, .45); /* رزگلدِ تم */
}

.td-stat__bubble svg {
    fill: #fff;
    opacity: .95
}

.td-stat__num {
    font-family: var(--font-en), sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.td-stat__label {
    color: var(--td-cream);
    opacity: .9;
    font-size: .95rem
}

/* Responsive */
@media (max-width: 992px) {
    .td-stats {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .td-stat__bubble {
        width: 110px;
        height: 110px
    }
}

@media (max-width: 560px) {
    .td-stats {
        grid-template-columns:1fr
    }

    .td-parallax-title {
        font-size: 1.6rem
    }

    .td-parallax-text {
        font-size: .98rem
    }

    .td-stat__bubble {
        width: 104px;
        height: 104px
    }
}

/* =========================
   DARK OVERLAY for background
========================= */
.td-parallax-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* مقدار تیرگی: 0.35 یعنی حدود 35٪ تاریکی */
    z-index: 1;
    pointer-events: none;
}

/* چون متن روی عکس هست، باید بالاتر از overlay باشه */
.td-parallax-content {
    position: relative;
    z-index: 2;
}
