/* ============================================
   HERO — Split layout with visual accordion strips
   ============================================ */

/* Dark solid background — bg-hero.jpg is very faint texture only */
.hero-bg-image {
  opacity: 0.12 !important;
  filter: blur(3px) saturate(0.2) brightness(0.4) !important;
}

.hero-overlay {
  background: linear-gradient(
    120deg,
    #070e38 0%,
    #0a1248 55%,
    rgba(10, 18, 72, 0.82) 100%
  ) !important;
}

/* Two-column layout */
.hero-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-content {
  max-width: 100% !important;
}

/* Stats sit below content, inside hero-left */
.hero-stats {
  margin-top: 48px !important;
  padding-top: 32px !important;
  gap: 36px !important;
  flex-wrap: wrap;
}

/* ---- Right: Trade network visualization ---- */
.hero-network {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  /* overflow: hidden; */
}

.hero-network::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image: url('../images/world-map-bw.png');
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.12;
  pointer-events: none;
}

/* ---- SVG lines ---- */
.net-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.net-line {
  stroke-dasharray: 6 5;
  animation: flow-dash 2.5s linear infinite;
}

/* Stagger the line animations */
.nl-1 { animation-delay: 0s;    animation-duration: 2.2s; }
.nl-2 { animation-delay: 0.4s;  animation-duration: 2.8s; }
.nl-3 { animation-delay: 0.8s;  animation-duration: 2.5s; }
.nl-4 { animation-delay: 1.2s;  animation-duration: 3.0s; }
.nl-5 { animation-delay: 0.2s;  animation-duration: 2.4s; }
.nl-6 { animation-delay: 0.9s;  animation-duration: 2.6s; }
.nl-7 { animation-delay: 0.5s;  animation-duration: 2.9s; }

@keyframes flow-dash {
  to { stroke-dashoffset: -44; }
}

/* ---- Central hub ---- */
.net-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.2);
  animation: hub-breathe 4s ease-in-out infinite;
}
.hr1 { width: 80px;  height: 80px;  animation-delay: 0s;   border-color: rgba(200,168,75,0.35); }
.hr2 { width: 120px; height: 120px; animation-delay: 0.6s; border-color: rgba(200,168,75,0.18); }
.hr3 { width: 170px; height: 170px; animation-delay: 1.2s; border-color: rgba(200,168,75,0.08); }

@keyframes hub-breathe {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.7; }
}

.hub-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,168,75,0.25), rgba(200,168,75,0.08));
  border: 1px solid rgba(200,168,75,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 24px rgba(200,168,75,0.2), inset 0 0 16px rgba(200,168,75,0.06);
}

.hub-abbr {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}

.hub-sub {
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(200,168,75,0.6);
  margin-top: 2px;
  white-space: nowrap;
}

/* ---- Interactive Trade Routes (SVG) ---- */
.trade-route {
  cursor: pointer;
}

.trade-route .tline {
  stroke-dasharray: 6 5;
  opacity: 0.12;
  transition: all 0.4s ease;
}

.trade-route:hover .tline {
  opacity: 1;
  stroke-width: 2.2;
  animation: flow-dash 1.5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(200,168,75,0.6));
}

.trade-route .nd-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trade-route:hover .nd-label {
  fill: var(--gold);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(200, 168, 75, 0.8);
}

.trade-route .nd-core {
  transition: all 0.3s;
}

.trade-route:hover .nd-core {
  r: 4;
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--gold));
}

.trade-route .nd-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.trade-route:hover .nd-pulse {
  animation: svg-pulse 2s ease-out infinite;
  opacity: 1;
}

@keyframes svg-pulse {
  0%   { r: 4; stroke-width: 2; opacity: 1; }
  100% { r: 18; stroke-width: 0; opacity: 0; }
}

/* ---- Floating stat badge ---- */
.net-badge {
  position: absolute;
  bottom: 8%;
  right: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 10px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
}

.nb-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

.nb-lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}





/* ---- Section wrapper ---- */
.products-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
}

.products-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/bg-products.jpg') center center / cover no-repeat;
}

.products-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Dark navy overlay — fixes white-on-gray contrast problem */
  background: linear-gradient(180deg,
    rgba(8, 15, 58, 0.97) 0%,
    rgba(13, 21, 96, 0.96) 40%,
    rgba(8, 15, 58, 0.97) 100%);
}

.products-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section header on dark background ---- */
.products-section .section-tag {
  color: var(--gold) !important;
}

.products-section .section-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.products-section .section-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ---- Category Label ---- */
.acc-category {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 48px 0 16px;
}

.acc-category:first-of-type {
  margin-top: 16px;
}

.acc-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 168, 75, 0.2);
  border-radius: 6px;
  padding: 8px 16px;
  background: rgba(200, 168, 75, 0.05);
}

.acc-cat-label i {
  font-size: 12px;
  opacity: 0.8;
}

.acc-cat-ar {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 10px;
  margin-left: 2px;
  font-weight: 400;
}

.consumer-cat .acc-cat-label {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

/* ---- Accordion Row ---- */
.acc-row {
  display: flex;
  gap: 8px;
  height: 360px;
}

.consumer-row {
  height: 360px;
}

/* ---- Individual Accordion Card ---- */
.acc-card {
  flex: 1;
  min-width: 72px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: none;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.acc-row:hover .acc-card {
  flex: 0.5;
}

.acc-row:hover .acc-card:hover {
  flex: 5;
}

/* ---- Background Image ---- */
.acc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.45) saturate(0.7);
}

.acc-card:hover .acc-bg {
  transform: scale(1.05);
  filter: brightness(0.35) saturate(0.8);
}

/* Inner gradient overlay on hover */
.acc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 15, 58, 0.95) 0%,
    rgba(8, 15, 58, 0.5) 40%,
    rgba(8, 15, 58, 0.1) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.acc-card:hover::after {
  opacity: 1;
}

/* ---- Collapsed state (always visible, hidden on hover) ---- */
.acc-closed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.3s ease;
  background: rgba(13, 21, 96, 0.55);
}

.acc-card:hover .acc-closed {
  opacity: 0;
  pointer-events: none;
}

.acc-ico {
  font-size: 20px;
  color: var(--gold);
  opacity: 0.8;
}

.acc-vtext {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ---- Expanded content (revealed on hover) ---- */
.acc-open {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 28px 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.acc-card:hover .acc-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.acc-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.7;
}

.acc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.acc-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 14px;
  white-space: normal;
  max-width: 280px;
}

.acc-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 168, 75, 0.12);
  border: 1px solid rgba(200, 168, 75, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.acc-tag.retail {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.acc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.acc-btn i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.acc-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.acc-btn:hover i {
  transform: translateX(3px);
}

/* ---- Mobile fallback ---- */
@media (max-width: 768px) {
  .acc-row {
    flex-direction: column;
    height: auto;
  }

  .acc-card {
    flex: none !important;
    height: 220px;
    min-width: unset;
  }

  .acc-row:hover .acc-card {
    flex: none;
  }

  .acc-closed {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 24px;
  }

  .acc-vtext {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 20px;
  }

  .acc-open {
    padding: 20px 24px;
  }

  .acc-card {
    height: 280px;
  }
}

/* ============================================
   Default-open: first Consumer Products card
   ============================================ */

/* First card starts expanded, others start slim */
.consumer-row .acc-card:first-child {
  flex: 5;
}
.consumer-row .acc-card:not(:first-child) {
  flex: 0.5;
}

/* Show expanded content on the first card by default */
.consumer-row .acc-card:first-child .acc-closed {
  opacity: 0;
  pointer-events: none;
}
.consumer-row .acc-card:first-child .acc-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.consumer-row .acc-card:first-child .acc-bg {
  transform: scale(1.05);
  filter: brightness(0.35) saturate(0.8);
}
.consumer-row .acc-card:first-child::after {
  opacity: 1;
}

/* ---- When row is hovered: reset default & let hover take over ---- */
.consumer-row:hover .acc-card {
  flex: 0.5;
}
.consumer-row:hover .acc-card:hover {
  flex: 5;
}

/* Reset first card back to closed when any card is hovered */
.consumer-row:hover .acc-card:first-child .acc-closed {
  opacity: 1;
  pointer-events: auto;
}
.consumer-row:hover .acc-card:first-child .acc-open {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.consumer-row:hover .acc-card:first-child .acc-bg {
  transform: scale(1);
  filter: brightness(0.45) saturate(0.7);
}
.consumer-row:hover .acc-card:first-child::after {
  opacity: 0;
}

/* If the first card itself is hovered, keep it open */
.consumer-row:hover .acc-card:first-child:hover .acc-closed {
  opacity: 0;
  pointer-events: none;
}
.consumer-row:hover .acc-card:first-child:hover .acc-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.consumer-row:hover .acc-card:first-child:hover .acc-bg {
  transform: scale(1.05);
  filter: brightness(0.35) saturate(0.8);
}
.consumer-row:hover .acc-card:first-child:hover::after {
  opacity: 1;
}

/* ============================================
   RESPONSIVE LAYOUT & MOBILE ANIMATION FIXES
   ============================================ */

#trade-map {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 32px;
    padding-top: 40px;
  }

  .hero-left {
    align-items: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    margin-top: 24px !important;
    gap: 24px !important;
  }

  .hero-network {
    height: 400px;
    margin-top: 20px;
  }

  .hero-network::before {
    background-size: cover;
  }

  /* Since there is no "hover" on mobile, we automatically highlight the routes */
  .trade-route .tline {
    opacity: 0.6;
    stroke-width: 1.5;
    animation: flow-dash 3s linear infinite;
  }

  .trade-route .nd-label {
    fill: rgba(255, 255, 255, 0.8);
    font-weight: 700;
  }

  .trade-route .nd-pulse {
    animation: svg-pulse 3s ease-out infinite;
    opacity: 0.8;
  }

  /* Stagger the automatic mobile animations so they don't pulse all at once */
  .trade-route:nth-child(even) .tline { animation-delay: 1s; }
  .trade-route:nth-child(odd) .tline { animation-delay: 0s; }
  .trade-route:nth-child(even) .nd-pulse { animation-delay: 1.5s; }
  .trade-route:nth-child(odd) .nd-pulse { animation-delay: 0s; }
}

@media (max-width: 480px) {
  .hero-network {
    height: 320px;
  }
}
