/* ==========================================
   ABOUT PAGE
========================================== */

.about-page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 0;
    background-color: #26140d;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align:right;
}

.about-page-hero-content {
    width: min(620px, 90%);
    margin-right: 10%;
    margin-left: auto;
}

.about-page-eyebrow {
    margin-bottom: 14px;
    color: var(--maya-yellow);
    font-size: 1.25rem;
    font-weight: 900;
}

.about-page-hero h1 {
    margin: 0 0 22px;
    color: var(--maya-white);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 900;
}

.about-page-hero-content > p:last-child {
    max-width: 650px;
    margin:0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    text-align:right;
}


/* STORY */

.about-story-section {
    padding: var(--space-xl) 0;
    background: var(--maya-white);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--maya-yellow-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    text-align: right;
}

.about-story-content h2 {
    margin-bottom: 24px;
    color: var(--maya-black);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 900;
}

.about-story-content p {
    margin-bottom: 18px;
    color: var(--maya-text-muted);
    font-size: 1.08rem;
    line-height: 2.15;
    text-align: justify;
}

.about-story-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}


/* VALUES */

.about-values-section {
    padding: var(--space-xl) 0;
    background: var(--maya-surface);
}

.about-values-heading {
    margin-bottom: 42px;
    text-align: center;
}

.about-values-heading h2 {
    color: var(--maya-black);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.about-value-card {
    padding: 42px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: right;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.about-value-card:nth-child(1) {
    background: var(--maya-yellow-soft);
}

.about-value-card:nth-child(2) {
    background: var(--maya-green-soft);
}

.about-value-card:nth-child(3) {
    background: var(--maya-red-soft);
}

.about-value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.about-value-card h3 {
    margin-bottom: 16px;
    color: var(--maya-black);
    font-size: 1.8rem;
    font-weight: 900;
}

.about-value-card p {
    color: var(--maya-text-muted);
    line-height: 2;
}


/* PREPARATION */

.about-preparation-section {
    padding: var(--space-xl) 0;
    background: var(--maya-white);
}

.about-preparation-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--maya-green-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-preparation-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.about-preparation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 64px;
    text-align: right;
}

.about-preparation-content h2 {
    margin-bottom: 24px;
    color: var(--maya-black);
    font-size: clamp(2.7rem, 4.5vw, 4.3rem);
    font-weight: 900;
}

.about-preparation-content p {
    margin-bottom: 30px;
    color: var(--maya-text-muted);
    font-size: 1.08rem;
    line-height: 2.15;
    text-align: justify;
}

.about-rich-text p {
    margin: 0 0 16px;
    color: var(--maya-text-muted);
    font-size: 1.05rem;
    line-height: 2.1;
    text-align: justify;
}

.about-rich-text p:last-child {
    margin-bottom: 0;
}

/* STYLE MAYA */

.about-style-section {
    padding: var(--space-xl) 0;
    background: var(--maya-white);
}

.about-style-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--maya-orange-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-style-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.about-style-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    text-align: right;
}

.about-style-content h2 {
    margin-bottom: 24px;
    color: var(--maya-black);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 900;
}

/* ==========================================
   ABOUT PAGE — MOBILE
========================================== */

@media (max-width: 991px) {

    /* HERO */

    .about-page-hero {
        min-height: 620px;
        align-items: flex-end;
        padding: 0 0 54px;
        background-position: center center;
    }

    .about-page-hero .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-inline: 24px;
        box-sizing: border-box;
    }

    .about-page-hero-content {
        width: 100%;
        max-width: 390px;
        margin: 0;
        direction: rtl;
        text-align: right;
    }

    .about-page-eyebrow {
        margin: 0 0 10px;
        font-size: 1rem;
    }

    .about-page-hero h1 {
        margin: 0 0 16px;
        font-size: clamp(40px, 12vw, 58px);
        line-height: 1.2;
    }

    .about-page-hero-content > p:last-child {
        width: 100%;
        max-width: 340px;
        margin: 0;
        font-size: 0.95rem;
        line-height: 2;
        text-align: right;
    }


    /* فاصله و کانتینر سکشن‌ها */

    .about-story-section,
    .about-style-section,
    .about-preparation-section {
        padding: 16px 12px 0;
        box-sizing: border-box;
    }

    .about-story-section > .container,
    .about-style-section > .container,
    .about-values-section > .container,
    .about-preparation-section > .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .about-values-grid {
        gap: 14px;
    }

    .about-value-card {
        border-radius: 24px;
        overflow: hidden;
    }

    .about-values-section {
        padding: 40px 12px 20px;
        box-sizing: border-box;
        background: var(--maya-white);
    }

    /* داستان مایا */

    .about-story-grid {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 24px;
    }

    .about-story-image {
        order: 1;
        width: 100%;
        height: 280px;
        overflow: hidden;
    }

    .about-story-image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .about-story-content {
        order: 2;
        width: 100%;
        padding: 28px 24px 30px;
        box-sizing: border-box;
        direction: rtl;
        text-align: right;
        
    }

    .about-story-content h2 {
        width: 100%;
        margin: 0 0 18px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.3;
        text-align: center;
        color: var(--maya-red);
    }

    /* سبک مایا */

    .about-style-grid {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 24px;
    }

    .about-style-image {
        order: 1;
        width: 100%;
        height: 280px;
        overflow: hidden;
    }

    .about-style-image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .about-style-content {
        order: 2;
        width: 100%;
        padding: 28px 24px 30px;
        box-sizing: border-box;
        direction: rtl;
        text-align: right;
    }

    .about-style-content h2 {
        width: 100%;
        margin: 0 0 18px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.3;
        text-align: center;
        color: var(--maya-red);
    }

    /* متن‌های مشترک */

    .about-rich-text {
        width: 100%;
    }

    .about-rich-text p,
    .about-story-content p,
    .about-style-content p,
    .about-preparation-content p {
        width: 100%;
        max-width: none;
        margin: 0 0 16px;
        font-size: 0.95rem;
        line-height: 2;
        direction: rtl;
        text-align: right;
        overflow-wrap: break-word;
    }

    .about-rich-text p:last-child {
        margin-bottom: 0;
    }


    /* ارزش‌های مایا */

    .about-values-heading {
        margin-bottom: 22px;
        padding: 0;
    }

    .about-values-heading h2 {
        margin: 0;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.3;
        color: var(--maya-red);
    }

    .about-values-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-value-card {
        width: 100%;
        padding: 26px 22px;
        box-sizing: border-box;
        text-align: right;
        transform: none;
        border-radius:24px;
        overflow:hidden;
        box-shadow:var(--shadow-sm);
    }

    .about-value-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .about-value-card h3 {
        margin: 0 0 12px;
        font-size: 1.55rem;
        line-height: 1.4;
    }


    /* آماده‌سازی */

    .about-preparation-grid {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 24px;
    }

    .about-preparation-image {
        order: 1;
        width: 100%;
        height: 280px;
        overflow: hidden;
    }

    .about-preparation-image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .about-preparation-content {
        order: 2;
        width: 100%;
        padding: 28px 24px 30px;
        box-sizing: border-box;
        align-items: flex-end;
        direction: rtl;
        text-align: right;
    }

    .about-preparation-content h2 {
        width: 100%;
        margin: 0 0 18px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.3;
        text-align: center;
        color: var(--maya-red);
    }
}

@media (max-width: 480px) {

    .about-page-hero {
        min-height: 590px;
        padding-bottom: 42px;
    }

    .about-page-hero .container {
        padding-inline: 20px;
    }

    .about-page-hero h1 {
        font-size: 40px;
    }

    .about-story-image,
    .about-style-image,
    .about-preparation-image {
        height: 240px;
    }

    .about-story-content,
    .about-style-content,
    .about-preparation-content {
        padding: 24px 20px 26px;
    }

    .about-value-card {
        padding: 24px 20px;
    }
}
