/* =========================================================
   JHONY TRANSPORT S.A. — Public site premium skin
   Scope: public pages only (avoid ERP internal UI).
   Uses CSS variables injected in templates/base.html:
   --app-primary-blue, --app-accent-gold, --app-deep-navy, --app-bg, --app-text, --app-surface
   ========================================================= */

body:not(.app-internal) {
  background: var(--app-bg);
  color: var(--app-text);
}

body:not(.app-internal) .page-bg {
  background: var(--app-bg);
}

@media (prefers-reduced-motion: no-preference){
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Typography refinements */
body:not(.app-internal) .jt-kicker {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(17, 17, 17, .72);
}

/* =========================================================
   NAV (premium behavior)
   ========================================================= */
body:not(.app-internal) .jt-nav.custom-nav{
  background: transparent;
  box-shadow: none;
  transition: background .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
}

body:not(.app-internal) .jt-nav .custom-nav-brand{
  color: rgba(255,255,255,.92);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
body:not(.app-internal) .jt-nav .custom-nav-logo{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
  transition: transform .25s ease, filter .25s ease;
}
body:not(.app-internal) .jt-nav .custom-nav-brand:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}
body:not(.app-internal) .jt-nav .custom-nav-brand:hover .custom-nav-logo{
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.30));
}
body:not(.app-internal) .jt-nav .custom-nav-name{ color: rgba(255,255,255,.92); }
body:not(.app-internal) .jt-nav .custom-nav-item{
  color: rgba(255,255,255,.86);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
body:not(.app-internal) .jt-nav .custom-nav-item:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Scrolled state */
body.jt-scrolled:not(.app-internal) .jt-nav.custom-nav{
  background: rgba(10, 15, 31, .82);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

/* =========================================================
   HERO
   ========================================================= */
.jt-hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(18px, 5vw, 64px) 0;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

@media (min-width: 992px){
  .jt-hero {
    min-height: min(88vh, 900px);
    /* Avoid "vibration"/jitter on desktop browsers. */
    background-attachment: scroll;
  }
}

.jt-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 520px at 22% 22%, rgba(255,255,255,.06), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 35%, rgba(0,0,0,.58) 100%);
  z-index:0;
}

/* Hero overlay stays stable (no continuous animation). */

.jt-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--app-primary-blue), var(--app-accent-gold));
  opacity: .9;
  z-index: 1;
}

.jt-hero .jt-hero-inner{
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.jt-hero .jt-hero-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content: center;
  margin-bottom: 14px;
}

.jt-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-size: 13px;
}

.jt-badge-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--app-accent-gold);
  box-shadow: 0 0 0 4px rgba(195,0,47,.12);
}

.jt-hero h1{
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.03;
  font-size: clamp(34px, 4.8vw, 62px);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.jt-hero p{
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(15px, 1.2vw + 12px, 20px);
  line-height: 1.5;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.jt-hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: center;
}

.jt-btn-ico{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .95;
}
.jt-btn-ico svg{ width: 18px; height: 18px; display:block; }

.jt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.jt-btn:hover{
  transform: translateY(-1px);
}
.jt-btn::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0));
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference){
  .jt-btn:hover::after{
    transition: transform .8s ease;
    transform: translateX(120%);
  }
}
.jt-btn-primary{
  background: linear-gradient(135deg, var(--app-primary-blue), #10285f);
  color: #fff;
  box-shadow: 0 14px 36px rgba(31,60,136,.28);
}
.jt-btn-primary:hover{ color:#fff; box-shadow: 0 18px 44px rgba(31,60,136,.34); }

.jt-btn-secondary{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  color: rgba(255,255,255,.95);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
.jt-btn-secondary:hover{
  color:#fff;
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.jt-btn-outline{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
}
.jt-btn-outline:hover{ color:#fff; border-color: rgba(255,255,255,.36); }

.jt-btn-tertiary{
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,.90);
  text-decoration: none;
  padding-left: 10px;
  padding-right: 10px;
}
.jt-btn-tertiary:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.jt-section{
  padding: clamp(26px, 4vw, 72px) 0;
}
.jt-section--surface{
  background: linear-gradient(180deg, var(--app-surface), rgba(255,255,255,0));
}
.jt-section--dark{
  background: radial-gradient(1200px 520px at 10% 0%, rgba(31,60,136,.26), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, #0a0f1f, #070b16);
  color:#fff;
}
.jt-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.jt-section-title h2{
  margin: 0;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: clamp(22px, 2.2vw, 34px);
}
.jt-section-title p{
  margin: 0;
  color: rgba(17,17,17,.70);
  max-width: 72ch;
}
.jt-section--dark .jt-section-title p{ color: rgba(255,255,255,.78); }

/* Cards grid */
.jt-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Capacity grid: always "perfectly filled" on desktop (6 cards => 3x2). */
.jt-grid.jt-grid--capacity{
  grid-template-columns: 1fr;
}
@media (min-width: 768px){
  .jt-grid.jt-grid--capacity{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px){
  .jt-grid.jt-grid--capacity{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.jt-card{
  grid-column: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 18px 44px rgba(16,24,40,.10);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.jt-section--dark .jt-card{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 22px 54px rgba(0,0,0,.34);
}
.jt-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(16,24,40,.14);
  border-color: rgba(31,60,136,.22);
}
.jt-section--dark .jt-card:hover{
  box-shadow: 0 26px 66px rgba(0,0,0,.42);
  border-color: rgba(255,255,255,.16);
}

.jt-card-inner{
  padding: 16px;
}
.jt-card h3{
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 18px;
}
.jt-card p{
  margin: 0;
  color: rgba(17,17,17,.70);
}
.jt-section--dark .jt-card p{ color: rgba(255,255,255,.76); }

.jt-card-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,17,17,.62);
}
.jt-section--dark .jt-card-badge{ color: rgba(255,255,255,.72); }

.jt-card-accent{
  height: 8px;
  background: linear-gradient(90deg, var(--app-primary-blue), var(--app-accent-gold));
  background-size: 160% 100%;
  background-position: 0% 50%;
}
@media (prefers-reduced-motion: no-preference){
  .jt-card:hover .jt-card-accent{
    transition: background-position 1.2s ease;
    background-position: 100% 50%;
  }
}

/* Stats */
.jt-stats{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.jt-stat{
  grid-column: auto;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jt-stat:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.18);
}
.jt-stat-value{
  font-size: clamp(22px, 2.6vw, 44px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.05;
}
.jt-stat-label{
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-weight: 600;
}
/* no fixed spans: auto-fit fills perfectly */

/* Infrastructure mosaic */
.jt-mosaic{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}
.jt-mosaic-tile{
  grid-column: span 12;
  border-radius: 18px;
  overflow:hidden;
  position: relative;
  min-height: 220px;
  background-size: 112%;
  background-position: center;
  box-shadow: 0 20px 54px rgba(16,24,40,.14);
  border: 1px solid rgba(17,17,17,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-size 1.2s ease;
}
.jt-mosaic-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
  transition: background .22s ease, opacity .22s ease;
}
.jt-mosaic-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 66px rgba(16,24,40,.18);
  border-color: rgba(31,60,136,.22);
  background-size: 120%;
}
.jt-mosaic-tile:hover::before{
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.64));
}
.jt-mosaic-caption{
  position:absolute;
  inset: auto 14px 14px 14px;
  color:#fff;
  z-index: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
@media (min-width: 768px){
  .jt-mosaic-tile{ grid-column: span 6; }
  .jt-mosaic-tile.is-wide{ grid-column: span 12; min-height: 320px; }
}
@media (min-width: 1200px){
  .jt-mosaic-tile{ grid-column: span 4; }
  .jt-mosaic-tile.is-wide{ grid-column: span 8; }
  .jt-mosaic-tile.is-tall{ grid-column: span 4; min-height: 420px; }
}

/* Enterprise mosaic: guaranteed "no gaps" layout on desktop */
@media (min-width: 1200px){
  .jt-mosaic.jt-mosaic--enterprise{
    grid-template-areas:
      "a a a a a a a a b b b b"
      "a a a a a a a a b b b b"
      "c c c c c c d d d d d d";
  }
  .jt-mosaic.jt-mosaic--enterprise .jt-mosaic-a{ grid-area: a; min-height: 440px; }
  .jt-mosaic.jt-mosaic--enterprise .jt-mosaic-b{ grid-area: b; min-height: 440px; }
  .jt-mosaic.jt-mosaic--enterprise .jt-mosaic-c{ grid-area: c; min-height: 240px; }
  .jt-mosaic.jt-mosaic--enterprise .jt-mosaic-d{ grid-area: d; min-height: 240px; }
}

/* Partners row */
.jt-partners{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}
.jt-partner{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.04);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Partners as logos (enterprise) */
.jt-partners.jt-partners--logos{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.jt-partner-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 54px rgba(0,0,0,.26);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.jt-partner-logo:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  box-shadow: 0 26px 66px rgba(0,0,0,.34);
}
.jt-partner-logo img{
  width: 100%;
  max-width: 420px;
  height: 56px;
  object-fit: contain;
  display:block;
  opacity: .95;
  filter: saturate(1.05);
}

/* Scroll reveal (subtle) */
.jt-reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.jt-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Fleet section
   ========================================================= */
.jt-fleet{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 992px){
  .jt-fleet{
    grid-template-columns: 1.25fr .75fr;
    align-items: stretch;
  }
}
.jt-fleet-media{
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 20px 54px rgba(16,24,40,.12);
  position: relative;
}
.jt-fleet-media::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.68));
}
.jt-fleet-media-caption{
  position:absolute;
  inset:auto 14px 14px 14px;
  z-index:1;
  color:#fff;
  font-weight: 800;
  letter-spacing: .02em;
}
.jt-fleet-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.jt-fleet-card{
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 18px 44px rgba(16,24,40,.10);
  padding: 16px;
}
.jt-fleet-k{
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(17,17,17,.60);
  font-size: 12px;
}
.jt-fleet-v{
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 26px;
  margin-top: 6px;
  color: var(--app-deep-navy);
}
.jt-fleet-d{
  margin-top: 6px;
  color: rgba(17,17,17,.72);
}

/* =========================================================
   Process timeline
   ========================================================= */
.jt-timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.jt-step{
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 18px 44px rgba(16,24,40,.10);
  padding: 14px;
  display:flex;
  gap: 12px;
  align-items: flex-start;
}
.jt-step-n{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-primary-blue), var(--app-accent-gold));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.jt-step-t{
  font-weight: 900;
  letter-spacing: .01em;
}
.jt-step-d{
  color: rgba(17,17,17,.70);
  margin-top: 2px;
}
@media (min-width: 992px){
  .jt-timeline{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .jt-step{
    flex-direction: column;
    min-height: 160px;
  }
  .jt-step-n{ width: 40px; height: 40px; }
}

/* =========================================================
   Network map (world)
   ========================================================= */
.jt-world{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(900px 420px at 10% 10%, rgba(31,60,136,.32), rgba(0,0,0,0) 60%),
              radial-gradient(900px 420px at 90% 20%, rgba(195,0,47,.20), rgba(0,0,0,0) 55%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 26px 66px rgba(0,0,0,.38);
  position: relative;
}
.jt-world-inner{
  padding: 18px;
  position: relative;
}
.jt-world svg{
  width: 100%;
  height: auto;
  display: block;
}

.jt-hub{ cursor: pointer; }
.jt-hub-hit{ pointer-events: all; }

.jt-hub-label{
  fill: rgba(255,255,255,.88);
  font-family: var(--brand-font-ui, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(0,0,0,.28);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.jt-hub-label.jt-hub-sub{
  fill: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  stroke: rgba(0,0,0,.22);
}
@media (max-width: 720px){
  .jt-hub-label{ display:none; }
}

.jt-world-tip{
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  transform: translate(-9999px, -9999px);
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
  max-width: min(360px, 86vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 15, 31, .92);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 54px rgba(0,0,0,.44);
  color: rgba(255,255,255,.92);
}
.jt-world-tip strong{
  display:block;
  font-weight: 900;
  letter-spacing: .02em;
}
.jt-world-tip span{
  display:block;
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference){
  .jt-route{
    stroke-dasharray: 6 10;
    animation: jt-route-move 2.6s linear infinite;
  }
  .jt-ping{
    transform-origin: center;
    animation: jt-ping 1.8s ease-in-out infinite;
  }
  .jt-hub:hover .jt-ping{ filter: saturate(1.15); }
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes jt-kenburns{
  from { background-size: 112%; }
  to { background-size: 118%; }
}
@keyframes jt-overlay-breathe{
  0%,100% { opacity: 1; filter: saturate(1); }
  50% { opacity: .92; filter: saturate(1.08); }
}
@keyframes jt-route-move{
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}
@keyframes jt-ping{
  0%,100% { opacity: .75; }
  50% { opacity: 1; }
}

