/* ============================================================
   SolutionMall – Power Cable Solutions
   solution-styles.css – Shared styles for all solution pages
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a2332;
  background: #f8fafc;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- CSS Variables ---- */
:root {
  --blue: #1a56db;
  --blue-dark: #1342b0;
  --blue-light: #e8f0fe;
  --navy: #0f1f3d;
  --teal: #0891b2;
  --green: #059669;
  --orange: #d97706;
  --red: #dc2626;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,31,61,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 64px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  text-decoration: none;
}
.navbar-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.navbar-url {
  font-size: 10px; color: rgba(255,255,255,.55);
  letter-spacing: .3px; line-height: 1;
}
.navbar-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.navbar-breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.navbar-breadcrumb a:hover { color: #fff; }
.navbar-breadcrumb .sep { color: rgba(255,255,255,.3); }
.navbar-breadcrumb .current { color: #fff; font-weight: 500; }
.navbar-right {
  display: flex; align-items: center; gap: 8px;
}
.lang-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: rgba(255,255,255,.7);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .2s; letter-spacing: .5px;
}
.lang-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-browse-nav {
  padding: 7px 16px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600;
  transition: background .2s;
}
.btn-browse-nav:hover { background: var(--blue-dark); }

/* ---- Hero Section ---- */
.solution-hero {
  position: relative;
  padding: 120px 24px 72px;
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6b 50%, #0f2d5a 100%);
  overflow: hidden;
}
.solution-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  opacity: .12;
}
.solution-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,86,219,.25); border: 1px solid rgba(26,86,219,.4);
  color: #93c5fd; padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #60a5fa; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.solution-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: 16px;
}
.solution-hero h1 span { color: #60a5fa; }
.solution-hero .hero-desc {
  font-size: 16px; color: rgba(255,255,255,.75);
  line-height: 1.7; margin-bottom: 28px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.hero-tag {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 24px; border-radius: 10px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: all .2s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,.4); }
.btn-outline {
  padding: 12px 24px; border-radius: 10px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 14px; font-weight: 600;
  transition: all .2s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* Hero right side - stats */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hero-stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.hero-stat-num {
  font-size: 32px; font-weight: 800; color: #60a5fa;
  line-height: 1; margin-bottom: 6px;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---- Section Common ---- */
.section { padding: 80px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; color: var(--navy);
  line-height: 1.25; margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--gray-600);
  max-width: 680px; line-height: 1.7;
}
.section-dark {
  background: var(--navy);
}
.section-dark .section-tag {
  background: rgba(26,86,219,.25); color: #93c5fd;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,.65); }

/* ---- Value Cards ---- */
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 40px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.value-icon.blue { background: var(--blue-light); }
.value-icon.green { background: #d1fae5; }
.value-icon.orange { background: #fef3c7; }
.value-icon.red { background: #fee2e2; }
.value-icon.teal { background: #cffafe; }
.value-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ---- Architecture Diagram ---- */
.arch-section { background: var(--gray-50); }
.arch-container {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.arch-title {
  text-align: center;
  font-size: 14px; font-weight: 700; color: var(--gray-600);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.arch-svg-wrap {
  display: flex; justify-content: center;
  min-height: 320px;
}
.arch-svg-wrap svg {
  max-width: 100%; height: auto;
}
.arch-legend {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-600);
}
.legend-line {
  width: 28px; height: 3px; border-radius: 2px;
}

/* ---- Products Grid ---- */
.products-section { background: var(--white); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.product-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all .2s;
}
.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.product-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: .5px;
}
.product-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card .product-spec {
  font-size: 12px; color: var(--blue); font-weight: 600;
  margin-bottom: 10px;
}
.product-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.product-features {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px;
}
.product-feature-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
}

/* ---- Workflow ---- */
.workflow-section { background: var(--navy); }
.workflow-steps {
  display: flex; align-items: flex-start;
  gap: 0; margin-top: 40px;
  overflow-x: auto; padding-bottom: 8px;
}
.workflow-step {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.workflow-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -12px; top: 22px;
  color: rgba(255,255,255,.4); font-size: 18px;
  z-index: 1;
}
.step-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  margin-bottom: 12px; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(26,86,219,.25);
}
.step-label {
  font-size: 12px; font-weight: 600; color: #fff;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 11px; color: rgba(255,255,255,.55);
  line-height: 1.5; max-width: 120px;
}

/* ---- Scenarios ---- */
.scenarios-section { background: var(--white); }
.scenarios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 40px;
}
.scenario-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all .2s;
}
.scenario-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
}
.scenario-icon { font-size: 32px; margin-bottom: 10px; }
.scenario-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.scenario-card p { font-size: 12px; color: var(--gray-600); }

/* ---- Selection Guide ---- */
.selection-section { background: var(--gray-50); }
.selection-table-wrap {
  overflow-x: auto; margin-top: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.selection-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
}
.selection-table th {
  background: var(--navy); color: #fff;
  padding: 14px 16px; text-align: left;
  font-size: 13px; font-weight: 600;
}
.selection-table th:first-child { border-radius: var(--radius) 0 0 0; }
.selection-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.selection-table td {
  padding: 12px 16px;
  font-size: 13px; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}
.selection-table tr:hover td { background: var(--gray-50); }
.selection-table tr:last-child td { border-bottom: none; }
.rec-tag {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  padding: 2px 8px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}

/* ---- Risk Warnings ---- */
.risks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 32px;
}
.risk-card {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.risk-card h5 {
  font-size: 13px; font-weight: 700; color: var(--red);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.risk-card p { font-size: 12px; color: #7f1d1d; line-height: 1.5; }

/* ---- Deployment Notes ---- */
.deploy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 32px;
}
.deploy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.deploy-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.deploy-card h5 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.deploy-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 80px 24px; text-align: center;
}
.cta-section h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.solution-footer {
  background: #060e1e;
  padding: 40px 24px;
  text-align: center;
}
.footer-logo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 20px;
}
.footer-logo { height: 28px; filter: brightness(0) invert(1); opacity: .7; }
.footer-url { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-links {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.25); }

/* ---- Back to top ---- */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md);
  transition: all .2s; opacity: 0; pointer-events: none;
  z-index: 999;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .solution-hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .workflow-steps { flex-direction: column; align-items: flex-start; }
  .workflow-step:not(:last-child)::after { content: '↓'; right: auto; left: 22px; top: auto; bottom: -16px; }
  .navbar-breadcrumb { display: none; }
}
