body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  direction: rtl;
  background-color: #fff;
  overflow-x: hidden;
  text-align: justify;
}

/* --- Hero Banner Extra Styles --- */
.hero-image img {
  border-radius: 15px; /* همان کلاس rounded شما */
  box-shadow: 0 20px 40px rgb(0 0 0 / 10%); /* کلاس shadow-effect */
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: flex-start; /* در دسکتاپ راست‌چین */
}

/* استایل پایه برای هر دو دکمه */
.hero-btns .cta-button {
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

/* ۱. دکمه استعلام قیمت آنی (BG-Primary) */
.hero-btns .bg-primary {
  background-color: var(--co1);
  color: var(--co3) !important;
  box-shadow: 0 4px 15px rgb(255 187 22 / 25%);
}

.hero-btns .bg-primary:hover {
  background-color: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(255 187 22 / 40%);
}

/* ۲. دکمه مشاهده پروژه‌ها (Outline) */
.hero-btns .btn-outline {
  background-color: transparent;
  border: 2px solid var(--co3);
  color: var(--co3) !important;
}

.hero-btns .btn-outline:hover {
  background-color: var(--co3);
  color: #fff !important;
  transform: translateY(-3px);
}

/* --- Portfolio Section --- */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 300px; /* یا هر ارتفاعی که مد نظر دارید */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(47 47 47 / 80%); /* استفاده از var(--co3) با شفافیت */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* --- اصلاح دکمه‌ها در Hero --- */
.hero-btns {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* استایل دکمه دوم (Bordered) */
.btn-outline {
  border: 2px solid var(--co3) !important;
  color: var(--co3) !important;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--co3);
  color: #fff !important;
}

.hero-image:hover .shadow-effect {
  transform: scale(1.02); /* یک بزرگنمایی بسیار کوچک */
  box-shadow: 0 20px 45px rgb(0 0 0 / 20%); /* سایه عمیق‌تر */
}

/* ۱. باکس نگهدارنده که فقط انیمیشن شناور دارد */
.floating-wrapper {
  animation: floatImage 4s ease-in-out infinite;
  will-change: transform; /* به مرورگر کمک می‌کند انیمیشن را نرم‌تر اجرا کند */
}

/* ۲. استایل خودِ عکس و افکت هوور روی آن */
.shadow-effect {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgb(0 0 0 / 15%);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  cursor: pointer;
}

/* ۳. حالا هوور با انیمیشن تداخل پیدا نمی‌کند چون روی دو المان مختلف هستند */
.shadow-effect:hover {
  transform: scale(1.05); /* کمی بزرگنمایی نرم */
  box-shadow: 0 25px 50px rgb(0 0 0 / 20%);
  filter: brightness(1.05); /* کمی درخشش بیشتر هنگام انتخاب */
}

/* ۴. تعریف انیمیشن (فقط یک بار در کل پروژه) */
@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* --- استایل پورتفولیو --- */
.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 8%);
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0; /* تمام صفحه را می‌پوشاند */
  background: rgb(47 47 47 / 85%); /* var(--co3) با شفافیت */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateY(20px); /* افکت حرکت از پایین به بالا */
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay span {
  color: var(--co1);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  border: 1px solid var(--co1);
  padding: 8px 15px;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* ==========================================================================
   Pricing Section Styles
   ========================================================================== */
.pricing-section {
  background-color: #f9f9f9; /* رنگ bg-light */
}

/* اصلاح ردیف برای مرکز‌چین کردن کارت‌ها */
#pricing .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* مرکز‌چین کردن افقی کارت‌ها */
  align-items: stretch; /* هم‌قد کردن کارت‌ها */
  margin-right: -15px;
  margin-left: -15px;
}

/* اصلاح استایل ستون‌ها برای جلوگیری از انحراف */
#pricing [class*="col-"] {
  float: none !important; /* غیرفعال کردن فلوت برای استفاده از فلکس‌باکس */
  display: flex;
  justify-content: center;
}

/* بهبود نمایش متون لیست برای توازن بصری */
.price-card ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: right;
  direction: rtl;
}

.price-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 10%);
}

/* کارت ویژه (وسطی) */
.price-card.featured {
  background-color: var(--co3); /* توسی تیره */
  color: #fff;
  position: relative;
  transform: scale(1.05);
  border: none;
  z-index: 1;
}

.price-card.featured .price-header h3 {
  color: var(--co1);
}

.price-card.featured .price {
  color: var(--co1);
}

.price-card.featured ul li {
  color: #ccc;
  border-bottom: 1px solid #444;
}

/* نشان ویژه */
.price-card .badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--co1);
  color: var(--co3);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* هدر قیمت */
.price-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--co3);
}

.price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--co3);
  margin-bottom: 30px;
}

.price span {
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* لیست ویژگی‌ها */
.price-card ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: right;
}

.price-card ul li {
  font-family: var(--font-body);
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: var(--co4);
}

.price-card ul li::before {
  content: "✓";
  color: var(--co1);
  margin-left: 10px;
  font-weight: bold;
}

/* دکمه‌های کارت */
.price-btn {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: bold;
  transition: 0.3s;
  border: 2px solid var(--co1);
  color: var(--co3);
}

.price-btn:hover {
  background-color: var(--co1);
  color: var(--co3);
}

.featured-btn {
  background-color: var(--co1);
  border-color: var(--co1);
  color: var(--co3);
}

.featured-btn:hover {
  background-color: transparent;
  color: var(--co1);
}

/* ==========================================================================
   FAQ Section Styles (Accordion)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  direction: rtl;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgb(0 0 0 / 2%);
}

.faq-item:hover {
  border-color: var(--co1);
  box-shadow: 0 6px 12px rgb(0 0 0 / 5%);
}

/* استایل سوالات */
.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--co3);
  transition: background-color 0.3s ease;
}

/* اضافه کردن آیکون مثبت/منفی */
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--co1);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
  background-color: #fcfcfc;
  color: var(--co1);
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

/* استایل پاسخ‌ها (در ابتدا مخفی) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  background-color: #fff;
}

.faq-answer p {
  padding: 0 25px 20px;
  margin: 0;
  color: var(--co4);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* یک مقدار بزرگ برای نمایش کامل */
}

/* ==========================================================================
   Blog Preview Section
   ========================================================================== */
.blog-preview {
  background-color: #fff;
  direction: rtl;
}

.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 5%);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgb(0 0 0 / 10%);
  border-color: var(--co1); /* زرد اصلی */
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* حفظ نسبت ابعاد تصویر */
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.05); /* زوم ملایم تصویر هنگام هوور */
}

.blog-card h3 {
  font-size: 1.15rem;
  color: var(--co3);
  margin-bottom: 15px;
  line-height: 1.5;
  font-weight: bold;
}

.blog-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* محدود کردن متن به ۳ خط */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .text-primary {
  color: var(--co1) !important; /* استفاده از رنگ زرد برند */
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  transition: gap 0.3s ease;
}

.blog-card .text-primary:hover {
  gap: 10px; /* ایجاد حس حرکت در فلش */
}

.blog-preview .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* مرکز‌چین کردن کارت‌های وبلاگ */
}

/* ==========================================================================
   6. Optimized Calculator Section (هماهنگ با HTML جدید)
   ========================================================================== */
.calculator-section {
  background-color: var(--co3);
  color: #fff;
  padding: 80px 0;
  direction: rtl;
}

.section-title-calc {
  color: var(--co1) !important;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle-calc {
  color: #ccc;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 30px;
}

.calculator-box {
  background-color: var(--co1) !important;
  padding: 40px !important;
  border-radius: 25px !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  box-shadow: 0 25px 50px rgb(0 0 0 / 30%) !important;
  border: none !important;
}

.form-group-calc {
  margin-bottom: 20px;
}

.form-group-calc label {
  display: block;
  color: var(--co3) !important;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  text-align: right;
}

.calc-input,
.calc-select {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgb(0 0 0 / 10%) !important;
  padding: 0 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: #fff !important;
  color: #333 !important;
}

.calc-btn-main {
  width: 100%;
  height: 60px;
  background-color: var(--co3) !important; /* رنگ توسی تیره/مشکی */
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}

.calc-btn-main:hover {
  background-color: #000 !important; /* کاملاً مشکی */
  color: var(--co1) !important; /* تغییر رنگ متن به زرد */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
}

.result-area-box {
  display: none;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed rgb(47 47 47 / 20%);
}

.result-price {
  font-size: 2.8rem;
  color: #d32f2f;
  margin: 5px 0;
  line-height: 1;
}

.calc-btn-whatsapp {
  width: 100%;
  height: 55px;
  background-color: #25d366 !important;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  margin-top: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* ==========================================================================
   Order & Contact Section
   ========================================================================== */
.order-section {
  background-color: #fff;
  direction: rtl;
}

/* باکس فرم زرد رنگ - ویرایش شده برای ایجاد فاصله داخلی */
.contact-form {
  background-color: var(--co1) !important; /* زرد اصلی */
  padding: 30px !important; /* اضافه کردن فاصله از هر چهار طرف */
  border-radius: 20px; /* برای هماهنگی با انحنای بقیه باکس‌های سایت */
  box-shadow: 0 15px 35px rgb(0 0 0 / 30%);
  transition: transform 0.3s ease;

  /* اطمینان از اینکه المان‌ها از عرض باکس بیرون نزنند */
  box-sizing: border-box;
}

/* فاصله بین فیلدها برای جلوگیری از چسبندگی عمودی */
.contact-form .form-group,
.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-bottom: 15px !important;
  text-align: right;
}

.contact-form:hover {
  transform: translateY(-5px);
}

/* استایل ورودی‌های فرم */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  margin-bottom: 5px;
  font-family: var(--font-body);
  background-color: #fff;
  color: var(--co3);
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* دکمه ارسال (مشکی) */
.contact-form .cta-button {
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form .cta-button:hover {
  background-color: #06e93b !important;
}

/* بخش اطلاعات تماس (سمت راست) */
.contact-info p {
  font-size: 1rem;
  line-height: 2;
  color: var(--co3);
  margin-bottom: 15px;
}

.contact-info strong {
  color: var(--co4);
  font-weight: bold;
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-end; /* راست‌چین در دسکتاپ */
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.social-icon:hover {
  background-color: var(--co1);
  transform: scale(1.1);
}

/* آیکون‌های فرضی (اگر از فونت‌آیکون استفاده نمی‌کنید) */
.instagram {
  background-image: url("../img/icon/instagram.svg");
}

.telegram {
  background-image: url("../img/icon/telegram.svg");
}

.whatsapp {
  background-image: url("../img/icon/whatsapp.svg");
}

#successMessage {
  background: #fff;
  border-radius: 10px;
  margin-top: 20px;
  border: 2px dashed var(--co3);
}

/* ==========================================================================
   Glossary Section (English for Architects)
   ========================================================================== */
.glossary-section {
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
}

.term-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
  border-bottom: 4px solid var(--co3); /* نوار تیره پایین باکس */
  transition: all 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.term-box:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--co1); /* تغییر رنگ نوار به زرد هنگام هوور */
  box-shadow: 0 10px 20px rgb(0 0 0 / 5%);
}

.term-box strong {
  display: block;
  font-size: 1.1rem;
  color: var(--co3);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.term-box span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--co4); /* رنگ خاکستری تیره برای ترجمه */
}

/* اصلاح چیدمان در موبایل */
@media (width <= 768px) {
  .hero-btns {
    flex-direction: column; /* در موبایل زیر هم بیایند */
    width: 100%;
  }

  .hero-btns .cta-button {
    width: 100%; /* دکمه‌ها تمام عرض شوند */
    text-align: center;
    font-size: 0.8rem;
  }

  #pricing .price-card {
    width: 100%;
    max-width: 350px; /* جلوگیری از کشیدگی بیش از حد */
    margin: 10px auto;
  }

  .price-card.featured {
    transform: scale(1);
    margin: 20px 0;
  }

  .calculator-box {
    padding: 25px 20px !important;
    margin: 0 auto !important;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-info,
  .order-section .text-right {
    text-align: center !important;
  }

  /* ۱. اصلاح پدینگ باکس زرد برای ایجاد فضای تنفس */
  .contact-form {
    padding: 25px 15px !important; /* ایجاد فاصله از لبه‌های کادر زرد */
    border-radius: 15px;
  }

  /* ۲. تمام عرض کردن اینپوت‌ها برای خوانایی بهتر متن داخلشان */
  .contact-form .row [class*="col-"] {
    width: 100% !important;
    margin-bottom: 10px;
  }

  /* ۳. فیکس کردن دکمه ارسال در لبه پایینی */
  .contact-form .cta-button {
    margin-top: 10px;
    width: 100% !important;
  }

  /* ۴. بزرگتر کردن فونت داخل اینپوت‌ها برای راحتی تایپ در موبایل */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px !important; /* جلوگیری از زوم خودکار آیفون هنگام تایپ */
    padding: 15px !important;
  }

  .glossary-section .row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستونه کردن در موبایل برای صرفه‌جویی در فضا */
    gap: 15px;
    padding: 0 15px;
  }

  .glossary-section [class*="col-"] {
    padding: 0;
    width: 100%;
  }
}
