/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ===== Design Tokens ===== */
:root {
    /* رنگ پایه: پس‌زمینه روشن و پالت طلایی خورشیدی بسیار کم‌رنگ */
    --color-bg: #ffffff;
    --color-bg-alt: #fcfaf6;
    --color-surface: #fffdfa;
    --color-surface-2: #f7efe3;

    --color-text: #1f1b17;
    --color-text-muted: #6d655d;
    --color-text-dim: #9a9187;

    /* طلایی خیلی ملایم و روشن با حس لاکچری و گرم */
    --color-accent: #e9d9b8;
    --color-accent-light: #f7ebd8;
    --color-accent-dark: #d8c09a;

    /* رنگ سوم بینابینی: کرم/بژ گرم بسیار روشن */
    --color-secondary: #f2e8d8;

    --color-border: rgba(31, 27, 23, 0.08);

    /* گرادینت امضادار بسیار ظریف */
    --gradient-accent: linear-gradient(135deg, #f8efe0 0%, #e9d9b8 60%, #dfcda6 100%);
    --gradient-dark: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(31,27,23,0.05) 100%);

    /* تایپوگرافی */
    --font-main: 'Vazir', Tahoma, sans-serif;

    --fs-xs: 0.8rem;
    --fs-sm: 0.9rem;
    --fs-base: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: 3.5rem;

    /* فاصله‌گذاری */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* شعاع گردی */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    /* سایه */
    --shadow-sm: 0 6px 18px rgba(31,27,23,0.05);
    --shadow-md: 0 12px 36px rgba(31,27,23,0.07);
    --shadow-lg: 0 24px 70px rgba(31,27,23,0.1);
    --shadow-glow: 0 0 22px rgba(233,217,184,0.16);

    /* ترنزیشن */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.2s var(--ease);
    --t-normal: 0.4s var(--ease);
    --t-slow: 0.7s var(--ease);

    --header-height: 88px;
    --header-height-mobile: 72px;
}

/* ===== Base ===== */
body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-text);
}

/* ===== Layout ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Reusable: متن گرادینتی طلایی ===== */
.text-gold {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Reusable: سربرگ‌های بخش ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.8rem;
    padding: 0.38rem 0.8rem;
    border: 1px solid rgba(216, 192, 154, 0.7);
    border-radius: var(--radius-full);
    background: rgba(233, 217, 184, 0.14);
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.section-title {
    margin: 0 0 1.55rem;
    font-size: clamp(1.9rem, 5vw, 2.75rem);
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.9rem;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin: 0.8rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(233,217,184,0) 0%, rgba(233,217,184,0.95) 50%, rgba(233,217,184,0) 100%);
    box-shadow: 0 0 10px rgba(233,217,184,0.25);
}

.section-title .text-gold {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Reusable: دکمه پایه ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-base);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: calc(var(--radius-full) - 4px);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #3d342b;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-dark);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: rgba(233,217,184,0.14);
    border-color: var(--color-accent-dark);
    transform: translateY(-3px);
}