﻿/* ==========================================================
   صفحه ارتباط با ما  |  پیشوند اختصاصی: CON
   ========================================================== */

.CON-page {
    /* پالت */
    --CON-bg: #f5f7fb;
    --CON-surface: #ffffff;
    --CON-text: #0f172a;
    --CON-muted: #64748b;
    --CON-line: rgba(15, 23, 42, .07);
    --CON-soft: #f1f5f9;
    --CON-soft-h: #e2e8f0;
    /* رنگ هر بخش */
    --CON-sales-1: #6366f1;
    --CON-sales-2: #a855f7;
    --CON-ship-1: #0ea5e9;
    --CON-ship-2: #06b6d4;
    --CON-tech-1: #10b981;
    --CON-tech-2: #22c55e;
    /* رنگ آیتم‌های دسترسی سریع */
    --CON-quick-shop-1: #f59e0b;
    --CON-quick-shop-2: #f97316;
    /* سایه و حرکت */
    --CON-sh: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .10);
    --CON-sh-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);
    --CON-r: 22px;
    --CON-ease: cubic-bezier(.4, 0, .2, 1);
    position: relative;
    direction: rtl;
    min-height: 100vh;
    padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
    background: var(--CON-bg);
    color: var(--CON-text);
    overflow: hidden;
}

/* --------- لکه‌های پس‌زمینه --------- */
.CON-blob {
    position: absolute;
    z-index: 0;
    width: clamp(220px, 40vw, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .28;
    pointer-events: none;
}

.CON-blob--a {
    top: -8%;
    inset-inline-end: -6%;
    background: var(--CON-sales-1);
}

.CON-blob--b {
    bottom: -10%;
    inset-inline-start: -6%;
    background: var(--CON-ship-1);
}

.CON-wrap {
    position: relative;
    z-index: 1;
    max-width: 1060px;
    margin-inline: auto;
}

/* --------- هدر --------- */
.CON-head {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.CON-logo-box {
    width: clamp(64px, 14vw, 88px);
    aspect-ratio: 1;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    padding: 12px;
    background: #90CAF9;
    border: 1px solid var(--CON-line);
    border-radius: 22px;
    box-shadow: var(--CON-sh);
}

.CON-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.CON-title {
    margin: 0 0 .6rem;
    font-family: 'Vazir';
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.CON-lead {
    max-width: 46ch;
    margin: 0 auto;
    color: var(--CON-muted);
    font-family: 'Vazir';
    font-size: clamp(1.3rem, 2.4vw, 1.62rem);
    line-height: 1.9;
}

/* ==========================================================
   دسترسی سریع (ورود از QR کد)
   ========================================================== */
.CON-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(.7rem, 2vw, 1rem);
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.CON-quick__item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.2rem;
    background: var(--CON-surface);
    border: 1px solid var(--CON-line);
    border-radius: 18px;
    box-shadow: var(--CON-sh);
    color: var(--CON-text);
    text-decoration: none !important;
    opacity: 0;
    transform: translateY(14px);
    animation: CON-quick-in .5s var(--CON-ease) forwards;
    transition: transform .25s var(--CON-ease), box-shadow .25s var(--CON-ease);
}

    /* ورود پلکانی */
    .CON-quick__item:nth-child(1) {
        animation-delay: .05s;
    }

    .CON-quick__item:nth-child(2) {
        animation-delay: .15s;
    }

    .CON-quick__item:nth-child(3) {
        animation-delay: .25s;
    }

    .CON-quick__item:nth-child(4) {
        animation-delay: .35s;
    }

@keyframes CON-quick-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (hover: hover) {
    .CON-quick__item:hover {
        transform: translateY(-4px);
        box-shadow: var(--CON-sh-lg);
    }
}

.CON-quick__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--CON-soft);
    color: var(--CON-muted);
    transition: transform .3s var(--CON-ease);
}

    .CON-quick__icon svg {
        width: 22px;
        height: 22px;
    }

@media (hover: hover) {
    .CON-quick__item:hover .CON-quick__icon {
        transform: scale(1.08) rotate(-4deg);
    }
}

.CON-quick__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    font-family: 'Vazir';
}

    .CON-quick__text strong {
        font-size: clamp(1.32rem, 2.4vw, 1.5rem);
        font-weight: 800;
        line-height: 1.5;
    }

    .CON-quick__text small {
        font-size: clamp(1.1rem, 2vw, 1.25rem);
        color: var(--CON-muted);
    }

.CON-quick__arrow {
    text-decoration: none !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-inline-start: auto;
    color: var(--CON-muted);
    transition: transform .25s var(--CON-ease);
}

@media (hover: hover) {
    .CON-quick__item:hover .CON-quick__arrow {
        transform: translateX(-4px);
    }
}

/* --- آیتم اصلی: فروشگاه (تمام‌عرض و برجسته) --- */
.CON-quick__item--shop {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--CON-quick-shop-1), var(--CON-quick-shop-2));
    border: 0;
    color: #fff;
    box-shadow: 0 14px 30px -12px var(--CON-quick-shop-2);
}

    .CON-quick__item--shop .CON-quick__icon {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    .CON-quick__item--shop .CON-quick__text small,
    .CON-quick__item--shop .CON-quick__arrow {
        color: rgba(255, 255, 255, .85);
    }

@media (hover: hover) {
    .CON-quick__item--shop:hover {
        box-shadow: 0 22px 44px -14px var(--CON-quick-shop-2);
    }
}

/* --- رنگ آیکن آیتم‌های فرعی --- */
.CON-quick__item--service .CON-quick__icon {
    background: color-mix(in srgb, var(--CON-ship-1) 12%, transparent);
    color: var(--CON-ship-1);
}

.CON-quick__item--terms .CON-quick__icon {
    background: color-mix(in srgb, var(--CON-sales-1) 12%, transparent);
    color: var(--CON-sales-1);
}

.CON-quick__item--faq .CON-quick__icon {
    background: color-mix(in srgb, var(--CON-tech-1) 12%, transparent);
    color: var(--CON-tech-1);
}

.CON-quick__item:focus-visible {
    outline: 2px solid var(--CON-sales-1);
    outline-offset: 2px;
}

/* --------- گرید کارت‌ها --------- */
.CON-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* --------- کارت --------- */
.CON-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.1rem) clamp(1.1rem, 3vw, 1.6rem);
    background: var(--CON-surface);
    border: 1px solid var(--CON-line);
    border-radius: var(--CON-r);
    box-shadow: var(--CON-sh);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--CON-ease), transform .5s var(--CON-ease), box-shadow .3s var(--CON-ease);
}

.CON-card--in {
    opacity: 1;
    transform: none;
}

@media (hover: hover) {
    .CON-card--in:hover {
        transform: translateY(-6px);
        box-shadow: var(--CON-sh-lg);
    }
}

/* نوار رنگی بالای کارت */
.CON-card__line {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 4px;
}

.CON-card--sales .CON-card__line {
    background: linear-gradient(90deg, var(--CON-sales-1), var(--CON-sales-2));
}

.CON-card--ship .CON-card__line {
    background: linear-gradient(90deg, var(--CON-ship-1), var(--CON-ship-2));
}

.CON-card--tech .CON-card__line {
    background: linear-gradient(90deg, var(--CON-tech-1), var(--CON-tech-2));
}

/* آیکن */
.CON-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    color: #fff;
    transition: transform .3s var(--CON-ease);
}

    .CON-card__icon svg {
        width: 27px;
        height: 27px;
    }

.CON-card--sales .CON-card__icon {
    background: linear-gradient(135deg, var(--CON-sales-1), var(--CON-sales-2));
    box-shadow: 0 10px 22px -10px var(--CON-sales-1);
}

.CON-card--ship .CON-card__icon {
    background: linear-gradient(135deg, var(--CON-ship-1), var(--CON-ship-2));
    box-shadow: 0 10px 22px -10px var(--CON-ship-1);
}

.CON-card--tech .CON-card__icon {
    background: linear-gradient(135deg, var(--CON-tech-1), var(--CON-tech-2));
    box-shadow: 0 10px 22px -10px var(--CON-tech-1);
}

@media (hover: hover) {
    .CON-card:hover .CON-card__icon {
        transform: scale(1.06) rotate(-4deg);
    }
}

/* متن کارت */
.CON-card__dept {
    margin: 0 0 .4rem;
    font-family: 'Vazir';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--CON-muted);
    letter-spacing: .02em;
}

.CON-card__name {
    margin: 0 0 clamp(1.1rem, 3vw, 1.5rem);
    font-family: 'Vazir';
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 800;
}

/* --------- دکمه‌های تماس --------- */
.CON-card__actions {
    display: flex;
    gap: .5rem;
    width: 100%;
    margin-top: auto;
}

.CON-tel {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1rem;
    background: var(--CON-soft);
    border-radius: 14px;
    color: var(--CON-text);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.5rem);
    text-decoration: none;
    letter-spacing: .03em;
    transition: background .2s var(--CON-ease), color .2s var(--CON-ease);
}

    .CON-tel svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.CON-card--sales .CON-tel:hover {
    background: color-mix(in srgb, var(--CON-sales-1) 12%, #fff);
    color: var(--CON-sales-1);
}

.CON-card--ship .CON-tel:hover {
    background: color-mix(in srgb, var(--CON-ship-1) 12%, #fff);
    color: var(--CON-ship-1);
}

.CON-card--tech .CON-tel:hover {
    background: color-mix(in srgb, var(--CON-tech-1) 12%, #fff);
    color: var(--CON-tech-1);
}

.CON-copy {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    padding: 0;
    background: var(--CON-soft);
    border: 0;
    border-radius: 14px;
    color: var(--CON-muted);
    cursor: pointer;
    transition: background .2s var(--CON-ease), color .2s var(--CON-ease), transform .2s var(--CON-ease);
}

    .CON-copy svg {
        width: 18px;
        height: 18px;
    }

    .CON-copy:hover {
        background: var(--CON-soft-h);
        color: var(--CON-text);
    }

    .CON-copy:active {
        transform: scale(.94);
    }

.CON-copy--done {
    background: #dcfce7;
    color: #16a34a;
}

/* فوکوس قابل مشاهده برای دسترس‌پذیری */
.CON-tel:focus-visible,
.CON-copy:focus-visible {
    outline: 2px solid var(--CON-sales-1);
    outline-offset: 2px;
}

/* --------- ساعات پاسخگویی --------- */
.CON-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: fit-content;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
    padding: .8rem 1.4rem;
    background: var(--CON-surface);
    border: 1px solid var(--CON-line);
    border-radius: 999px;
    box-shadow: var(--CON-sh);
    color: var(--CON-muted);
    font-family: 'Vazir';
    font-size: clamp(1.42rem, 2.4vw, 1.62rem);
    text-align: center;
}

    .CON-note svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

/* --------- توست --------- */
.CON-toast {
    position: fixed;
    inset-block-end: clamp(1rem, 4vw, 2rem);
    inset-inline-start: 50%;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.4rem;
    background: #1e293b;
    border-radius: 999px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .6);
    transform: translateX(50%) translateY(160%);
    opacity: 0;
    transition: transform .35s var(--CON-ease), opacity .25s var(--CON-ease);
}

    .CON-toast svg {
        width: 17px;
        height: 17px;
        color: #4ade80;
    }

.CON-toast--on {
    transform: translateX(50%) translateY(0);
    opacity: 1;
}

/* --------- موبایل --------- */
@media (max-width: 480px) {
    .CON-card {
        padding: 1.4rem 1.1rem;
    }

    .CON-card__icon {
        width: 52px;
        margin-bottom: 1rem;
    }

    .CON-card__actions {
        flex-direction: row;
    }

    .CON-note {
        width: auto;
    }

    .CON-quick {
        grid-template-columns: 1fr;
    }

    .CON-quick__item {
        padding: .9rem 1rem;
    }
}

/* --------- کاهش انیمیشن --------- */
@media (prefers-reduced-motion: reduce) {
    .CON-card,
    .CON-card__icon,
    .CON-toast,
    .CON-quick__item,
    .CON-quick__icon,
    .CON-quick__arrow {
        transition: none !important;
        animation: none !important;
    }

    .CON-card,
    .CON-quick__item {
        opacity: 1;
        transform: none;
    }
}

/* --------- حالت تاریک --------- */
@media (prefers-color-scheme: dark) {
    .CON-page {
        --CON-bg: #0b1120;
        --CON-surface: #131c2e;
        --CON-text: #e8eef7;
        --CON-muted: #94a3b8;
        --CON-line: rgba(255, 255, 255, .07);
        --CON-soft: rgba(255, 255, 255, .05);
        --CON-soft-h: rgba(255, 255, 255, .09);
    }

    .CON-blob {
        opacity: .18;
    }

    .CON-copy--done {
        background: rgba(34, 197, 94, .18);
        color: #4ade80;
    }
}
