/* پایه */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  direction: rtl;
  background-color: #878790;
  color: #223;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }

/* هدر و منو */
header {
  background: linear-gradient(135deg, #003366, #004a99);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: background 0.25s ease, transform 0.2s ease;
}
nav a:hover { background-color: rgba(255,255,255,0.22); transform: translateY(-1px); }

/* بخش‌ها */
section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
section h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: #0f3a7a;
}

/* لوگوی بزرگ ابتدای سایت */
.brand-hero {
  text-align: center;
  padding-top: 2.5rem;
}
.logo-hero {
  width: min(420px, 80%);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.15));
}
.tagline {
  color: #334;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

/* خدمات */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.service-card {
  background: #ffffff;
  border: 1px solid #e7eef6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.service-card h3 {
  margin: 0.9rem 1rem 0.4rem;
  font-size: 1.05rem;
  color: #0f3a7a;
}
.service-card p {
  margin: 0 1rem 1rem;
  color: #445;
}

/* پروژه‌ها */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.project {
  background: #fff;
  border: 1px solid #e7eef6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-position: top;
  object-fit: cover;
}
.project p {
  margin: 0.75rem 1rem 1rem;
  color: #445;
}

/* لوگوی بزرگ دوم */
.brand-secondary {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}
.logo-secondary {
  width: min(360px, 70%);
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}

/* فرم و دکمه */
form {
  display: grid;
  gap: 1rem;
}
input, textarea {
  padding: 0.8rem 0.9rem;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
button {
  padding: 0.85rem 1rem;
  background-color: #0f3a7a;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.15s ease;
}
button:hover { background-color: #1450a6; transform: translateY(-1px); }
#form-message {
  transition: opacity 0.5s ease;
  opacity: 0;
  color: #118a2b;
  font-weight: 700;
}

/* آدرس و اطلاعات تماس (آخرین بخش) */
#about-company {
  background: #f4f7fb;
  border: 1px solid #e7eef6;
  border-radius: 14px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.contact-card {
  background: #fff;
  border: 1px solid #e7eef6;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-card h3 {
  margin: 0 0 0.5rem;
  color: #0f3a7a;
  font-size: 1.05rem;
}
#about-company a {
  color: #0f3a7a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15,58,122,0.35);
}
#about-company a:hover { border-bottom-color: transparent; }

/* فوتر */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0f3a7a;
  color: #fff;
  font-size: 0.92rem;
  margin-top: 2rem;
}

/* ریسپانسیو */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
/* بخش آدرس و اطلاعات - ریسپانسیو */
#about-company {
    background: #f4f7fb;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    padding: 2rem 1rem;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-card {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
  }
  
  .contact-card h3 {
    margin: 0 0 0.5rem;
    color: #0f3a7a;
    font-size: 1.1rem;
  }
  
  #about-company a {
    color: #0f3a7a;
    text-decoration: none;
    border-bottom: 1px dashed rgba(15,58,122,0.35);
  }
  
  #about-company a:hover {
    border-bottom-color: transparent;
  }
  
  /* نمایش دو ستونه برای تبلت و دسکتاپ */
  @media (min-width: 768px) {
    .contact-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* استایل جذاب برای لوگوها */
  .logo-hero, .logo-secondary {
    width: min(420px, 90%);
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .logo-hero:hover, .logo-secondary:hover {
    transform: scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25));
  }

  /* حالت موبایل */
@media (max-width: 768px) {
    nav ul {
      display: none;
      flex-direction: column;
      background: #003366;
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      padding: 1rem 0;
    }
    nav ul.show {
      display: flex;
    }
    .menu-toggle {
      display: block;
      cursor: pointer;
      font-size: 1.5rem;
      color: white;
    }
  }
  
  /* پیش‌فرض دسکتاپ */
  .menu-toggle {
    display: none;
  }
  

/* انیمیشن‌ها */
.fade-in { animation: fadeIn 1.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fade-up { opacity: 0; transform: translateY(40px); }
.fade-up.active { opacity: 1; transform: translateY(0); }
/* ویدیو معرفی خدمات */
.intro-video {
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.intro-video h2 {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.video-desc {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* نسبت 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}
#a123456{
  color: #0f3a7a;
}
.license-card {
  margin-top: 2rem;
  text-align: center; /* متن و تصویر وسط‌چین */
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-s);
}

.license-card h3 {
  margin-bottom: 1rem;
  color: #0f3a7a;
  font-size: 1.05rem;
}

.license-card img {
  display: block;
  margin: 0 auto; /* وسط‌چین افقی */
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-s);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

