/* =============================================================
   Contact.css  —  صفحه «درباره ما / تماس با ما»  (نسخه ۲)
   پالت Industrial Orange؛ این‌بار روشن و سبک:
   زمینه‌ی روشن + طوسی استیل، نارنجی فقط برای تأکید،
   و الگوهای انتزاعی کم‌رنگ (حلقه، شش‌ضلعی، موج، نقطه).
   ============================================================= */

body {
    overflow-x: hidden;
}

.ct-page {
    --ct-orange: #F4511E;
    --ct-orange-2: #FF7043;
    --ct-orange-dark: #D84315;
    --ct-orange-soft: #FDEEE8;
    --ct-steel: #45515C;
    --ct-steel-dark: #3a4650;
    --ct-steel-deep: #323d46;
    --ct-steel-light: #E8ECEF;
    --ct-ink: #2f3a44;
    --ct-bg: #F3F5F6;
    --ct-border: #E1E6EA;
    --ct-muted: #6c7883;
    --ct-error: #D32F2F;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-bottom: 80px;
    direction: rtl;
    color: var(--ct-ink);
    background: var(--ct-bg);
}

    .ct-page,
    .ct-page * {
        font-family: 'Vazir', Tahoma, sans-serif;
        box-sizing: border-box;
    }

        .ct-page a:focus-visible,
        .ct-page button:focus-visible {
            outline: 2px solid var(--ct-orange);
            outline-offset: 3px;
        }

/* ------------------------------------------------------------
   هیرو (روشن)
   ------------------------------------------------------------ */
.ct-hero {
    position: relative;
    padding: 80px 24px 150px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(244, 81, 30, .10), transparent 40%), radial-gradient(circle at 92% 85%, rgba(69, 81, 92, .10), transparent 45%), linear-gradient(180deg, #ffffff, #EEF1F3);
    border-bottom: 1px solid var(--ct-border);
}

    /* شبکه‌ی نقطه‌ای که در لبه‌ها محو می‌شود */
    .ct-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(69, 81, 92, .22) 1.3px, transparent 1.7px);
        background-size: 24px 24px;
        -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
        mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
    }

.ct-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

    .ct-deco .ct-spin {
        transform-box: fill-box;
        transform-origin: center;
        animation: ctSpin 90s linear infinite;
    }

    .ct-deco .ct-spin-rev {
        animation-direction: reverse;
        animation-duration: 120s;
    }

.ct-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ct-ink);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.5;
}

    .ct-hero h1::after {
        content: "";
        display: block;
        width: 56px;
        height: 4px;
        margin: 14px auto 0;
        border-radius: 2px;
        background: var(--ct-orange);
    }

.ct-hero p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 20px auto 0;
    color: var(--ct-muted);
    font-size: 14px;
    line-height: 2;
}

/* ------------------------------------------------------------
   کانتینر
   ------------------------------------------------------------ */
.ct-wrap {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--ct-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

    .ct-heading::before {
        content: "";
        flex: 0 0 auto;
        width: 9px;
        height: 9px;
        border-radius: 2px;
        background: var(--ct-orange);
    }

/* ------------------------------------------------------------
   کارت درباره ما
   ------------------------------------------------------------ */
.ct-about {
    position: relative;
    overflow: hidden;
    margin-top: -76px;
    padding: 44px 42px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(69, 81, 92, .1);
    box-shadow: 0 36px 70px -36px rgba(50, 61, 70, .35);
}

    /* حلقه‌ی انتزاعی کم‌رنگ گوشه */
    .ct-about::before {
        content: "";
        position: absolute;
        top: -70px;
        left: -70px;
        width: 230px;
        height: 230px;
        border-radius: 50%;
        border: 28px solid rgba(244, 81, 30, .06);
        pointer-events: none;
    }

    .ct-about::after {
        content: "";
        position: absolute;
        right: 28px;
        bottom: 18px;
        width: 150px;
        height: 90px;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(69, 81, 92, .22) 1.4px, transparent 1.8px);
        background-size: 16px 16px;
        -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%);
        mask-image: linear-gradient(135deg, #000, transparent 75%);
    }

    .ct-about > * {
        position: relative;
        z-index: 1;
    }

.ct-about-body {
    color: var(--ct-ink);
    font-size: 15px;
    line-height: 2.2;
}

    .ct-about-body p {
        margin: 0 0 12px;
    }

    .ct-about-body:empty::before {
        content: "به‌زودی متن معرفی مجموعه در این بخش قرار می‌گیرد.";
        color: var(--ct-muted);
        font-size: 14px;
    }

/* ------------------------------------------------------------
   گرید: اطلاعات تماس + فرم
   ------------------------------------------------------------ */
.ct-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 26px;
    margin-top: 26px;
    align-items: stretch;
}

/* کارت اطلاعات: طوسی استیل */
.ct-info {
    position: relative;
    padding: 38px 32px;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--ct-steel), var(--ct-steel-deep));
    box-shadow: 0 30px 60px -34px rgba(50, 61, 70, .6);
}

    /* حلقه‌های هم‌مرکز انتزاعی */
    .ct-info::before {
        content: "";
        position: absolute;
        bottom: -110px;
        left: -90px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 34px solid rgba(255, 255, 255, .05);
        box-shadow: 0 0 0 34px rgba(255, 255, 255, .03);
        pointer-events: none;
    }

    .ct-info::after {
        content: "";
        position: absolute;
        top: 20px;
        left: 20px;
        width: 130px;
        height: 90px;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(255, 255, 255, .28) 1.4px, transparent 1.8px);
        background-size: 16px 16px;
        -webkit-mask-image: linear-gradient(315deg, #000, transparent 75%);
        mask-image: linear-gradient(315deg, #000, transparent 75%);
    }

    .ct-info .ct-heading {
        position: relative;
        z-index: 1;
        color: #fff;
    }

.ct-info-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transition: transform .25s ease;
}

    .ct-info-item:last-child {
        border-bottom: none;
    }

    .ct-info-item:hover {
        transform: translateX(-6px);
    }

.ct-info-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

    .ct-info-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: #FFB59E;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke .25s ease;
    }

.ct-info-item:hover .ct-info-icon {
    background: var(--ct-orange);
    border-color: var(--ct-orange);
    transform: rotate(-6deg);
}

    .ct-info-item:hover .ct-info-icon svg {
        stroke: #fff;
    }

.ct-info-text {
    min-width: 0;
    padding-top: 2px;
}

    .ct-info-text b {
        display: block;
        margin-bottom: 3px;
        color: rgba(255, 255, 255, .6);
        font-size: 12.5px;
        font-weight: 500;
    }

    .ct-info-text span,
    .ct-info-text a {
        color: #fff;
        font-size: 14.5px;
        font-weight: 500;
        line-height: 1.9;
        word-break: break-word;
        text-decoration: none;
    }

    .ct-info-text a {
        display: inline-block;
        direction: ltr;
        transition: color .2s ease;
    }

        .ct-info-text a:hover {
            color: #FFB59E;
            text-decoration: none;
        }

/* کارت فرم (سفید) */
.ct-form {
    position: relative;
    overflow: hidden;
    padding: 38px 34px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(69, 81, 92, .1);
    box-shadow: 0 30px 60px -36px rgba(50, 61, 70, .3);
}

    /* نقطه‌های انتزاعی گوشه‌ی فرم */
    .ct-form::before {
        content: "";
        position: absolute;
        top: 16px;
        left: 16px;
        width: 140px;
        height: 100px;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(69, 81, 92, .22) 1.4px, transparent 1.8px);
        background-size: 16px 16px;
        -webkit-mask-image: linear-gradient(315deg, #000, transparent 75%);
        mask-image: linear-gradient(315deg, #000, transparent 75%);
    }

    .ct-form::after {
        content: "";
        position: absolute;
        bottom: -80px;
        right: -80px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        border: 26px solid rgba(244, 81, 30, .05);
        pointer-events: none;
    }

    .ct-form > * {
        position: relative;
        z-index: 1;
    }

.ct-form-sub {
    margin: -6px 0 24px;
    color: var(--ct-muted);
    font-size: 13px;
    line-height: 2;
}

.ct-validation {
    margin-bottom: 16px;
}

    .ct-validation .validation-summary-valid,
    .ct-validation:empty {
        display: none !important;
    }

    .ct-validation ul {
        margin: 0;
        padding: 10px 16px;
        list-style: none;
        border-right: 4px solid var(--ct-error);
        border-radius: 10px;
        background: rgba(211, 47, 47, .07);
        color: var(--ct-error);
        font-size: 12.5px;
        line-height: 1.9;
    }

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

/* فیلد با لیبل شناور */
.ct-field {
    position: relative;
}

    .ct-field input,
    .ct-field textarea {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 16px;
        border: 2px solid var(--ct-border);
        border-radius: 12px;
        background: #fff;
        color: var(--ct-ink);
        font-size: 14.5px;
        font-weight: 500;
        text-align: right;
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .25s ease;
    }

    .ct-field input {
        height: 56px;
    }

    .ct-field textarea {
        min-height: 140px;
        padding: 18px 16px;
        resize: vertical;
        line-height: 1.9;
    }

        .ct-field input:hover,
        .ct-field textarea:hover {
            border-color: #c9d1d8;
        }

        .ct-field input:focus,
        .ct-field textarea:focus {
            outline: none;
            border-color: var(--ct-orange);
            box-shadow: 0 0 0 5px rgba(244, 81, 30, .13);
        }

        .ct-field input::placeholder,
        .ct-field textarea::placeholder {
            color: transparent;
        }

    .ct-field label {
        position: absolute;
        top: 50%;
        right: 12px;
        max-width: calc(100% - 28px);
        margin: 0;
        padding: 0 6px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        background: #fff;
        color: var(--ct-muted);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
        transform: translateY(-50%);
        transform-origin: right center;
        pointer-events: none;
        transition: top .2s ease, transform .2s ease, color .2s ease;
    }

.ct-field-area label {
    top: 28px;
}

.ct-field input:focus + label,
.ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label,
.ct-field textarea:not(:placeholder-shown) + label {
    top: 0;
    color: var(--ct-orange-dark);
    font-weight: 700;
    transform: translateY(-50%) scale(.84);
}

.ct-field-full {
    margin-bottom: 24px;
}

.ct-submit-row {
    display: flex;
    justify-content: flex-end;
}

/* دکمه‌ی فیزیکی با سایه‌ی سخت */
.ct-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    height: 56px;
    padding: 0 30px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ct-orange);
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 0 var(--ct-orange-dark), 0 18px 26px -12px rgba(244, 81, 30, .6);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

    .ct-btn svg {
        width: 19px;
        height: 19px;
        transition: transform .25s ease;
    }

    .ct-btn::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -60%;
        width: 40%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
        transform: skewX(-19deg);
        transition: right .6s ease;
    }

    .ct-btn:hover {
        background: var(--ct-orange-2);
        transform: translateY(-2px);
        box-shadow: 0 8px 0 var(--ct-orange-dark), 0 24px 32px -12px rgba(244, 81, 30, .65);
    }

        .ct-btn:hover::after {
            right: 130%;
        }

        .ct-btn:hover svg {
            transform: translateX(-4px);
        }

    .ct-btn:active {
        transform: translateY(5px);
        box-shadow: 0 1px 0 var(--ct-orange-dark), 0 6px 10px -6px rgba(244, 81, 30, .5);
    }

/* ------------------------------------------------------------
   انیمیشن
   ------------------------------------------------------------ */
@keyframes ctSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------
   ریسپانسیو
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .ct-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ct-hero {
        padding: 56px 18px 130px;
    }

        .ct-hero h1 {
            font-size: 30px;
        }

    .ct-about {
        margin-top: -62px;
        padding: 32px 22px;
    }

    .ct-info {
        padding: 30px 22px;
    }

    .ct-form {
        padding: 28px 20px;
    }

    .ct-submit-row {
        justify-content: stretch;
    }

    .ct-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ct-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-deco .ct-spin {
        animation: none !important;
    }

    .ct-page * {
        transition: none !important;
    }
}
