:root {
  --bg: #0f1720;
  --bg-soft: #18222d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #eef3f8;
  --muted: #b7c2cc;
  --primary: #8ea3b7;
  --primary-strong: #bfc9d1;
  --accent: #556b7d;
  --steel: #c7d0d9;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --transition: all 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background:
    linear-gradient(rgba(10, 15, 20, 0.9), rgba(10, 15, 20, 0.97)),
    radial-gradient(circle at top left, rgba(199, 208, 217, 0.06), transparent 25%),
    linear-gradient(135deg, #0b1117, #121c26);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 17, 23, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--steel);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary-strong);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 46px;
  height: 46px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(7, 10, 14, 0.72), rgba(7, 10, 14, 0.85)),
    url("images/hero-steel.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 25, 0.88), rgba(12, 18, 25, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  color: var(--steel);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
  color: #fff;
}

.hero-text h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--primary-strong);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text p {
  color: var(--muted);
  max-width: 680px;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #8a99a8, #c1cad2);
  color: #0c1318;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(193, 202, 210, 0.18);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}

.info-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bcc7cf;
  box-shadow: 0 0 15px rgba(188, 199, 207, 0.7);
}

.info-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-card li {
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-image img {
  border-radius: 24px;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 22px;
}

.section-head span {
  color: var(--primary-strong);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
}

.section-head.center {
  text-align: center;
  margin-bottom: 36px;
}

.products-grid,
.adv-grid,
.gallery-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card,
.adv-card,
.stat-card,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.product-card {
  transition: var(--transition);
}

.product-card:hover,
.adv-card:hover,
.gallery-item:hover {
  transform: translateY(-8px);
}

.product-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-content {
  padding: 22px;
}

.product-content h3 {
  margin-bottom: 10px;
}

.product-content p,
.adv-card p,
.contact-box p,
.about-text p {
  color: var(--muted);
}

.adv-grid {
  grid-template-columns: repeat(4, 1fr);
}

.adv-card {
  padding: 26px;
  transition: var(--transition);
}

.adv-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  padding: 28px 18px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.4rem;
  color: var(--steel);
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--muted);
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.contact-box {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-box span {
  color: var(--primary-strong);
  font-weight: 700;
}

.contact-box h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 10px 0 12px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

.floating {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-8px);
  background: var(--surface-2);
}

.contact-card h3 {
  color: var(--steel);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.contact-card .address {
  margin-bottom: 24px;
  min-height: 50px; /* برای هم‌ترازی ارتفاع */
}

.contact-list {
  display: grid;
  gap: 12px;
}

/* اصلاح استایل دکمه‌ها برای نمایش در کارت */
.contact-list .btn-secondary {
  width: 100%;
  font-size: 0.9rem;
  padding: 12px;
  justify-content: flex-start; /* شماره‌ها از سمت راست چیده شوند */
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
    background: rgba(12, 18, 25, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-content,
  .about-grid,
  .products-grid,
  .adv-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 120px 0 70px;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .product-image img,
  .gallery-item img,
  .about-image img {
    height: 240px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 70px 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .product-content,
  .adv-card,
  .contact-box,
  .stat-card {
    padding: 20px;
  }
}
