:root {
    --c-black: #0a0a0c;
    --c-black-2: #111114;
    --c-slate: #1c1d22;
    --c-slate-2: #2a2c33;
    --c-steel: #5c5f6a;
    --c-offwhite: #f4f2ee;
    --c-white: #ffffff;
    --c-wine: #800020;
    --c-wine-bright: #a4142f;
    --c-wine-glow: #c01a3a;
    --c-text: #e8e6e1;
    --c-text-muted: #9b9aa0;
    --c-border: rgba(255, 255, 255, 0.08);

    --font-fa: 'Vazirmatn', Tahoma, sans-serif;
    --font-en: 'Inter', system-ui, sans-serif;
    --container-width: 1240px;
    --header-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    color: var(--c-text);
    background-color: var(--c-black);
    line-height: 1.7;
    overflow-x: hidden;
}

body.locale-fa {
    font-family: var(--font-fa);
}

body.locale-en {
    font-family: var(--font-en);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--c-wine-glow);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--c-wine-bright);
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    height: var(--header-height);
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}

.site-logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--c-offwhite);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.site-logo::before {
    content: "";
    width: 18px;
    height: 26px;
    background: var(--c-wine);
    clip-path: polygon(0 0, 100% 18%, 82% 100%, 12% 82%);
}

.site-logo:hover {
    color: var(--c-white);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--c-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    inset-block-end: -6px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--c-wine-bright);
    transition: width 0.25s ease;
}

.site-nav a:hover {
    color: var(--c-white);
}

.site-nav a:hover::after {
    width: 100%;
}

.lang-switch {
    display: inline-flex;
    gap: 0.4rem;
}

.lang-switch a {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

[dir="ltr"] .site-logo::before {
    clip-path: polygon(0 18%, 100% 0, 88% 82%, 18% 100%);
}

[dir="ltr"] .lang-switch a {
    clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
}

.lang-switch a.is-active,
.lang-switch a:hover {
    background: var(--c-wine);
    border-color: var(--c-wine);
    color: var(--c-white);
}

/* ===== Main / Footer base ===== */
.site-main {
    min-height: 60vh;
}

.site-footer {
    background: var(--c-black);
    color: var(--c-text-muted);
}

/* generic helpers reused by home */
.page-title {
    margin: 0 0 1rem;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--c-offwhite);
}

.page-lead {
    margin: 0 0 2rem;
    color: var(--c-text-muted);
    max-width: 42rem;
}
