/* =============================================
   ECHO IRON – detail.css
   Styles for Service Detail, Project Detail, Industry Detail
   ============================================= */

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .bc-current { color: var(--primary); font-weight: 500; }
.breadcrumb-light a, .breadcrumb-light span { color: rgba(255,255,255,0.6); }
.breadcrumb-light .bc-current { color: rgba(255,255,255,0.95); }

/* =============================================
   SERVICE DETAIL
   ============================================= */
.svc-detail-hero {
  padding: 120px 0 80px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.svc-hero-glow {
  position: absolute;
  top: 60px; right: 60px;
  width: 288px; height: 288px;
  background: rgba(213,208,245,0.35);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.svc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.svc-detail-icon {
  width: 56px; height: 56px;
  background: var(--primary-pale);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}
.svc-detail-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.svc-detail-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.svc-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: background var(--transition), color var(--transition);
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

.svc-detail-img {
  border-radius: 24px;
  overflow: hidden;
  height: 380px;
  background: linear-gradient(135deg,#1a1a2e,#2f2483);
}
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Features/Benefits cards */
.detail-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.detail-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 24px;
}
.detail-numbered {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-numbered li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #4a5565;
}
.detail-numbered li span {
  width: 32px; height: 32px;
  background: var(--primary-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.detail-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-check li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #4a5565;
}
.detail-check li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* =============================================
   PROJECT DETAIL
   ============================================= */
.proj-detail-hero {
  padding-top: 100px;
  background: #fff;
}
.proj-hero-img {
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  margin-top: 20px;
  background: linear-gradient(135deg,#1a1a2e,#2f2483);
}
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.proj-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.proj-detail-main h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin: 16px 0;
  line-height: 1.2;
}
.proj-detail-main > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.proj-detail-main h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}
.proj-detail-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.proj-tag-cat {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
}
.proj-tag-status {
  background: #ecfdf5;
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
}
.proj-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.proj-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #4a5565;
}
.proj-highlights li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.proj-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  gap: 20px;
}
.proj-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: color var(--transition);
  text-decoration: none;
}
.proj-nav-btn:hover { color: var(--primary); }
.proj-nav-btn small { display: block; font-size: 12px; color: var(--text-light); }
.proj-nav-btn strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark); }
.proj-nav-btn.right { text-align: right; flex-direction: row-reverse; }

/* Sidebar */
.proj-detail-sidebar {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: sticky;
  top: 100px;
}
.proj-detail-sidebar h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.proj-detail-items { display: flex; flex-direction: column; gap: 0; }
.proj-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.proj-detail-item:last-child { border-bottom: none; }
.pdi-icon {
  width: 36px; height: 36px;
  background: var(--primary-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.proj-detail-item small { display: block; font-size: 12px; color: var(--text-light); }
.proj-detail-item strong { font-size: 14px; font-weight: 600; color: var(--dark); }
.proj-client-row {
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
  margin-top: 4px;
}
.proj-client-row small { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.proj-client-row strong { font-size: 14px; font-weight: 600; color: var(--dark); }

/* =============================================
   INDUSTRY DETAIL
   ============================================= */
.industry-hero {
  height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.industry-hero-img-wrap {
  position: absolute;
  inset: 0;
}
.industry-hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.industry-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg,rgba(47,36,131,0.85) 0%,rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.industry-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.industry-hero-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.industry-hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px,4vw,52px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.industry-hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

.industry-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.industry-left h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}
.industry-left > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.industry-usecases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.industry-usecases span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a5565;
}
.industry-usecases span::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.industry-right h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}
.metals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metal-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-direction: column;
  min-height: 98px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: box-shadow var(--transition), transform var(--transition);
}
.metal-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.metal-dot {
  width: 32px; height: 32px;
  background: var(--primary-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.metal-dot::after {
  content: '';
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
}
.metal-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  align-self: flex-end;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .svc-detail-layout { grid-template-columns: 1fr; }
  .svc-detail-img { height: 280px; }
  .detail-cards-row { grid-template-columns: 1fr; }
  .proj-detail-layout { grid-template-columns: 1fr; }
  .proj-detail-sidebar { position: static; }
  .industry-detail-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .industry-hero { height: 380px; }
  .proj-hero-img { height: 250px; }
  .metals-grid { grid-template-columns: 1fr 1fr; }
  .industry-usecases { grid-template-columns: 1fr; }
  .proj-nav-row { flex-direction: column; align-items: flex-start; }
  .svc-detail-actions { flex-direction: column; }
  .svc-detail-actions .btn-primary,
  .svc-detail-actions .btn-outline-dark { width: 100%; justify-content: center; }
}
