/* Safana Cargo — public website (PHP-native) */

html, body { overflow-x: hidden; max-width: 100%; }

.icon-svg { display: inline-block; flex-shrink: 0; vertical-align: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-navy-dark); color: rgba(255,255,255,.82);
  font-size: 12.5px; font-weight: 600;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.82); transition: color .15s ease; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-social { display: inline-flex; align-items: center; gap: 12px; }
.topbar-social a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; }
.topbar-social a:hover { background: var(--color-orange); }
@media (max-width: 760px) { .topbar-item.hide-mobile { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(2, 30, 46, .10); }
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 16px; transition: padding .25s ease; }
.site-header.is-scrolled .site-nav { padding: 10px 20px; }
/* position+z-index here (not just on .site-header) because .site-links —
   the mobile drawer, z-index:199, position:fixed — is a DOM child of
   .site-header, not a sibling. That nests it inside the header's own
   stacking context, where it was outranking these still-static/auto-z
   siblings and painting over the logo + hamburger button once opened. */
.site-brand { position: relative; z-index: 201; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--color-heading); flex-shrink: 0; }
.site-brand img { height: 36px; width: 36px; object-fit: contain; transition: height .25s ease; }
.site-header.is-scrolled .site-brand img { height: 30px; }
.site-links { display: flex; align-items: center; gap: 2px; }
.site-links a {
  position: relative; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  color: var(--color-text); transition: background-color .15s ease, color .15s ease;
}
.site-links a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--color-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-links a:hover { color: var(--color-orange); }
.site-links a:hover::after, .site-links a.active::after { transform: scaleX(1); }
.site-links a.active { color: var(--color-orange); }
.site-links a.btn, .site-links a.btn:hover { color: #fff; }

/* ---------- Header nav dropdown (Founder-managed child nav items) ---------- */
.site-nav-dropdown { position: relative; }
.site-nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.site-nav-dropdown-toggle svg { transition: transform .15s ease; }
.site-nav-dropdown.open .site-nav-dropdown-toggle svg { transform: rotate(180deg); }
.site-nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e9ec); border-radius: 14px; box-shadow: 0 12px 32px rgba(2, 30, 46, .14);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.site-nav-dropdown.open .site-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav-dropdown-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.site-nav-dropdown-menu a:hover, .site-nav-dropdown-menu a.active { background: var(--color-bg); color: var(--color-orange); }
.site-nav-dropdown-menu a::after { display: none; }
@media (max-width: 900px) {
  .site-nav-dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 4px 0 4px 16px; }
  .site-nav-dropdown.open .site-nav-dropdown-menu { display: block; }
}
.nav-tools { position: relative; z-index: 201; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-tools-desktop { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 10px; }
.lang-switch a { color: var(--color-muted); padding: 0; transition: color .15s ease; }
.lang-switch a:hover { color: var(--color-text); }
.lang-switch a.active { color: var(--color-orange); }
.lang-switch .lang-sep { color: var(--color-border); }
.lang-switch-mobile { display: none; }
.nav-tools select { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; padding: 8px 12px; font-size: 13px; color: var(--color-text); font-family: inherit; }
.icon-btn {
  border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--color-text);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.icon-btn:hover { border-color: var(--color-orange); color: var(--color-orange); transform: translateY(-1px); }
.nav-cta { white-space: nowrap; }
.mobile-menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 84px;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  isolation: isolate;
  min-height: 620px; display: flex; align-items: center;
}
.hero > .container { width: 100%; }
@media (max-width: 1024px) { .hero { min-height: 520px; } }
@media (max-width: 640px) { .hero { min-height: 460px; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 88% 12%, rgba(228,65,34,.35), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(255,255,255,.08), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero-copy .eyebrow { color: #ff8f6b; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); max-width: 620px; margin: 14px 0 18px; line-height: 1.08; }
.hero p.lead { font-size: 17px; max-width: 540px; color: rgba(255,255,255,.78); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-outline:hover { border-color: var(--color-orange); color: #ff8f6b; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Homepage hero (scoped — About/Services/Contact/Tracking heroes
   don't use .home-hero, .hero-art, .float-card or .hero-globe, so none of
   this affects them) ---------- */
.home-hero { min-height: 720px; padding: 112px 0 96px; }
.home-hero h1 { font-size: clamp(36px, 6.5vw, 72px); max-width: 640px; }

.hero-art { position: relative; height: 460px; }
.hero-art .route-line { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hhv-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%; top: 4%; right: 2%; z-index: 0;
  background: radial-gradient(circle, rgba(228,65,34,.32), transparent 70%); filter: blur(6px);
}
.hhv-back { position: absolute; inset: 8% 0 18%; z-index: 1; opacity: .3; }
.hhv-mid { position: absolute; right: 4%; top: 14%; width: 58%; z-index: 2; filter: drop-shadow(0 18px 26px rgba(0,0,0,.35)); }
.hhv-front { position: absolute; left: -6%; bottom: -26px; width: 82%; z-index: 3; filter: drop-shadow(0 22px 30px rgba(0,0,0,.4)); }

.home-trust-card {
  position: absolute; left: -6px; bottom: 34px; z-index: 4; animation: floaty 6s ease-in-out infinite;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.24); border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.3); max-width: 240px;
}
.home-trust-card .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(228,65,34,.28); color: #ff8f6b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-trust-card strong { display: block; color: #fff; font-size: 14.5px; line-height: 1.3; }
.home-trust-card span { display: block; color: rgba(255,255,255,.68); font-size: 12px; margin-top: 3px; }

.status-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  animation: floaty 7s ease-in-out infinite;
}
.status-chip .dot { width: 7px; height: 7px; border-radius: 999px; background: #ff8f6b; animation: statusDotPulse 1.8s ease-in-out infinite; }
.status-chip .dot.done { background: var(--color-success); animation: none; }
.status-chip-1 { top: 6%; right: 4%; animation-delay: 1s; }
.status-chip-2 { bottom: 42%; right: -2%; animation-delay: 2.2s; }
@media (max-width: 980px) { .status-chip { display: none; } }

.home-hero-wave { position: relative; height: 64px; background: var(--color-navy-dark); overflow: hidden; }
.home-hero-wave svg { position: absolute; bottom: -1px; left: 0; width: 100%; height: 100%; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 320px; margin-top: 24px; }
}
@media (max-width: 560px) {
  .home-hero { padding: 64px 0 48px; min-height: 0; }
  .home-hero h1 { max-width: 100%; }
  .home-trust-card { position: static; margin-top: 18px; max-width: 100%; }
  .home-hero-wave { height: 36px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 30px 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: 14px; font-weight: 600; }
.trust-item .glyph { font-size: 18px; }

/* ---------- Closing CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; isolation: isolate;
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-dark) 78%);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(228,65,34,.28), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(255,255,255,.08), transparent 40%);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { background: #fff; }

/* ---------- Soft contextual CTA (About) ---------- */
.cta-soft { text-align: center; }
.cta-soft h2 { font-size: clamp(24px, 3vw, 32px); max-width: 620px; margin: 0 auto 12px; }
.cta-soft p { color: var(--color-muted); max-width: 520px; margin: 0 auto 24px; }
.cta-soft .hero-actions { justify-content: center; }

/* ---------- Founder CMS page banners (Stage 5) ---------- */
.cms-banner-image { max-width: 560px; margin: 0 auto 20px; border-radius: var(--radius-md, 14px); overflow: hidden; }
.cms-banner-image img { width: 100%; height: auto; display: block; }

/* ---------- Small inline supporting CTA (Tracking) ---------- */
.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border);
}
.cta-inline strong { display: block; color: var(--color-heading); font-size: 15px; }
.cta-inline span { display: block; font-size: 13.5px; margin-top: 2px; }
@media (max-width: 560px) { .cta-inline { flex-direction: column; align-items: stretch; text-align: center; } }

/* ---------- Premium two-column CTA (homepage final section) ---------- */
.cta-premium { padding: 70px 0; min-height: 520px; display: flex; align-items: center; }
.cta-premium-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; text-align: left; }
.cta-premium-copy .eyebrow { color: #ff8f6b; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
.cta-premium-copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0 14px; }
.cta-premium-copy p { margin: 0 0 26px; text-align: left; }
.cta-premium-copy .hero-actions { justify-content: flex-start; }
.cta-premium .btn-primary .icon-svg, .cta-premium .btn-outline .icon-svg { transition: transform .2s ease; }
.cta-premium .btn-primary:hover .icon-svg, .cta-premium .btn-outline:hover .icon-svg { transform: translateX(3px); }
.cta-premium .btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cta-premium .btn-outline:hover { border-color: var(--color-orange); color: #fff; background: rgba(255,255,255,.08); }
.cta-premium-visual { position: relative; height: 240px; }
.cta-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.cta-trust-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s ease, background-color .25s ease;
}
.cta-trust-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.cta-trust-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(228,65,34,.18); color: #ff8f6b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-trust-card strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.cta-trust-card span { display: block; color: rgba(255,255,255,.65); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 900px) {
  .cta-premium { padding: 52px 0; }
  .cta-premium-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .cta-premium-copy p { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; }
  .cta-premium-copy .hero-actions { justify-content: center; }
  .cta-premium-visual { height: 150px; max-width: 300px; margin: 0 auto; }
  .cta-trust-row { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
  .cta-trust-card { flex-direction: column; text-align: center; padding: 14px 10px; }
}
@media (max-width: 640px) {
  .cta-premium { padding: 44px 0; min-height: 0; }
  .cta-premium-visual { display: none; }
  .cta-trust-row { margin-top: 28px; gap: 10px; }
  .cta-trust-card { padding: 13px 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { color: var(--color-orange); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 12.5px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 8px; }
.section-alt { background: var(--color-surface); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Two-column intro / about section ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-visual { position: relative; height: 340px; }
.intro-panel {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
}
.intro-panel svg { width: 78%; height: 78%; opacity: .9; }
.intro-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--color-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 16px 20px; display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.intro-badge .num { font-size: 26px; font-weight: 800; color: var(--color-orange); line-height: 1; }
.intro-badge .lbl { font-size: 12.5px; color: var(--color-muted); font-weight: 600; }
.feature-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--color-text); }
.feature-list li .check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: rgba(228,65,34,.12); color: var(--color-orange); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-visual { order: -1; height: 260px; margin-bottom: 30px; }
  .intro-badge { left: 16px; bottom: -18px; }
}

/* ---------- Team carousel (About page — renders only when real team
   data exists; see about.php) ---------- */
/* Was a hardcoded inline style="background:#fbfcfd" on the section — fixed
   value regardless of theme, so in Dark Mode the section stayed a near-white
   card while its heading/body text switched to Dark Mode's light-on-dark
   colors, leaving near-white text on a near-white background. Light Mode
   keeps the exact original shade; Dark Mode now reuses the existing page
   background variable instead of a second hardcoded color. */
.about-team-section { background: #fbfcfd; }
[data-theme="dark"] .about-team-section { background: var(--color-bg); }

.team-carousel-wrap { position: relative; }
.team-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 14px; -ms-overflow-style: none; scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar { display: none; }
.team-card {
  scroll-snap-align: start; flex: 0 0 280px; border-radius: 20px; overflow: hidden; background: var(--color-surface);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.team-card.is-highlight { flex-basis: 300px; box-shadow: var(--shadow-md); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card .tc-photo { height: 320px; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); }
.team-card .tc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.team-card:hover .tc-photo img { transform: scale(1.04); }
.team-card .tc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,20,30,0) 55%, rgba(2,20,30,.7) 100%); }
.team-card .tc-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: .02em;
}
.team-card .tc-body { padding: 16px 18px 20px; }
.team-card h3 { font-size: 17px; margin-bottom: 3px; }
.team-card .tc-position { color: var(--color-orange); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.team-card .tc-bio { margin-top: 8px; font-size: 13.5px; color: var(--color-muted); line-height: 1.55; }
.team-card .tc-social { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.team-card .tc-social-icon {
  width: 30px; height: 30px; border-radius: 999px; background: var(--color-bg); color: var(--color-muted);
  display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.team-card:hover .tc-social-icon { background: rgba(228,65,34,.1); color: var(--color-orange); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-heading); display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.carousel-btn:hover { border-color: var(--color-orange); color: var(--color-orange); transform: translateY(-2px); }
.carousel-btn:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }
.carousel-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.carousel-btn-prev .icon-svg { transform: scaleX(-1); }
@media (max-width: 560px) { .team-card, .team-card.is-highlight { flex-basis: 84%; } }

/* ---------- Testimonials — split layout (About page) ---------- */
.testimonials-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: start; }
.testimonials-statement h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.testimonials-statement p { color: var(--color-muted); margin-top: 10px; max-width: 340px; }
.testimonials-stack { display: flex; flex-direction: column; gap: 16px; }
.testimonial-row {
  padding: 22px 24px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-row.is-highlight { border-color: rgba(228,65,34,.35); box-shadow: var(--shadow-md); position: relative; }
.testimonial-row.is-highlight::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--color-orange); }
.testimonial-row .tr-quote-mark { color: var(--color-orange); font-size: 30px; line-height: .6; font-weight: 800; display: block; margin-bottom: 6px; }
.testimonial-row p.quote { font-size: 15px; color: var(--color-text); margin-bottom: 14px; }
.tr-author-row { display: flex; align-items: center; gap: 12px; }
.tr-avatar {
  width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(150deg, var(--color-navy), var(--color-navy-dark));
  color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-row .author { font-weight: 700; color: var(--color-heading); font-size: 14px; }
.testimonial-row .company { color: var(--color-muted); font-size: 12.5px; }
@media (max-width: 860px) { .testimonials-split { grid-template-columns: 1fr; gap: 26px; } .testimonials-statement p { max-width: 100%; } }

/* ---------- Homepage embedded tracking widget ---------- */
.home-tracking { padding: 60px 0; }
.home-tracking-box {
  max-width: 760px; margin: 0 auto; padding: 34px; text-align: center; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.home-tracking-box h2 { font-size: 24px; margin-bottom: 6px; }
.home-tracking-box form { display: flex; gap: 10px; margin-top: 20px; }
.home-tracking-box input {
  flex: 1; font-size: 15px; padding: 13px 18px; border-radius: 12px; border: 1.5px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text); font-family: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, transform .15s ease;
}
.home-tracking-box input:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 4px rgba(228,65,34,.16); transform: translateY(-1px); }
.home-tracking-box .btn { border-radius: 999px; box-shadow: 0 6px 18px rgba(228,65,34,.28); transition: transform .22s ease, box-shadow .22s ease; }
.home-tracking-box .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(228,65,34,.35); }
.home-tracking-indicators { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.home-tracking-indicators span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; }
.home-tracking-indicators .icon-svg { color: var(--color-orange); }
@media (max-width: 560px) { .home-tracking-box form { flex-direction: column; } .home-tracking-box .btn { width: 100%; } }

/* ---------- "How Safana Moves Your Cargo" process ---------- */
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; margin-top: 44px; }
.process-track::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: var(--color-border); z-index: 0; }
.process-track .p-line-fill {
  position: absolute; top: 26px; left: 8%; height: 2px; width: 0; background: var(--color-orange); z-index: 1;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.process-track.in-view .p-line-fill { width: 84%; }
.process-step { position: relative; z-index: 2; text-align: center; }
.process-step .p-node {
  width: 52px; height: 52px; border-radius: 999px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-muted); font-weight: 800; font-size: 14px;
  transition: border-color .3s ease, color .3s ease, background-color .3s ease, transform .3s ease;
}
.process-track.in-view .process-step .p-node { border-color: var(--color-orange); color: var(--color-orange); background: var(--color-surface); }
.process-step:hover .p-node { transform: translateY(-3px) scale(1.05); background: var(--color-orange); color: #fff; }
.process-step h3 { font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--color-muted); line-height: 1.55; }
@media (max-width: 860px) {
  .process-track { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .process-track::before, .process-track .p-line-fill { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .process-track.in-view .p-line-fill { width: 2px; height: 84%; }
  .process-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .process-step .p-node { margin: 0; flex-shrink: 0; }
}

/* ---------- Why Safana — split layout ---------- */
.why-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.why-statement { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; color: var(--color-heading); line-height: 1.3; letter-spacing: -.01em; }
.why-benefits { display: flex; flex-direction: column; gap: 4px; }
.why-benefit {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 14px; border-radius: 14px;
  transition: background-color .25s ease, transform .25s ease;
}
.why-benefit:hover { background: var(--color-bg); transform: translateX(4px); }
.why-benefit .icon {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(228,65,34,.1); color: var(--color-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease;
}
.why-benefit:hover .icon { transform: scale(1.08); }
.why-benefit h3 { font-size: 16px; margin-bottom: 3px; }
.why-benefit p { font-size: 13.5px; color: var(--color-muted); margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .why-split { grid-template-columns: 1fr; gap: 28px; } .why-statement { text-align: center; } }

/* ---------- Global network band ---------- */
.network-band { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); }
.network-band .section-head h2 { color: #fff; }
.network-offices { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.network-office {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 14px;
  transition: background-color .25s ease, transform .25s ease;
}
.network-office .icon-svg { color: #ff8f6b; }
.network-office:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }

/* ---------- Stat band ---------- */
.stat-band { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); padding: 54px 0; position: relative; overflow: hidden; }
.stat-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(228,65,34,.22), transparent 45%); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat-item { text-align: center; color: #fff; }
.stat-item .stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.stat-item .stat-num .plus { color: var(--color-orange); }
.stat-item .stat-lbl { color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* ---------- Services — asymmetric editorial showcase ---------- */
/* .sf-media is built to hold a real <img> (object-fit:cover) the moment
   service photography is added — drop it in as the first child of
   .sf-media and remove .media-placeholder-2, nothing else changes. */
.services-editorial { display: grid; grid-template-columns: 1.1fr 1fr; grid-auto-rows: 1fr; gap: 20px; }
.service-feature {
  position: relative; overflow: hidden; border-radius: 22px; display: flex; align-items: flex-end;
  min-height: 168px; box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
}
.service-feature.is-primary { grid-row: 1 / span 3; min-height: 560px; }
.service-feature:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(2,20,30,.28); }
.service-feature .sf-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.service-feature .sf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-feature .media-placeholder-2 {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); transition: transform .5s ease;
}
.service-feature .media-placeholder-2 .icon-svg { color: #ffffff; opacity: .1; }
.service-feature.is-primary .media-placeholder-2 .icon-svg { width: 120px; height: 120px; }
.service-feature:not(.is-primary) .media-placeholder-2 .icon-svg { width: 60px; height: 60px; }
.service-feature:hover .sf-media img,
.service-feature:hover .media-placeholder-2 { transform: scale(1.04); }
.service-feature::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,20,30,0) 35%, rgba(2,20,30,.72) 100%);
  transition: opacity .35s ease;
}
.service-feature:hover::after { opacity: .92; }
.sf-content { position: relative; z-index: 2; padding: 26px 28px; color: #fff; width: 100%; }
.sf-number { font-size: 12.5px; font-weight: 800; color: #ff8f6b; letter-spacing: .1em; }
.sf-accent { width: 26px; height: 2px; background: var(--color-orange); margin: 9px 0 11px; transition: width .3s ease; }
.service-feature:hover .sf-accent { width: 54px; }
.sf-content h3 { color: #fff; margin: 0 0 8px; letter-spacing: .01em; }
.is-primary .sf-content h3 { font-size: 27px; }
.service-feature:not(.is-primary) .sf-content h3 { font-size: 17px; }
.sf-desc { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.6; max-width: 360px; margin: 0 0 16px; }
.service-feature:not(.is-primary) .sf-desc { display: none; }
.sf-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: #fff; }
.sf-more .arrow { transition: transform .25s ease; }
.service-feature:hover .sf-more .arrow { transform: translateX(4px); }
.services-eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.services-eyebrow-row .eyebrow-line { width: 30px; height: 2px; background: var(--color-orange); display: inline-block; }

.services-talk-row {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--color-border);
}
.services-talk-row span { color: var(--color-muted); font-size: 15px; font-weight: 600; }

@media (max-width: 900px) {
  .services-editorial { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .service-feature.is-primary { grid-row: auto; min-height: 320px; }
  .service-feature:not(.is-primary) { min-height: 240px; }
  .service-feature:not(.is-primary) .sf-desc { display: block; }
  .service-feature:not(.is-primary) .sf-content h3 { font-size: 20px; }
}

/* ---------- Service cards ---------- */
/* .media is built to hold a real <img> (object-fit:cover) the moment
   service photography is added to the project — drop `<img src="..."
   alt="...">` in as its first child and remove .media-placeholder, no other
   markup/CSS changes needed. Until then it shows an on-brand gradient +
   large faint watermark icon instead of a cartoon illustration. */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; }
.service-card .media { height: 240px; position: relative; overflow: hidden; }
.service-card .media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.service-card .media-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  transition: transform .35s ease;
}
.service-card .media-placeholder .icon-svg { width: 96px; height: 96px; color: #ffffff; opacity: .1; }
.service-card .media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,20,30,0) 45%, rgba(2,20,30,.5) 100%);
  transition: opacity .3s ease; opacity: .85;
}
.service-card:hover .media img,
.service-card:hover .media-placeholder { transform: scale(1.05); }
.service-card:hover .media::after { opacity: 1; }
.service-card .badge-icon {
  position: absolute; right: 18px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-orange); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(228,65,34,.4); transition: transform .3s ease;
}
.service-card:hover .badge-icon { transform: scale(1.08) translateY(-3px); }
.service-card .body { padding: 36px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.service-card p { flex: 1; font-size: 15.5px; line-height: 1.6; }
.service-card .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--color-orange); }
.service-card .more .arrow { transition: transform .25s ease; }
.service-card:hover .more .arrow { transform: translateX(4px); }

/* ---------- Cards / hover system ---------- */
.card-hover { transition: box-shadow .3s ease, transform .3s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }

.value-card { text-align: left; }
.value-card .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(2,61,91,.08); color: var(--color-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
[data-theme="dark"] .value-card .icon { background: rgba(255,255,255,.08); color: var(--color-heading); }

.office-card { padding: 22px; }
.office-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-orange); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: transform .25s ease; }
.office-card:hover .icon { transform: scale(1.1); }
.office-card h3 { font-size: 15px; margin-bottom: 4px; }
.office-card .phone { font-weight: 700; color: var(--color-heading); margin: 10px 0; display: block; }
.office-actions { display: flex; gap: 8px; margin-top: 12px; }

.testimonial-card { padding: 24px; }
.testimonial-card .quote { font-size: 15.5px; color: var(--color-text); margin-bottom: 16px; }
.testimonial-card .quote::before { content: '\201C'; color: var(--color-orange); font-size: 30px; line-height: 0; display: inline-block; vertical-align: -6px; margin-right: 2px; }
.testimonial-card .author { font-weight: 700; color: var(--color-heading); font-size: 14px; }
.testimonial-card .company { color: var(--color-muted); font-size: 13px; }

.faq-item { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--color-heading); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-orange); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; color: var(--color-muted); }

/* ---------- Inner page hero (About/Services/Tracking/Contact) ---------- */
.inner-hero { padding: 64px 0 46px; min-height: 540px; }
@media (max-width: 1024px) { .inner-hero { min-height: 480px; } }
@media (max-width: 640px) { .inner-hero { min-height: 420px; } }

.hero-graphic { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-graphic svg { position: absolute; opacity: .5; }
.hero-graphic .dot { position: absolute; width: 6px; height: 6px; border-radius: 999px; background: #ff8f6b; animation: trackingPulseDot 2.4s ease-in-out infinite; }
.hero-graphic .dot:nth-child(2) { animation-delay: .8s; }
.hero-graphic .dot:nth-child(3) { animation-delay: 1.6s; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #ff8f6b; font-weight: 600; }

/* ---------- Tracking hero ---------- */
.tracking-hero { padding: 76px 0 130px; position: relative; }
.tracking-hero-graphic { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.tracking-hero-graphic svg { position: absolute; opacity: .5; }
.tracking-hero-graphic .dot { position: absolute; width: 6px; height: 6px; border-radius: 999px; background: #ff8f6b; animation: trackingPulseDot 2.4s ease-in-out infinite; }
.tracking-hero-graphic .dot:nth-child(2) { animation-delay: .8s; }
.tracking-hero-graphic .dot:nth-child(3) { animation-delay: 1.6s; }
@keyframes trackingPulseDot { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.8); opacity: .3; } }
.tracking-hero-content { text-align: center; max-width: 640px; margin: 0 auto; }
.tracking-hero-content .eyebrow { color: #ff8f6b; }
.tracking-hero-content h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.tracking-hero-content p.lead { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto; }

/* ---------- Tracking search card ---------- */
.tracking-box { max-width: 640px; margin: -96px auto 0; padding: 36px; text-align: center; position: relative; z-index: 5; box-shadow: var(--shadow-md); border-radius: var(--radius-lg); }
.tracking-box h2 { font-size: 22px; margin-bottom: 6px; }
.tracking-box form { display: flex; gap: 10px; margin-top: 20px; align-items: stretch; }
.tracking-box .field-label { display: block; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); margin: 22px 0 8px; }
.tracking-box .field-hint { text-align: left; font-size: 13px; color: var(--color-muted); margin-top: 10px; }
.tracking-box input {
  flex: 1; font-size: 15px; padding: 13px 18px;
  border-radius: 14px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
  font-family: inherit; transition: border-color .22s ease, box-shadow .22s ease, transform .15s ease;
}
.tracking-box input:focus {
  outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 4px rgba(228, 65, 34, .16); transform: translateY(-1px);
}
.tracking-box form .btn {
  border-radius: 999px; box-shadow: 0 6px 18px rgba(228, 65, 34, .28);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.tracking-box form .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(228, 65, 34, .35); }
.tracking-box form .btn:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }
@media (max-width: 560px) {
  .tracking-box form { flex-direction: column; }
  .tracking-box form .btn { width: 100%; }
}
.tracking-example { margin-top: 12px; font-size: 12.5px; }
.tracking-indicators { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.tracking-indicator { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; }
.tracking-indicator .icon-svg { color: var(--color-orange); }
.tracking-result { margin-top: 26px; text-align: left; }

.tracking-skeleton { display: grid; gap: 10px; margin-top: 20px; }
.tracking-skeleton .bar { height: 14px; border-radius: 6px; background: var(--color-border); overflow: hidden; position: relative; }
.tracking-skeleton .bar::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 1.3s infinite;
}
[data-theme="dark"] .tracking-skeleton .bar::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.tracking-searching-label { margin-top: 14px; font-size: 13.5px; color: var(--color-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.tracking-spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--color-border); border-top-color: var(--color-orange); animation: spin .7s linear infinite; }

.tracking-empty { padding: 44px 10px 24px; text-align: center; color: var(--color-muted); }
.tracking-empty .empty-glyph-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; font-size: 26px; }
.tracking-empty .empty-glyph-row span { width: 52px; height: 52px; border-radius: 999px; background: var(--color-bg); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .tracking-empty .empty-glyph-row span { background: rgba(255,255,255,.06); }
.tracking-empty h3 { font-size: 19px; margin-bottom: 8px; }
.tracking-empty p { max-width: 380px; margin: 0 auto; }

.tracking-state-card { padding: 36px 24px; text-align: center; border-radius: var(--radius-md); }
.tracking-state-card .glyph { font-size: 40px; margin-bottom: 14px; }
.tracking-state-card h3 { margin-bottom: 6px; }
.tracking-state-card p { color: var(--color-muted); margin-bottom: 18px; }
.tracking-state-card.is-error { background: rgba(211,54,54,.06); }
.tracking-state-card.is-notfound { background: var(--color-bg); }
.tracking-state-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Shipment summary ---------- */
.shipment-summary { padding: 28px; }
.shipment-summary-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.shipment-summary-head .tn-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.shipment-summary-head .tn-value { font-size: 20px; font-weight: 800; color: var(--color-heading); }

.status-badge-lg { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-badge-lg .status-dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.status-badge-lg.st-progress .status-dot { animation: statusDotPulse 1.6s ease-in-out infinite; }
/* Per-status color system (section 14 of the brief) — one distinct, semantic
   color per real backend status value, not a generic 3-color badge. Purely
   presentational: the underlying status string still comes only from the
   existing api/tracking.php response. */
.status-badge-lg.st-success { background: rgba(26,156,92,.14); color: var(--color-success); }
.status-badge-lg.st-warning { background: rgba(201,138,18,.14); color: var(--color-warning); }
.status-badge-lg.st-danger { background: rgba(211,54,54,.14); color: var(--color-danger); }
.status-badge-lg.st-navy { background: rgba(2,61,91,.12); color: var(--color-navy); }
[data-theme="dark"] .status-badge-lg.st-navy { background: rgba(255,255,255,.1); color: var(--color-heading); }
.status-badge-lg.st-received { background: rgba(14,165,233,.14); color: #0369a1; }
.status-badge-lg.st-packed { background: rgba(99,102,241,.14); color: #4f46e5; }
.status-badge-lg.st-transit { background: rgba(228,65,34,.14); color: var(--color-orange); }
.status-badge-lg.st-arrived { background: rgba(37,99,235,.14); color: #1d4ed8; }
.status-badge-lg.st-outfordelivery { background: rgba(228,65,34,.16); color: var(--color-orange-dark); }
.status-badge-lg.st-delivered { background: rgba(26,156,92,.14); color: var(--color-success); }
.status-badge-lg.st-cancelled { background: rgba(211,54,54,.14); color: var(--color-danger); }
.status-badge-lg.st-returned { background: rgba(190,18,60,.14); color: #be123c; }
[data-theme="dark"] .status-badge-lg.st-received { background: rgba(14,165,233,.18); color: #38bdf8; }
[data-theme="dark"] .status-badge-lg.st-packed { background: rgba(99,102,241,.2); color: #a5b4fc; }
[data-theme="dark"] .status-badge-lg.st-arrived { background: rgba(37,99,235,.2); color: #93c5fd; }
[data-theme="dark"] .status-badge-lg.st-returned { background: rgba(190,18,60,.2); color: #fb7185; }
@keyframes statusDotPulse { 0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 6px transparent; opacity: .5; } }

.route-visual { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.route-visual .place { flex-shrink: 0; text-align: center; min-width: 84px; }
.route-visual .place .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); margin-bottom: 4px; }
.route-visual .place .name { font-weight: 800; color: var(--color-heading); font-size: 14.5px; }
.route-visual .track { flex: 1; height: 4px; border-radius: 999px; background: var(--color-border); position: relative; overflow: hidden; }
.route-visual .track-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--color-orange), #ff8f6b); border-radius: 999px; transition: width .8s ease; }
.route-visual .current-pin {
  position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 999px;
  background: var(--color-orange); border: 3px solid var(--color-surface); box-shadow: 0 0 0 3px rgba(228,65,34,.25); transition: left .8s ease;
}
.route-visual .current-pin::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--color-orange); animation: statusDotPulse 1.8s ease-in-out infinite; }
.route-current-label { text-align: center; font-size: 12.5px; color: var(--color-orange); font-weight: 700; margin-top: -14px; margin-bottom: 18px; }
@media (max-width: 560px) {
  .route-visual { flex-direction: column; align-items: stretch; }
  .route-visual .track { width: 4px; height: 60px; margin: 0 auto; }
  .route-visual .current-pin { left: 50% !important; top: var(--pin-top, 50%) !important; }
}

.shipment-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.shipment-detail-grid .item .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); margin-bottom: 4px; }
.shipment-detail-grid .item .val { font-weight: 700; color: var(--color-heading); font-size: 14.5px; }
@media (max-width: 560px) { .shipment-detail-grid { grid-template-columns: 1fr; } }

/* ---------- Journey stepper ---------- */
.journey-stepper { display: flex; align-items: flex-start; justify-content: space-between; margin: 30px 0 10px; position: relative; }
.journey-stepper .jstep { flex: 1; text-align: center; position: relative; padding: 0 4px; }
.journey-stepper .jstep .node {
  width: 30px; height: 30px; border-radius: 999px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; border: 2px solid var(--color-border); background: var(--color-surface); color: var(--color-muted);
  position: relative; z-index: 2; transition: all .3s ease;
}
.journey-stepper .jstep .bar { position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--color-border); z-index: 1; }
.journey-stepper .jstep:first-child .bar { display: none; }
.journey-stepper .jstep .lbl { font-size: 11.5px; font-weight: 700; color: var(--color-muted); line-height: 1.3; }
.journey-stepper .jstep.is-done .node { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }
.journey-stepper .jstep.is-done .bar { background: var(--color-orange); }
.journey-stepper .jstep.is-done .lbl { color: var(--color-heading); }
.journey-stepper .jstep.is-current .node { background: var(--color-surface); border-color: var(--color-orange); color: var(--color-orange); box-shadow: 0 0 0 5px rgba(228,65,34,.15); animation: statusDotPulse 1.8s ease-in-out infinite; }
.journey-stepper .jstep.is-current .lbl { color: var(--color-orange); }
.journey-stepper .jstep.is-current .bar { background: linear-gradient(90deg, var(--color-orange), var(--color-border)); }
@media (max-width: 700px) {
  .journey-stepper { flex-direction: column; align-items: stretch; gap: 18px; }
  .journey-stepper .jstep { display: flex; align-items: center; text-align: left; gap: 12px; padding: 0; }
  .journey-stepper .jstep .node { margin: 0; flex-shrink: 0; }
  .journey-stepper .jstep .bar { top: -14px; left: 14px; width: 3px; height: 14px; }
  .journey-stepper .jstep:first-child .bar { display: none; }
}

/* ---------- Real tracking-history timeline ---------- */
.tracking-step { display: flex; gap: 14px; padding: 14px 0; border-left: 2px solid var(--color-border); margin-left: 14px; padding-left: 22px; position: relative; }
.tracking-step::before { content: ''; position: absolute; left: -8px; top: 18px; width: 14px; height: 14px; border-radius: 999px; background: var(--color-border); border: 3px solid var(--color-surface); }
.tracking-step.done::before { background: var(--color-orange); box-shadow: 0 0 0 3px rgba(228,65,34,.18); }
.tracking-step .step-icon { font-size: 16px; }
.tracking-step .step-title { font-weight: 700; color: var(--color-heading); }
.tracking-step .step-time { font-size: 12.5px; color: var(--color-muted); margin-top: 2px; }
.tracking-step .step-notes { font-size: 13.5px; color: var(--color-muted); margin-top: 4px; }
.tracking-step:last-child { border-left-color: transparent; }

.calc-box { padding: 28px; }
.calc-result { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--color-bg); font-weight: 700; font-size: 20px; color: var(--color-navy); }
[data-theme="dark"] .calc-result { color: var(--color-heading); }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(228,65,34,.1); color: var(--color-orange); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: 13px; color: var(--color-muted); font-weight: 600; margin-bottom: 3px; }
.contact-info-item a, .contact-info-item span.value { color: var(--color-heading); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,.8); padding: 64px 0 0; margin-top: 40px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 6% 0%, rgba(228,65,34,.12), transparent 40%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 30px; position: relative; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-brand img { height: 32px; width: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.site-footer a { display: block; padding: 5px 0; color: rgba(255,255,255,.68); font-size: 14px; transition: color .15s ease, padding-left .15s ease; }
.site-footer a:hover { color: #fff; padding-left: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 0; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.55); position: relative;
}
.footer-bottom .credit a { display: inline; padding: 0; color: rgba(255,255,255,.72); font-weight: 600; }
.footer-bottom .credit a:hover { color: var(--color-orange); }
.footer-staff-link {
  display: inline-flex !important; align-items: center; gap: 5px; padding: 4px 0 !important;
  color: rgba(255,255,255,.42) !important; font-size: 12.5px !important; font-weight: 600;
  transition: color .15s ease;
}
.footer-staff-link svg { width: 12px; height: 12px; }
.footer-staff-link:hover, .footer-staff-link:focus-visible { color: rgba(255,255,255,.85) !important; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.08); padding: 0; }
.footer-social a:hover { background: var(--color-orange); }

.scroll-top-btn {
  position: fixed; bottom: 24px; right: 90px; width: 44px; height: 44px; border-radius: 999px;
  background: var(--color-navy); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); font-size: 16px; z-index: 300; border: none; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--color-orange); }

/* ---------- Floating support widget (WhatsApp / Email / Assistant) ---------- */
.support-widget { position: fixed; bottom: 24px; right: 24px; z-index: 400; }
.support-fab {
  width: 56px; height: 56px; border-radius: 999px; border: none; background: var(--color-orange); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-fab:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(228,65,34,.4); }
.support-fab:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
.support-fab .icon-close { display: none; }
.support-fab[aria-expanded="true"] .icon-open { display: none; }
.support-fab[aria-expanded="true"] .icon-close { display: flex; }

.support-menu {
  position: absolute; bottom: 68px; right: 0; width: 260px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 18px; box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.support-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.support-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px;
  border: none; background: none; text-align: left; font-family: inherit; cursor: pointer;
  transition: background-color .15s ease;
}
.support-menu-item:hover, .support-menu-item:focus-visible { background: var(--color-bg); }
.support-menu-item:focus-visible { outline: 2px solid var(--color-orange); outline-offset: -2px; }
.support-menu-item .smi-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(228,65,34,.1); color: var(--color-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-menu-item strong { display: block; font-size: 14px; color: var(--color-heading); }
.support-menu-item small { display: block; font-size: 12px; color: var(--color-muted); margin-top: 1px; }

/* ---------- Safana Assistant chat panel ---------- */
.assistant-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 401; width: 360px; max-width: calc(100vw - 32px);
  height: 500px; max-height: calc(100vh - 48px); background: var(--color-surface); border-radius: 20px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.assistant-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.assistant-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(150deg, var(--color-navy), var(--color-navy-dark));
  color: #fff; flex-shrink: 0;
}
.assistant-avatar { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assistant-header-text { flex: 1; min-width: 0; }
.assistant-header-text strong { display: block; font-size: 15px; }
.assistant-header-text span { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
.assistant-close {
  width: 32px; height: 32px; border-radius: 999px; border: none; background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background-color .15s ease;
}
.assistant-close:hover { background: rgba(255,255,255,.24); }
.assistant-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.assistant-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--color-bg); }
.assistant-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.assistant-msg.is-bot { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); border-bottom-left-radius: 4px; }
.assistant-msg.is-user { align-self: flex-end; background: var(--color-orange); color: #fff; border-bottom-right-radius: 4px; }
.assistant-msg ul { margin: 6px 0 0; padding-left: 18px; }
.assistant-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; background: var(--color-bg); }
.qa-btn {
  border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-heading); font-family: inherit;
  font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.qa-btn:hover, .qa-btn:focus-visible { border-color: var(--color-orange); color: var(--color-orange); }
.assistant-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-border); background: var(--color-surface); flex-shrink: 0; }
.assistant-input-row input {
  flex: 1; min-width: 0; border: 1.5px solid var(--color-border); border-radius: 999px; padding: 10px 16px; font-size: 13.5px;
  font-family: inherit; background: var(--color-bg); color: var(--color-text); transition: border-color .2s ease, box-shadow .2s ease;
}
.assistant-input-row input:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 3px rgba(228,65,34,.14); }
.assistant-send-btn {
  width: 40px; height: 40px; border-radius: 999px; border: none; background: var(--color-orange); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.assistant-send-btn:hover { background: var(--color-orange-dark); transform: scale(1.06); }
.assistant-send-btn:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }

@media (max-width: 560px) {
  .support-widget { bottom: 16px; right: 16px; }
  .support-fab { width: 52px; height: 52px; }
  .scroll-top-btn { bottom: 16px; right: 78px; width: 42px; height: 42px; }
  .support-menu { width: calc(100vw - 32px); max-width: 300px; bottom: 62px; }
  .assistant-panel { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .support-menu, .assistant-panel { transition: none !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view, .hero-art .float-card, .home-trust-card, .status-chip, .status-chip .dot, .support-fab, .scroll-top-btn { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .site-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-surface);
    flex-direction: column; align-items: stretch; padding: 96px 24px 24px; transform: translateX(100%);
    transition: transform .3s ease; z-index: 199; gap: 4px; box-sizing: border-box;
  }
  .site-links.open { transform: translateX(0); }
  .site-links a { padding: 16px; font-size: 17px; border-radius: 12px; }
  .site-links a::after { display: none; }
  .site-links a.active, .site-links a:hover { background: var(--color-bg); }
  .site-links .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
  .lang-switch-mobile { display: flex; justify-content: center; margin-top: 8px; }
  .mobile-menu-btn {
    display: flex; border: none; background: none; color: var(--color-heading); align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; transition: background-color .2s ease; flex-shrink: 0;
  }
  .mobile-menu-btn:hover, .mobile-menu-btn:focus-visible { background: var(--color-bg); }
  .mobile-menu-btn:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }
  .mobile-menu-btn .icon-close { display: none; }
  .mobile-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
  .mobile-menu-btn[aria-expanded="true"] .icon-close { display: flex; }
  .nav-tools-desktop { display: none; }
  body.mobile-nav-open { overflow: hidden; }
}
