/* ========================================
   Reset
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ========================================
   HTML
======================================== */

html {
    min-height: 100%;

    scroll-behavior: smooth;

    overflow-x: hidden;
}


/* ========================================
   Body
======================================== */

body {
    min-height: 100vh;

    background: #f5f7fb;

    color: #111827;

    font-family: inherit;

    overflow-x: hidden;
}


/* ========================================
   Consultants Page
======================================== */

.consultants-page {
    min-height: 100vh;

    padding: 32px clamp(24px, 6vw, 88px) 120px;
}


/* ========================================
   Header
======================================== */

.page-header {
    width: 100%;
}


.header-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* ========================================
   Brand
======================================== */

.brand {
    display: inline-flex;
    align-items: center;

    color: #172554;

    font-size: 28px;
    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.1s ease;
}


.brand:hover {
    color: #1e3a8a;
}


.brand:active {
    transform: translateY(1px);
}


/* ========================================
   Back Button
======================================== */

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 16px;

    border: 1px solid #dbe3ef;
    border-radius: 10px;

    background: #ffffff;

    color: #172554;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.back-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #172554;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.08);
}


.back-button:active {
    transform: translateY(1px);
}


/* ========================================
   Page Intro
======================================== */

.page-intro {
    width: 100%;
    max-width: 1200px;

    margin: 58px auto 52px;

    text-align: center;
}


.page-intro h1 {
    margin-bottom: 14px;

    color: #111827;

    font-size: 34px;
    line-height: 1.6;
    font-weight: 800;
}


.page-intro p {
    max-width: 560px;

    margin: 0 auto;

    color: #6b7280;

    font-size: 16px;
    line-height: 2;
}


/* ========================================
   Consultants Section
======================================== */

.consultants-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* ========================================
   Consultants Grid
======================================== */

.consultants-grid {
    display: flex;

    flex-wrap: wrap;

    align-items: stretch;
    justify-content: center;

    gap: 36px;

    row-gap: 48px;
}


/* ========================================
   فاصله بین Grid مشاوران ارشد
   و Grid سایر مشاوران
======================================== */

.consultants-grid + .consultants-grid {
    margin-top: 48px;
}


/* ========================================
   Group Break
======================================== */

.group-break {
    flex: 0 0 100%;

    height: 0;
}


.consultants-grid > .group-break:first-child {
    display: none;
}


/* ========================================
   Consultant Card
======================================== */

.consultant-card {
    flex: 0 1 calc((100% - 72px) / 3);

    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5eaf2;
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.consultant-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.08);
}


/* ========================================
   Poster
   (پوستر با نسبت اصلی خودش نمایش داده میشه و برش نمی‌خوره)
======================================== */

.consultant-poster {
    width: 100%;

    overflow: hidden;

    background: #eef2f7;

    border-radius: 10px;
}


.consultant-poster img {
    display: block;

    width: 100%;
    height: auto;
}


/* ========================================
   Consultant Info
======================================== */

.consultant-info {
    flex: 1;

    padding: 24px 10px 6px;

    display: flex;
    flex-direction: column;
}


.consultant-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}


.consultant-head h3 {
    color: #172554;

    font-size: 19px;
    line-height: 1.7;
    font-weight: 800;
}


/* ========================================
   Role Badge
======================================== */

.role-badge {
    flex-shrink: 0;

    height: 30px;

    padding: 0 12px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f1f5f9;

    color: #172554;

    font-size: 12px;
    font-weight: 700;
}


.role-badge-manager {
    background: #172554;

    color: #ffffff;
}


.role-badge-senior {
    background: #ea580c;

    color: #ffffff;
}


/* ========================================
   Details
======================================== */

.consultant-details {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-bottom: 14px;
}


.detail-row {
    display: flex;

    align-items: baseline;

    gap: 10px;

    padding: 8px 0;

    border-bottom: 1px solid #eef2f7;
}


.detail-row:last-child {
    border-bottom: none;
}


.detail-row dt {
    flex-shrink: 0;

    min-width: 96px;

    color: #6b7280;

    font-size: 13px;
    font-weight: 500;
}


.detail-row dd {
    color: #111827;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
}


/* ========================================
   Description
======================================== */

.consultant-description {
    margin-bottom: 20px;

    color: #6b7280;

    font-size: 14px;
    line-height: 2;
}


/* ========================================
   Card Footer
======================================== */

.consultant-footer {
    margin-top: auto;

    padding-top: 18px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border-top: 1px solid #eef2f7;
}


/* ========================================
   Reserve Button (inside card)
======================================== */

.reserve-button {
    flex: 1 1 100%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 44px;

    padding: 0 20px;

    border-radius: 10px;

    background: #172554;

    color: #ffffff;

    border: 1px solid #172554;

    text-decoration: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.reserve-button:hover {
    background: #1e3a8a;

    border-color: #1e3a8a;

    box-shadow:
        0 6px 16px rgba(23, 37, 84, 0.15);
}


.reserve-button:active {
    transform: translateY(1px);
}


/* ========================================
   Action Buttons
======================================== */

.action-button {
    flex: 1 1 0;

    min-width: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 44px;

    padding: 0 12px;

    border-radius: 10px;

    background: #ffffff;

    color: #172554;

    border: 1px solid #dbe3ef;

    text-decoration: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.action-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.08);
}


.action-button:active {
    transform: translateY(1px);
}


/* ========================================
   Empty State
======================================== */

.empty-state {
    padding: 48px 24px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5eaf2;
    border-radius: 14px;

    color: #6b7280;

    font-size: 15px;
    line-height: 2;
}


/* ========================================
   Plans Section
======================================== */

.plans-section {
    width: 100%;

    margin-top: 110px;
}


.plans-content {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    text-align: center;
}


.section-label {
    margin-bottom: 18px;

    color: #172554;

    font-size: 15px;
    font-weight: 700;
}


.plans-content h2,
.reserve-box h2 {
    margin-bottom: 18px;

    color: #111827;

    font-size: 28px;
    line-height: 1.7;
    font-weight: 800;
}


.section-description {
    max-width: 620px;

    margin: 0 auto;

    color: #6b7280;

    font-size: 16px;
    line-height: 2.1;
}


/* ========================================
   Plans
======================================== */

.plans {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-top: 48px;
}


.plan-card {
    padding: 30px 24px;

    text-align: right;

    background: #ffffff;

    border: 1px solid #dbe3ef;
    border-radius: 12px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.plan-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);
}


.plan-card h3 {
    margin-bottom: 10px;

    color: #172554;

    font-size: 18px;
    line-height: 1.8;
    font-weight: 700;
}


.plan-price {
    margin-bottom: 14px;

    color: #111827;

    font-size: 22px;
    line-height: 1.6;
    font-weight: 800;
}


.plan-card p {
    color: #6b7280;

    font-size: 14px;
    line-height: 2;
}


/* ========================================
   Featured Plan
======================================== */

.plan-card-featured {
    background: #172554;

    border-color: #172554;
}


.plan-card-featured:hover {
    box-shadow:
        0 10px 28px rgba(23, 37, 84, 0.22);
}


.plan-card-featured h3,
.plan-card-featured .plan-price {
    color: #ffffff;
}


.plan-card-featured p {
    color: #cbd5e1;
}


/* ========================================
   Reserve Section
======================================== */

.reserve-section {
    width: 100%;

    margin-top: 110px;
}


.reserve-box {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    padding: 44px 32px 40px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dbe3ef;
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.03);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.reserve-box:hover,
.reserve-box:focus-within {
    transform: translateY(-4px);

    border-color: #cbd5e1;

    box-shadow:
        0 16px 40px rgba(23, 37, 84, 0.12);
}


.reserve-box > p:first-of-type {
    max-width: 520px;

    margin: 0 auto;

    color: #6b7280;

    font-size: 16px;
    line-height: 2.1;
}


/* ========================================
   Telegram Button
======================================== */

.telegram-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 220px;
    height: 50px;

    margin-top: 30px;

    padding: 0 24px;

    border-radius: 10px;

    background: #172554;

    color: #ffffff;

    border: 1px solid #172554;

    text-decoration: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.telegram-button:hover {
    background: #1e3a8a;

    border-color: #1e3a8a;

    box-shadow:
        0 6px 16px rgba(23, 37, 84, 0.15);
}


.telegram-button:active {
    transform: translateY(1px);
}


/* ========================================
   Telegram Note
======================================== */

.telegram-note {
    max-width: 460px;

    margin: 20px auto 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 2;
}


/* ========================================
   Telegram Address
======================================== */

.telegram-address {
    display: inline-block;

    max-width: 100%;

    margin-top: 12px;

    padding: 10px 18px;

    background: #f8fafc;

    color: #172554;

    border: 1px solid #dbe3ef;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    direction: ltr;

    word-break: break-word;

    user-select: text;
}


/* ========================================
   Keyboard Focus
======================================== */

.back-button:focus-visible,
.brand:focus-visible,
.reserve-button:focus-visible,
.action-button:focus-visible,
.telegram-button:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 3px;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 1000px) {

    .consultant-card {
        flex-basis: calc((100% - 36px) / 2);
    }

}


/* ========================================
   Mobile
======================================== */

@media (max-width: 700px) {

    .plans {
        grid-template-columns: 1fr;
    }

}


/* ========================================
   Small Mobile
======================================== */

@media (max-width: 640px) {

    .consultants-page {
        padding: 20px 20px 90px;
    }


    .brand {
        font-size: 24px;
    }


    .back-button {
        min-height: 40px;

        padding: 0 12px;

        font-size: 13px;
    }


    .page-intro {
        margin: 40px auto 36px;
    }


    .page-intro h1 {
        font-size: 28px;
    }


    .page-intro p {
        font-size: 15px;
    }


    .consultants-grid {
        gap: 24px;

        row-gap: 32px;
    }


    .consultants-grid + .consultants-grid {
        margin-top: 32px;
    }


    .consultant-card {
        flex-basis: 100%;

        max-width: 440px;

        padding: 14px;
    }


    .plans-section,
    .reserve-section {
        margin-top: 80px;
    }


    .plans-content h2,
    .reserve-box h2 {
        font-size: 24px;
    }


    .section-description,
    .reserve-box > p:first-of-type {
        font-size: 14px;

        line-height: 2.2;
    }


    .plans {
        gap: 14px;

        margin-top: 36px;
    }


    .plan-card {
        padding: 24px 20px;

        text-align: center;
    }


    .reserve-box {
        padding: 36px 20px 32px;
    }


    .telegram-button {
        width: 100%;
        max-width: 300px;
    }


    .telegram-note {
        max-width: 300px;

        font-size: 13px;

        line-height: 2.1;
    }

}


/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {

    .consultant-card,
    .plan-card,
    .reserve-box {
        transition: none;
    }


    .consultant-card:hover,
    .plan-card:hover,
    .reserve-box:hover,
    .reserve-box:focus-within {
        transform: none;
    }

}