/* =========================================================
   RePe Home Hero
   Premium TRUST products hero section
   ========================================================= */

.repe-home-hero {
    width: 100%;
    margin: -18px auto 34px;
    position: relative;
    z-index: 1;
}

.repe-home-hero-bg {
    width: min(100%, 1600px);
    min-height: 680px;
    margin: 0 auto;
    border-radius: 0 0 26px 26px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(32, 35, 28, .10);
}

.repe-home-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(250,248,245,.94) 0%,
            rgba(250,248,245,.82) 32%,
            rgba(250,248,245,.30) 56%,
            rgba(250,248,245,.05) 100%);
    pointer-events: none;
}

.repe-home-hero-content {
    position: relative;
    z-index: 2;
    width: min(520px, 90%);
    padding: 130px 7% 70px 0;
    color: #26301F;
}

.repe-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #546142;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 22px;
}

.repe-hero-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: #C9A46A;
    display: inline-block;
}

.repe-home-hero h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 66px);
    line-height: 1.35;
    font-weight: 800;
    color: #2E3927;
    letter-spacing: -1px;
}

.repe-home-hero h1::after {
    content: "";
    display: block;
    width: 78px;
    height: 2px;
    background: #C9A46A;
    border-radius: 999px;
    margin: 26px 0 0;
}

.repe-home-hero p {
    width: min(480px, 100%);
    margin: 28px 0 0;
    font-size: 18px;
    line-height: 2.05;
    color: #2F342B;
    font-weight: 500;
}

.repe-hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.repe-hero-btn {
    min-height: 54px;
    padding: 0 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    transition: all .22s ease;
}

.repe-hero-btn-primary {
    background: #2E3927;
    color: #FAF8F5 !important;
    border: 1px solid #2E3927;
}

.repe-hero-btn-primary:hover {
    background: #546142;
    border-color: #546142;
    transform: translateY(-2px);
}

.repe-hero-btn-secondary {
    background: rgba(250,248,245,.58);
    color: #26301F !important;
    border: 1px solid rgba(38,48,31,.45);
    backdrop-filter: blur(6px);
}

.repe-hero-btn-secondary:hover {
    border-color: #C9A46A;
    color: #546142 !important;
    transform: translateY(-2px);
}

.repe-home-trustbar {
    width: min(100%, 1600px);
    margin: 0 auto;
    min-height: 110px;
    background:
        linear-gradient(180deg, rgba(250,248,245,.98), rgba(237,232,223,.96));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(201,164,106,.18);
    box-shadow: 0 12px 34px rgba(32,35,28,.06);
}

.repe-trust-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    padding: 20px 34px;
    border-left: 1px solid rgba(201,164,106,.20);
    color: #26301F;
}

.repe-trust-item:last-child {
    border-left: none;
}

.repe-trust-item span {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 25px;
    color: #546142;
    border: 1px solid rgba(84,97,66,.25);
    background: rgba(250,248,245,.70);
}

.repe-trust-item strong {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 7px;
}

.repe-trust-item small {
    font-size: 13px;
    color: #4B5145;
}

/* حذف فاصله اضافه احتمالی محتوای دمو بعد از Hero */
.home .main-page-wrapper,
.home .site-content {
    padding-top: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .repe-home-hero {
        margin-top: -10px;
    }

    .repe-home-hero-bg {
        min-height: 620px;
        border-radius: 0 0 22px 22px;
        background-position: 68% center;
    }

    .repe-home-hero-bg::before {
        background:
            linear-gradient(180deg,
                rgba(250,248,245,.90) 0%,
                rgba(250,248,245,.70) 42%,
                rgba(250,248,245,.18) 100%);
    }

    .repe-home-hero-content {
        padding: 74px 24px 48px;
        width: min(560px, 100%);
    }

    .repe-home-trustbar {
        grid-template-columns: repeat(2, 1fr);
    }

    .repe-trust-item {
        padding: 18px 22px;
        border-bottom: 1px solid rgba(201,164,106,.16);
    }
}

@media (max-width: 640px) {
    .repe-home-hero-bg {
        min-height: 560px;
        background-position: 72% center;
    }

    .repe-home-hero-content {
        padding-top: 54px;
    }

    .repe-home-hero p {
        font-size: 15px;
        line-height: 1.9;
    }

    .repe-hero-actions {
        gap: 10px;
    }

    .repe-hero-btn {
        width: 100%;
    }

    .repe-home-trustbar {
        grid-template-columns: 1fr;
    }

    .repe-trust-item {
        border-left: none;
    }
}

/* =========================================================
   RePe Hero Position Fix
   Text on left, products on right, no gap with header
   ========================================================= */

/* Hero بچسبد به هدر؛ چون nav روی Hero می‌آید، کمی padding-top لازم است */
.repe-home-hero {
    margin: 0 auto 34px !important;
    padding-top: 28px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* عکس Hero درست از زیر نوبار شروع شود */
.repe-home-hero-bg {
    min-height: 680px !important;
    border-radius: 0 0 26px 26px !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* گرادیان از سمت چپ باشد تا متن سمت چپ خوانا شود */
.repe-home-hero-bg::before {
    background:
        linear-gradient(90deg,
            rgba(250,248,245,.96) 0%,
            rgba(250,248,245,.86) 31%,
            rgba(250,248,245,.38) 52%,
            rgba(250,248,245,.08) 100%) !important;
}

/* متن Hero برود سمت چپ تصویر، نه روی محصول سمت راست */
.repe-home-hero-content {
    width: min(560px, 42%) !important;
    padding: 135px 0 70px 7% !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}

/* متن‌ها کمی جمع‌تر و شیک‌تر */
.repe-home-hero h1 {
    font-size: clamp(36px, 3.8vw, 60px) !important;
    line-height: 1.38 !important;
}

.repe-home-hero p {
    width: min(480px, 100%) !important;
    font-size: 17px !important;
    line-height: 2.05 !important;
}

/* دکمه‌ها در سمت چپ/زیر متن مرتب بمانند */
.repe-hero-actions {
    justify-content: flex-start !important;
}

/* Trustbar بدون فاصله به Hero بچسبد */
.repe-home-trustbar {
    margin-top: 0 !important;
}

/* جلوگیری از افتادن محتوا روی محصول در عرض‌های متوسط */
@media (max-width: 1280px) and (min-width: 1025px) {
    .repe-home-hero-content {
        width: min(500px, 43%) !important;
        padding-left: 5% !important;
    }

    .repe-home-hero h1 {
        font-size: clamp(34px, 3.5vw, 52px) !important;
    }
}

/* موبایل: متن بالا، محصول در پس‌زمینه، خوانا */
@media (max-width: 1024px) {
    .repe-home-hero {
        padding-top: 24px !important;
    }

    .repe-home-hero-bg {
        min-height: 620px !important;
        background-position: 70% center !important;
    }

    .repe-home-hero-bg::before {
        background:
            linear-gradient(180deg,
                rgba(250,248,245,.94) 0%,
                rgba(250,248,245,.76) 44%,
                rgba(250,248,245,.18) 100%) !important;
    }

    .repe-home-hero-content {
        width: min(560px, 100%) !important;
        padding: 72px 24px 48px !important;
        margin: 0 !important;
    }
}

@media (max-width: 640px) {
    .repe-home-hero {
        padding-top: 22px !important;
    }

    .repe-home-hero-bg {
        min-height: 560px !important;
        background-position: 74% center !important;
    }

    .repe-home-hero-content {
        padding-top: 58px !important;
    }
}


/* =========================================================
   RePe Hero Final Adjustment:
   Hero sticks to green header, nav floats on image,
   trustbar removed
   ========================================================= */

/* حذف کامل بخش اصالت کالا / ارسال سریع / پرداخت امن / پشتیبانی */
.repe-home-trustbar {
    display: none !important;
}

/* عکس Hero بدون فاصله از هدر شروع شود */
.repe-home-hero {
    margin: 0 auto 34px !important;
    padding-top: 0 !important;
}

/* Hero دقیقاً از زیر هدر سبز شروع شود و نوار سفید روی آن بیاید */
.repe-home-hero-bg {
    margin-top: 0 !important;
    border-radius: 0 0 26px 26px !important;
    min-height: 690px !important;
}

/* متن Hero کمی پایین‌تر بیاید تا زیر نوار سفید نرود */
.repe-home-hero-content {
    padding-top: 145px !important;
}

/* در موبایل چون منو همبرگری است، عکس هم از زیر هدر شروع شود */
@media (max-width: 1024px) {
    .repe-home-hero {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .repe-home-hero-bg {
        min-height: 600px !important;
        border-radius: 0 0 22px 22px !important;
        background-position: 72% center !important;
    }

    .repe-home-hero-content {
        padding-top: 54px !important;
    }
}

@media (max-width: 640px) {
    .repe-home-hero-bg {
        min-height: 560px !important;
        background-position: 76% center !important;
    }

    .repe-home-hero-content {
        padding-top: 46px !important;
    }
}

