/* ==========================================================================
   CLIENT DESIGN STUDIO - HIGH DEFINITION COMPONENT SYSTEM (HD 2.0)
   Modular, Archetype-Reactive & 300-DPI Print-Safe
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HD BADGES & STATUS PILLS
   -------------------------------------------------------------------------- */
.hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 3px);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  line-height: 1;
}

.hd-badge-accent {
  background: var(--badge-bg, rgba(197, 155, 39, 0.12));
  color: var(--badge-text, var(--accent));
  border-color: var(--accent-border, rgba(197, 155, 39, 0.25));
}

.hd-badge-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.hd-badge-success {
  background: var(--success-bg, #ecfdf5);
  color: var(--success, #059669);
  border-color: rgba(5, 150, 105, 0.25);
}

.hd-badge-pill {
  border-radius: 9999px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.hd-badge-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   2. HD KPI & STAT CARDS
   -------------------------------------------------------------------------- */
.hd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .hd-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hd-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hd);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hd-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.hd-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.hd-kpi-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-kpi-icon-wrap svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.hd-kpi-trend {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--success-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}

.hd-kpi-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  display: block;
}

.hd-kpi-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

.hd-kpi-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   3. HD PROCESS STEPPER (1-2-3-4 ROADMAP)
   -------------------------------------------------------------------------- */
.hd-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
}

@media (max-width: 768px) {
  .hd-stepper {
    grid-template-columns: 1fr;
  }
}

.hd-step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  position: relative;
  box-shadow: var(--shadow);
}

.hd-step-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.hd-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hd-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. HD FEATURE & CAPABILITY CARDS
   -------------------------------------------------------------------------- */
.hd-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.hd-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.hd-feature-icon svg {
  width: 22px;
  height: 22px;
}

.hd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hd-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hd-checklist-item:last-child {
  border-bottom: none;
}

.hd-check-icon {
  color: var(--success);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   5. HD TRUST SEALS & VERIFICATION RIBBONS
   -------------------------------------------------------------------------- */
.hd-trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed var(--accent-border);
}

.hd-seal-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-seal-badge svg {
  width: 18px;
  height: 18px;
}

.hd-seal-text strong {
  display: block;
  font-size: 0.78rem;
  color: var(--primary);
  line-height: 1.2;
}

.hd-seal-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hd-trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hd-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}

.hd-trust-item svg {
  color: var(--accent);
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   6. HD QUOTE & TESTIMONIAL CALLOUT
   -------------------------------------------------------------------------- */
.hd-quote-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  position: relative;
}

.hd-quote-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: 0.35rem;
}

.hd-quote-stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.hd-quote-text {
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hd-quote-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.35rem;
}

.hd-quote-author strong {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   7. HD VISUAL SPLIT-BAR & PROGRESS METRICS
   -------------------------------------------------------------------------- */
.hd-split-bar {
  width: 100%;
  height: 7px;
  background: var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  margin: 0.4rem 0;
}

.hd-bar-segment {
  height: 100%;
}

.hd-bar-primary { background: var(--primary); }
.hd-bar-accent { background: var(--accent); }
.hd-bar-success { background: var(--success); }

.hd-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hd-metric-val {
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. HD SIGNATURE & FORMAL SIGN-OFF BLOCK
   -------------------------------------------------------------------------- */
.hd-signature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.hd-signature-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hd-sign-line {
  border-bottom: 1px solid var(--text-muted);
  height: 28px;
  margin-bottom: 0.25rem;
  position: relative;
}

.hd-sign-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.hd-stamp-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   9. HD QR-CODE & CONTACT ACTION CARD
   -------------------------------------------------------------------------- */
.hd-qr-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hd-qr-img {
  width: 52px;
  height: 52px;
  background: #ffffff;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hd-qr-content {
  font-size: 0.73rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.hd-qr-content strong {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   10. HD COMPARISON / SPECIFICATION TABLE
   -------------------------------------------------------------------------- */
.hd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.hd-table th {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.hd-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: middle;
}

.hd-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   PRINT OPTIMIZATION GUARDRAILS
   -------------------------------------------------------------------------- */
@media print {
  .hd-kpi-card,
  .hd-feature-card,
  .hd-step-item,
  .hd-quote-box,
  .hd-trust-seal,
  .hd-trust-ribbon,
  .hd-qr-card {
    box-shadow: none !important;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
