:root {
    --text-color : #303030; 
    --text-color-01 : #17431f;
    --text-color-02 : #4B6352;
    --text-color-03: #98B88D;
    --background-color: #FFFFFF;
    --primary-color: #D2E2CD;
    --secondary-color: #15371A;
    --hover-color: #668862;
    --gray: #fcfbf9fd;
    --font-size-text: clamp(0.805vw, 14px, 1vw);
    --font-size-headings: clamp(0.85vw, 15px, 0.95vw);
    --font-size-btn : clamp(0.7vw, 12px, 0.9vw);
    --section-spacing: clamp(13vh, 10vw, 15vh);
    --header-menus: clamp(0.81vw, 15px, 0.93vw);
}

/* ==================== MAIN BANNER ==================== */
.hero-parallax-wrapper {
    position: relative;
    z-index: 1;
}

.main-banner {
    position: sticky; 
    top: clamp(68px, 8.9vh, 69px);
    width: 100%;
    height: 69vh;
    overflow: hidden;
    background-color: #e7e7e7; 
    z-index: 1;
}

.banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.desktop-media { display: block; }
.mobile-media { display: none; }

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.055); 
    z-index: 2;
}

@media (max-width: 1100px) {
    .main-banner {
        height: 50vh;
        margin-top: -50px;
    }
    .desktop-media {
        display: none !important;
    }
    .mobile-media {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .main-banner {
        height: 50vh;
        margin-top: -40px;
    }
    
    /* سوئیچ کردن بنرها در موبایل */
    .desktop-media {
        display: none !important;
    }
    .mobile-media {
        display: block !important;
    }
}


/* =========================================
   ABOUT STONEWARE SECTION STYLES
========================================= */

.about-stoneware-section {
    position: relative;
    background-color: var(--gray);
    padding: 19vh 0 20vh; 
    z-index: 10;
}

.about-stoneware-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0; 
    width: 23vw; 
    z-index: 1;
    pointer-events: none; 
    display: none;
    align-items: center; 
    justify-content: flex-start;
}

.sticky-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sticky-image img {
    --img-width: 100%;      
    --img-max-height: 75vh;
    width: var(--img-width);
    height: auto;
    max-height: var(--img-max-height);
    object-fit: contain;
    object-position: left center;
}

.desktop-sticky-img { display: block; }
.mobile-sticky-img { display: none; }

.about-stoneware-content-area {
    position: relative;
    z-index: 2; 
    width: 75%; 
}

.about-stoneware-header-title {
    display: flex;
    align-items: baseline;
    gap: 0.6vw;;
    margin-bottom: 4.2vh;
    flex-wrap: wrap;
}

.about-stoneware-header-title h2 {
    font-size: clamp(1.3vw, 20px, 1.4vw);
    color: var(--text-color-03); 
    font-weight: 700;
}

.about-stoneware-header-title .sub-title {
    font-size:  clamp(0.9vw, 15.5px, 1.3vw);
    color: var(--text-color-01);
    font-weight: 600;
}

div.about-stoneware-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 2.3;
}

/* اضافه شدن scroll-margin-top برای اینکه هنگام اسکرول، تیتر زیر منو نره */
.text-block {
    scroll-margin-top: 120px;
}

.text-block h3 {
    font-size: clamp(0.85vw, 15px, 1.2vw);
    color: #3a3a3a;
    font-weight: 700;
}

div.about-stoneware-text-blocks li { list-style-type: disc; margin-right: 20px; }
html[dir="ltr"] div.about-stoneware-text-blocks li { list-style-type: disc; margin-left: 20px; }

div.about-stoneware-text-blocks p {
    font-size: var(--font-size-text);
    color: var(--text-color);
    text-align: justify;
    font-weight: 400;
    margin-bottom: 25px;
}

.stoneware-content-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    border-radius: 3px;
    margin: 35px 38% 35px 0px;
    display: block;
}


/* استایل‌های مربوط به زبان انگلیسی (LTR) */
html[dir="ltr"] .about-stoneware-header-title {
    flex-direction: row;
}
html[dir="ltr"] div.about-stoneware-text-blocks p,
html[dir="ltr"] .text-block h3 {
    text-align: left;
}
html[dir="ltr"] .stoneware-content-image {
    margin: 40px 0px 40px 40%;
}

/* =========================================
   RESPONSIVE (Mobile & Tablet)
========================================= */
@media (max-width: 1024px) {
    .about-stoneware-section { padding: 120px 0 200px; }
    .about-stoneware-content-area { width: 100%; padding-right: 0; }
    .about-stoneware-header-title {
        flex-direction: row; 
        align-items: baseline;
        flex-wrap: wrap; 
        gap: 10px;
        margin-bottom: 30px;
    }
    .about-stoneware-header-title h2,
    .about-stoneware-header-title .sub-title,
    .text-block h3,
    .text-block p {
        text-align: right !important;
        justify-content: flex-start;
        align-items: flex-start;
    }
    html[dir="ltr"] .about-stoneware-header-title h2,
    html[dir="ltr"] .about-stoneware-header-title .sub-title,
    html[dir="ltr"] .text-block h3,
    html[dir="ltr"] .text-block p {
        text-align: left !important;
    }

    .about-stoneware-header-title h2 { font-size: 20px; }
    .about-stoneware-header-title .sub-title { font-size: 17px; }
    div.about-stoneware-text-blocks h3 { font-size: 15px !important; }
    div.about-stoneware-text-blocks p { font-size: 14px !important; }

    .desktop-sticky-img { display: none; }
    .mobile-sticky-img { display: block; }
    .about-stoneware-image-wrapper {
        width: 100%; 
        opacity: 1; 
        top: auto; 
        bottom: 0; 
        height: 380px; 
        display: flex;
        align-items: flex-end; 
        justify-content: center; 
    }
    .sticky-image {
        position: relative; 
        bottom: auto;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: flex-end; 
        justify-content: center;
    }
    .sticky-image img {
        --img-width: 43%; 
        width: var(--img-width);
        max-height: 100%;
        object-fit: contain;
        object-position: center bottom; 
        margin-left: 0;
        margin-bottom: 0; 
    }
    .stoneware-content-image {width: 90%; max-width: 60%; margin: 25px auto !important;}
    html[dir="ltr"] .stoneware-content-image {width: 60%; max-width: 90%; margin: 25px auto !important;}
}

@media (max-width: 600px) {
    .about-stoneware-section { padding: 100px 0 160px; }
    .about-stoneware-header-title { gap: 5px; margin-bottom: 23px; }
    .about-stoneware-header-title h2 { font-size: 21px; }
    .about-stoneware-header-title .sub-title { font-size: 16px; }
    div.about-stoneware-text-blocks h3 { font-size: 16px !important; }
    div.about-stoneware-text-blocks p { font-size: 14px; margin-bottom: 10px; }
    .about-stoneware-text-blocks { gap: 28px; }
    .about-stoneware-image-wrapper { height: 250px; }
    .sticky-image img { --img-width: 65%; }
    .about-stoneware-text-blocks img { margin: 15px auto; width: 94%; }
    html[dir="ltr"] .about-stoneware-text-blocks img { margin: 15px auto; }
    .stoneware-content-image {width: 90%; max-width: 90%; margin: 15px auto;}
    html[dir="ltr"] .stoneware-content-image {width: 90%; max-width: 90%; margin: 15px auto;}
}

/* =========================================
   TABLE OF CONTENTS (TOC) STYLES
========================================= */

.stoneware-toc {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 50px;
    width: 80%;
    margin-left: auto;
    margin-right: 0; 
}

html[dir="ltr"] .stoneware-toc { margin-right: auto; margin-left: 0;}

.toc-item {
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0; 
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0; 
    text-decoration: none;
    background-color: transparent; 
    transition: 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; 
    cursor: pointer;
}

.toc-item::before {
    display: none;
}

.toc-item .toc-text {
    font-size: clamp(0.85vw, 15px, 1.2vw);
    color: var(--text-color);
    font-weight: 500;
    transition: 0.1s ease, color 0.3s ease;
    margin: 0;
}

html[dir="ltr"] .toc-item .toc-text {
    margin: 0;
    font-size: clamp(0.85vw, 15px, 1.2vw);
    font-weight: 600;
}

.toc-item .toc-icon {
    color: rgba(0, 0, 0, 0.25); 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.toc-item .toc-icon svg {
    width: 16px; 
    height: auto; 
    fill: none;
}

.toc-item:hover {
    background-color: transparent; 
    border-bottom-color: #194224;
}

.toc-item:hover .toc-text {
    color: #194224; 
}


.toc-item:hover .toc-icon {
    color: #194224;
}

/* =========================================
   RESPONSIVE TOC
========================================= */
@media (max-width: 1024px) {
    .stoneware-toc { width: 100%; margin-bottom: 40px; margin-right: auto; }
    .toc-item { padding: 20px 0; }
    .toc-item .toc-text { font-size: 15px; line-height: 1.6; max-width: 85%; }
    html:lang(en), html[dir="ltr"] .toc-item .toc-text { font-size: 16px; }
}

@media (max-width: 600px) {
    .stoneware-toc { margin-bottom: 30px; }
    .toc-item { padding: 16px 0; }
    .toc-item .toc-text { font-size: 14px; line-height: 1.6; max-width: 85%; }
    .toc-item .toc-icon svg { width: 14px; }
    html:lang(en), html[dir="ltr"] .toc-item .toc-text { font-size: 14px; }
}


