/* ============================================================
   MON TEX GRASS — Installation Page Styles
   صفحه نصب و اجرا
   ============================================================ */

/* ============================================================
   ۱) Hero
   ============================================================ */
.page-hero-installation::before {
  background-image: url('../images/hero-installation.jpg');
}
.page-hero-installation .page-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 40, 20, .90) 0%,
    rgba(10, 40, 20, .82) 50%,
    rgba(10, 40, 20, .90) 100%
  );
}

/* ============================================================
   ۲) بخش مزایا
   ============================================================ */
.install-benefits { background: var(--bg); }

/* ============================================================
   ۳) مراحل نصب (Steps)
   ============================================================ */
.install-steps { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}

.step-card {
  position: relative;
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -14px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  font-family: monospace;
  box-shadow: 0 6px 16px rgba(30, 122, 60, .3);
}

.step-content { margin-top: 8px; }

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.step-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 7px;
  padding: 0;
}
.step-list li {
  position: relative;
  padding-right: 22px;
  font-size: 13px;
  color: #41544a;
  line-height: 1.7;
}
.step-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   ۴) جدول قیمت (Pricing Table)
   ============================================================ */
.install-pricing {
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e3ede6;
  box-shadow: 0 4px 20px rgba(18, 82, 40, .08);
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  background: var(--white);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.pricing-table th {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 18px 16px;
  text-align: right;
  white-space: nowrap;
}

.pricing-table td {
  padding: 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid #eef4f0;
  vertical-align: middle;
}
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:nth-child(even) { background: #f8fcf9; }
.pricing-table tbody tr:hover { background: var(--green-light); }

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--green-dark);
}

.price-range {
  color: #b45309;
  font-weight: 800;
  white-space: nowrap;
  direction: rtl;
}

.price-free {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.total-row {
  background: linear-gradient(135deg, var(--green-light), #d4efdc) !important;
  border-top: 2px solid var(--green);
}
.total-row td {
  font-size: 14.5px;
  padding: 18px 16px;
}
.total-row .price-range {
  font-size: 16px;
}

/* نکته زیر جدول */
.pricing-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1.5px dashed #f5a623;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.pricing-note svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #a16207;
}
.pricing-note p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #a16207;
  margin: 0;
}
.pricing-note a {
  color: #a16207;
  font-weight: 800;
  text-decoration: underline;
}

.pricing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ۵) بسترهای نصب (Surfaces)
   ============================================================ */
.install-surfaces { background: var(--white); }

.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.surface-card {
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.surface-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.surface-icon {
  font-size: 44px;
  margin-bottom: 14px;
  line-height: 1;
  display: block;
}

.surface-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.surface-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.surface-cost {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ============================================================
   ۶) متریال مصرفی
   ============================================================ */
.install-materials { background: var(--bg); }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.material-item {
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.material-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
}

.material-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
  display: block;
}

.material-item h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.material-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ۷) چرا مونتکس
   ============================================================ */
.install-why-us { background: var(--white); }

.why-install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.why-card {
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.why-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}

.why-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   ۸) FAQ (مشترک با home.css)
   ============================================================ */

/* ============================================================
   ۹) ریسپانسیو
   ============================================================ */

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .surfaces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .page-hero-installation { padding: 56px 0 48px; }

  .pricing-table th,
  .pricing-table td {
    padding: 12px 12px;
    font-size: 12.5px;
  }
  .pricing-table th { font-size: 13px; }

  .pricing-cta { flex-direction: column; }
  .pricing-cta .btn { width: 100%; text-align: center; justify-content: center; }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .material-item { padding: 16px 14px; }
  .material-icon { font-size: 28px; }
  .material-item h4 { font-size: 13px; }
  .material-item p { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .page-hero-installation { padding: 44px 0 40px; }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .step-card { padding: 24px 18px 20px; }
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 15px;
    top: -12px;
    right: 18px;
  }

  .surfaces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .surface-card { padding: 20px 14px; }
  .surface-icon { font-size: 32px; }
  .surface-card h3 { font-size: 13.5px; }
  .surface-card p { font-size: 11.5px; }

  .why-install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .why-card { padding: 18px 14px; }
  .why-icon { font-size: 30px; }
  .why-card h3 { font-size: 13px; }
  .why-card p { font-size: 11.5px; }

  .pricing-note { padding: 14px 16px; gap: 8px; }
  .pricing-note p { font-size: 12.5px; }
}

@media (max-width: 379px) {
  .surfaces-grid,
  .why-install-grid,
  .materials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}