/* ==========================================================================
   CITADEL TRIAD — SHARED DIVISION SUBPAGES STYLESHEET (css/subpages.css)
   Powers:
   - it-solutions.html (Managed IT & SecOps)
   - software.html (Custom Software & Automation)
   - bpo.html (CX & Finance Pods)
   - industries.html (15 Industry Verticals)
   Fully integrated with styles.css Dark/Light tokens & typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED DIVISION TEMPLATE FOUNDATION
   -------------------------------------------------------------------------- */

/* Division Hero Canvas (Dark Telemetry & Bento Base) */
.div-hero-canvas,
.it-hero-canvas {
  position: relative;
  background: linear-gradient(125deg, #05070A 0%, #0B111E 55%, rgba(37, 99, 235, 0.22) 100%),
              radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.15), transparent 50%);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .div-hero-canvas,
html[data-theme="light"] .it-hero-canvas {
  background: linear-gradient(125deg, #FFFFFF 0%, #F8FAFC 55%, rgba(37, 99, 235, 0.08) 100%),
              radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.08), transparent 50%);
  border-color: #CBD5E1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Division Display Gradient Text */
.div-gradient-text,
.it-gradient-text {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Division Capability Bento Card */
.div-capability-card,
.it-capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  overflow: hidden;
  transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.div-capability-card::before,
.it-capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563EB, #06B6D4, transparent);
  opacity: 0;
  transition: opacity 250ms ease;
}

.div-capability-card:hover,
.it-capability-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(37, 99, 235, 0.12);
}

.div-capability-card:hover::before,
.it-capability-card:hover::before {
  opacity: 1;
}

html[data-theme="light"] .div-capability-card,
html[data-theme="light"] .it-capability-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .div-capability-card:hover,
html[data-theme="light"] .it-capability-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Division Spec Badge */
.div-spec-badge,
.it-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60A5FA;
}

html[data-theme="light"] .div-spec-badge,
html[data-theme="light"] .it-spec-badge {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
  color: #2563EB;
}

/* Division SLA Tier Comparison Grid & Cards */
.div-sla-grid,
.it-sla-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1024px) {
  .div-sla-grid,
  .it-sla-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.div-sla-card,
.it-sla-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 20px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: all 250ms ease;
}

.div-sla-card.is-featured,
.it-sla-card.is-featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%), #0B111E;
  border: 2px solid #2563EB;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 32px rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
}

html[data-theme="light"] .div-sla-card,
html[data-theme="light"] .it-sla-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .div-sla-card.is-featured,
html[data-theme="light"] .it-sla-card.is-featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, #FFFFFF 100%);
  border-color: #2563EB;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
}

.div-sla-pill,
.it-sla-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.6);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Division Checklist & Radio Selector Pills */
.div-check-pill,
.it-check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0F172A;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  color: var(--text-secondary, #94A3B8);
  transition: all 180ms ease;
}

.div-check-pill:hover,
.it-check-pill:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text-primary, #F8FAFC);
}

.div-check-pill.is-selected,
.it-check-pill.is-selected {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563EB;
  color: #FFFFFF;
}

.div-check-pill input[type="checkbox"],
.div-check-pill input[type="radio"],
.it-check-pill input[type="checkbox"],
.it-check-pill input[type="radio"] {
  accent-color: #2563EB;
  width: 15px;
  height: 15px;
}

html[data-theme="light"] .div-check-pill,
html[data-theme="light"] .it-check-pill {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #475569;
}

html[data-theme="light"] .div-check-pill.is-selected,
html[data-theme="light"] .it-check-pill.is-selected {
  background: rgba(37, 99, 235, 0.08);
  border-color: #2563EB;
  color: #0F172A;
}

/* --------------------------------------------------------------------------
   2. MANAGED IT & SECOPS COMPONENTS (it-solutions.html)
   -------------------------------------------------------------------------- */

/* Telemetry Server Rack / Live Ping Stage */
.it-telemetry-stage {
  position: relative;
  border-radius: 18px;
  background: rgba(11, 17, 30, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .it-telemetry-stage {
  background: rgba(255, 255, 255, 0.9);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.it-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  transition: all 180ms ease;
}

.it-telemetry-row:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(2px);
}

html[data-theme="light"] .it-telemetry-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

/* --------------------------------------------------------------------------
   3. SOFTWARE ENGINEERING COMPONENTS (software.html)
   -------------------------------------------------------------------------- */

/* Architecture Blueprint Card */
.soft-blueprint-card {
  position: relative;
  border-radius: 20px;
  background: #0B111E;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

html[data-theme="light"] .soft-blueprint-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.soft-flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 200ms ease;
}

.soft-flow-node:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3B82F6;
  transform: translateY(-2px);
}

html[data-theme="light"] .soft-flow-node {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

/* Flow Connector with animated pulse */
.soft-flow-connector {
  position: relative;
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: #1E293B;
  overflow: hidden;
}

.soft-flow-connector::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, #38BDF8, transparent);
  animation: flowPulse 2s linear infinite;
}

@keyframes flowPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Tech Stack Filter Bar & Buttons */
.soft-stack-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 9999px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

html[data-theme="light"] .soft-stack-nav {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.soft-stack-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #94A3B8);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}

.soft-stack-btn:hover {
  color: var(--text-primary, #F8FAFC);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .soft-stack-btn:hover {
  background: #FFFFFF;
}

.soft-stack-btn.active {
  color: #FFFFFF;
  background: #2563EB;
  border-color: #3B82F6;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
  font-weight: 600;
}

/* Tech Grid Cards */
.soft-tech-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 14px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: all 220ms ease;
}

.soft-tech-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .soft-tech-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* 4-Stage Delivery Pipeline Card */
.soft-pipeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 18px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: all 220ms ease;
}

.soft-pipeline-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
}

html[data-theme="light"] .soft-pipeline-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

/* Featured Product Callout Banner (Citadel POS) */
.soft-pos-banner {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at 92% 50%, rgba(37, 99, 235, 0.22), transparent 50%),
              linear-gradient(135deg, #070B14 0%, #0F172A 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

html[data-theme="light"] .soft-pos-banner {
  background: radial-gradient(circle at 92% 50%, rgba(37, 99, 235, 0.08), transparent 50%),
              linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-color: #CBD5E1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   4. BPO & WORKFORCE PODS COMPONENTS (bpo.html)
   -------------------------------------------------------------------------- */

/* Follow-the-Sun Time-Zone Visualizer */
.bpo-shifts-stage {
  position: relative;
  border-radius: 20px;
  background: rgba(11, 17, 30, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .bpo-shifts-stage {
  background: rgba(255, 255, 255, 0.95);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.bpo-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  transition: all 180ms ease;
}

.bpo-zone-row:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(2px);
}

html[data-theme="light"] .bpo-zone-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

.bpo-colombo-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* BPO Pod Calculator & Range Sliders */
.bpo-calc-card {
  border-radius: 20px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: 24px;
  transition: border-color 200ms ease;
}

html[data-theme="light"] .bpo-calc-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.bpo-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1E293B;
  outline: none;
  transition: background 200ms;
}

html[data-theme="light"] .bpo-range-slider {
  background: #CBD5E1;
}

.bpo-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563EB;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  transition: transform 150ms ease;
}

.bpo-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   5. INDUSTRIES 15-SECTOR EXPANDED MATRIX (industries.html)
   -------------------------------------------------------------------------- */
.ind-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 9999px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

@media (max-width: 640px) {
  .ind-filter-bar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-radius: 14px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ind-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .ind-filter-btn {
    flex-shrink: 0;
  }
}

html[data-theme="light"] .ind-filter-bar {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.ind-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #94A3B8);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}

.ind-filter-btn:hover {
  color: var(--text-primary, #F8FAFC);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .ind-filter-btn:hover {
  background: #FFFFFF;
}

.ind-filter-btn.active {
  color: #FFFFFF;
  background: #2563EB;
  border-color: #3B82F6;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
  font-weight: 600;
}

html[data-theme="light"] #industrySearchInput {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

html[data-theme="light"] #industrySearchInput::placeholder {
  color: #94A3B8;
}

.ind-sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 18px;
  background: #0B111E;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563EB, #06B6D4, transparent);
  opacity: 0;
  transition: opacity 250ms ease;
}

.ind-sector-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(37, 99, 235, 0.1);
}

.ind-sector-card:hover::before {
  opacity: 1;
}

html[data-theme="light"] .ind-sector-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .ind-sector-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ind-compliance-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: #94A3B8;
}

html[data-theme="light"] .ind-compliance-tag {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.ind-pos-crosslink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 11px;
  font-weight: 500;
  color: #60A5FA;
  text-decoration: none;
  transition: all 180ms ease;
}

.ind-pos-crosslink:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   6. REDUCED MOTION ACCESSIBILITY OVERRIDES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .soft-flow-connector::after {
    animation: none;
  }

  .div-capability-card,
  .it-capability-card,
  .soft-pipeline-card,
  .soft-tech-card,
  .ind-sector-card,
  .div-sla-card,
  .it-sla-card {
    transition: none !important;
    transform: none !important;
  }
}
