/* ============================================================
   D365 FINANCE & OPERATIONS — FINANCIAL MANAGEMENT SECTION
   File: style/dynamics-365-finance-operations/financial-management.css
============================================================ */

.fo-financial {
  position: relative;
  background: #ffffff;
  padding: 96px 0;
  overflow: hidden;
}

/* Background decorations */
.fo-financial-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fo-financial-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.045;
}
.fo-financial-bg-shape--1 {
  width: 600px; height: 600px;
  background: #00C2A8;
  top: -200px; right: -150px;
}
.fo-financial-bg-shape--2 {
  width: 350px; height: 350px;
  background: #0B1F3A;
  bottom: -120px; left: -80px;
}
.fo-financial-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,194,168,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

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

/* ============================================================
   LEFT — CONTENT
============================================================ */
.fo-financial-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Label */
.fo-financial-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-financial-label-line {
  display: inline-block;
  width: 28px; height: 2px;
  background: #00C2A8;
  background: var(--secondary, #00C2A8);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Heading */
.fo-financial-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-financial-heading-accent {
  color: #00C2A8;
  color: var(--secondary, #00C2A8);
}

/* Description */
.fo-financial-desc {
  font-size: 15px;
  color: #6B7280;
  color: var(--text-light, #6B7280);
  line-height: 1.8;
  margin: 0;
}
.fo-financial-desc strong {
  color: #0B1F3A;
  color: var(--primary, #0B1F3A);
  font-weight: 600;
}

/* Global badges */
.fo-financial-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fo-financial-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F5F7FA;
  background: var(--bg-light, #F5F7FA);
  border: 1px solid rgba(0,194,168,0.2);
  border-radius: 24px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0B1F3A;
  color: var(--primary, #0B1F3A);
  transition: border-color 0.2s, background 0.2s;
}
.fo-financial-badge svg {
  color: #00C2A8;
  color: var(--secondary, #00C2A8);
  flex-shrink: 0;
}
.fo-financial-badge strong { font-weight: 700; }
.fo-financial-badge:hover {
  background: rgba(0,194,168,0.06);
  border-color: rgba(0,194,168,0.35);
}

/* Feature list */
.fo-financial-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fo-financial-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.fo-financial-feature:hover {
  background: rgba(0,194,168,0.04);
  border-color: rgba(0,194,168,0.15);
  transform: translateX(4px);
}
.fo-financial-feature-icon {
  width: 36px; height: 36px;
  background: rgba(0,194,168,0.1);
  border: 1px solid rgba(0,194,168,0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00C2A8;
  color: var(--secondary, #00C2A8);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.fo-financial-feature:hover .fo-financial-feature-icon {
  background: rgba(0,194,168,0.18);
  transform: scale(1.08);
}
.fo-financial-feature-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fo-financial-feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1F3A;
  color: var(--primary, #0B1F3A);
  line-height: 1.3;
}
.fo-financial-feature-text {
  font-size: 13px;
  color: #6B7280;
  color: var(--text-light, #6B7280);
  line-height: 1.65;
}

/* CTA */
.fo-financial-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00C2A8;
  background: var(--secondary, #00C2A8);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  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.3);
  margin-top: 4px;
}
.fo-financial-cta:hover {
  background: #00a891;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,194,168,0.4);
}
.fo-financial-cta svg { transition: transform 0.2s; }
.fo-financial-cta:hover svg { transform: translateX(4px); }

/* ============================================================
   RIGHT — VISUAL
============================================================ */
.fo-financial-visual {
  position: relative;
}

/* Dot deco behind image */
.fo-financial-dots-deco {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 150px; height: 150px;
  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;
}

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

/* Floating stat card */
.fo-financial-stat-card {
  position: absolute;
  bottom: -20px;
  left: -24px;
  z-index: 2;
  background: #0B1F3A;
  background: var(--primary, #0B1F3A);
  border: 1px solid rgba(0,194,168,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  min-width: 190px;
}
.fo-financial-stat-card-icon {
  width: 42px; height: 42px;
  background: rgba(0,194,168,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00C2A8;
  flex-shrink: 0;
}
.fo-financial-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #00C2A8;
  color: var(--secondary, #00C2A8);
  line-height: 1;
  letter-spacing: -0.02em;
}
.fo-financial-stat-label {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
  .fo-financial { padding: 72px 0; }
  .fo-financial-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .fo-financial-img { height: 340px; }
  .fo-financial-stat-card { left: 16px; bottom: -16px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
============================================================ */
@media (max-width: 640px) {
  .fo-financial { padding: 56px 0; }
  .fo-financial-img { height: 260px; }
  .fo-financial-stat-card {
    position: relative;
    bottom: auto; left: auto;
    min-width: auto;
    margin-top: 12px;
  }
  .fo-financial-dots-deco { display: none; }
  .fo-financial-feature { padding: 12px; }
  .fo-financial-cta { width: 100%; justify-content: center; }
}