@import "main.css";

.about-hero {
    width: 100%;
    min-height: 100vh; /* در دسکتاپ کل ارتفاع صفحه رو میگیره */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/43465647-aa60-44c6-9b5f-602852449291.png");
    background-size: cover;
    background-position: center;
    direction: rtl;
    padding: 80px 20px; /* فاصله از بالا برای دیده شدن منو */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
}

/* بخش متن */
.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* فونت داینامیک نسبت به اندازه صفحه */
    color: #2D2D2D;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 35px;
}

/* بخش دکمه‌ها */
.hero-btns {
    display: flex;
    flex-wrap: wrap; /* برای اینکه در موبایل‌های خیلی کوچک زیر هم بروند */
    gap: 15px;
}

.hero-btns a {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.btn-primary {
    background-color: #8D5D40;
    color: #fff;
    border: 2px solid #8D5D40;
}

.btn-outline {
    background-color: transparent;
    color: #8D5D40;
    border: 2px solid #8D5D40;
}

.btn-primary:hover {
    background-color: #724a33;
    color: var(--btn-primary-text);
    transform: translateY(-3px);
}

.btn-outline:hover {
    background-color: rgba(141, 93, 64, 0.05);
    transform: translateY(-3px);
}

/* بخش تصویر */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}





.about-section {
    direction: rtl;
    padding: 60px 0;
    background-color: #fff; /* یا رنگ پس‌زمینه سایتت */
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
}

/* --- ستون راست --- */
.right-col {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-wrapper {
    width: 100%;
    height: 300px;
    background: var(--btn-primary-bg);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(141, 93, 64, 0.2);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.1);
}

.play-icon-inner {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.3);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.statistics-box {
    margin: 10px   auto;
    width: 65%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-box);
    border: 3px solid var(--border-default);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.statistics-box .stat-info {
text-align: center;
}

.statistics-box .stat-info h4 {
    font-size: 1.2rem;
}

.statistics-box:nth-child(even) {
    flex-direction: row-reverse;
}

.statistics-box:hover {
    transform: translateY(-5px);
}


.stat-info h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-muted);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* --- ستون چپ --- */
.left-col {
    width: 52%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.about-text-card {
    background: var(--bg-card);
    border: 5px double var(--border-active);
    border-radius: 25px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: auto;
    outline: 5px double var(--border-active);
}

.about-text-card h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.about-text-card p {
    line-height: 2.2;
    font-size: 1.2rem;
    text-align: center;
}

.values-container {
    background: var(--bg-card);
    border: 2px solid var(--border-active);
    border-radius: 25px;
    padding: 30px;
    width: 76%;
}

.values-container h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.value-item {
    flex: 1 1 calc(50% - 15px);
    background: var(--bg-box);
    border: 3px solid var(--border-default);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.value-item img {
    width: 50px;
}

.value-item .value-text p {
    font-size: 1rem ;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    .right-col, .left-col {
        width: 100%;
    }
}


.how-we-help-section{
    margin: 0 auto 20px;
    background-color: inherit;
}

.help-container{
    max-width:1100px;
    margin:auto;
    width:90%;
    display:flex;
    justify-content:space-around;
    align-items:flex-start;
    gap:40px;
}

.section-title{
    font-size: 1.4rem;
    margin-bottom:30px;
}


/* ============================= */
/* steps */
/* ============================= */

.how-steps-col{
    width:40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--border-active);
    border-radius: 18px;
    padding: 20px;
    justify-content: space-around;
    background-color: var(--bg-box);
}

.steps-wrapper{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:30px;
}



/* آیتم هر مرحله */

.step-item{

    display:flex;

    align-items:center;

    gap:45px;
    z-index: 1;
    position:relative;

}


/* دایره عدد */

.step-number{

    width:50px;
    height:50px;
    min-width:50px;
    border-radius:50%;
    border: 3px solid var(--border-active);
    background: var(--bg-card);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    position:relative;
    z-index:2;

}


/* خط اتصال به باکس */

.step-number::after{

    content:"";

    position:absolute;

    right:45px;

    top:50%;

    transform:translateY(-50%);

    width:60px;
    height:3px;
    z-index: 0;
}



/* باکس متن */

.step-content{

    width:100%;

    max-width:320px;

    padding:14px 20px;

    border-radius:15px;

    color:#fff;

    text-align:center;

    font-size:15px;
    z-index: 0;
}



/* رنگ ها */

.step-1 .step-content{
    background:#B9977E;
    z-index: 0;
}

.step-1 .step-number::after{
    background:#B9977E;
    z-index: 0;
}



.step-2 .step-content{
    background:#A68064;
}

.step-2 .step-number::after{
    background:#A68064;
}



.step-3 .step-content{
    background:#8D6E57;
}

.step-3 .step-number::after{
    background:#8D6E57;
}



.step-4 .step-content{
    background:#614D3F;
}

.step-4 .step-number::after{
    background:#614D3F;
}



.step-5 .step-content{
    background:#403229;
}

.step-5 .step-number::after{
    background:#403229;
}



/* ============================= */
/* testimonial */
/* ============================= */

.testimonial-col{
    width:40%;
    border: 2px solid var(--border-active);
    padding: 30px;
    border-radius: 24px ;
    text-align: center;
}

.testimonial-card{
    background-color: var(--bg-card);
    border:2px dashed var(--border-default);
    outline: 3px solid var(--border-default );
    outline-offset: 6px;
    border-radius:12px;
    padding: 20px;
    display:flex;
    flex-direction:column;
    gap:20px;
}


.user-header {
    display:flex;
    align-items:center;
    gap:15px;
}


.user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    overflow: hidden;
    background-image: url("../icons/dd42be7e-2481-4710-9b6d-e5b87a3c2a65.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


.user-info h3{
    font-size: 1.3rem;
}


.testimonial-text{
    font-size: 1rem;
    line-height:1.8;
    text-align:justify;

}


.testimonial-footer{

    display:flex;

    direction: ltr;

    align-items:center;

    gap:10px;

    margin-top:10px;

}

.testimonial-footer img{

    width:20px;

}



/* ============================= */
/* responsive */
/* ============================= */

@media (max-width:992px){

    .help-container{

        flex-direction:column;

    }

    .how-steps-col,
    .testimonial-col{

        width:100%;

    }

}







/* =============================================
   Media Queries (نقاط شکست ریسپانسیو)
   ============================================= */

/* ۱. تبلت‌های بزرگ و لپ‌تاپ‌های کوچک (زیر ۱۰۲۴ پیکسل) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 20px;
    }
    .hero-text h1 {
        font-size: 2rem;
    }

    .about-container {
        gap: 20px;
        width: 95%;
    }

    .about-text-card {
        padding: 25px;
    }

    .statistics-box {
        width: 85%;
    }
}

@media only screen and (max-width: 992px) {
    .stats-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* عریض‌تر شدن باکس‌های آمار برای خوانایی بهتر */
    .statistics-box {
        width: 40%;
        padding: 15px 20px;
    }
}

/* ۲. تبلت‌ها و حالت افقی موبایل (زیر ۷۶۸ پیکسل) */
@media (max-width: 768px) {
    .about-hero {
        min-height: auto; /* ارتفاع ثابت رو برداریم */
        padding: 60px 20px;
    }

    .hero-container {
        flex-direction: column-reverse; /* تصویر میره بالا، متن میاد پایین */
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text p {
        text-align: center; /* در حالت تبلت و موبایل وسط‌چین زیباتره */
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image img {
        max-width: 350px; /* کوچک‌تر کردن تصویر در تبلت */
    }

    .about-section {
        padding: 40px 0;
    }

    .about-container {
        flex-direction: column; /* ستون‌ها زیر هم می‌افتند */
        gap: 40px;
    }

    .right-col, .left-col {
        width: 100%; /* تمام عرض شدن ستون‌ها */
    }

    /* مدیریت ویدیو در موبایل */
    .video-wrapper {
        height: 250px;
    }

    .statistics-box .stat-info h4 {
        font-size: 1rem;
    }

    /* بخش متن اصلی */
    .about-text-card {
        width: 100%;
        outline: none; /* حذف اوت‌لاین برای جلوگیری از شلوغی در موبایل */
        border: 2px solid var(--border-active);
    }

    .about-text-card p {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* بخش ارزش‌ها */
    .values-container {
        width: 100%;
    }

    .value-item {
        flex: 1 1 calc(50% - 15px); /* حفظ حالت دو ستونه در تبلت */
    }
}

/* ۳. موبایل‌های معمولی (زیر ۴۸۰ پیکسل) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column; /* دکمه‌ها زیر هم */
        width: 100%;
    }

    .hero-btns a {
        width: 100%; /* دکمه‌ها تمام‌عرض */
    }

    .hero-image img {
        max-width: 280px;
    }

    .about-section {
        padding: 30px 10px;
    }

    /* کارت‌های آمار در موبایل کوچک */
    .statistics-box {
        width: 70%;
         padding: 20px;
        text-align: center;
        gap: 10px;
    }

    .stat-img {
        width: 60px;
        height: 60px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    /* ارزش‌ها در موبایل تک‌ستونه می‌شوند */
    .value-item {
        flex: 1 1 100%;
        padding: 15px;
    }

    .about-text-card h2 {
        font-size: 1.4rem;
    }

    .about-text-card p {
        font-size: 0.95rem;
        text-align: justify; /* خوانایی بهتر متن طولانی در موبایل */
    }

    .values-container h3 {
        font-size: 1.2rem;
    }
}
