/* ============================================================
   فونت Estedad — سراسری
   ============================================================ */

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   متغیرهای سراسری
   ============================================================ */

:root {
    color-scheme: light;

    /* ===== 3 رنگ اصلی ===== */
    --bg:             #fefefe;
    --primary:        #011627;
    --accent:         #b9d2b1;

    /* ===== رنگ‌های کمکی برای سازگاری با کدهای قبلی ===== */
    --primary-hover:  #02233f;
    --primary-light:  #e5eee8; /* ترکیب ملایم مکمل و سفید */
    --accent-1:       #b9d2b1;
    --accent-2:       #b9d2b1;
    --accent-3:       #b9d2b1;

    /* ===== فونت‌ها ===== */
    --font-body:      'Estedad', 'Segoe UI', Tahoma, sans-serif;
    --font-heading:   'Estedad', 'Segoe UI', Tahoma, sans-serif;
}

/* ===== رنگ‌های متنی (انعطاف برای خوانایی) ===== */
html, body {
    background: var(--bg);
    color: #111827; /* متن اصلی */
}

/* ============================================================
   اعمال سراسری فونت
   ============================================================ */

/* همه چیز — با !important که استایل‌های کامپوننت‌ها رو هم بگیره */
html,
body,
button,
input,
select,
textarea,
optgroup,
option {
    font-family: var(--font-body) !important;
}

/* تیترها */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* وزن‌های متداول */
body {
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* دکمه‌ها همیشه پررنگ */
button,
.btn {
    font-weight: 700;
}