/* --- General and Reset Styles --- */
:root {
    --primary-color: #c8a47e; /* A color similar to the button and top bar */
    --dark-bg: #222;
    --text-color: #ffffff;
    --secondary-text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Top Bar Styles --- */
.top-bar {
    background-color: #a17a56; /* Color from the image */
    color: var(--text-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left .social-icons a {
    margin: 0 8px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.top-bar-left .social-icons a:hover {
    color: #e0d6cc;
}

/* --- Main Header Styles --- */
.main-header {
    position: absolute;
    top: 80px; /* Position below top-bar */
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.1); /* Slight transparent background */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.logo i {
    font-size: 32px;
    margin-left: 10px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav li.active a {
    border-bottom-color: var(--primary-color);
}

.main-nav .has-dropdown > a::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 8px;
}

.header-contact-btn {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-contact-btn:hover {
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Hero Section Styles --- */
.hero-section {
    height: 100vh;
    background: url('image/hero-section.webp') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 100px; /* Offset for header */
}

.hero-content .subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 120px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--secondary-text-color);
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.cta-contact-info {
    text-align: right;
}

.cta-contact-info span {
    display: block;
    font-size: 16px;
}

.cta-contact-info .phone-number {
    font-size: 22px;
    font-weight: 600;
}

.cta-button {
    background-color: #d1b59a; /* Beige color from image */
    color: #333;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.cta-button i {
    font-size: 20px;
}

.cta-button:hover {
    background-color: #bca084;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Features/Services Section Styles --- */
.features-section {
    padding: 0;
    /* This section has no top/bottom padding as the cards create the space */
    /* The background color will be defined by the cards themselves or the body */
    background-color: #fff; /* Assuming a white background behind the cards */
}

.features-grid {
    display: grid;
    /* Create 4 equal columns */
    grid-template-columns: repeat(4, 1fr); 
    /* The grid has no gap, as the cards are flush against each other */
    gap: 0;
}

.feature-card {
    padding: 50px 30px;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f0f2f5; /* Default light grey background for cards 2 & 4 */
    color: #333;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10; /* Ensure the hovered card is on top */
    position: relative; /* Needed for z-index to work */
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}

.read-more {
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* --- Card Variations --- */

/* Style for the first card (dark) */
.feature-card.dark-card {
    background-color: #2c3e50; /* Dark blue-grey from image */
    color: var(--text-color);
}

.feature-card.dark-card .feature-icon,
.feature-card.dark-card .read-more {
    color: #d1b59a; /* Beige color for icon and link */
}

.feature-card.dark-card p {
    color: var(--secondary-text-color);
}

.feature-card.dark-card .read-more:hover {
    color: #fff;
}

/* Style for the third card (highlighted) */
.feature-card.highlight-card {
    background-color: #d1b59a; /* Beige color from image */
    color: #fff;
}

.feature-card.highlight-card .feature-icon,
.feature-card.highlight-card .read-more {
    color: #fff;
}

.feature-card.highlight-card p {
    color: #f0f0f0;
}

.feature-card.highlight-card .read-more:hover {
    color: #2c3e50;
}

/* --- About Us Section Styles --- */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

/* --- Image Column Styles --- */
.about-images {
    position: relative;
    height: 500px; /* Give a fixed height to the container */
}

.about-images .main-image {
    width: 80%;
    height: 90%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.about-images .secondary-image {
    width: 60%;
    height: 60%;
    object-fit: contain;
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
}

.experience-box {
    position: absolute;
    bottom: 20px;
    right: 20px; /* Adjust to be over the main image */
    background-color: #d1b59a;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.experience-box .experience-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.experience-box .experience-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

/* --- Content Column Styles --- */
.about-content .section-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-content > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.about-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.about-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.about-features-list i {
    font-size: 22px;
    color: #d1b59a;
    margin-top: 5px;
}

.about-features-list h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.about-features-list p {
    font-size: 15px;
    color: #666;
}

.btn-read-more {
    background-color: #5a4e46; /* A darker brown/grey from the button in image */
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #3e3731;
    transform: translateY(-3px);
}

/* --- Specialty Section Styles --- */
.specialty-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* Light grey background */
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

/* --- Content Column Styles --- */
.specialty-content {
    padding-left: 40px; /* Add some padding to the left of the text */
}

.specialty-content .section-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.specialty-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.specialty-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-specialty-more {
    background-color: #d1b59a; /* Using the highlight color from previous sections */
    color: #333;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-specialty-more:hover {
    background-color: #bca084;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Image Column Styles --- */
.specialty-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ======================= استایل بخش محل کار ======================= */
.practice-area-section {
  background-color: #1a1a1a; /* رنگ پس‌زمینه تیره بخش */
  color: #ffffff;
  padding: 80px 0; /* فاصله داخلی از بالا و پایین */
  text-align: center;
}

.section-header {
  margin-bottom: 60px; /* فاصله بین سرتیتر و کارت‌ها */
}

.section-header .sub-heading {
  color: #c5a47e; /* رنگ مسی/نارنجی برای زیرعنوان */
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-header .main-heading {
  font-size: 48px; /* اندازه بزرگ برای عنوان اصلی */
  font-weight: 800;
  margin: 0;
  margin-bottom: 20px;
}

.section-header .description {
  font-size: 18px;
  color: #cccccc; /* رنگ خاکستری روشن برای متن توضیحات */
  max-width: 600px; /* محدود کردن عرض پاراگراف */
  margin: 0 auto; /* وسط‌چین کردن پاراگراف */
  line-height: 1.7;
}

/* استایل گرید کارت‌ها */
.cards-grid {
  display: flex;
  justify-content: center; /* کارت‌ها را در مرکز قرار می‌دهد */
  gap: 30px; /* فاصله بین کارت‌ها */
  flex-wrap: wrap; /* برای واکنش‌گرایی در صفحه‌های کوچک */
}

/* استایل هر کارت */
.card {
  background-color: #f4f4f4; /* رنگ پس‌زمینه محتوای کارت */
  color: #333;
  flex: 1; /* باعث می‌شود هر سه کارت عرض یکسانی داشته باشند */
  min-width: 300px; /* حداقل عرض برای هر کارت */
  max-width: 350px;
  text-align: center;
  overflow: hidden; /* برای اینکه تصویر بیرون نزند */
}

.card img {
  width: 100%;
  height: auto;
  display: block; /* حذف فضای اضافی زیر تصویر */
}

.card-content {
  padding: 25px 20px;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.card-content .card-subtitle {
  font-size: 14px;
  color: #777;
}

/* ======================= استایل بخش آمار ======================= */
.stats-section {
  position: relative; /* برای لایه رویی پس‌زمینه */
  padding: 100px 0;
  text-align: center;
  background-image: url('image/stats-section.webp'); /* آدرس تصویر پس‌زمینه خود را اینجا قرار دهید */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ایجاد افکت پارالکس ساده */
}

/* لایه رویی برای خوانایی بهتر متن */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 245, 0.52); /* رنگ سفید نیمه‌شفاف */
  z-index: 1;
}

/* محتوا باید روی لایه بالایی باشد */
.stats-section .container {
  position: relative;
  z-index: 2;
}

.stats-header {
  margin-bottom: 70px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stats-header .sub-heading {
  color: #b9976f; /* رنگ مسی/طلایی */
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.stats-header .main-heading {
  font-size: 42px;
  font-weight: 800;
  color: #333;
  margin: 0 0 20px 0;
}

.stats-header .description {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap; /* برای واکنش‌گرایی */
  gap: 30px; /* فاصله بین آیتم‌ها */
}

.stat-item {
  flex-basis: 200px; /* عرض پایه برای هر آیتم */
  flex-grow: 1;
}

.stat-item .stat-number {
  font-size: 52px;
  font-weight: 800;
  color: #b9976f; /* همان رنگ مسی/طلایی */
  margin: 0 0 10px 0;
}

/* برای اینکه فرمت اعداد فارسی در کنار + و % درست نمایش داده شود */
.stat-number[data-target="5689"]::before,
.stat-number[data-target="250"]::before,
.stat-number[data-target="15"]::before {
  content: "+";
}

.stat-number[data-target="86"]::after {
  content: "%";
}

.stat-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}


/* ======================= استایل بخش نظرات مشتریان ======================= */
.testimonial-section {
  padding: 60px 0; /* فاصله از بالا و پایین برای کل بخش */
  background-color: #f9f9f9; /* یک پس‌زمینه روشن برای متمایز شدن */
}

.testimonial-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  background-color: #fff; /* پس‌زمینه سفید برای کانتینر اصلی */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* جلوگیری از بیرون‌زدگی گوشه‌ها */
}

/* استایل ستون تصویر */
.testimonial-image {
  flex: 0 0 45%; /* ستون تصویر ۴۵ درصد عرض را اشغال کند */
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر را بدون تغییر نسبت، کاملاً فضا را پر می‌کند */
  display: block;
}

/* استایل ستون محتوا */
.testimonial-content {
  flex: 0 0 55%; /* ستون محتوا ۵۵ درصد عرض را اشغال کند */
  padding: 80px 60px;
  color: #ffffff;
  /* گرادینت زیبا مطابق با تصویر */
  background: linear-gradient(to right, #1a2a38, #2c4d5a);
}

.testimonial-content .sub-heading {
  color: #c5a47e; /* رنگ مسی/طلایی */
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.testimonial-content .main-heading {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

.testimonial-content blockquote {
  border-right: 3px solid #c5a47e; /* خط عمودی کنار نقل‌قول */
  padding-right: 25px;
  margin: 0 0 40px 0;
}

.testimonial-content blockquote p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: #dddddd;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%; /* گرد کردن تصویر پروفایل */
  object-fit: cover;
  margin-left: 20px; /* فاصله از متن کناری */
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.author-title {
  font-size: 15px;
  color: #bbbbbb;
}


/* ======================= استایل بخش CTA ======================= */
.cta-section {
  position: relative;
  padding: 120px 0;
  color: #ffffff;
  text-align: center;
  background-image: url('image/Image\ Column\ 2.webp'); /* آدرس تصویر پس‌زمینه خود را اینجا قرار دهید */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ایجاد افکت زیبای پارالاکس */
}

/* لایه نیمه‌شفاف روی پس‌زمینه برای خوانایی متن */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 47, 60, 0.88); /* رنگ آبی-خاکستری تیره و نیمه‌شفاف */
  z-index: 1;
}

/* محتوا باید روی لایه بالایی باشد */
.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-icon {
  width: 60px;
  height: auto;
  margin-bottom: 30px;
  /* این فیلتر رنگ آیکن را به رنگ طلایی/مسی قالب تغییر می‌دهد */
  /* اگر آیکن شما از قبل رنگی است، این خط را حذف کنید */
  filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(913%) hue-rotate(349deg) brightness(93%) contrast(89%);
}

.cta-heading {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.cta-subtext {
  font-size: 18px;
  color: #e0e0e0;
  margin: 0 0 35px 0;
}

.cta-subtext a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-subtext a:hover {
  color: #c5a47e; /* رنگ طلایی/مسی در هاور */
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background-color: #b95d5d; /* رنگ قرمز-قهوه‌ای دکمه */
  color: #ffffff;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: #a85151; /* رنگ تیره‌تر در هاور */
  transform: translateY(-3px); /* افکت شناور شدن */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button .arrow {
  margin-right: 12px; /* فاصله بین متن و فلش */
  font-size: 22px;
  line-height: 1;
}

/* ======================= استایل فوتر ======================= */
.site-footer {
  background-color: #1a2a38; /* رنگ پس‌زمینه اصلی فوتر */
  color: #cccccc;
  padding-top: 80px; /* فاصله از بالا */
}

.footer-main {
  display: flex;
  flex-wrap: wrap; /* برای واکنش‌گرایی */
  justify-content: space-between;
  gap: 40px; /* فاصله بین ستون‌ها */
  margin-bottom: 60px;
}

.footer-col {
  flex: 1;
  min-width: 220px; /* حداقل عرض برای هر ستون */
}

.footer-col.about-col {
  flex-basis: 30%; /* ستون اول کمی بزرگتر باشد */
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #c5a47e; /* رنگ طلایی/مسی برای عناوین */
  margin: 0 0 25px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-right: 5px; /* کمی جلو رفتن در هاور */
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  color: #cccccc;
  text-decoration: none;
}

.contact-info a:hover {
  color: #ffffff;
}

/* استایل آیکن‌های اجتماعی */
.social-icons {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #cccccc;
  border: 1px solid #445868; /* رنگ مرز آیکن */
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #c5a47e;
  border-color: #c5a47e;
  color: #ffffff;
  transform: translateY(-3px); /* افکت شناور */
}

/* بخش پایینی فوتر */
.footer-bottom {
  background-color: #111e29; /* رنگ تیره‌تر برای بخش کپی‌رایت */
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #8899a6; /* رنگ خاکستری برای متن کپی‌رایت */
}

/* =================================================================== */
/* =================== Media Queries For Responsiveness =================== */
/* =================================================================== */

/* --- برای نمایشگرهای بزرگتر (اصلاح جزئی) --- */
@media (max-width: 1200px) {
    .container {
        width: 95%; /* کمی فضا در کناره‌ها */
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* کارت‌ها دو ستونه می‌شوند */
    }

    .testimonial-content {
        padding: 60px 40px;
    }
}


/* --- برای تبلت‌ها (مثلا iPad) --- */
@media (max-width: 992px) {
    /* --- هدر و منو --- */
    .mobile-menu-toggle {
        display: block; /* نمایش دکمه همبرگری */
    }

    .header-contact-btn {
        display: none; /* مخفی کردن دکمه ارتباط در هدر */
    }
    
    .main-nav {
        display: none; /* مخفی کردن منوی اصلی */
        position: absolute;
        top: 100%; /* زیر هدر */
        left: 0;
        width: 100%;
        background-color: #222; /* پس‌زمینه تیره برای منوی موبایل */
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .main-nav.active {
        display: block; /* نمایش منو با جاوا اسکریپت */
    }

    .main-nav ul {
        flex-direction: column; /* آیتم‌های منو زیر هم */
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .main-nav li {
        padding: 12px 0;
        border-bottom: 1px solid #444;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }

    /* --- بخش Hero --- */
    .hero-content h1 {
        font-size: 80px;
    }

    /* --- بخش About و Specialty --- */
    .about-grid, .specialty-grid {
        grid-template-columns: 1fr; /* تمام بخش‌ها تک ستونه می‌شوند */
        gap: 50px;
    }

    .about-images {
        margin-bottom: 40px; /* فاصله تصویر از متن */
    }

    /* ترتیب عکس و متن در بخش Specialty برای موبایل */
    .specialty-image {
        order: -1; /* تصویر بالا قرار می‌گیرد */
    }
    .specialty-content {
        text-align: center;
        padding-left: 0;
    }
    
    /* --- بخش نظرات --- */
    .testimonial-container {
        flex-direction: column; /* تصویر بالای متن قرار می‌گیرد */
    }

    .testimonial-image {
        min-height: 350px;
    }
        .logo{
        margin-right: 700px;
    }
}


/* --- برای دستگاه‌های موبایل --- */
@media (max-width: 768px) {
    /* --- نوار بالایی --- */
    .top-bar .container {
        flex-direction: column; /* آیتم‌ها زیر هم قرار می‌گیرند */
        gap: 10px;
    }
    
    .main-header {
        top: 85px; /* تنظیم موقعیت هدر اصلی با توجه به تغییر نوار بالایی */
    }

    /* --- بخش Hero --- */
    .hero-section {
        height: 80vh; /* کاهش ارتفاع برای موبایل */
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column; /* دکمه و شماره تماس زیر هم */
        gap: 25px;
    }

    .cta-contact-info {
        text-align: center;
    }

    /* --- بخش کارت‌ها --- */
    .features-grid {
        grid-template-columns: 1fr; /* کارت‌ها تک ستونه می‌شوند */
    }
    
    /* --- بخش درباره ما --- */
    .about-images {
        height: auto; /* ارتفاع اتوماتیک */
    }
    
    .about-images .secondary-image {
        display: none; /* مخفی کردن تصویر دوم برای سادگی */
    }
    
    .about-images .main-image {
        width: 100%;
        height: auto;
        position: relative; /* حذف حالت absolute */
    }
    
    .experience-box {
        bottom: 15px;
        right: 15px;
        padding: 15px;
    }
    
    /* --- بخش محل کار --- */
    .section-header .main-heading {
        font-size: 32px;
    }

    .cards-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    /* --- بخش آمار --- */
    .stats-section {
        background-attachment: scroll; /* حذف افکت پارالاکس در موبایل برای کارایی بهتر */
    }
    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }
    .stat-item .stat-number {
        font-size: 42px;
    }

    /* --- بخش CTA --- */
    .cta-section {
        padding: 80px 20px;
        background-attachment: scroll;
    }
    .cta-heading {
        font-size: 30px;
    }
    .cta-subtext {
        font-size: 16px;
    }

    /* --- فوتر --- */
    .footer-main {
        flex-direction: column;
        text-align: center; /* همه چیز در مرکز قرار می‌گیرد */
        gap: 30px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-links a:hover {
        padding-right: 0;
    }
    .top-bar-left {
        display: none;
    }
    .logo{
        margin-right: 200px;
    }
}