/* ===== Vacuum Casting Specific Styles ===== */

/* Hero Section */
.services-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 100px 0 !important;
  text-align: center;
}

.services-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.services-hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--jm-color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--jm-color-accent);
}

.hero-cta:hover {
  background: transparent;
  color: var(--jm-color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Table Styles */
.materials-table,
.parameters-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.materials-table th,
.parameters-table th {
  background: var(--jm-color-primary);
  color: #fff;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.materials-table td,
.parameters-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.materials-table tr:last-child td,
.parameters-table tr:last-child td {
  border-bottom: none;
}

.materials-table tr:hover,
.parameters-table tr:hover {
  background: #f8fafc;
}

/* Services Advantages Section */
.services-advantages {
  background: #f8fafc;
}

.services-advantages .services-decision {
  background: transparent;
  border: none;
  padding: 0;
}

.services-advantages ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.services-advantages li {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.services-advantages li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}

.services-advantages li::before {
  content: "✓";
  color: var(--jm-color-accent);
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

/* FAQ Section Enhancements */
.services-faq article {
  cursor: pointer;
}

.services-faq article p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-bottom 0.3s ease;
}

.services-faq article.active p {
  max-height: 200px;
  margin-bottom: 20px;
}

/* Responsive Table Design */
@media (max-width: 768px) {
  .materials-table,
  .parameters-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .services-hero h1 {
    font-size: 36px;
  }
  
  .services-hero {
    padding: 80px 0 !important;
  }
  
  .services-advantages ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-hero h1 {
    font-size: 28px;
  }
  
  .services-hero p {
    font-size: 16px;
  }
  
  .hero-cta {
    padding: 14px 32px;
    font-size: 15px;
  }
}
