/* =========================================================
   Ojiosador Innovation Courier - Landing Page Enhancements
   Loaded only by index.php, after style.css. It reuses the
   brand variables defined there and never touches other pages.
   ========================================================= */

html { scroll-behavior: smooth; }
section[id], .track-card { scroll-margin-top: 84px; }

/* ---------- Scroll reveal (only hidden when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Navbar: subtle shadow once scrolled ---------- */
.navbar { transition: box-shadow .25s ease, background .25s ease; }
.navbar.scrolled { box-shadow: 0 6px 22px rgba(7, 42, 102, .35); }
/* Keep the hamburger on the first row, next to the logo, on small screens */
.navbar .brand { order: 1; }
.navbar .nav-toggle { order: 2; }
.navbar .navlinks { order: 3; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider {
  --dur: 6500ms;
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--brand-navy-dark);
  overflow: hidden;
  isolation: isolate;
}
.hs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hs-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hs-img {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  transform: scale(1.08);
  transform-origin: 100% 60%;
  transition: transform 9s ease-out;
}
.hs-slide.active .hs-img { transform: scale(1); }

.hs-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 42, 102, .95) 0%, rgba(7, 42, 102, .78) 36%, rgba(7, 42, 102, .18) 72%, rgba(7, 42, 102, 0) 100%),
    linear-gradient(0deg, rgba(7, 42, 102, .6) 0%, rgba(7, 42, 102, 0) 38%);
}

.hs-copy {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 150px;
}
.hs-copy > * { opacity: 0; transform: translateY(26px); }
.hs-slide.active .hs-copy > * { animation: hsUp .85s cubic-bezier(.22, .8, .3, 1) forwards; }
.hs-slide.active .hs-copy > :nth-child(1) { animation-delay: .25s; }
.hs-slide.active .hs-copy > :nth-child(2) { animation-delay: .4s; }
.hs-slide.active .hs-copy > :nth-child(3) { animation-delay: .55s; }
.hs-slide.active .hs-copy > :nth-child(4) { animation-delay: .7s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }

.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffe9b0;
  margin-bottom: 18px;
}
.hs-badge-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.hero-slider h1 {
  font-size: 50px;
  line-height: 1.12;
  max-width: 600px;
  margin: 0 0 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
.hero-slider p.lead {
  color: #d6e4ff;
  max-width: 540px;
  font-size: 17px;
  margin: 0 0 30px;
}
.hs-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Shared button styles for the landing page */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-hero:hover { transform: translateY(-3px); }
.btn-hero-gold { background: var(--brand-gold); color: var(--brand-navy-dark); box-shadow: 0 10px 24px rgba(242, 169, 0, .35); }
.btn-hero-gold:hover { background: #ffbe2e; box-shadow: 0 14px 30px rgba(242, 169, 0, .45); }
.btn-hero-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-hero-ghost:hover { background: #fff; color: var(--brand-navy); }
.btn-hero-navy { background: var(--brand-navy); color: #fff; box-shadow: 0 10px 24px rgba(11, 61, 145, .28); }
.btn-hero-navy:hover { background: var(--brand-navy-dark); }

/* Arrows */
.hs-arrow {
  position: absolute;
  top: 46%;
  z-index: 6;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(7, 42, 102, .35);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hs-arrow:hover { background: var(--brand-gold); color: var(--brand-navy-dark); transform: scale(1.08); }
.hs-prev { left: 20px; }
.hs-next { right: 20px; }

/* Dots + counter */
.hs-controls-wrap { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 6; }
.hs-controls { display: flex; align-items: center; gap: 22px; }
.hs-dots { display: flex; gap: 8px; align-items: center; }
.hs-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  overflow: hidden;
  transition: width .35s ease, background .25s ease;
}
.hs-dot i { position: absolute; inset: 0; width: 0; background: var(--brand-gold); border-radius: inherit; }
.hs-dot.active { width: 46px; background: rgba(255, 255, 255, .3); }
.hs-dot.active i { animation: hsFill var(--dur) linear forwards; }
@keyframes hsFill { to { width: 100%; } }
.hero-slider.is-paused .hs-dot.active i { animation-play-state: paused; }
.hs-count { font-size: 13px; letter-spacing: 2px; color: #cfe0ff; }
.hs-count b { font-size: 19px; color: #fff; }

/* Tracking card sits over the bottom of the slider */
.track-card { box-shadow: 0 24px 60px rgba(7, 42, 102, .25); }
.track-card input[type="text"] { transition: border-color .2s ease, box-shadow .2s ease; }
.track-form input[type="text"]:focus { box-shadow: 0 0 0 4px rgba(11, 61, 145, .12); }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band { padding: 56px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-navy));
}
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-ic { font-size: 26px; margin-bottom: 6px; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--brand-navy); line-height: 1.1; }
.stat-num small { font-size: 18px; font-weight: 700; color: var(--brand-gold-dark); margin-left: 2px; }
.stat-lbl { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* =========================================================
   RIBBON (marquee)
   ========================================================= */
.ribbon {
  margin-top: 46px;
  background: var(--brand-navy);
  color: #e6edfb;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--brand-gold);
}
.ribbon-track { display: inline-flex; animation: ribbon 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-set { display: inline-flex; }
.ribbon-set span {
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  position: relative;
}
.ribbon-set span::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--brand-gold);
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS / SERVICES
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 8px;
}
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-navy));
  transition: width .45s ease;
}
.feature-card:hover::after { width: 100%; }
.feature-card:hover .feature-icon { background: var(--brand-navy); transform: rotate(-6deg) scale(1.08); }
.feature-icon { transition: background .25s ease, transform .3s ease; }

/* =========================================================
   DELIVERY MODES (tabs)
   ========================================================= */
.network { background: linear-gradient(180deg, #eaf0fb 0%, var(--bg) 100%); }
.mode-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .22s ease;
}
.mode-tab:hover { border-color: var(--brand-navy); transform: translateY(-2px); }
.mode-tab.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 61, 145, .3);
}
.mt-ic { font-size: 18px; }

.mode-stage {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mode-panel { display: none; grid-template-columns: 1.4fr 1fr; align-items: stretch; }
.mode-panel.active { display: grid; animation: panelIn .55s cubic-bezier(.22, .8, .3, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.mode-art { background: var(--brand-navy-dark); min-height: 340px; position: relative; overflow: hidden; }
.mode-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 85% 50%); }
.mode-info { padding: 36px 38px; }
.mode-info h3 { margin: 0 0 8px; font-size: 26px; color: var(--brand-navy); }
.mode-text { color: var(--muted); margin: 0 0 18px; }
.mode-points { list-style: none; padding: 0; margin: 0 0 20px; }
.mode-points li { position: relative; padding: 7px 0 7px 30px; font-size: 14.5px; }
.mode-points li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .12);
  color: var(--success);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mode-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.chips-lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chip { background: #eef3fc; color: var(--brand-navy); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* =========================================================
   HOW IT WORKS + journey demo
   ========================================================= */
.section.how { background: #fff; }
.how-steps { position: relative; }
.how-step .num { position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(242, 169, 0, .18); transition: transform .3s ease; }
.how-step:hover .num { transform: scale(1.12) rotate(-6deg); }
@media (min-width: 861px) {
  .how-steps::before {
    content: "";
    position: absolute;
    top: 41px; left: 12.5%; right: 12.5%;
    border-top: 2px dashed #cfd9ee;
  }
}

.journey {
  margin-top: 54px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 50px rgba(7, 42, 102, .25);
}
.journey-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.journey-head h4 { margin: 0; font-size: 18px; }
.journey-tag { background: var(--brand-gold); color: var(--brand-navy-dark); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }

.jr-track { position: relative; padding-top: 34px; }
.jr-line {
  position: absolute;
  left: 10%; right: 10%;
  top: 42px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
}
.jr-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand-gold), #ffd36b);
  transition: width .9s cubic-bezier(.45, .05, .25, 1);
}
.jr-vehicle {
  position: absolute;
  top: 2px;
  left: 10%;
  font-size: 30px;
  line-height: 1;
  transform: translateX(-50%);
  transition: left .9s cubic-bezier(.45, .05, .25, 1);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
  animation: jrBounce 1s ease-in-out infinite;
}
@keyframes jrBounce { 50% { margin-top: -4px; } }
.jr-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.jr-node {
  width: 100%;
  background: none;
  border: none;
  color: #b8cbf0;
  font-family: inherit;
  cursor: pointer;
  padding: 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: color .3s ease;
}
.jr-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-navy-dark);
  border: 4px solid rgba(255, 255, 255, .3);
  transition: all .35s ease;
}
.jr-name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.jr-node.done .jr-dot { background: var(--brand-gold); border-color: var(--brand-gold); }
.jr-node.done { color: #fff; }
.jr-node.active { color: #fff; }
.jr-node.active .jr-dot { background: #fff; border-color: var(--brand-gold); box-shadow: 0 0 0 7px rgba(242, 169, 0, .3); transform: scale(1.1); }
.jr-node:hover { color: #fff; }

.jr-status {
  margin-top: 26px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 3px;
  min-height: 74px;
}
.jr-status strong { color: var(--brand-gold); font-size: 15.5px; }
.jr-status span { color: #d6e4ff; font-size: 14px; }
.jr-status.swap { animation: statusIn .5s ease; }
@keyframes statusIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--brand-gold) 0%, #ffcd57 100%);
  color: var(--brand-navy-dark);
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.cta-band::before { width: 260px; height: 260px; left: -70px; top: -120px; animation: floaty 7s ease-in-out infinite; }
.cta-band::after { width: 190px; height: 190px; right: 12%; bottom: -100px; animation: floaty 9s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(18px) scale(1.06); } }
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 46px;
  padding-bottom: 46px;
}
.cta-inner h2 { margin: 0 0 6px; font-size: 28px; }
.cta-inner p { margin: 0; font-size: 15.5px; color: #3a3320; }
.cta-band .btn-hero-gold { background: var(--brand-navy); color: #fff; box-shadow: 0 12px 26px rgba(7, 42, 102, .3); }
.cta-band .btn-hero-gold:hover { background: var(--brand-navy-dark); }

footer { margin-top: 0; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand-navy);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 42, 102, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-gold); color: var(--brand-navy-dark); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hs-img { width: 100%; -webkit-mask-image: none; mask-image: none; object-position: 72% 58%; }
  .hero-slider { min-height: 600px; }
  .hero-slider h1 { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-panel.active { grid-template-columns: 1fr; }
  .mode-art { min-height: 250px; }
}
@media (max-width: 640px) {
  .hero-slider { min-height: 640px; align-items: flex-start; }
  .hs-slide { align-items: flex-start; }
  .hs-img { object-position: 80% 50%; }
  .hs-shade { background: linear-gradient(180deg, rgba(7, 42, 102, .82) 0%, rgba(7, 42, 102, .72) 50%, rgba(7, 42, 102, .88) 100%); }
  .hs-copy { padding-top: 46px; padding-bottom: 140px; }
  .hero-slider h1 { font-size: 31px; }
  .hero-slider p.lead { font-size: 15px; }
  .hs-arrow { display: none; }
  .hs-actions .btn-hero { padding: 12px 20px; font-size: 14px; }
  .hs-controls-wrap { bottom: 92px; }
  .stat-num { font-size: 32px; }
  .mode-info { padding: 26px 22px; }
  .mode-tab { padding: 10px 16px; font-size: 13.5px; }
  .journey { padding: 24px 14px 20px; }
  .jr-name { font-size: 11px; }
  .jr-vehicle { font-size: 24px; }
  .jr-line { top: 42px; }
  .cta-inner { text-align: center; justify-content: center; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hs-img, .hs-slide.active .hs-img { transform: none; transition: none; }
  .hs-copy > * { opacity: 1; transform: none; animation: none !important; }
  .ribbon-track, .jr-vehicle, .cta-band::before, .cta-band::after { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hs-dot.active i { animation: none; width: 100%; }
}
