/* ==========================================================================
   Q-DASH INTERACTIVE BUSINESS GOALS NAVIGATOR
   Visual Identity: Deep Technological Navy (#0B132B / #0A1118), Vibrant Orange (#FF6A2A)
   ========================================================================== */

:root {
  --qd-goals-bg: #0B132B;
  --qd-goals-bg-dark: #070D18;
  --qd-goals-card-bg: linear-gradient(145deg, rgba(20, 32, 48, 0.9) 0%, rgba(11, 23, 38, 0.96) 100%);
  --qd-goals-card-hover: linear-gradient(145deg, rgba(28, 44, 66, 0.95) 0%, rgba(15, 30, 48, 0.98) 100%);
  --qd-goals-orange: #FF6A2A;
  --qd-goals-orange-glow: rgba(255, 106, 42, 0.35);
  --qd-goals-orange-subtle: rgba(255, 106, 42, 0.12);
  --qd-goals-border: rgba(148, 163, 184, 0.16);
  --qd-goals-border-hover: rgba(255, 106, 42, 0.5);
  --qd-goals-text-title: #FFFFFF;
  --qd-goals-text-desc: #94A3B8;
  --qd-goals-text-muted: #64748B;
  --qd-goals-radius: 18px;
}

/* ── Main Section Container ────────────────────────────────────────── */
.qd-goals-section {
  background: radial-gradient(circle at 50% 35%, rgba(255, 106, 42, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(18, 58, 90, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, #070D18 0%, #0B132B 50%, #070D18 100%) !important;
  color: #FFFFFF !important;
  padding: 80px 4% 88px !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 10 !important;
}

/* Background Subtle Technological Grid Overlay */
.qd-goals-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.6;
}

.qd-goals-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Section Header ────────────────────────────────────────────────── */
.qd-goals-header {
  text-align: center;
  margin-bottom: 56px;
}

.qd-goals-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qd-goals-orange-subtle);
  border: 1px solid rgba(255, 106, 42, 0.4);
  color: var(--qd-goals-orange);
  font-size: 13.5px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 106, 42, 0.15);
}

.qd-goals-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 900;
  color: var(--qd-goals-text-title);
  margin: 0 0 16px;
  line-height: 1.3;
}

.qd-goals-title .hl-orange {
  color: var(--qd-goals-orange);
  position: relative;
  display: inline-block;
}

.qd-goals-subtitle {
  font-size: clamp(14.5px, 1.8vw, 17px);
  color: var(--qd-goals-text-desc);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Navigator Board Layout (Desktop 3 - Center - 3) ───────────────── */
.qd-goals-board {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
  margin-bottom: 56px;
}

/* SVG Connection Lines Overlay */
.qd-goals-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.qd-goals-svg-line {
  stroke: rgba(255, 106, 42, 0.3);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.35s ease, stroke-width 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  stroke-dasharray: 6 4;
}

.qd-goals-svg-line.is-active {
  stroke: var(--qd-goals-orange);
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(255, 106, 42, 0.8));
  opacity: 1;
}

.qd-goals-svg-node {
  fill: var(--qd-goals-orange);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.qd-goals-svg-node.is-active {
  transform-origin: center;
  transform: scale(1.4);
  filter: drop-shadow(0 0 10px #FF6A2A);
}

/* Columns */
.qd-goals-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 3;
}

/* ── Business Goal Card ────────────────────────────────────────────── */
.qd-goal-card {
  background: var(--qd-goals-card-bg);
  border: 1.5px solid var(--qd-goals-border);
  border-radius: var(--qd-goals-radius);
  padding: 22px 24px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

.qd-goal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--qd-goals-radius);
  background: radial-gradient(circle at 100% 0%, rgba(255, 106, 42, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.qd-goal-card:hover,
.qd-goal-card:focus-visible,
.qd-goal-card.is-active {
  background: var(--qd-goals-card-hover);
  border-color: var(--qd-goals-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 106, 42, 0.2);
}

.qd-goal-card:hover::before,
.qd-goal-card.is-active::before {
  opacity: 1;
}

/* Card Top Row: Number & Icon */
.qd-goal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qd-goal-number {
  font-size: 15px;
  font-weight: 900;
  color: var(--qd-goals-orange);
  letter-spacing: 1px;
  background: var(--qd-goals-orange-subtle);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 106, 42, 0.25);
}

.qd-goal-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.18) 0%, rgba(11, 23, 38, 0.9) 100%);
  border: 1.5px solid rgba(255, 106, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qd-goals-orange);
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(255, 106, 42, 0.12);
}

.qd-goal-card:hover .qd-goal-icon-wrap,
.qd-goal-card.is-active .qd-goal-icon-wrap {
  background: linear-gradient(135deg, #FF6A2A 0%, #E05C2A 100%);
  color: #FFFFFF;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 6px 18px rgba(255, 106, 42, 0.4);
}

/* Card Typography */
.qd-goal-card-title {
  font-size: 16.5px;
  font-weight: 850;
  color: var(--qd-goals-text-title);
  margin: 0 0 6px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.qd-goal-card:hover .qd-goal-card-title,
.qd-goal-card.is-active .qd-goal-card-title {
  color: #FFFFFF;
}

.qd-goal-card-desc {
  font-size: 12.5px;
  color: var(--qd-goals-text-desc);
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Card Solutions Tags Drawer */
.qd-goal-solutions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.qd-goal-solution-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Card Action CTA */
.qd-goal-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--qd-goals-orange);
  margin-top: auto;
  transition: gap 0.25s ease, color 0.25s ease;
}

.qd-goal-cta-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--qd-goals-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

body.ar .qd-goal-cta-arrow i {
  transform: scaleX(-1);
}

.qd-goal-card:hover .qd-goal-card-cta {
  gap: 12px;
  color: #FF874D;
}

.qd-goal-card:hover .qd-goal-cta-arrow {
  background: #FF874D;
  transform: scale(1.1);
}

/* ── Central Goal Navigator ────────────────────────────────────────── */
.qd-goals-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.qd-goals-radar-wrap {
  width: 300px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Glow Ring */
.qd-goals-radar-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 42, 0.25) 0%, rgba(255, 106, 42, 0.05) 55%, transparent 70%);
  filter: blur(8px);
  animation: qdPulseGlow 4s ease-in-out infinite;
}

/* Concentric Rings */
.qd-goals-radar-ring-outer {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 106, 42, 0.35);
  animation: qdRotateRing 45s linear infinite;
}

.qd-goals-radar-ring-mid {
  position: absolute;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 106, 42, 0.5);
  box-shadow: inset 0 0 20px rgba(255, 106, 42, 0.15), 0 0 15px rgba(255, 106, 42, 0.15);
}

.qd-goals-radar-ring-inner {
  position: absolute;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Core Disk */
.qd-goals-radar-core {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #101E30 0%, #0A1320 100%);
  border: 2px solid rgba(255, 106, 42, 0.7);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 106, 42, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 2;
}

.qd-goals-radar-brand {
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.qd-goals-radar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--qd-goals-orange);
  letter-spacing: 2.5px;
  margin-bottom: 8px;
}

.qd-goals-radar-text {
  font-size: 10.5px;
  line-height: 1.45;
  color: #CBD5E1;
  font-weight: 600;
}

/* 6 Radial Node Indicators on Circle Edge */
.qd-goals-node-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--qd-goals-orange);
  box-shadow: 0 0 10px #FF6A2A;
  transition: all 0.3s ease;
  z-index: 3;
}

.qd-goals-node-point.is-active {
  transform: scale(1.4);
  background: var(--qd-goals-orange);
  border-color: #FFFFFF;
  box-shadow: 0 0 16px #FF6A2A, 0 0 24px rgba(255, 106, 42, 0.6);
}

/* Positions around 300px circle */
.qd-goals-node-1 { top: 38px; left: 32px; }   /* Top-Left */
.qd-goals-node-2 { top: 38px; right: 32px; }  /* Top-Right */
.qd-goals-node-3 { top: 143px; left: 8px; }   /* Mid-Left */
.qd-goals-node-4 { top: 143px; right: 8px; }  /* Mid-Right */
.qd-goals-node-5 { bottom: 38px; left: 32px; }/* Bottom-Left */
.qd-goals-node-6 { bottom: 38px; right: 32px; }/* Bottom-Right */

/* ── Business Audit CTA Panel ──────────────────────────────────────── */
.qd-goals-audit-panel {
  background: linear-gradient(135deg, rgba(20, 32, 48, 0.95) 0%, rgba(13, 23, 38, 0.98) 100%);
  border: 1.5px solid rgba(255, 106, 42, 0.4);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.qd-goals-audit-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF6A2A, transparent);
}

.qd-goals-audit-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qd-goals-audit-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 106, 42, 0.12);
  border: 1.5px solid rgba(255, 106, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qd-goals-orange);
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(255, 106, 42, 0.18);
}

.qd-goals-audit-kicker {
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.qd-goals-audit-headline {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.qd-goals-audit-desc {
  font-size: 13.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.55;
  max-width: 540px;
}

.qd-goals-audit-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qd-goals-audit-btn {
  background: linear-gradient(135deg, #FF6A2A 0%, #E05C2A 100%);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 850;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 106, 42, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.qd-goals-audit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 106, 42, 0.5);
  background: linear-gradient(135deg, #FF7D45 0%, #EA6430 100%);
}

.qd-goals-audit-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

body.ar .qd-goals-audit-btn i {
  transform: scaleX(-1);
}

.qd-goals-audit-micro {
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Bottom Metrics Strip ──────────────────────────────────────────── */
.qd-goals-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 20px;
  background: rgba(13, 23, 38, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.qd-goals-metric-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: start;
}

.qd-goals-metric-icon {
  font-size: 26px;
  color: var(--qd-goals-orange);
  flex-shrink: 0;
}

.qd-goals-metric-val {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 4px;
}

.qd-goals-metric-label {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
}

/* ── Keyframe Animations ───────────────────────────────────────────── */
@keyframes qdRotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes qdPulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ── Responsive Adaptations ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .qd-goals-board {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .qd-goals-center {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 24px;
  }
  .qd-goals-svg-overlay {
    display: none;
  }
}

@media (max-width: 768px) {
  .qd-goals-section {
    padding: 60px 4% 68px !important;
  }
  .qd-goals-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .qd-goals-radar-wrap {
    width: 240px;
    height: 240px;
  }
  .qd-goals-radar-ring-outer {
    width: 224px;
    height: 224px;
  }
  .qd-goals-radar-ring-mid {
    width: 190px;
    height: 190px;
  }
  .qd-goals-radar-core {
    width: 148px;
    height: 148px;
    padding: 12px;
  }
  .qd-goals-radar-brand {
    font-size: 14px;
  }
  .qd-goals-radar-title {
    font-size: 12px;
  }
  .qd-goals-radar-text {
    font-size: 9px;
  }
  .qd-goals-node-point {
    display: none;
  }
  .qd-goals-audit-panel {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  .qd-goals-audit-left {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .qd-goals-audit-icon {
    margin: 0 auto;
  }
  .qd-goals-audit-headline {
    font-size: 20px;
  }
  .qd-goals-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .qd-goals-metric-item {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qd-goals-radar-ring-outer,
  .qd-goals-radar-glow,
  .qd-goal-card,
  .qd-goal-icon-wrap,
  .qd-goal-cta-arrow,
  .qd-goals-svg-line {
    animation: none !important;
    transition: none !important;
  }
}
