/*
Section: Hero Banner
-------------------------- */

/* #region Header Styles */

/* 1. تنظیم باکس مدل */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* End of Section */
*,
*::before,
*::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

:root {
  direction: rtl;

  /* تعریف رنگ‌ها */
  --co1: #ffbb16;
  --co2: #e7cb95;
  --co3: #2f2f2f;
  --co4: #6e6e6e;
  --co5: #f0e9d4;

  /* تایپوگرافی */

  /* 1. فونت مخصوص عناوین (فارسی) */
  --font-heading: "BTitr", "Roboto", tahoma, sans-serif;

  /* 2. فونت مخصوص متن اصلی (فارسی) */
  --font-body: "Vazirmatn", "Roboto", tahoma, sans-serif;

  /* 3. فونت مخصوص متن اصلی (فارسی) */
  --font-yekan: "BYekan", "Roboto", tahoma, sans-serif;

  /* 4. فونت مخصوص متن اصلی (فارسی) */
  --font-koodak: "BKoodak", "Roboto", tahoma, sans-serif;

  /* 5. فونت مخصوص متن اصلی (فارسی) */
  --font-badr: "BBadr", "Roboto", tahoma, sans-serif;

  /* . اگر جایی فقط فونت لاتین مد نظرت بود */
  --font-roboto: "Roboto", arial, sans-serif;
  --font-poppins: "Poppins", arial, sans-serif;
  --font-archivo: "Archivo", arial, sans-serif;
  --font-italianno: "Italianno", arial, sans-serif;
  --font-tangerine: "Tangerine", arial, sans-serif;
  --font-pscript: "Pinyon Script", arial, sans-serif;

  /* اندازه‌ها */
  --fs-base: 16px;
  --fs-h1: 2.5rem;
  --fs-body: 1rem;

  /* فواصل خطوط (Line Heights) */
  --p-lh: 1.8;
  --heading-lh: 1.3;

  /* ضخامت فونت */
  --fw-regular: 400;
  --fw-bold: 700;

  /* تعریف آدرس لوگوها */
  --logo-instagram: url("../img/icon/instagram.svg");
  --logo-telegram: url("../img/icon/telegram.svg");
  --logo-whatsapp: url("../img/icon/whatsapp.svg");
  --logo-phone: url("../img/icon/phone.svg");
  --logo-gmail: url("../img/icon/gmail.svg");
  --icon-size: 40px; /* سایز رو برای تست کوچک کردم، هر چقدر خواستی تغییر بده */
}

/* #region Section Name */

/* اختصاص دادن عکس‌ها */
.instagram {
  background-image: var(--logo-instagram);
}

.telegram {
  background-image: var(--logo-telegram);
}

.whatsapp {
  background-image: var(--logo-whatsapp);
}

.social-icons {
  display: inline-flex;
  gap: 20px;
  padding: 15px 60px; /* عدد ۶۰ عرض کپسول را از طرفین زیاد می‌کند */
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
  margin: 20px auto 0; /* این خط کمک می‌کند در مرکز بماند */
  min-width: 270px; /* حداقل عرض کپسول */
  justify-content: center; /* لوگوها در مرکزِ این عرضِ زیاد قرار بگیرند */
}

.social-icon {
  display: inline-block;
  width: var(--icon-size);
  height: var(--icon-size);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* #endregion */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--p-lh);
  color: var(--text-color);
  overflow-x: hidden;

  /* جلوگیری از اسکرول افقی */
}

/* استفاده از متغیر برای تیترها */
h1,
h2,
h3 {
  font-size: var(--fs-h1);
  line-height: var(--heading-lh);
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  text-align: center;

  /* تیترها ارث‌بری را می‌شکنند و از فونت ثانویه استفاده می‌کنند */
}

p {
  font-size: var(--fs-body);
  margin-bottom: 1rem;

  /* فاصله بین پاراگراف‌ها */
}

/* 3. واکنش‌گرا کردن تصاویر */
img {
  max-width: 100%;
  height: auto;
  display: block;
  font-style: italic; /* برای نمایش زیباتر متن جایگزین (alt) */
  shape-margin: 0.75rem;
  border: none;
  outline: none;
  backface-visibility: hidden;
  transform: translateZ(0); /* برای رندر بهتر */
}

/* برای لینکها و دکمه ها */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* لیستها */
ul,
ol {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse; /* حذف فاصله بین خطوط جدول */
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

th,
td {
  text-align: right; /* هماهنگ با جهت RTL پروژه تو */
  padding: 12px;
  border: 1px solid var(--co2); /* استفاده از متغیری که خودت ساختی */
}

th {
  font-family: var(--font-heading); /* تیتر جدول با فونت بی تیتر */
  background-color: var(--co5);
}

input,
textarea,
select {
  font-family: inherit; /* ارث‌بری از فونت بدنه (Vazir/Yekan) */
  font-size: 1rem;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

/* استایل‌های پایه برای textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* حالت فوکوس برای هر دو المان */
input:focus,
textarea:focus {
  border-color: var(--co1);
  box-shadow: 0 0 5px rgb(255 187 22 / 20%);
  outline: none; /* معمولاً برای زیبایی بیشتر فوکوس اضافه می‌شود */
}

/* Margins */
.m-0 {
  margin: 0 !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mt-2 {
  margin-top: 2.5rem !important;
}

.mb-2 {
  margin-bottom: 2.5rem !important;
}

/* Paddings */
.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 1rem !important;
}

.py-1 {
  padding-top: 1rem;
  padding-bottom: 1rem;
} /* پدینگ عمودی */
.px-1 {
  padding-right: 1rem;
  padding-left: 1rem;
} /* پدینگ افقی */
.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-primary {
  color: var(--co1);
}

.bg-primary {
  background-color: var(--co1);
}

.font-titr {
  font-family: var(--font-heading) !important ;
}

.font-body {
  font-family: var(--font-body);
}

/* برای پنهان کردن عناصر در موبایل */
@media (width <= 767px) {
  .hide-mobile,
  .hide-on-mobile {
    display: none !important;
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* #endregion */

/* #region  mobile */

/* تمام کدهایی که اینجا می‌نویسید در موبایل اجرا می‌شوند */
.container {
  width: 100%;
  max-width: 100%; /* اطمینان از عدم تجاوز از عرض صفحه */
  padding: 0 15px;
  margin: 0 auto;
  overflow-x: hidden; /* جلوگیری از خروج محتوا */
  box-sizing: border-box;
}

/* #endregion */

/* #region  768 */

/* تبلت (768px به بالا) */
@media (width >= 768px) {
  .container {
    max-width: 720px;
  }
}

/* #endregion */

/* #region  1024 */

/* دسکتاپ (1024px به بالا) */
@media (width >= 1024px) {
  .container {
    max-width: 960px;
  }
}

/* #endregion */

/* #region 1200 */

/* مانیتورهای بزرگ (1200px به بالا) */
@media (width >= 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* #endregion */

/* #region Class Helper */

/* مخفی کردن در دسکتاپ و نمایش در موبایل */
@media (width >= 768px) {
  .hide-on-desktop {
    display: none !important;
  }
}

/* سیستم شبکه بندی ساده (Grid/Flex) برای چیدمان ستونی */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

@media (width <= 767px) {
  .col {
    flex: 0 0 100%; /* در موبایل ستون‌ها زیر هم قرار می‌گیرند */
  }
}

/* #endregion */

/* #region Column System (Global Standards) */

/* 1. تنظیمات پایه ستون‌ها */
[class*="col-"] {
  /* float: right; */
  padding: 0 15px;
  min-height: 1px;
  box-sizing: border-box; /* برای اینکه پدینگ به عرض ستون اضافه نشود */
}

/* 2. ستون‌های پیش‌فرض برای موبایل (XS) */
.col-xs-1 {
  width: 8.33%;
}

.col-xs-2 {
  width: 16.66%;
}

.col-xs-3 {
  width: 25%;
}

.col-xs-4 {
  width: 33.33%;
}

.col-xs-5 {
  width: 41.66%;
}

.col-xs-6 {
  width: 50%;
}

.col-xs-7 {
  width: 58.33%;
}

.col-xs-8 {
  width: 66.66%;
}

.col-xs-9 {
  width: 75%;
}

.col-xs-10 {
  width: 83.33%;
}

.col-xs-11 {
  width: 91.66%;
}

.col-xs-12 {
  width: 100%;
}

/* 3. ستون‌های تبلت و موبایل‌های عریض (SM) - 600px+ */
@media only screen and (width >= 600px) {
  .col-sm-1 {
    width: 8.33%;
  }

  .col-sm-2 {
    width: 16.66%;
  }

  .col-sm-3 {
    width: 25%;
  }

  .col-sm-4 {
    width: 33.33%;
  }

  .col-sm-6 {
    width: 50%;
  }

  .col-sm-12 {
    width: 100%;
  }
}

/* 4. ستون‌های دسکتاپ و لپ‌تاپ (MD) - 768px+ */
@media only screen and (width >= 768px) {
  .col-md-1 {
    width: 8.33%;
  }

  .col-md-2 {
    width: 16.66%;
  }

  .col-md-3 {
    width: 25%;
  }

  .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-12 {
    width: 100%;
  }
}

/* 5. ستون‌های مانیتورهای بزرگ (LG) - 1024px+ */
@media only screen and (width >= 1024px) {
  .col-lg-1 {
    width: 8.33%;
  }

  .col-lg-2 {
    width: 16.66%;
  }

  .col-lg-3 {
    width: 25%;
  }

  .col-lg-4 {
    width: 33.33%;
  }

  .col-lg-6 {
    width: 50%;
  }

  .col-lg-12 {
    width: 100%;
  }
}

/* 6. برطرف کردن مشکل فلوت‌ها (Clearfix) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* #endregion */
