/* InterGlobExpress — custom flourishes on top of Tailwind */

:root {
  --signal: #FF5A1F;
  --steel:  #98A2B3;
  --line:   #2A3340;
}

/* Waybill stub tear-line (dashed perforation) */
.tear-line {
  position: relative;
  border-top: 2px dashed var(--line);
}
.tear-line::before,
.tear-line::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #0E1117;
  border: 2px solid var(--line);
}
.tear-line::before { left: -9px; }
.tear-line::after  { right: -9px; }

/* Barcode-ish visual made of stripes */
.barcode {
  height: 46px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    #F4F6F8 0, #F4F6F8 2px,
    transparent 2px, transparent 4px,
    #F4F6F8 4px, #F4F6F8 7px,
    transparent 7px, transparent 9px,
    #F4F6F8 9px, #F4F6F8 10px,
    transparent 10px, transparent 13px
  );
  border-radius: 2px;
}

/* Vertical timeline connector */
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Leaflet map container rounding */
.leaflet-container { border-radius: 10px; background:#1E2530; }

/* ============================================================
   VISUAL POLISH — depth, warmth, gradient accents
   (adds richness on top of the dark base; site-wide)
   ============================================================ */

/* Rich, layered background instead of flat black */
body {
  background:
    radial-gradient(900px 520px at 85% -60px, rgba(255,90,31,.13), transparent 60%),
    radial-gradient(820px 520px at -5% 12%, rgba(74,110,255,.10), transparent 55%),
    radial-gradient(760px 620px at 50% 115%, rgba(255,120,45,.07), transparent 60%),
    linear-gradient(180deg, #10141C 0%, #0C0F15 100%) !important;
  background-attachment: fixed;
}

/* Gradient text accent (apply with class="text-gradient") */
.text-gradient {
  background: linear-gradient(120deg, #FF7A3D 0%, #FF5A1F 45%, #FFB020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Primary action buttons: warm gradient + soft glow.
   Targets solid-signal buttons/links (not the /10 opacity badges). */
a.bg-signal, button.bg-signal, .btn-signal {
  background-image: linear-gradient(135deg, #FF6A2A 0%, #FF5A1F 55%, #FF8A3D 100%) !important;
  box-shadow: 0 10px 26px -8px rgba(255,90,31,.55);
}
a.bg-signal:hover, button.bg-signal:hover, .btn-signal:hover {
  box-shadow: 0 14px 32px -8px rgba(255,90,31,.7);
}

/* Elevated cards: subtle top sheen, smooth hover lift + glow.
   Matches the common card markup: rounded-xl + bg-surface. */
.rounded-xl.bg-surface {
  background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rounded-xl.bg-surface:hover {
  transform: translateY(-3px);
  border-color: rgba(255,90,31,.4);
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,90,31,.12);
}

/* Give section dividers a faint glow instead of a hard line */
.border-t.border-line\/70 { position: relative; }

/* Frosted, slightly luminous surface for the hero tracking box */
.trackbox-glass {
  background: rgba(14,17,23,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}

/* Small gradient accent bar for card headers where desired */
.accent-bar {
  height: 3px; width: 34px; border-radius: 3px;
  background: linear-gradient(90deg, #FF5A1F, #FFB020);
}

/* ============================================================
   REFINEMENT PASS — finer navy palette, no text glow, softer
   (appended last so these rules take precedence)
   ============================================================ */

/* Refined, calmer background (no coloured glow blobs) */
body {
  background:
    radial-gradient(1100px 620px at 50% -140px, #1A2230 0%, transparent 62%),
    linear-gradient(180deg, #10141C 0%, #0C0F15 100%) !important;
  background-attachment: fixed;
}

/* Text accents become SOLID — no gradient, no glow */
.text-gradient, .grad {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #FF5A1F !important;
  color: #FF5A1F !important;
}

/* Buttons: solid, refined, subtle shadow (no orange glow) */
a.bg-signal, button.bg-signal, .btn-signal {
  background-image: none !important;
  background-color: #FF5A1F !important;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.6) !important;
}
a.bg-signal:hover, button.bg-signal:hover, .btn-signal:hover {
  background-color: #FF6A32 !important;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.7) !important;
}

/* Cards: gentle lift, soft neutral shadow (no orange ring glow) */
.rounded-xl.bg-surface:hover {
  transform: translateY(-2px);
  border-color: #39424F;
  box-shadow: 0 16px 36px -16px rgba(0,0,0,.7) !important;
}

/* Accent bar solid */
.accent-bar { background: #FF5A1F !important; }

/* Mobile-first refinements */
@media (max-width: 640px) {
  h1, .text-4xl { font-size: 32px !important; line-height: 1.12 !important; }
  .py-16 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
  .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* Hero crossfade slideshow */
.hero-slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease-in-out;
}
.hero-slide.on{ opacity:1; }
