/* Icons - Local Bootstrap Icons */
.header-contact .bi,
.contact .bi {
    font-size: 14px;
    line-height: 1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

/* Legacy icon classes kept harmless for old markup */
.icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.icon-mail,
.icon-phone {
    background: none;
    mask-image: none;
}

/* Menu Button */
.menu-trigger {
    position: absolute;
    right: 95px;
    top: 38px;
    width: 30px;
    height: 22px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

html[dir="ltr"] .menu-trigger {
    right: auto;
    left: 95px;
}

.menu-trigger span {
    height: 2px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

/* Side Panel */
.side-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 410px;
    max-width: 90vw;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(217, 168, 66, .16), transparent 36%), linear-gradient(180deg, #fff 0%, #f8f3ea 100%);
    color: #151515;
    transform: translateX(100%);
    transition: .35s ease;
    z-index: 50;
    padding: 34px 34px 26px;
    box-shadow: -28px 0 70px rgba(0, 0, 0, .32);
}

html[dir="ltr"] .side-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 28px 0 70px rgba(0, 0, 0, .32);
}

.side-panel.open {
    transform: translateX(0);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.panel-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(21, 21, 21, .16);
    background: #fff;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.panel-logo-wrap {
    text-align: center;
    padding: 12px 0 28px;
}

.panel-logo {
    width: 94px;
    height: 94px;
    margin: 0 auto 16px;
    border: 1px solid rgba(157, 111, 30, .45);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d1b17, #5f4219);
    color: #f7d28b;
    direction: ltr;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    box-shadow: 0 18px 38px rgba(95, 66, 25, .28);
}

.panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #17130c;
}

.panel-subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 2;
    color: #6f6048;
}

.panel-info-card {
    margin-top: 12px;
    padding: 22px;
    border: 1px solid rgba(157, 111, 30, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .07);
}

.panel-info-title {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 800;
    color: #9d6f1e;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

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

.info-label {
    font-size: 12px;
    color: #7a6d5b;
    white-space: nowrap;
}

.info-value {
    direction: ltr;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #1c1c1c;
}

.panel-separator {
    margin: 26px 0 20px;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(157, 111, 30, .45), transparent);
}

.social-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: #6f6048;
    text-align: center;
}

.social-list {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #20170c, #b68222);
    box-shadow: 0 12px 24px rgba(157, 111, 30, .24);
    transition: .25s;
}

    .social-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 30px rgba(157, 111, 30, .32);
    }

    .social-link i {
        font-size: 18px;
        line-height: 1;
        color: currentColor;
    }

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 40;
}

    .backdrop.open {
        opacity: 1;
        visibility: visible;
    }

/* =========================
   LANGUAGE SWITCH BAR
   ========================= */

.kd-language-bar {
    position: absolute;
    z-index: 24;
    top: 92px;
    right: 72px;
    left: auto;
    transform: none;
    height: 34px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .34);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .24);
}

/* English / LTR */
html[dir="ltr"] .kd-language-bar {
    right: auto;
    left: 72px;
}

/* Persian / RTL */
html[dir="rtl"] .kd-language-bar {
    right: 72px;
    left: auto;
}

.kd-lang-option {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .05em;
    transition: .25s ease;
    user-select: none;
}

    .kd-lang-option.is-current {
        color: rgba(255, 255, 255, .48);
        background: rgba(255, 255, 255, .07);
        cursor: default;
        pointer-events: none;
    }

    .kd-lang-option.is-target {
        color: #111;
        background: rgba(217, 168, 66, .92);
        box-shadow: 0 8px 22px rgba(217, 168, 66, .22);
    }

        .kd-lang-option.is-target:hover,
        .kd-lang-option.is-target:focus-visible {
            color: #111;
            background: #f0c15a;
            transform: translateY(-1px);
        }

@media (max-width: 1000px) {
    .kd-language-bar {
        top: 84px;
        right: 32px;
        left: auto;
    }

    html[dir="ltr"] .kd-language-bar {
        right: auto;
        left: 32px;
    }

    html[dir="rtl"] .kd-language-bar {
        right: 32px;
        left: auto;
    }

    .menu-trigger {
        right: 72px;
    }

    html[dir="ltr"] .menu-trigger {
        right: auto;
        left: 72px;
    }
}

@media (max-width: 760px) {
    .kd-language-bar {
        top: 78px;
        right: 18px;
        left: auto;
        height: 32px;
    }

    html[dir="ltr"] .kd-language-bar {
        right: auto;
        left: 18px;
    }

    html[dir="rtl"] .kd-language-bar {
        right: 18px;
        left: auto;
    }

    .kd-lang-option {
        width: 40px;
        height: 24px;
        font-size: 10px;
    }

    .menu-trigger {
        right: 22px;
    }

    html[dir="ltr"] .menu-trigger {
        right: auto;
        left: 22px;
    }
}
