/* =============================================
   Manufacturers Page Styles
   ============================================= */

/* Manufacturers page: 2-col grid layout */
.mfg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5), 0 30px 80px rgba(0,0,0,0.06);
}

.mfg-grid .brand-card {
  flex: none;
  scroll-snap-align: none;
}

/* Description text (not on main page) */
.mfg-card__desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Specs grid for detailed page (4 columns) */
.mfg-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mfg-spec-block {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
}

.mfg-spec-block__value {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a2e;
  display: block;
  margin-bottom: 2px;
}

.mfg-spec-block__value--accent {
  color: #1a9a4a;
}

.mfg-spec-block__label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

/* Comparison table */
.comparison-section {
  margin-top: 60px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5), 0 30px 80px rgba(0,0,0,0.06);
  margin-top: 32px;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.comparison-table thead tr {
  background: rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.comparison-table th {
  padding: 16px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a2e;
}

.comparison-table th:first-child { text-align: left; }
.th-short { display: none; }
.comparison-table th:not(:first-child) { text-align: center; }

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.5);
}

.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table td {
  padding: 14px 12px;
  font-size: 13px;
  color: #444;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #1a1a2e;
  text-align: left;
}

.comparison-table td:not(:first-child) { text-align: center; }

@media (max-width: 767px) {
  .mfg-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .mfg-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-table-wrapper {
    border-radius: 16px;
    position: relative;
  }
  .comparison-table {
    min-width: 520px;
  }
  .comparison-table th {
    padding: 12px 6px;
    font-size: 9px;
    white-space: nowrap;
  }
  .th-full { display: none; }
  .th-short { display: inline; }
  .comparison-table td {
    padding: 10px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ---- Certificates marquee ---- */
.certificates-section {
  padding: 60px 0 70px;
}

.certificates-section .section-title {
  margin-bottom: 8px;
}

.cert-subtitle {
  text-align: center;
  color: #777;
  font-size: 15px;
  margin-bottom: 36px;
}

.cert-marquee {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

/* Fade edges */
.cert-marquee::before,
.cert-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.cert-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(232,232,236,1) 0%, transparent 100%);
}

.cert-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(232,232,236,1) 0%, transparent 100%);
}

.cert-track {
  display: flex;
  gap: 16px;
  width: fit-content;
  will-change: transform;
}

.cert-card {
  flex-shrink: 0;
  width: 195px;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.cert-card__img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.cert-card__label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 6px 8px 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .certificates-section {
    padding: 40px 0 50px;
  }
  .cert-card {
    width: 155px;
    height: 230px;
  }
  .cert-card__img {
    height: 195px;
    padding: 6px;
  }
  .cert-marquee::before,
  .cert-marquee::after {
    width: 30px;
  }
}

/* Remove top padding from comparison section */
.mfg-comparison.service-content { padding-top: 0; }
