/* ============================================================
   D365 FINANCE & OPERATIONS
   MANUFACTURING + SUPPLY CHAIN SECTIONS
   File: style/dynamics-365-finance-operations/manufacturing-supply-chain.css
============================================================ */

/* ============================================================
   MANUFACTURING SECTION — Light bg, image left, content right
============================================================ */
.fo-mfg {
  position: relative;
  background: #F5F7FA;
  background: var(--bg-light, #F5F7FA);
  padding: 96px 0;
  overflow: hidden;
}

.fo-mfg-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fo-mfg-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,194,168,0.03) 0%, transparent 60%);
}
.fo-mfg-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,194,168,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

/* Layout */
.fo-mfg-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

/* ── Visual ── */
.fo-mfg-visual { position: relative; }

.fo-mfg-deco-dots {
  position: absolute;
  top: -20px; left: -20px;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle, rgba(0,194,168,0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  z-index: 0; border-radius: 8px;
}
.fo-mfg-img-wrap {
  position: relative; z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(11,31,58,0.13);
}
.fo-mfg-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(11,31,58,0.3) 100%);
  pointer-events: none;
}
.fo-mfg-img {
  width: 100%; height: 420px;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.fo-mfg-img-wrap:hover .fo-mfg-img { transform: scale(1.04); }

/* KPI card */
.fo-mfg-kpi-card {
  position: absolute;
  bottom: -20px; right: -20px; z-index: 2;
  background: #0B1F3A;
  background: var(--primary, #0B1F3A);
  border: 1px solid rgba(0,194,168,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  min-width: 185px;
}
.fo-mfg-kpi-icon {
  width: 40px; height: 40px;
  background: rgba(0,194,168,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #00C2A8; flex-shrink: 0;
}
.fo-mfg-kpi-num {
  display: block;
  font-size: 24px; font-weight: 800;
  color: #00C2A8; line-height: 1;
  letter-spacing: -0.02em;
}
.fo-mfg-kpi-label {
  display: block;
  font-size: 11px; color: rgba(255,255,255,0.5);
  font-weight: 500; margin-top: 2px; line-height: 1.4;
}

/* ── Content ── */
.fo-mfg-content {
  display: flex; flex-direction: column; gap: 22px;
}
.fo-mfg-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700;
  color: #00C2A8; color: var(--secondary, #00C2A8);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.fo-mfg-label-line {
  display: inline-block; width: 28px; height: 2px;
  background: #00C2A8; background: var(--secondary, #00C2A8);
  border-radius: 2px; flex-shrink: 0;
}
.fo-mfg-heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: #0B1F3A; color: var(--primary, #0B1F3A);
  line-height: 1.2; letter-spacing: -0.02em; margin: 0;
}
.fo-mfg-heading-accent {
  color: #00C2A8; color: var(--secondary, #00C2A8);
}
.fo-mfg-desc {
  font-size: 14.5px;
  color: #6B7280; color: var(--text-light, #6B7280);
  line-height: 1.8; margin: 0;
}
.fo-mfg-desc strong { color: #0B1F3A; font-weight: 600; }

/* Feature list */
.fo-mfg-features {
  display: flex; flex-direction: column; gap: 8px;
}
.fo-mfg-feature {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  color: #6B7280; color: var(--text-light, #6B7280);
  line-height: 1.65;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.fo-mfg-feature:hover {
  background: rgba(0,194,168,0.05);
  border-color: rgba(0,194,168,0.15);
  transform: translateX(4px);
}
.fo-mfg-feature strong { color: #0B1F3A; color: var(--primary, #0B1F3A); }
.fo-mfg-feature-icon {
  width: 24px; height: 24px;
  background: rgba(0,194,168,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #00C2A8; flex-shrink: 0; margin-top: 1px;
  transition: background 0.2s;
}
.fo-mfg-feature:hover .fo-mfg-feature-icon { background: rgba(0,194,168,0.22); }

.fo-mfg-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #00C2A8; background: var(--secondary, #00C2A8);
  color: #ffffff; padding: 12px 22px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  width: fit-content;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,194,168,0.28);
}
.fo-mfg-cta:hover {
  background: #00a891; transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,194,168,0.38);
}
.fo-mfg-cta svg { transition: transform 0.2s; }
.fo-mfg-cta:hover svg { transform: translateX(4px); }

/* ============================================================
   SUPPLY CHAIN SECTION — Dark bg, content left, image right
============================================================ */
.fo-supply {
  position: relative;
  background: #0B1F3A; background: var(--primary, #0B1F3A);
  padding: 96px 0;
  overflow: hidden;
}

.fo-supply-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fo-supply-bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.fo-supply-bg-glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,194,168,0.12) 0%, transparent 70%);
  top: -100px; right: -80px;
  animation: supplyGlow 7s ease-in-out infinite alternate;
}
.fo-supply-bg-glow--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,80,180,0.08) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  animation: supplyGlow 9s ease-in-out infinite alternate-reverse;
}
@keyframes supplyGlow {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.2); }
}
.fo-supply-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,194,168,0.08) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.5;
}

/* Layout */
.fo-supply-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Content ── */
.fo-supply-content {
  display: flex; flex-direction: column; gap: 24px;
}
.fo-supply-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  color: #00C2A8; text-transform: uppercase; letter-spacing: 0.12em;
}
.fo-supply-label-dot {
  width: 7px; height: 7px;
  background: #00C2A8; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,194,168,0.8);
  animation: supplyDotPulse 2s ease-in-out infinite;
}
@keyframes supplyDotPulse {
  0%,100% { box-shadow: 0 0 4px rgba(0,194,168,0.8); }
  50%      { box-shadow: 0 0 14px rgba(0,194,168,1), 0 0 28px rgba(0,194,168,0.3); }
}
.fo-supply-heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800; color: #ffffff;
  line-height: 1.2; letter-spacing: -0.02em; margin: 0;
}
.fo-supply-heading-accent { color: #00C2A8; }
.fo-supply-desc {
  font-size: 14.5px; color: rgba(255,255,255,0.62);
  line-height: 1.8; margin: 0;
}
.fo-supply-desc strong { color: #ffffff; font-weight: 600; }

/* Feature cards */
.fo-supply-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fo-supply-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: default;
}
.fo-supply-card:hover {
  background: rgba(0,194,168,0.08);
  border-color: rgba(0,194,168,0.2);
  transform: translateY(-3px);
}
.fo-supply-card--wide {
  grid-column: 1 / -1;
}
.fo-supply-card-icon {
  width: 36px; height: 36px;
  background: rgba(0,194,168,0.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #00C2A8; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.fo-supply-card:hover .fo-supply-card-icon {
  background: rgba(0,194,168,0.22); transform: scale(1.08);
}
.fo-supply-card-title {
  display: block;
  font-size: 13px; font-weight: 700;
  color: #ffffff; line-height: 1.3; margin-bottom: 4px;
}
.fo-supply-card-text {
  display: block;
  font-size: 12px; color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.fo-supply-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 2px solid #00C2A8;
  color: #00C2A8;
  padding: 12px 22px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  width: fit-content;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fo-supply-cta:hover {
  background: #00C2A8; color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,194,168,0.3);
}
.fo-supply-cta svg { transition: transform 0.2s; }
.fo-supply-cta:hover svg { transform: translateX(4px); }

/* ── Visual ── */
.fo-supply-visual { position: relative; }
.fo-supply-img-wrap {
  position: relative; z-index: 1;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.35),
              0 0 0 1px rgba(0,194,168,0.12);
}
.fo-supply-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,194,168,0.06) 0%,
    transparent 50%,
    rgba(11,31,58,0.4) 100%
  );
  pointer-events: none;
}
.fo-supply-img {
  width: 100%; height: 420px;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.fo-supply-img-wrap:hover .fo-supply-img { transform: scale(1.04); }

/* Metric ring */
.fo-supply-metric {
  position: absolute;
  bottom: -20px; left: -20px; z-index: 2;
  background: rgba(11,31,58,0.9);
  border: 1px solid rgba(0,194,168,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}
.fo-supply-metric-ring {
  position: relative;
  width: 52px; height: 52px; flex-shrink: 0;
}
.fo-supply-metric-ring svg {
  width: 100%; height: 100%;
}
.fo-supply-metric-val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #00C2A8;
}
.fo-supply-metric-label {
  font-size: 11.5px; color: rgba(255,255,255,0.6);
  font-weight: 500; line-height: 1.5;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
  .fo-mfg, .fo-supply { padding: 72px 0; }
  .fo-mfg-inner, .fo-supply-inner {
    grid-template-columns: 1fr; gap: 40px;
  }
  .fo-mfg-img, .fo-supply-img { height: 340px; }
  .fo-mfg-kpi-card { right: 12px; bottom: -16px; }
  .fo-supply-metric { left: 12px; bottom: -16px; }
  /* Content before image on tablet */
  .fo-supply-content { order: -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
============================================================ */
@media (max-width: 640px) {
  .fo-mfg, .fo-supply { padding: 56px 0; }
  .fo-mfg-img, .fo-supply-img { height: 240px; }
  .fo-mfg-kpi-card, .fo-supply-metric {
    position: relative; bottom: auto; right: auto; left: auto;
    margin-top: 12px; min-width: auto;
  }
  .fo-supply-cards { grid-template-columns: 1fr; }
  .fo-supply-card--wide { grid-column: auto; }
  .fo-mfg-deco-dots { display: none; }
  .fo-mfg-cta, .fo-supply-cta { width: 100%; justify-content: center; }
}