/******************************************************************
   Theme Name: VamResan
   File       : base.css
   Description: استایل‌های پایه و مشترک تمام صفحات
   Version    : 2.0 (استاندارد)
******************************************************************/

/* ================================================================
   🎨 1. متغیرهای سراسری (Custom Properties)
   ================================================================ */

   :root {
    /* ===== رنگ‌ها ===== */
    --primary-color: #f8b600;
    --secondary-color: #081223;
    --text-color: #777777;
    --white: #fff;
    
    --color-primary: #1f9d57;
    --color-primary-dark: #0f7a45;
    --color-primary-light: #e8f5ed;
    --color-primary-bg: #f0faf5;
    
    --color-secondary: #0f1a30;
    --color-secondary-dark: #081223;
    
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #dc2626;
    --color-info: #3b82f6;
    
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg: #f8fafc;
    --color-border: #f1f5f9;
    
    /* ===== گرادیانت‌ها ===== */
    --gradient-primary: linear-gradient(135deg, #1f9d57, #0f7a45);
    --gradient-hero: linear-gradient(165deg, #f8fafc 0%, #e8f5ed 40%, #d4f0e0 100%);
    --gradient-cta: linear-gradient(135deg, #0f1a30, #081223);
    
    /* ===== سایه‌ها ===== */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 20px rgba(31, 157, 87, 0.3);
    --shadow-primary-hover: 0 8px 40px rgba(31, 157, 87, 0.4);
    
    /* ===== گردی گوشه ===== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ===== تایپوگرافی ===== */
    --font-family: 'Vazir', 'Poppins', sans-serif;
    --font-family-arabic: 'Amiri', 'Times New Roman', serif;
    
    /* ===== فاصله‌گذاری ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 60px;
    
    /* ===== کانتینر ===== */
    --container-max: 1200px;
    --container-padding: 20px;
    
    /* ===== ترنزیشن ===== */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== Z-Index ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
}

/* ================================================================
   🧹 2. ریست و یکنواخت‌سازی مرورگرها
   ================================================================ */

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-webkit-input-placeholder {
    color: var(--text-color);
    font-weight: 300;
}

:-moz-placeholder {
    color: var(--text-color);
    opacity: 1;
    font-weight: 300;
}

::-moz-placeholder {
    color: var(--text-color);
    opacity: 1;
    font-weight: 300;
}

:-ms-input-placeholder {
    color: var(--text-color);
    font-weight: 300;
}

::-ms-input-placeholder {
    color: var(--text-color);
    font-weight: 300;
}

body {
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.625em;
    position: relative;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

select {
    display: block;
}

figure {
    margin: 0;
}

a {
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

a,
a:focus,
a:hover {
    text-decoration: none;
    outline: 0;
}

iframe {
    border: 0;
}

td,
th {
    border-radius: 0px;
}

/* ================================================================
   📝 3. تایپوگرافی (عنوان‌ها)
   ================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    color: #222222;
    line-height: 1.2em;
    margin: 0;
    font-weight: 600;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #222222;
    margin: 0;
}

h1,
.h1 { font-size: 36px; }
h2,
.h2 { font-size: 30px; }
h3,
.h3 { font-size: 24px; }
h4,
.h4 { font-size: 18px; }
h5,
.h5 { font-size: 16px; }
h6,
.h6 { font-size: 14px; }

b,
sup,
sub,
u,
del {
    color: var(--primary-color);
}

/* ================================================================
   📏 4. کلاس‌های فاصله‌گذاری (Margin & Padding)
   ================================================================ */

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-70 { margin-top: 70px; }
.mt-80 { margin-top: 80px; }
.mt-100 { margin-top: 100px; }
.mt-120 { margin-top: 120px; }
.mt-150 { margin-top: 150px; }

.mb-0 { margin-bottom: 0px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mb-70 { margin-bottom: 70px; }
.mb-80 { margin-bottom: 80px; }
.mb-90 { margin-bottom: 90px; }
.mb-100 { margin-bottom: 100px; }

.ml-0 { margin-left: 0; }
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.ml-20 { margin-left: 20px; }
.ml-30 { margin-left: 30px; }
.ml-50 { margin-left: 50px; }

.mr-0 { margin-right: 0; }
.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.mr-20 { margin-right: 20px; }
.mr-30 { margin-right: 30px; }
.mr-50 { margin-right: 50px; }

.pt-0 { padding-top: 0px; }
.pt-10 { padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-20 { padding-top: 20px; }
.pt-25 { padding-top: 25px; }
.pt-30 { padding-top: 30px; }
.pt-40 { padding-top: 40px; }
.pt-50 { padding-top: 50px; }
.pt-60 { padding-top: 60px; }
.pt-70 { padding-top: 70px; }
.pt-80 { padding-top: 80px; }
.pt-90 { padding-top: 90px; }
.pt-100 { padding-top: 100px; }
.pt-120 { padding-top: 120px; }
.pt-150 { padding-top: 150px; }
.pt-170 { padding-top: 170px; }

.pb-0 { padding-bottom: 0px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.pb-25 { padding-bottom: 25px; }
.pb-30 { padding-bottom: 30px; }
.pb-40 { padding-bottom: 40px; }
.pb-50 { padding-bottom: 50px; }
.pb-60 { padding-bottom: 60px; }
.pb-70 { padding-bottom: 70px; }
.pb-80 { padding-bottom: 80px; }
.pb-90 { padding-bottom: 90px; }
.pb-100 { padding-bottom: 100px; }
.pb-120 { padding-bottom: 120px; }
.pb-150 { padding-bottom: 150px; }

.pr-30 { padding-right: 30px; }
.pl-30 { padding-left: 30px; }
.pl-90 { padding-left: 90px; }
.p-40 { padding: 40px; }

/* ================================================================
   📐 5. کلاس‌های فلکس (Flexbox Utilities)
   ================================================================ */

.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
}

.inline-flex {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

.flex-grow {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -moz-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.flex-wrap {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.flex-left {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    justify-content: flex-start;
}

.flex-middle {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
}

.flex-right {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
    -moz-justify-content: flex-end;
    justify-content: flex-end;
}

.flex-top {
    -webkit-align-self: flex-start;
    -moz-align-self: flex-start;
    -ms-flex-item-align: start;
    align-self: flex-start;
}

.flex-center {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
}

.flex-bottom {
    -webkit-align-self: flex-end;
    -moz-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
}

.space-between {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    justify-content: space-between;
}

.space-around {
    -ms-flex-pack: distribute;
    -webkit-justify-content: space-around;
    -moz-justify-content: space-around;
    justify-content: space-around;
}

.flex-column {
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.flex-cell {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -moz-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

/* ================================================================
   🎨 6. کلاس‌های فونت، اندازه و رنگ متن
   ================================================================ */

.fz-11 { font-size: 11px; }
.fz-12 { font-size: 12px; }
.fz-13 { font-size: 13px; }
.fz-14 { font-size: 14px; }
.fz-15 { font-size: 15px; }
.fz-16 { font-size: 16px; }
.fz-18 { font-size: 18px; }
.fz-30 { font-size: 30px; }
.fz-48 { font-size: 48px; }

.fw100 { font-weight: 100; }
.fw300 { font-weight: 300; }
.fw400 { font-weight: 400; }
.fw500 { font-weight: 500; }
.f700 { font-weight: 700; }

.fsi { font-style: italic; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-rigth { text-align: right; }
.text-italic { font-style: italic; }

.text-white { color: var(--white); }
.text-black { color: #000; }
.light { color: var(--white); }
.dark { color: #222; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   🧩 7. کلاس‌های عمومی و پرکاربرد
   ================================================================ */

.clear::before,
.clear::after {
    content: " ";
    display: table;
}
.clear::after {
    clear: both;
}

.float-left { float: left; }
.float-right { float: right; }

.transition {
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }

.overlay {
    position: absolute;
    inset: 0;
}

.display-table { display: table; }
.no-padding { padding: 0; }

.gray-bg { background: #f9f9ff; }
.white-bg { background: var(--white); }
.section-bg { background: #f9fafc; }
.bg-primary { background: var(--color-primary); }
.bg-secondary { background: var(--color-secondary); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.hover-up {
    transition: transform var(--transition-base);
}
.hover-up:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-base);
}
.hover-scale:hover {
    transform: scale(1.02);
}

.section-full { padding: 100px 0; }
.section-half { padding: 75px 0; }
.section-padding { padding: 60px 0; }

.container.fullwidth { width: 100%; }
.container.no-padding { padding-left: 0; padding-right: 0; }
.row.no-margin { margin-left: 0; margin-right: 0; }

/* ================================================================
   📱 8. ریسپانسیو برای کلاس‌های پایه
   ================================================================ */

@media (max-width: 767px) {
    .no-flex-xs {
        display: block !important;
    }
}