/* ==========================================================================
   LAYMAP REUSABLE INFOGRAPHIC SYSTEM
   Theme: Dimensional Engineering Architecture ("Blueprint meets Food-Tech")
   Tokens:
     - Navy Primary: #0F254A
     - Technical Blue: #1A33FF
     - Accent Orange: #FF4B17
     - Surface Ivory: #FFFFFF / #F8FAFC
   ========================================================================== */

:root {
  --info-navy: #0F254A;
  --info-navy-dark: #071326;
  --info-blue: #1A33FF;
  --info-blue-light: #3d5afe;
  --info-orange: #FF4B17;
  --info-orange-bright: #ff6a3d;
  --info-orange-dark: #d83908;
  --info-surface: #ffffff;
  --info-surface-subtle: #f8fafc;
  --info-border: rgba(15, 37, 74, 0.08);
  --info-text: #0F254A;
  --info-muted: #556477;
}

/* ==========================================================================
   1. Component Container & Environment
   ========================================================================== */
.laymap-infographic-section {
  position: relative;
  width: 100%;
  padding: 6.5rem 0 6rem 0; /* Clear fixed navbar and provide generous top margin */
  background: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}

/* Master Reference Industrial Food-Production Plant & Floor Backdrop */
.infographic-master-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.master-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.98;
}

.master-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.6) 100%
  );
  pointer-events: none;
}

.laymap-infographic-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Header */
.infographic-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 5;
}

.infographic-kicker {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--info-orange);
  margin-bottom: 0.5rem;
}

.infographic-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--info-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

/* Orange horizontal accent line underneath title */
.infographic-title-accent {
  width: 48px;
  height: 3.5px;
  background: var(--info-orange);
  border-radius: 2px;
  margin: 0 auto 1.15rem auto;
}

.infographic-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: var(--info-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   2. Infographic Arena (Bilateral / Multi-Node Interactive Stage)
   ========================================================================== */
.infographic-arena {
  position: relative;
  width: 100%;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Subtle Technical Globe & Ray Backdrop */
.infographic-backdrop {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 980px;
  max-width: 100%;
  height: 580px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.infographic-backdrop svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   3. Central Dimensional Hub
   ========================================================================== */
.infographic-hub {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px; /* Prominent large circular element matching reference */
  height: 250px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 24px 54px rgba(15, 37, 74, 0.28),
    0 10px 22px rgba(15, 37, 74, 0.16);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.infographic-hub:hover {
  transform: translate(-50%, -52%) scale(1.02);
  box-shadow: 
    0 30px 65px rgba(15, 37, 74, 0.32),
    0 14px 28px rgba(15, 37, 74, 0.2);
}

/* Outer Dual-Tone Split Beveled Ring (Blue Left, Orange Right) */
.hub-bezel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 12px; /* Thick clean dual-tone beveled rim */
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--info-navy) 0deg,
    var(--info-blue) 168deg,
    #ffffff 180deg,
    var(--info-orange-bright) 192deg,
    var(--info-orange) 348deg,
    var(--info-navy) 360deg
  );
  box-shadow: 
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -4px 8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner Recessed Disc */
.hub-core {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
  box-shadow: 
    inset 0 6px 16px rgba(15, 37, 74, 0.14),
    inset 0 1px 4px rgba(15, 37, 74, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: hidden;
}

.hub-core::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -20%;
  width: 140%;
  height: 85%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.hub-logo {
  max-width: 168px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(15, 37, 74, 0.08));
}

.hub-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--info-navy);
  text-align: center;
  margin-top: 0.4rem;
}

/* ==========================================================================
   4. Aerodynamic Connector Bridges (SVG Layer)
   ========================================================================== */
.infographic-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

/* ==========================================================================
   5. Information Nodes (Dimensional Geometric Pods)
   ========================================================================== */
.infographic-nodes-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 8;
  padding: 1.5rem 0;
}

/* Base Node Pod */
.infographic-node {
  position: relative;
  width: 440px;
  max-width: 41%;
  min-height: 400px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.infographic-node:hover {
  transform: translateY(-4px);
}

/* 3D Dimensional Outer Extrusion Bevel Wings */
.node-extrusion {
  position: absolute;
  z-index: 1;
  transition: all 0.35s ease;
}

/* Left Node: Blue 3D Extrusion Wing extending outward to the left */
.infographic-node--blue .node-extrusion {
  top: 0;
  bottom: -18px;
  left: -36px;
  right: 0;
  background: linear-gradient(135deg, #071326 0%, #0F254A 55%, #1A33FF 100%);
  clip-path: polygon(
    14% 0%, 78% 0%,
    100% 14%, 100% 86%,
    78% 100%, 0% 100%,
    0% 14%
  );
  box-shadow: 
    -16px 22px 40px rgba(15, 37, 74, 0.35),
    -6px 8px 16px rgba(15, 37, 74, 0.2);
  filter: drop-shadow(-10px 18px 24px rgba(15, 37, 74, 0.3));
}

/* Right Node: Orange 3D Extrusion Wing extending outward to the right */
.infographic-node--orange .node-extrusion {
  top: 0;
  bottom: -18px;
  left: 0;
  right: -36px;
  background: linear-gradient(135deg, #FF7A00 0%, #FF4B17 55%, #c83204 100%);
  clip-path: polygon(
    22% 0%, 86% 0%,
    100% 14%, 100% 100%,
    22% 100%, 0% 86%,
    0% 14%
  );
  box-shadow: 
    16px 22px 40px rgba(255, 75, 23, 0.32),
    6px 8px 16px rgba(255, 75, 23, 0.2);
  filter: drop-shadow(10px 18px 24px rgba(255, 75, 23, 0.28));
}

/* Crisp Front White Surface (Chamfered Hexagonal Card) */
.node-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  background-image: linear-gradient(180deg, #ffffff 0%, #fbfcfe 60%, #f3f6fb 100%);
  padding: 4.5rem 2.85rem 3.5rem 2.85rem;
  box-sizing: border-box;
  clip-path: polygon(
    22% 0%, 78% 0%,
    100% 13%, 100% 87%,
    78% 100%, 22% 100%,
    0% 87%, 0% 13%
  );
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.95),
    0 18px 40px rgba(15, 37, 74, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 400px;
}

/* Inner subtle hairline border inside polygon */
.node-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(
    22% 0%, 78% 0%,
    100% 13%, 100% 87%,
    78% 100%, 22% 100%,
    0% 87%, 0% 13%
  );
  border: 1px solid rgba(15, 37, 74, 0.08);
  pointer-events: none;
}

/* Floating 3D Circular Medallion / Badge on Top Peak */
.node-medallion {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #ffffff;
  box-shadow: 
    0 12px 28px rgba(15, 37, 74, 0.22),
    0 4px 10px rgba(15, 37, 74, 0.1);
}

.medallion-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 
    inset 0 3px 5px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.infographic-node--blue .medallion-inner {
  background: radial-gradient(circle at 35% 30%, #3d5afe 0%, #1A33FF 45%, #0F254A 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.infographic-node--orange .medallion-inner {
  background: radial-gradient(circle at 35% 30%, #ff835c 0%, #FF4B17 55%, #c83204 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.medallion-icon {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Node Internal Typography */
.node-eyebrow {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--info-orange);
  margin-bottom: 0.45rem;
}

.node-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--info-navy);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.node-accent-bar {
  width: 44px;
  height: 3.5px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.infographic-node--blue .node-accent-bar {
  background: linear-gradient(90deg, var(--info-navy), var(--info-blue));
}

.infographic-node--orange .node-accent-bar {
  background: linear-gradient(90deg, var(--info-orange), var(--info-orange-bright));
}

.node-description {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.98rem;
  line-height: 1.76;
  color: #334155;
  margin-bottom: 0;
}
/* ==========================================================================
   6. 3D Central Miniature Food-Production Facility & Ground Stage
   ========================================================================== */
.infographic-ground-platform {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 780px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.platform-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 170px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 75, 23, 0.45) 0%, rgba(255, 120, 23, 0.2) 45%, rgba(255, 255, 255, 0) 75%);
  filter: blur(28px);
  z-index: 1;
}

.central-facility-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 680px;
  display: flex;
  justify-content: center;
}

.facility-model-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(15, 37, 74, 0.22));
}

/* ==========================================================================
   7. Reusability Variants (3-Node, 4-Node, Multi-Node Modes)
   ========================================================================== */
.laymap-infographic--3-nodes .infographic-arena {
  min-height: 640px;
}
.laymap-infographic--3-nodes .infographic-nodes-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.laymap-infographic--3-nodes .infographic-node {
  width: 100%;
  max-width: 100%;
}

.laymap-infographic--4-nodes .infographic-arena {
  min-height: 680px;
}
.laymap-infographic--4-nodes .infographic-nodes-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 6rem;
  padding: 2rem 0;
}
.laymap-infographic--4-nodes .infographic-node {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   8. Responsive Behavior & Mobile Adaptation
   ========================================================================== */
@media (max-width: 1100px) {
  .infographic-node {
    width: 390px;
  }
  .node-card {
    padding: 4rem 2.25rem 2.75rem 2.25rem;
  }
  .infographic-hub {
    width: 190px;
    height: 190px;
  }
  .hub-logo {
    max-width: 125px;
  }
  .infographic-ground-platform {
    max-width: 720px;
  }
}

@media (max-width: 900px) {
  .laymap-infographic-section {
    padding: 4rem 0 4.5rem 0;
  }
  .infographic-arena {
    min-height: auto;
    flex-direction: column;
    padding-top: 1rem;
  }
  .infographic-connectors-svg {
    display: none;
  }
  .infographic-hub {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    margin: 0 auto 3.5rem auto;
    width: 185px;
    height: 185px;
  }
  .infographic-nodes-wrapper {
    flex-direction: column;
    gap: 3.5rem;
  }
  .infographic-node {
    width: 100%;
    max-width: 500px;
    min-height: auto;
  }
  .infographic-ground-platform {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2.5rem;
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .infographic-node {
    max-width: 100%;
  }
  .infographic-node--blue .node-extrusion {
    left: -16px;
    right: 0;
    bottom: -12px;
  }
  .infographic-node--orange .node-extrusion {
    left: 0;
    right: -16px;
    bottom: -12px;
  }
  .node-card {
    padding: 3.75rem 1.75rem 2.5rem 1.75rem;
    clip-path: polygon(
      18% 0%, 82% 0%,
      100% 10%, 100% 90%,
      82% 100%, 18% 100%,
      0% 90%, 0% 10%
    );
  }
  .node-title {
    font-size: 1.55rem;
  }
  .infographic-hub {
    width: 165px;
    height: 165px;
  }
  .hub-logo {
    max-width: 110px;
  }
}
