/* ============================================================
   INDUSTRIES PAGE STYLES — redesigned split layout
   ============================================================ */

/* Hero */
.ind-hero {
  background: linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.40)), url('../images/industries.png') 70% center / 70% no-repeat #fff;
  min-height: unset;
  padding-top: calc(var(--nav-h) + 0.5rem);
  padding-bottom: 1rem;
}

.ind-hero::before { display: none; }

.ind-hero .page-glow-red,
.ind-hero .page-glow-navy { display: none; }

.ind-hero .page-hero-inner { padding-bottom: 40px; position: relative; z-index: 2; }
.ind-hero .page-hero-badge { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); color: #fff; }
.ind-hero .badge-pulse { background: #fff; }
.ind-hero .page-hero-h1 { color: #fff; }
.ind-hero .page-hero-h1 .h1-red { color: var(--red, #C41E3A); }
.ind-hero .page-hero-sub { color: rgba(255,255,255,0.80); }

/* Hero stats */
.ind-hero-stats { display: flex; gap: 2.5rem; justify-content: flex-start; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.20); flex-wrap: wrap; }
.ihs-item { text-align: left; }
.ihs-val { font-family: var(--font-mono); font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.ihs-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Jump nav */
.ind-jump-nav {
  position: sticky; top: 72px; z-index: 80;
  background: var(--white); border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ijn-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.ijn-inner::-webkit-scrollbar { display: none; }
.ijn-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 18px; font-size: 13px; font-weight: 600;
  color: var(--gray-500); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ijn-link:hover { color: var(--dark); border-color: var(--gray-300); }
.ijn-link.active { color: var(--red); border-color: var(--red); }
.ijn-icon { font-size: 16px; display: inline-flex; align-items: center; }
.ijn-icon img { display: block; }

/* Industry sections */
.ind-section { padding: 90px 0; background: var(--white); }
.ind-section-alt { background: var(--gray-50); }

/* Split layout */
.ind-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.ind-split-rev { direction: rtl; }
.ind-split-rev > * { direction: ltr; }

.ind-split-tag {
  display: inline-flex; padding: 5px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.2rem; font-family: var(--font-mono);
}
.ind-split-h2 {
  font-family: var(--font-head); font-size: clamp(26px,3vw,40px);
  font-weight: 800; color: var(--dark); line-height: 1.15;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.ind-split-desc {
  font-size: 15px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Feature list */
.ind-feat-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.8rem; }
.ind-feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--dark); font-weight: 500; }
.ind-feat-check {
  width: 20px; height: 20px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

/* Results row */
.ind-results {
  display: flex; gap: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.ind-result {}
.ir-val { font-family: var(--font-mono); font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.ir-lbl { font-size: 11px; color: var(--gray-400); font-weight: 600; font-family: var(--font-mono); }

/* Visual panel */
.ind-split-visual {
  border-radius: 20px; overflow: hidden;
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.isv-panel {
  width: 100%; display: flex; flex-direction: column; gap: 14px;
}
.isv-topbar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em;
}
.isv-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}
.isv-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 100px;
  font-size: 9px; font-weight: 700;
}

/* Full-map visual */
.isv-fullmap {
  position: relative; padding: 0; overflow: hidden; align-items: stretch;
}
.isv-fullmap::after { display: none; }
.isv-fullmap .isv-panel {
  position: absolute; inset: 0; z-index: 2;
  padding: 16px; justify-content: flex-end;
  background: transparent;
}
.isv-map-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: mapDrift 20s ease-in-out infinite alternate;
}
@keyframes mapDrift {
  0%   { transform: scale(1.08) translate(0%,    0%); }
  33%  { transform: scale(1.11) translate(-1.8%, -1.2%); }
  66%  { transform: scale(1.09) translate(1.2%,  -0.6%); }
  100% { transform: scale(1.08) translate(-0.6%,  1.2%); }
}
/* Floating topbar */
.isv-map-topbar {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #1E293B;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.isv-map-topbar .isv-badge { margin-left: auto; }

/* Floating stats */
.isv-map-stats {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}

/* Legacy map area (kept for other panels) */
.isv-map-area {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; height: 130px; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.isv-map-roads {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.isv-route-active { animation: routeDash 2.5s linear infinite; }
.isv-route-d1 { animation-delay: -1.2s; }
.isv-route-d2 { animation-delay: -0.6s; }
@keyframes routeDash { to { stroke-dashoffset: -28; } }

.isv-pin {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
}
.isv-pin img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(249,115,22,0.6));
}
.isv-pin::after {
  content: '';
  position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #F97316; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(249,115,22,0.6);
  animation: livePing 2s ease-out infinite;
}
.isv-p2::after { animation-delay: 0.5s; }
.isv-p3::after { animation-delay: 1s; }
.isv-p4::after { animation-delay: 1.5s; }

@keyframes livePing {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

/* Truck movement animations */
.isv-p1 { animation: truckMove1 8s ease-in-out infinite; }
.isv-p2 { animation: truckMove2 11s ease-in-out infinite; }
.isv-p3 { animation: truckMove3 7s ease-in-out infinite; }
.isv-p4 { animation: truckMove4 9s ease-in-out infinite; }

@keyframes truckMove1 {
  0%,100% { transform: translate(0,0); }
  35% { transform: translate(24px,-7px); }
  70% { transform: translate(42px, 4px); }
}
@keyframes truckMove2 {
  0%,100% { transform: translate(0,0); }
  40% { transform: translate(-20px,9px); }
  70% { transform: translate(-34px,-3px); }
}
@keyframes truckMove3 {
  0%,100% { transform: translate(0,0); }
  45% { transform: translate(28px,-5px); }
  80% { transform: translate(14px,8px); }
}
@keyframes truckMove4 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-22px,13px); }
  80% { transform: translate(-10px,6px); }
}

/* Stats row */
.isv-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.isv-stat {
  background: #fff; border: none;
  border-radius: 8px; padding: 10px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.isv-stat-val { font-family: var(--font-mono); font-size: 16px; font-weight: 800; color: #1E293B; }
.isv-stat-lbl { font-size: 9px; font-family: var(--font-mono); margin-top: 2px; font-weight: 600; }

/* Equipment grid */
.isv-equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.isv-equip {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.isv-equip-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.isv-equip-icon img { width: 26px; height: 26px; }
.isv-equip-label { font-size: 10px; color: rgba(255,255,255,0.6); font-weight: 600; flex: 1; font-family: var(--font-mono); }
.isv-equip-status { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 100px; white-space: nowrap; }
.isv-equip-status.ok { background: rgba(56,72,125,0.15); color: #6B7FBF; }
.isv-equip-status.warn { background: rgba(251,192,45,0.15); color: #FBC02D; }

/* Fuel bar */
.isv-fuel-bar {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.4);
}
.isv-fuel-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
.isv-fuel-fill { height: 100%; background: var(--red); border-radius: 3px; transition: width 1s ease; }

/* Bus info */
.isv-bus-info { display: flex; flex-direction: column; gap: 6px; }
.isv-bus-row {
  display: flex; justify-content: space-between;
  font-size: 11px; font-family: var(--font-mono);
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.isv-bus-row span:first-child { color: rgba(255,255,255,0.35); }
.isv-bus-row span:last-child { color: rgba(255,255,255,0.85); font-weight: 700; }

/* Temperature block */
.isv-temp-block {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(147,51,234,0.25);
  border-radius: 10px; padding: 16px; text-align: center;
}
.isv-temp-val { font-family: var(--font-mono); font-size: 36px; font-weight: 800; color: #c084fc; }
.isv-temp-label { font-size: 10px; color: rgba(255,255,255,0.35); margin: 4px 0 2px; font-family: var(--font-mono); }
.isv-temp-range { font-size: 10px; color: rgba(0,196,154,0.9); font-family: var(--font-mono); font-weight: 600; }

/* CTA section */
.ind-cta-section { padding: 80px 0; background: var(--gray-50); border-top: 1px solid var(--border-light); }
.ind-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.ind-cta-h2 {
  font-family: var(--font-head); font-size: clamp(26px,3vw,40px);
  font-weight: 800; color: var(--dark); line-height: 1.15; margin-bottom: 0.8rem;
}
.ind-cta-desc { font-size: 15px; color: var(--gray-600); max-width: 440px; }
.ind-cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .ind-split { grid-template-columns: 1fr; gap: 32px; }
  .ind-split-rev { direction: ltr; }
  .ind-split-visual { min-height: 280px; }
  .ind-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .ind-section { padding: 60px 0; }
  .isv-equip-grid { grid-template-columns: 1fr; }
  .ind-results { gap: 1.2rem; }
}

/* ---- 480px: small phones ---- */
@media (min-width: 320px) and (max-width: 480px) {
  .ind-section { padding: 48px 0; }
  .ind-section-alt { padding: 48px 0; }
  .ind-split { grid-template-columns: 1fr; gap: 24px; }
  .ind-split-rev { direction: ltr; }
  .ind-split-h2 { font-size: clamp(22px, 7vw, 32px); }
  .ind-split-desc { font-size: 13.5px; line-height: 1.68; }
  .ind-split-visual { min-height: 240px; padding: 16px; }
  .ir-val { font-size: 24px; }
  .ir-lbl { font-size: 10px; }
  .ind-results { gap: 1rem; flex-wrap: wrap; }
  .ind-hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .ihs-val { font-size: 26px; }
  .ihs-label { font-size: 11px; }
  .ind-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .ind-cta-actions { flex-direction: column; width: 100%; }
  .ind-cta-actions .btn { width: 100%; justify-content: center; }
  .ijn-link { padding: 10px 12px; font-size: 12px; }
}

/* ---- 375px: iPhone SE/standard family ---- */
@media (min-width: 375px) and (max-width: 480px) {
  .ind-split-h2 { font-size: clamp(22px, 7vw, 30px); }
  .ind-split-desc { font-size: 13.5px; }
  .ir-val { font-size: 23px; }
  .ihs-val { font-size: 25px; }
  .ind-split-visual { min-height: 230px; padding: 14px; }
}

/* ---- max 375px: iPhone SE and smaller ---- */
@media (max-width: 375px) {
  .ind-split-h2 { font-size: 21px; }
  .ind-split-desc { font-size: 13.5px; }
  .ir-val { font-size: 21px; }
  .ihs-val { font-size: 23px; }
  .ind-split-visual { min-height: 215px; padding: 13px; }
}

/* ---- 360px: budget Androids ---- */
@media (max-width: 360px) {
  .ind-split-h2 { font-size: 20px; }
  .ind-split-desc { font-size: 13px; }
  .ir-val { font-size: 20px; }
  .ihs-val { font-size: 22px; }
  .ind-feat { font-size: 13px; }
  .ind-split-visual { min-height: 200px; padding: 12px; }
}

/* ---- 320px: legacy phones ---- */
@media (max-width: 320px) {
  .ind-section, .ind-section-alt { padding: 40px 0; }
  .ind-split-h2 { font-size: 18px; }
  .ir-val { font-size: 18px; }
  .ihs-val { font-size: 20px; }
  .ijn-link { padding: 8px 10px; font-size: 11px; }
}
