/* ========================================
   Quality Page - High Trust + High Conversion
   ======================================== */

/* ----- Hero Section ----- */
.quality-hero {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0B0F14 0%, #111827 50%, #0d1f3c 100%);
  z-index: 0;
}

.hero-grid-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.quality-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 1;
  pointer-events: none;
}

.quality-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 70%);
  bottom: -80px;
  left: 10%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 420px;
  padding-top: 100px;
  padding-bottom: 40px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-cyan, #00E5FF);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
  max-width: 700px;
}

.hero-desc {
  font-size: 15px;
  color: #9CA3AF;
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Hero Trust Points */
.hero-trust-points {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.trust-point svg {
  width: 18px;
  height: 18px;
  color: var(--c-cyan, #00E5FF);
  flex-shrink: 0;
}

/* ----- Process Section ----- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.process-card-highlight {
  border-color: var(--c-cyan, #00E5FF);
  background: linear-gradient(135deg, var(--c-bg-card, #1e293b) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.process-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-cyan, #00E5FF);
  margin-bottom: 12px;
  line-height: 1;
}

.process-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--c-cyan, #00E5FF);
}

.process-icon svg {
  width: 100%;
  height: 100%;
}

.process-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-heading, #fff);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--c-text-dim, #94a3b8);
  line-height: 1.6;
  margin-bottom: 12px;
}

.process-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-cyan, #00E5FF);
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--c-border, #334155);
}

.process-check svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ----- Flow Section ----- */
.flow-section {
  background: var(--c-bg, #0B1A2A);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
  position: relative;
}

.flow-start,
.flow-end {
  flex-shrink: 0;
}

.flow-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-heading, #fff);
}

.flow-location svg {
  width: 20px;
  height: 20px;
  color: var(--c-cyan, #00E5FF);
}

.flow-location-global {
  border-color: var(--c-cyan, #00E5FF);
  background: linear-gradient(135deg, var(--c-bg-card, #1e293b) 0%, rgba(0, 229, 255, 0.1) 100%);
}

.flow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--c-border, #334155) 0%, var(--c-cyan, #00E5FF) 50%, var(--c-border, #334155) 100%);
  position: relative;
  margin: 0 20px;
}

.flow-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--c-cyan, #00E5FF);
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: flowMove 3s linear infinite;
  box-shadow: 0 0 10px var(--c-cyan, #00E5FF);
}

@keyframes flowMove {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.flow-steps {
  display: flex;
  gap: 16px;
}

.flow-step {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.flow-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-border, #334155);
  border: 2px solid var(--c-cyan, #00E5FF);
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.flow-step:hover .flow-step-dot {
  background: var(--c-cyan, #00E5FF);
  box-shadow: 0 0 12px var(--c-cyan, #00E5FF);
}

.flow-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text, #cbd5e1);
}

.flow-step-hover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--c-bg-card, #1e293b);
  border: 1px solid var(--c-border, #334155);
  padding: 8px 12px;
  border-radius: var(--r-sm, 6px);
  font-size: 11px;
  color: var(--c-text, #cbd5e1);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.flow-step:hover .flow-step-hover {
  opacity: 1;
  visibility: visible;
}

/* ----- Inspection Section ----- */
.inspection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.inspection-card {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inspection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.inspection-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.inspection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.inspection-card:hover .inspection-image img {
  transform: scale(1.05);
}

.inspection-content {
  padding: 20px;
}

.inspection-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-heading-dark, #0F172A);
  margin-bottom: 12px;
}

.inspection-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspection-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-dark, #374151);
}

.inspection-list svg {
  width: 14px;
  height: 14px;
  color: var(--c-cyan, #00E5FF);
  flex-shrink: 0;
}

/* ----- Evidence Section ----- */
.evidence-section {
  background: var(--c-bg, #0B1A2A);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.evidence-item {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.evidence-item:hover {
  transform: translateY(-4px);
}

.evidence-pdf {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.evidence-pdf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border, #334155);
}

.evidence-pdf-header svg {
  width: 20px;
  height: 20px;
  color: #ef4444;
}

.evidence-pdf-header span {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-heading, #fff);
}

.evidence-pdf-content {
  flex: 1;
}

.pdf-line {
  font-size: 12px;
  color: var(--c-text-dim, #94a3b8);
  margin-bottom: 6px;
}

.pdf-line-title {
  font-weight: 700;
  color: var(--c-heading, #fff);
  margin-bottom: 12px;
}

.pdf-line-result {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border, #334155);
  font-weight: 700;
  color: #22c55e;
}

.pdf-line-result svg {
  width: 14px;
  height: 14px;
}

.evidence-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.evidence-item:hover .evidence-image img {
  transform: scale(1.05);
}

.evidence-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--c-text, #cbd5e1);
  text-align: center;
  background: var(--c-bg-card, #1e293b);
}

/* ----- Warehouse Section ----- */
.warehouse-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.warehouse-main {
  position: relative;
  border-radius: var(--r-md, 8px);
  overflow: hidden;
  height: 320px;
}

.warehouse-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.warehouse-main:hover img {
  transform: scale(1.03);
}

.warehouse-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.warehouse-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.warehouse-overlay p {
  font-size: 14px;
  color: var(--c-cyan, #00E5FF);
}

.warehouse-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.warehouse-stat {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  padding: 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.warehouse-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-cyan, #00E5FF);
  line-height: 1;
  margin-bottom: 6px;
}

.warehouse-stat-label {
  font-size: 12px;
  color: var(--c-text-dim, #94a3b8);
}

/* ----- Trust Section ----- */
.trust-section {
  background: var(--c-bg, #0B1A2A);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-stat-card {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-cyan, #00E5FF);
}

.trust-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--c-cyan, #00E5FF);
}

.trust-stat-icon svg {
  width: 100%;
  height: 100%;
}

.trust-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-heading, #fff);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-stat-label {
  font-size: 13px;
  color: var(--c-text-dim, #94a3b8);
}

/* ----- CTA Section ----- */
.cta-quality {
  background: var(--c-bg-light, #F5F7FA);
}

.cta-quality-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-quality-inner h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-heading-dark, #0F172A);
  margin-bottom: 12px;
}

.cta-quality-inner p {
  font-size: 15px;
  color: var(--c-text-dark, #374151);
  margin-bottom: 28px;
}

.cta-quality-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm, 8px);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #00BFFF, #0080FF);
  color: #fff;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.btn-cta-secondary {
  background: var(--c-bg-card, #1e293b);
  color: var(--c-heading, #fff);
  border: 1px solid var(--c-border, #334155);
}

.btn-cta-secondary:hover {
  border-color: var(--c-cyan, #00E5FF);
  color: var(--c-cyan, #00E5FF);
}

.btn-cta-primary svg,
.btn-cta-secondary svg {
  width: 18px;
  height: 18px;
}

/* Risk Guarantees */
.risk-guarantees {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.risk-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-dark, #374151);
}

.risk-guarantee svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
  flex-shrink: 0;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-diagram {
    flex-direction: column;
    gap: 20px;
  }

  .flow-line {
    width: 2px;
    height: 60px;
    margin: 0;
    background: linear-gradient(180deg, var(--c-border, #334155) 0%, var(--c-cyan, #00E5FF) 50%, var(--c-border, #334155) 100%);
  }

  .flow-particle {
    animation: flowMoveVertical 3s linear infinite;
  }

  @keyframes flowMoveVertical {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .flow-steps {
    flex-direction: column;
    gap: 12px;
  }

  .flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 200px;
  }

  .flow-step-dot {
    margin: 0;
  }

  .flow-step-label {
    flex: 1;
    text-align: left;
  }

  .flow-step-hover {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: auto;
  }

  .inspection-grid {
    grid-template-columns: 1fr;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .warehouse-showcase {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-quality-btns {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-trust-points {
    flex-direction: column;
    gap: 12px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .warehouse-main {
    height: 240px;
  }

  .risk-guarantees {
    flex-direction: column;
    gap: 12px;
  }
}

/* ----- Mobile CTA Fixed Bottom ----- */
@media (max-width: 767px) {
  .cta-quality {
    padding-bottom: 100px;
  }

  .mobile-cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    gap: 12px;
  }

  .mobile-cta-fixed .btn-cta-primary,
  .mobile-cta-fixed .btn-cta-secondary {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }
}
