﻿/* =========================================================
   VARIABLES
========================================================= */

:root {
    --chap-blue: #1c4482;
    --chap-purple: #561c82;
    --chap-magenta: #821c70;
    --text-dark: #20283a;
    --text-body: #3d4250;
    --text-muted: #8a8f99;
    --white: #ffffff;
    --container-width: 1320px;
}


/* =========================================================
   FONT
========================================================= */

@font-face {
    font-family: "btitrbd";
    src: url("../font/btitrbd.otf") format("opentype");
    font-display: swap;
}


/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


.labels-page {
    width: 100%;
    direction: rtl;
    overflow-x: hidden;
    font-family: "peyda", sans-serif;
    background-image: url("/image/labels/backlabelshero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.labels-container {
    width: min( var(--container-width), calc(100% - 80px) );
    margin-inline: auto;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   HERO
========================================================= */

.labels-hero {
    width: 100%;
    padding: 180px 80px 0;
    background-color: rgb(255 255 255 / 37%);
}


/* =========================================================
   HERO GRID
========================================================= */

.labels-hero__grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr 0.5fr;
    gap: 0;
    align-items: center;
}


.labels-hero__content,
.labels-hero__media {
    min-width: 0;
}


/* =========================================================
   HERO VERSIONS
========================================================= */

.hero-text--desktop,
.hero-text--tablet,
.hero-text--mobile {
    display: none;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.labels-hero__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.desktop-contact {
    width: 100%;
    max-width: 290px;
    padding: 26px 22px 20px;
    border: 1px solid rgb(86 28 130 / 8%);
    border-radius: 24px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 15px 40px rgb(28 68 130 / 8%), 0 3px 10px rgb(86 28 130 / 4%);
}


.desktop-contact__header {
    display: flex;
    align-items: center;
    gap: 12px;
}


    .desktop-contact__header h2 {
        margin: 0;
        color: var(--chap-purple);
        font-size: 20px;
        font-weight: 800;
    }


.desktop-contact__header-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--chap-purple);
    color: var(--white);
    font-size: 20px;
}


.desktop-contact__divider {
    height: 1px;
    margin: 20px 0 26px;
    border: 0;
    background: rgb(86 28 130 / 20%);
}


/* =========================================================
   CONTACT METHODS
========================================================= */

.contact-method {
    justify-self: right;
    display: flex;
    align-items: center;
    gap: 35px;
    margin-right: 5px;
    margin-bottom: 21px;
}


.contact-method__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
}


    .contact-method__icon a {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        color: inherit;
        text-decoration: none;
    }


.contact-method__icon--phone {
    color: #008f28;
    background: rgb(0 143 40 / 10%);
}


.contact-method__icon--whatsapp {
    color: #25d366;
    background: rgb(37 211 102 / 10%);
}


.contact-method__icon--telegram {
    color: #229ed9;
    background: rgb(34 158 217 / 10%);
}


.contact-method__icon--instagram {
    color: #e4405f;
    background: rgb(228 64 95 / 10%);
}


.contact-method__icon--email {
    color: var(--chap-blue);
    background: rgb(28 68 130 / 8%);
}


.contact-method__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}


.contact-method__label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
}


.contact-method__content a {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
}


.contact-method__content small {
    color: var(--text-muted);
    font-size: 11px;
}


/* =========================================================
   TABLET CONTACT
========================================================= */

.tablet-contact {
    display: none;
    width: 100%;
    margin-top: 30px;
    padding: 14px 0;
    background: rgb(255 255 255 / 95%);
    border-top: 1px solid rgb(86 28 130 / 8%);
    border-bottom: 1px solid rgb(86 28 130 / 8%);
}


.tablet-contact__inner {
    width: calc(100% - 48px);
    margin-inline: auto;
    display: flex;
    align-items: stretch;
}


.tablet-contact__item {
    flex: 1;
    min-width: 0;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgb(86 28 130 / 15%);
}


    .tablet-contact__item:last-child {
        border-left: 0;
    }


.tablet-contact .contact-method {
    margin: 0;
    gap: 12px;
}


/* =========================================================
   MOBILE CONTACT
========================================================= */

.mobile-contact {
    display: none;
}


/* =========================================================
   BUTTONS
========================================================= */

.consultation-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--chap-purple);
    color: var(--white);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


    .consultation-btn:hover {
        background: var(--chap-magenta);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgb(86 28 130 / 25%);
    }


    .consultation-btn:active {
        transform: translateY(0);
    }


.products-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 25px;
    font-size: 15px;
}


.products-btn__arrow {
    display: flex;
    line-height: 1;
    transition: transform 0.3s ease;
}


.products-btn:hover .products-btn__arrow {
    transform: translateY(4px);
}


/* =========================================================
   PRODUCT SECTION
========================================================= */

.product-section {
    scroll-margin-top: 120px;
    width: 100%;
    padding: 60px 20px;
    background-color: rgb(255 255 255 / 37%);
}


.product-heading {
    width: 100%;
    margin-bottom: 35px;
    text-align: center;
}


    .product-heading span {
        display: block;
        margin-bottom: 8px;
        color: #777;
        font-size: 14px;
        font-weight: 500;
    }


    .product-heading h2 {
        margin: 0;
        color: #222;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.5;
    }


.product-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    width: 100%;
    padding: 14px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgb(0 0 0 / 8%);
    }


.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}


    .product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }


.product-card:hover .product-image img {
    transform: scale(1.04);
}


.product-title {
    margin: 18px 0 14px;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}


.product-btn {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--chap-blue);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


    .product-btn:hover {
        background: #5188dd;
    }


    .product-btn:active {
        transform: scale(0.97);
    }


/* =========================================================
   SEO SECTION
========================================================= */

.seo-section {
    width: 100%;
    padding: 80px 20px;
    background-color: rgb(255 255 255 / 37%);
}


.seo-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================================
   SEO HEADING
========================================================= */

.seo-heading {
    margin-bottom: 35px;
    text-align: center;
}


    .seo-heading > span {
        display: block;
        margin-bottom: 8px;
        color: #777;
        font-size: 14px;
        font-weight: 500;
    }


    .seo-heading h2 {
        margin: 0;
        padding-bottom: 15px;
        color: #222;
        font-size: 28px;
        font-weight: 700;
    }


    .seo-heading p {
        margin: 0 auto;
        max-width: 850px;
        color: #555;
        font-size: 15px;
        line-height: 2;
    }


/* =========================================================
   ACCORDION
========================================================= */

.seo-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.seo-item {
    width: 100%;
    overflow: hidden;
    background: rgb(255 255 255 / 88%);
    border: 1px solid rgb(0 0 0 / 6%);
    border-radius: 14px;
    transition: box-shadow 0.3s ease;
}


    .seo-item:hover {
        box-shadow: 0 8px 25px rgb(0 0 0 / 6%);
    }


    .seo-item summary {
        position: relative;
        min-height: 70px;
        padding: 18px 24px 18px 65px;
        display: flex;
        align-items: center;
        cursor: pointer;
        list-style: none;
        user-select: none;
    }


        .seo-item summary::-webkit-details-marker {
            display: none;
        }


        .seo-item summary::marker {
            content: "";
        }


        .seo-item summary h3 {
            margin: 0;
            color: #222;
            font-size: 18px;
            font-weight: 600;
            line-height: 1.8;
        }


        .seo-item summary::after {
            content: "+";
            position: absolute;
            left: 22px;
            top: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateY(-50%);
            border-radius: 50%;
            background: #f2f2f2;
            color: #222;
            font-size: 22px;
            font-weight: 300;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }


    .seo-item[open] {
        box-shadow: 0 10px 30px rgb(0 0 0 / 7%);
    }


        .seo-item[open] summary::after {
            content: "−";
            transform: translateY(-50%) rotate(180deg);
            background: #e9e9e9;
        }


.seo-content {
    padding: 0 24px 24px;
    animation: seoOpen 0.35s ease;
}


    .seo-content p {
        margin: 0;
        color: #555;
        font-size: 15px;
        font-weight: 400;
        line-height: 2;
        text-align: justify;
    }


@keyframes seoOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   BREADCRUMB BOX
========================================================= */

.lpbc {
    width: 100%;
    margin-bottom: 20px !important;
    border-radius: 15px;
    background-color: #ffffff52;
}


/* =========================================================
   DESKTOP
   1200px+
========================================================= */

@media (min-width: 1200px) {

    .hero-text--desktop {
        width: 100%;
        max-width: 650px;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .hero-desktop__badge {
        margin-bottom: 8px;
        padding: 9px 22px;
        border: 1px solid rgb(86 28 130 / 45%);
        border-radius: 999px;
        background: rgb(86 28 130 / 6%);
        color: var(--chap-purple);
        font-family: sans-serif;
        font-size: 14px;
        font-weight: 600;
    }


    .hero-desktop__title {
        color: var(--text-dark);
        font-family: btitrbd;
        font-size: 60px;
        font-weight: 900;
        line-height: 1.25;
    }


        .hero-desktop__title span {
            display: block;
            color: var(--chap-purple);
        }


    .hero-desktop__divider {
        width: 220px;
        margin: 20px 0 12px;
        display: flex;
        align-items: center;
        gap: 5px;
    }


        .hero-desktop__divider::before,
        .hero-desktop__divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgb(130 28 112 / 35%);
        }


        .hero-desktop__divider span {
            width: 6px;
            height: 6px;
            border: 1.5px solid var(--chap-magenta);
            transform: rotate(45deg);
        }


    .hero-desktop__description {
        width: 100%;
        max-width: 570px;
        margin: 0;
        color: var(--text-body);
        font-size: 16px;
        font-weight: 500;
        line-height: 2;
    }


    .hero-desktop__contact {
        width: 100%;
        margin-top: 10px;
        padding: 10px 12px;
        border: 1px solid rgb(86 28 130 / 60%);
        border-radius: 10px;
        background: rgb(255 255 255 / 90%);
    }


    .hero-desktop__contact-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        color: var(--chap-purple);
        font-size: 19px;
        font-weight: 700;
    }


    .desktop-contact {
        display: block;
    }
}


/* =========================================================
   TABLET
   768px - 1199px
========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    .labels-container {
        width: calc(100% - 48px);
    }


    .labels-hero {
        padding: 160px 0 0;
    }


    .labels-page {
        background-attachment: scroll;
    }


    .labels-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
        gap: 34px;
    }


    .hero-text--tablet {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .hero-tablet__badge {
        margin-top: 20px;
        margin-bottom: 10px;
        padding: 7px 17px;
        border: 1px solid rgb(86 28 130 / 40%);
        border-radius: 999px;
        background: rgb(86 28 130 / 6%);
        color: var(--chap-purple);
        font-family: sans-serif;
        font-size: 13px;
        font-weight: 600;
    }


    .hero-tablet__title {
        color: var(--text-dark);
        font-family: btitrbd;
        font-size: 56px;
        font-weight: 900;
        line-height: 1.3;
    }


        .hero-tablet__title span {
            display: block;
            color: var(--chap-purple);
        }


    .hero-tablet__divider {
        width: 180px;
        margin: 16px 0 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }


        .hero-tablet__divider::before,
        .hero-tablet__divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgb(130 28 112 / 35%);
        }


        .hero-tablet__divider span {
            width: 5px;
            height: 5px;
            border: 1.5px solid var(--chap-magenta);
            transform: rotate(45deg);
        }


    .hero-tablet__description {
        width: 100%;
        margin: 0;
        color: var(--text-body);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.9;
    }


    .hero-tablet__quality {
        width: 100%;
        margin-top: 10px;
        padding: 9px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgb(86 28 130 / 25%);
        border-radius: 10px;
    }


        .hero-tablet__quality p {
            margin: 0;
            color: var(--chap-purple);
            font-size: 15px;
            line-height: 1.8;
        }


    .hero-tablet__quality-icon {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border: 2px solid var(--chap-magenta);
        border-radius: 50%;
        color: var(--chap-magenta);
        font-size: 17px;
    }


    .hero-tablet__contact {
        width: 100%;
        margin-top: 10px;
        padding: 9px 10px;
        border: 1px solid rgb(86 28 130 / 50%);
        border-radius: 10px;
        background: rgb(255 255 255 / 90%);
    }


    .hero-tablet__contact-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: var(--chap-purple);
        font-size: 14px;
        font-weight: 700;
    }


    .hero-tablet__contact p {
        margin: 3px 0 0;
        color: #666d78;
        font-size: 15px;
    }


    .hero-tablet__phone-icon {
        color: var(--chap-magenta);
        font-size: 19px;
    }


    .desktop-contact {
        display: none;
    }


    .tablet-contact {
        display: block;
    }
}


/* =========================================================
   PRODUCT + SEO TABLET
========================================================= */

@media (max-width: 992px) {

    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }


    .product-heading {
        margin-bottom: 30px;
    }


        .product-heading h2 {
            font-size: 25px;
        }


    .seo-section {
        padding: 65px 24px;
    }


    .seo-container {
        max-width: 800px;
    }


    .seo-heading h2 {
        font-size: 25px;
    }
}


/* =========================================================
   MOBILE
   0 - 767px
========================================================= */

@media (max-width: 767px) {

    .labels-page {
    }


    .labels-container {
        width: calc(100% - 32px);
    }


    .labels-hero {
        padding: 130px 0 40px;
    }


    .labels-hero__grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }


    .labels-hero__content {
        width: 100%;
        order: 1;
    }


    .labels-hero__media {
        width: 100%;
        order: 2;
    }


    .hero-text--mobile {
        width: 100%;
        margin-top: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .hero-mobile__badge {
        margin-bottom: 15px;
        padding: 7px 15px;
        border: 1px solid rgb(86 28 130 / 40%);
        border-radius: 999px;
        background: rgb(86 28 130 / 6%);
        color: var(--chap-purple);
        font-family: sans-serif;
        font-size: 16px;
        font-weight: 600;
    }


    .hero-mobile__title {
        color: var(--text-dark);
        font-family: btitrbd;
        font-size: 65px;
        font-weight: 900;
        line-height: 1.35;
    }


        .hero-mobile__title span {
            display: block;
            color: var(--chap-purple);
        }


    .hero-mobile__divider {
        width: 160px;
        margin: 16px 0;
        display: flex;
        align-items: center;
        gap: 5px;
    }


        .hero-mobile__divider::before,
        .hero-mobile__divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgb(130 28 112 / 35%);
        }


        .hero-mobile__divider span {
            width: 5px;
            height: 5px;
            border: 1.5px solid var(--chap-magenta);
            transform: rotate(45deg);
        }


    .hero-mobile__description {
        width: 100%;
        margin: 0;
        color: var(--text-body);
        font-size: 15px;
        font-weight: 500;
        line-height: 2;
    }


    .hero-mobile__quality {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgb(86 28 130 / 25%);
        border-radius: 10px;
        background: rgb(86 28 130 / 3%);
    }


        .hero-mobile__quality p {
            margin: 0;
            color: var(--chap-purple);
            font-size: 16px;
            line-height: 1.8;
        }


    .hero-mobile__quality-icon {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border: 2px solid var(--chap-magenta);
        border-radius: 50%;
        color: var(--chap-magenta);
        font-size: 16px;
    }


    .desktop-contact,
    .tablet-contact {
        display: none;
    }


    .mobile-contact {
        display: block;
        width: 100%;
        padding: 0 16px 35px;
    }


    .mobile-contact__card {
        width: 100%;
        max-width: 520px;
        margin-top: 20px;
        margin-inline: auto;
        padding: 22px 14px 14px;
        border: 1px solid rgb(86 28 130 / 10%);
        border-radius: 26px;
        background: rgb(255 255 255 / 88%);
        box-shadow: 0 12px 35px rgb(86 28 130 / 10%);
    }


    .mobile-contact__header {
        margin-bottom: 10px;
        padding: 0 5px 18px;
        border-bottom: 1px dashed rgb(86 28 130 / 16%);
        text-align: center;
    }


        .mobile-contact__header p {
            margin: 0;
        }


    .mobile-contact__title {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--chap-purple);
    }


    .mobile-contact__title-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--chap-purple);
        color: var(--white);
    }


    .mobile-contact .contact-method {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
}


/* =========================================================
   MOBILE PRODUCT + SEO
========================================================= */

@media (max-width: 576px) {

    .product-section {
        padding: 40px 16px;
    }


    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }


    /*
       عدد 40px را همان مقدار پروژه خودت نگه داشتم
       تا ظاهر کارت‌ها تغییر نکند.
    */

    .product-card {
        padding: 40px;
        border-radius: 12px;
    }


    .product-image {
        border-radius: 9px;
    }


    .product-title {
        margin: 12px 0 10px;
        font-size: 14px;
    }


    .product-btn {
        height: 40px;
        border-radius: 8px;
        font-size: 13px;
    }


    .product-heading {
        margin-bottom: 25px;
    }


        .product-heading span {
            font-size: 13px;
        }


        .product-heading h2 {
            font-size: 22px;
        }


    .seo-section {
        padding: 50px 15px;
    }


    .seo-heading {
        margin-bottom: 25px;
    }


        .seo-heading h2 {
            font-size: 22px;
        }


        .seo-heading p {
            font-size: 14px;
        }


    .seo-item {
        border-radius: 11px;
    }


        .seo-item summary {
            min-height: 62px;
            padding: 14px 16px 14px 55px;
        }


            .seo-item summary h3 {
                font-size: 15px;
                line-height: 1.7;
            }


            .seo-item summary::after {
                left: 15px;
                width: 28px;
                height: 28px;
                font-size: 20px;
            }


    .seo-content {
        padding: 0 16px 18px;
    }


        .seo-content p {
            font-size: 14px;
            line-height: 2;
        }
}


/* =========================================================
   VERY SMALL MOBILE
   390px-
========================================================= */

@media (max-width: 390px) {

    .labels-container {
        width: calc(100% - 24px);
    }


    .labels-hero {
        padding-top: 115px;
    }


    .hero-mobile__title {
        font-size: 50px;
    }


    .hero-mobile__description {
        font-size: 14px;
    }


    .product-container {
        grid-template-columns: 1fr;
    }


    .product-title {
        font-size: 16px;
    }


    .product-btn {
        font-size: 14px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
