/**
 * VECTRO INDUSTRIAL - Solutions & Simulator Stylesheet
 * Architectural Standard: Industrial High-Craft Utilitarian, Consultative Marketing 5.0
 */

@import url("./tokens.css");

/* -------------------------------------------------------------
   1. HERO SECTION
------------------------------------------------------------- */
.solutions-hero-section {
  position: relative;
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
  background: linear-gradient(180deg, #F8EFE0 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.solutions-hero-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.solutions-hero-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.solutions-hero-lead {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.solutions-hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   2. 4-STAGE PARTNERSHIP LIFECYCLE
------------------------------------------------------------- */
.lifecycle-section {
  background: var(--bg-page-dark);
  border-bottom: 1px solid var(--border-light);
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.lifecycle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.lifecycle-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.lifecycle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.lifecycle-step-num {
  font-family: var(--font-family-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.lifecycle-phase-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.lifecycle-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
}

.lifecycle-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.lifecycle-title {
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.lifecycle-tagline {
  font-size: 0.8125rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.lifecycle-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.lifecycle-deliverable-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.lifecycle-deliverable-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.lifecycle-deliverable-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* -------------------------------------------------------------
   3. INTERACTIVE PRODUCTION & ELECTRICAL CALCULATOR
------------------------------------------------------------- */
.calculator-section {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.calculator-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: start;
}

/* Left Panel: Input Controls */
.calc-controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
}

.calc-field-group {
  margin-bottom: var(--space-6);
}

.calc-field-group:last-child {
  margin-bottom: 0;
}

.calc-field-label {
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.calc-pills-wrap {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.calc-sector-btn {
  flex: 1 1 calc(33.333% - var(--space-2));
  min-width: 140px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.calc-sector-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-page-dark);
}

.calc-sector-btn.active {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(247, 192, 45, 0.2);
}

.calc-scale-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-scale-radio-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.calc-scale-radio-card:hover {
  border-color: var(--border-light);
  background: var(--bg-page-dark);
}

.calc-scale-radio-card.active {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.calc-scale-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.calc-scale-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-power-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.calc-power-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.calc-power-btn:hover {
  border-color: var(--border-light);
}

.calc-power-btn.active {
  background: rgba(60, 118, 61, 0.2);
  border-color: var(--accent-green-bright);
  color: var(--accent-green-bright);
}

/* Right Panel: Live Blueprint Result Card */
.calc-result-blueprint {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.calc-result-header-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.calc-status-compatible {
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid var(--accent-green-bright);
  color: var(--accent-green-bright);
}

.calc-status-advisory {
  background: rgba(247, 192, 45, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.calc-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  background: var(--bg-page-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.calc-metric-box {
  display: flex;
  flex-direction: column;
}

.calc-metric-val {
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.calc-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.calc-package-block {
  margin-bottom: var(--space-4);
}

.calc-package-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: var(--space-2);
}

.calc-machine-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-machine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.calc-machine-name {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-machine-power {
  font-family: var(--font-family-mono);
  font-size: 0.8125rem;
  color: var(--brand-primary);
  background: var(--bg-page-dark);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.calc-advisory-alert {
  background: rgba(247, 192, 45, 0.1);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   4. WARRANTY & SERVICE SLA SECTION
------------------------------------------------------------- */
.warranty-section {
  background: var(--bg-page-dark);
  border-bottom: 1px solid var(--border-light);
}

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.warranty-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.warranty-badge-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: var(--space-3);
}

.warranty-title {
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.warranty-coverage {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.warranty-highlight-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-green-bright);
}

/* -------------------------------------------------------------
   5. RESPONSIVENESS
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-split-layout {
    grid-template-columns: 1fr;
  }
  .warranty-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .solutions-hero-title {
    font-size: var(--font-size-2xl);
  }
  .lifecycle-grid {
    grid-template-columns: 1fr;
  }
  .calc-controls-card,
  .calc-result-blueprint {
    padding: var(--space-4);
  }
  .calc-metrics-row {
    grid-template-columns: 1fr;
  }
  .calc-power-switches {
    grid-template-columns: 1fr;
  }
  .calc-sector-btn {
    min-width: 90px;
    padding: var(--space-2) var(--space-3);
  }
  .calc-field-group {
    margin-bottom: var(--space-4);
  }
  .calc-machine-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
