/* ==========================================================================
   LAYMAP CORE VALUES HORIZONTAL 8-CARD INFOGRAPHIC
   Visual Direction: 8 Folded Geometric 3D Cards in a Panoramic Row
   Master Blueprint Reference Specification:
   - 8 Folded Geometric Cards Standing on an Industrial Blueprint CAD Floor
   - Two-Layer Folded Card Construction:
       Layer 1: 3D Faceted Colored Hexagonal Roof & Footing (Left Shadow / Right Light)
       Layer 2: Slanted White Content Panel with Drop Shadow
   - Circular Outline Number Badges (01–08) at Top-Left of Colored Roof
   - Centered Pure White Line Icons
   - Alternating LAYMAP Tonal Palette (Navy, Orange, Blue)
   - Polished Perspective CAD Floor with Blueprint Lines & Subtle Card Reflections
   - Low-Contrast Industrial Food-Processing Background Wireframe
   - 100% Responsive Desktop (Horizontal Row) & Mobile (Ordered Vertical Sequence)
   ========================================================================== */

:root {
  --val-navy-dark: #07152B;
  --val-navy: #0F254A;
  --val-navy-light: #1E3A8A;
  
  --val-blue-dark: #1D4ED8;
  --val-blue: #1A33FF;
  --val-blue-light: #3B82F6;
  
  --val-orange-dark: #C2410C;
  --val-orange: #FF4B17;
  --val-orange-light: #FF6B35;
  
  --val-white: #FFFFFF;
  --val-text-dark: #0F254A;
  --val-text-body: #475569;
  --val-border-light: #E2E8F0;
}

/* ==========================================================================
   1. Section Atmosphere & Background
   ========================================================================== */
.laymap-values-section {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 5.5rem 0;
  background: radial-gradient(circle at 50% 25%, #FFFFFF 0%, #F8FAFC 50%, #EDF2F7 100%);
  overflow: hidden;
  box-sizing: border-box;
}

#laymap-core-values {
  scroll-margin-top: 80px;
}

/* Ambient Low-Contrast Industrial Facility Linework */
.values-facility-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.values-facility-backdrop svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Perspective CAD Blueprint Floor */
.values-cad-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 360px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.values-cad-floor svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section Container */
.laymap-values-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

/* ==========================================================================
   2. Header Area
   ========================================================================== */
.values-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.25rem auto;
  position: relative;
  z-index: 5;
}

.values-kicker {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--val-orange);
  margin-bottom: 0.65rem;
}

.values-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--val-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.val-heading-blue {
  color: var(--val-blue);
}

.val-heading-orange {
  color: var(--val-orange);
}

.val-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 1rem auto;
}

.val-header-divider span {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--val-blue), var(--val-orange));
  border-radius: 2px;
  position: relative;
}

.values-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--val-text-body);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   3. Horizontal 8-Card Panoramic Grid (Desktop)
   ========================================================================== */
.values-panoramic-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  box-sizing: border-box;
  margin: 0 auto;
  padding-bottom: 30px;
}

/* ==========================================================================
   4. The Folded Geometric Card Module
   ========================================================================== */
.val-folded-card {
  position: relative;
  width: calc((100% - (7 * 16px)) / 8);
  min-width: 136px;
  max-width: 156px;
  height: 440px;
  box-sizing: border-box;
  flex-shrink: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), filter 0.38s ease;
}

.val-folded-card:hover {
  transform: translateY(-8px);
}

/* --------------------------------------------------------------------------
   Layer 1: 3D Faceted Colored Upper Roof (Peak + Split Left/Right Facets)
   -------------------------------------------------------------------------- */
.val-card-roof {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 1;
}

.val-roof-facet-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
}

.val-roof-facet-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(0 0, 100% 32px, 100% 100%, 0 100%);
}

/* Center Ridge Highlight Line */
.val-card-roof::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 120px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Layer 1b: 3D Faceted Colored Bottom Footing (Resting on CAD Floor)
   -------------------------------------------------------------------------- */
.val-card-footing {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1;
}

.val-foot-facet-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px));
}

.val-foot-facet-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

/* --------------------------------------------------------------------------
   Layer 2: Slanted White Content Panel (Foreground)
   -------------------------------------------------------------------------- */
.val-white-panel-wrap {
  position: absolute;
  top: 105px;
  left: 0;
  width: 100%;
  height: 305px;
  z-index: 3;
  filter: drop-shadow(0 12px 24px rgba(15, 37, 74, 0.12)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), filter 0.38s ease;
  will-change: transform, filter;
}

.val-folded-card:hover .val-white-panel-wrap {
  transform: translateZ(14px) translateY(-4px);
  filter: drop-shadow(0 20px 32px rgba(15, 37, 74, 0.2)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.val-white-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  clip-path: polygon(0 0, 100% 40px, 100% calc(100% - 24px), 50% 100%, 0 calc(100% - 24px));
  padding: 48px 10px 22px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Value Title */
.val-title-text {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--val-navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Small Horizontal Accent Bar */
.val-accent-bar {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin: 8px auto 10px auto;
  flex-shrink: 0;
}

/* Value Description */
.val-desc-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.735rem;
  line-height: 1.44;
  color: var(--val-text-body);
  margin: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Number Badge (Upper Left)
   -------------------------------------------------------------------------- */
.val-badge-circle {
  position: absolute;
  top: 14px;
  left: -9px;
  width: 36px;
  height: 36px;
  background: var(--val-navy-dark);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  z-index: 5;
}

/* --------------------------------------------------------------------------
   White Line Icon (Upper Center)
   -------------------------------------------------------------------------- */
.val-roof-icon {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.val-roof-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* --------------------------------------------------------------------------
   Floor Reflection Shadow
   -------------------------------------------------------------------------- */
.val-floor-reflection {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(15, 37, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   5. Card Color Variations (Tonal Shading)
   ========================================================================== */
/* Navy Palette (Cards 01, 05) */
.val-color--navy .val-roof-facet-left,
.val-color--navy .val-foot-facet-left {
  background: linear-gradient(180deg, #07152B 0%, #0B1B3D 60%, #0F254A 100%);
}

.val-color--navy .val-roof-facet-right,
.val-color--navy .val-foot-facet-right {
  background: linear-gradient(180deg, #0F254A 0%, #173266 50%, #1E3A8A 100%);
}

.val-color--navy .val-accent-bar {
  background: var(--val-navy);
}

/* Orange Palette (Cards 02, 04, 07) */
.val-color--orange .val-roof-facet-left,
.val-color--orange .val-foot-facet-left {
  background: linear-gradient(180deg, #9A3412 0%, #C2410C 50%, #EA580C 100%);
}

.val-color--orange .val-roof-facet-right,
.val-color--orange .val-foot-facet-right {
  background: linear-gradient(180deg, #EA580C 0%, #FF4B17 50%, #FF6B35 100%);
}

.val-color--orange .val-accent-bar {
  background: var(--val-orange);
}

/* Blue Palette (Cards 03, 06, 08) */
.val-color--blue .val-roof-facet-left,
.val-color--blue .val-foot-facet-left {
  background: linear-gradient(180deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
}

.val-color--blue .val-roof-facet-right,
.val-color--blue .val-foot-facet-right {
  background: linear-gradient(180deg, #2563EB 0%, #1A33FF 50%, #3B82F6 100%);
}

.val-color--blue .val-accent-bar {
  background: var(--val-blue);
}

/* ==========================================================================
   6. Tablet Scaling (900px - 1280px)
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 901px) {
  .values-panoramic-row {
    gap: 10px;
    padding-bottom: 20px;
  }

  .val-folded-card {
    min-width: 110px;
    max-width: 130px;
    height: 420px;
  }

  .val-white-panel {
    padding: 44px 8px 18px 8px;
  }

  .val-title-text {
    font-size: 0.78rem;
  }

  .val-desc-text {
    font-size: 0.69rem;
    line-height: 1.4;
  }

  .val-badge-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
    left: -6px;
    top: 12px;
  }

  .val-roof-icon {
    top: 40px;
    width: 30px;
    height: 30px;
  }

  .val-roof-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   7. Mobile Controlled Vertical Sequence (Max-Width: 900px)
   Sequence: 01 to 08 cleanly stacked with full folded geometry
   ========================================================================== */
@media (max-width: 900px) {
  .laymap-values-section {
    padding: 3.5rem 0 4.5rem 0;
  }

  .values-header {
    margin-bottom: 2.5rem;
  }

  .values-panoramic-row {
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    padding-bottom: 0;
  }

  .val-folded-card {
    width: 100%;
    max-width: 320px;
    height: 380px;
  }

  .val-card-roof {
    height: 140px;
  }

  .val-white-panel-wrap {
    top: 90px;
    height: 265px;
  }

  .val-white-panel {
    padding: 42px 18px 20px 18px;
  }

  .val-title-text {
    font-size: 0.95rem;
  }

  .val-accent-bar {
    width: 30px;
    height: 3px;
    margin: 8px auto 12px auto;
  }

  .val-desc-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .val-badge-circle {
    width: 38px;
    height: 38px;
    font-size: 15px;
    left: -6px;
    top: 12px;
  }

  .val-roof-icon {
    top: 38px;
    width: 34px;
    height: 34px;
  }

  .val-roof-icon svg {
    width: 32px;
    height: 32px;
  }

  .values-cad-floor {
    height: 240px;
    opacity: 0.55;
  }
}
