/* ==========================================================================
   SENDLY EXPRESS · Brand Stylesheet (Public Site)
   White + Blue premium logistics theme · Glassmorphism · Smooth motion
   ========================================================================== */

:root {
  --sx-primary: #0b3d91;        /* Deep navy */
  --sx-primary-600: #0d49ae;
  --sx-accent:  #1e6dff;        /* Electric blue */
  --sx-accent-2:#1ecbe1;        /* Cyan accent */
  --sx-orange:  #ff7a18;        /* CTA orange (truck stripe) */
  --sx-ink:     #0f172a;
  --sx-ink-2:   #334155;
  --sx-muted:   #64748b;
  --sx-line:    #e2e8f0;
  --sx-bg:      #f6f8fc;
  --sx-glow:    0 22px 60px rgba(11, 61, 145, 0.12);
  --sx-radius:  16px;
  --sx-radius-sm: 10px;
  --sx-font:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sx-font);
  color: var(--sx-ink);
  background: var(--sx-bg);
  line-height: 1.55;
  font-size: 15.5px;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: var(--sx-font); font-weight: 700; color: var(--sx-ink); letter-spacing: -0.02em; }

/* ---------- Top Bar ---------- */
.sx-topbar {
  background: linear-gradient(90deg, #061d4a, var(--sx-primary));
  color: #cfe1ff;
  font-size: .82rem;
  padding: 9px 0;
}
.sx-topbar a { color: #cfe1ff; text-decoration: none; margin-left: 18px; transition: color .2s; }
.sx-topbar a:hover { color: #fff; }
.sx-topbar i { margin-right: 5px; opacity: .8; }

/* ---------- Header ---------- */
.sx-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sx-line);
  position: sticky; top: 0; z-index: 999;
  transition: box-shadow .25s ease;
}
.sx-header.scrolled { box-shadow: 0 8px 32px rgba(11,61,145,.08); }
.sx-logo {
  font-weight: 800; letter-spacing: -.04em; font-size: 1.55rem;
  color: var(--sx-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.sx-logo .sx-logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sx-primary), var(--sx-accent));
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 18px rgba(30,109,255,.35);
}
.sx-logo .sx-logo-mark i { font-size: 18px; }
.sx-logo span.sx-tag {
  font-size: .68rem; letter-spacing: .15em; color: var(--sx-muted); font-weight: 600; text-transform: uppercase; display: block;
}

.navbar-nav .nav-link {
  color: var(--sx-ink-2); font-weight: 600; padding: .55rem 1rem;
  position: relative; transition: color .25s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--sx-primary); }
.navbar-nav .nav-link.active::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: -2px;
  height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--sx-accent), var(--sx-accent-2));
}

.sx-btn-primary {
  background: linear-gradient(135deg, var(--sx-primary), var(--sx-accent));
  color: #fff; border: none; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(30,109,255,.25); transition: transform .25s, box-shadow .25s;
}
.sx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30,109,255,.35); color: #fff; }
.sx-btn-outline {
  background: transparent; color: var(--sx-primary);
  border: 2px solid rgba(11,61,145,.18); padding: calc(.7rem - 2px) 1.5rem; border-radius: 999px; font-weight: 700;
  transition: all .25s;
}
.sx-btn-outline:hover { background: var(--sx-primary); color: #fff; border-color: var(--sx-primary); }

/* ---------- Hero ---------- */
.sx-hero {
  position: relative; padding: 90px 0 120px;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(30,109,255,.18), transparent 70%),
    radial-gradient(600px 300px at 10% 90%, rgba(30,203,225,.14), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f1f5fb 100%);
  overflow: hidden;
}
.sx-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(11,61,145,.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .6; pointer-events: none;
}
.sx-hero .badge-pill {
  background: rgba(30,109,255,.1); color: var(--sx-primary);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(30,109,255,.18);
}
.sx-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; margin: 22px 0 14px;
  letter-spacing: -.035em;
}
.sx-hero h1 .accent {
  background: linear-gradient(135deg, var(--sx-accent), var(--sx-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sx-hero p.lead { color: var(--sx-ink-2); font-size: 1.12rem; max-width: 540px; }

.sx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.sx-hero-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 22px;
  box-shadow: var(--sx-glow);
  padding: 28px;
}
.sx-track-box {
  background: #fff; border-radius: 18px; padding: 22px;
  box-shadow: 0 22px 50px rgba(11,61,145,.08); border: 1px solid var(--sx-line);
}
.sx-track-box .input-group { border: 1px solid var(--sx-line); border-radius: 12px; overflow: hidden; }
.sx-track-box input { border: 0; padding: 14px 18px; font-size: 1rem; }
.sx-track-box input:focus { outline: none; box-shadow: none; }
.sx-track-box button { border-radius: 0 !important; padding: 0 22px; }

.sx-feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sx-feature-tags span {
  background: #fff; border: 1px solid var(--sx-line);
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; color: var(--sx-ink-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.sx-feature-tags span i { color: var(--sx-accent); }

/* ---------- Sections ---------- */
.sx-section { padding: 88px 0; }
.sx-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sx-eyebrow { color: var(--sx-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; }
.sx-section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0 12px; }
.sx-section-head p { color: var(--sx-muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.sx-service-card {
  background: #fff; border-radius: var(--sx-radius); padding: 28px 24px;
  border: 1px solid var(--sx-line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  height: 100%; position: relative; overflow: hidden;
}
.sx-service-card::after {
  content: ''; position: absolute; inset: auto -30% -30% auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,109,255,.12), transparent 70%);
  transform: scale(0); transition: transform .5s ease;
}
.sx-service-card:hover { transform: translateY(-6px); box-shadow: var(--sx-glow); border-color: rgba(30,109,255,.25); }
.sx-service-card:hover::after { transform: scale(1.5); }
.sx-service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,109,255,.12), rgba(30,203,225,.18));
  color: var(--sx-primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 18px;
}
.sx-service-card h5 { margin-bottom: 8px; font-size: 1.1rem; }
.sx-service-card p { color: var(--sx-muted); margin: 0; font-size: .92rem; }
.sx-service-card .sx-more {
  color: var(--sx-accent); font-weight: 700; font-size: .85rem; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Why choose us ---------- */
.sx-why-card {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
  padding: 28px; height: 100%; transition: all .3s ease;
}
.sx-why-card:hover { border-color: var(--sx-accent); transform: translateY(-4px); box-shadow: var(--sx-glow); }
.sx-why-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(30,109,255,.1); color: var(--sx-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px;
}

/* ---------- Stats / Counters ---------- */
.sx-stats {
  background:
    radial-gradient(circle at 20% 30%, rgba(30,109,255,.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(30,203,225,.14), transparent 60%),
    linear-gradient(135deg, #061d4a, var(--sx-primary));
  border-radius: 26px; padding: 64px 28px; color: #fff;
  position: relative; overflow: hidden;
}
.sx-stats h3 { color: #fff; font-size: 2.6rem; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.sx-stats p { color: #cfe1ff; margin: 6px 0 0; }

/* ---------- Testimonials ---------- */
.sx-testimonial {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
  padding: 26px; height: 100%; position: relative;
}
.sx-testimonial::before {
  content: '"'; position: absolute; top: -10px; left: 16px; font-size: 80px; color: rgba(30,109,255,.15); line-height: 1; font-family: Georgia;
}
.sx-testimonial p { color: var(--sx-ink-2); font-style: italic; margin-bottom: 16px; position: relative; }
.sx-testimonial .author { display: flex; align-items: center; gap: 12px; }
.sx-testimonial .author .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--sx-primary), var(--sx-accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sx-testimonial .rating { color: #f59e0b; font-size: .9rem; }

/* ---------- Blog ---------- */
.sx-blog-card { background: #fff; border-radius: var(--sx-radius); border: 1px solid var(--sx-line); overflow: hidden; transition: all .3s; height: 100%; display: flex; flex-direction: column; }
.sx-blog-card:hover { transform: translateY(-4px); box-shadow: var(--sx-glow); }
.sx-blog-card .img {
  height: 200px; background: linear-gradient(135deg, var(--sx-primary), var(--sx-accent));
  position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem;
}
.sx-blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.sx-blog-card .cat { color: var(--sx-accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.sx-blog-card h5 { font-size: 1.08rem; margin: 8px 0 10px; line-height: 1.4; }
.sx-blog-card p { color: var(--sx-muted); font-size: .9rem; flex: 1; }
.sx-blog-card .meta { color: var(--sx-muted); font-size: .8rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sx-line); }

/* ---------- FAQ ---------- */
.sx-faq .accordion-item { background: #fff; border: 1px solid var(--sx-line); border-radius: 14px !important; margin-bottom: 10px; overflow: hidden; }
.sx-faq .accordion-button { font-weight: 700; padding: 18px 22px; color: var(--sx-ink); }
.sx-faq .accordion-button:not(.collapsed) { background: rgba(30,109,255,.06); color: var(--sx-primary); box-shadow: none; }
.sx-faq .accordion-button:focus { box-shadow: none; border-color: var(--sx-accent); }
.sx-faq .accordion-body { color: var(--sx-ink-2); padding: 0 22px 22px; }

/* ---------- CTA Banner ---------- */
.sx-cta {
  background:
    radial-gradient(700px 300px at 90% 0, rgba(30,203,225,.4), transparent 60%),
    linear-gradient(135deg, var(--sx-primary), #0a2c6f);
  color: #fff; border-radius: 26px; padding: 60px 40px;
}
.sx-cta h2 { color: #fff; }
.sx-cta .btn-light { background: #fff; color: var(--sx-primary); font-weight: 700; padding: 12px 28px; border-radius: 999px; }

/* ---------- Footer ---------- */
.sx-footer { background: #061d4a; color: #cfe1ff; padding: 70px 0 30px; margin-top: 60px; }
.sx-footer h6 { color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .12em; margin-bottom: 18px; }
.sx-footer a { color: #cfe1ff; text-decoration: none; display: block; padding: 5px 0; font-size: .92rem; transition: color .2s; }
.sx-footer a:hover { color: #fff; }
.sx-footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: 8px;
}
.sx-footer .social a:hover { background: var(--sx-accent); }
.sx-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: .85rem; color: #94a3b8; }

/* ---------- Tracking Timeline ---------- */
.sx-timeline { position: relative; padding: 12px 0 12px 32px; }
.sx-timeline::before { content:''; position:absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--sx-line); }
.sx-timeline-item { position: relative; padding: 0 0 28px 0; }
.sx-timeline-item::before {
  content:''; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sx-line);
}
.sx-timeline-item.done::before { background: var(--sx-accent); border-color: var(--sx-accent); box-shadow: 0 0 0 5px rgba(30,109,255,.15); }
.sx-timeline-item h6 { margin: 0; font-size: 1rem; }
.sx-timeline-item .meta { color: var(--sx-muted); font-size: .85rem; }

/* ---------- Partners strip ---------- */
.sx-partners { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 28px; opacity: .65; }
.sx-partners div { font-weight: 800; font-size: 1.25rem; color: var(--sx-muted); letter-spacing: .05em; }

/* ---------- Page banner ---------- */
.sx-banner {
  background:
    radial-gradient(700px 240px at 80% 0, rgba(30,109,255,.22), transparent 70%),
    linear-gradient(135deg, #061d4a, var(--sx-primary));
  color: #fff; padding: 70px 0; text-align: center; margin-bottom: 60px;
}
.sx-banner h1 { color: #fff; font-size: 2.5rem; }
.sx-banner .crumbs { color: #cfe1ff; }
.sx-banner .crumbs a { color: #cfe1ff; }

/* ---------- Forms ---------- */
.form-control, .form-select { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--sx-line); transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: var(--sx-accent); box-shadow: 0 0 0 4px rgba(30,109,255,.12); }

/* ---------- Alerts (flash) ---------- */
.sx-flash { position: fixed; top: 90px; right: 24px; z-index: 9999; min-width: 280px; max-width: 360px; box-shadow: var(--sx-glow); border-radius: 12px; animation: slidein .35s ease; }
@keyframes slidein { from { transform: translateX(120%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ---------- Cards / Tables ---------- */
.sx-card { background: #fff; border-radius: var(--sx-radius); border: 1px solid var(--sx-line); padding: 24px; }
.sx-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.sx-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sx-muted); padding: 12px; border-bottom: 1px solid var(--sx-line); text-align: left; font-weight: 700; }
.sx-table td { padding: 14px 12px; border-bottom: 1px solid var(--sx-line); font-size: .92rem; }
.sx-table tr:last-child td { border-bottom: none; }
.sx-table tbody tr:hover { background: #f8fafc; }

/* ---------- Floating WhatsApp ---------- */
.sx-whatsapp { position: fixed; bottom: 22px; right: 22px; z-index: 998; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 12px 30px rgba(37,211,102,.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
/* CSS fallback if JS is delayed: above-the-fold .reveal elements gently fade in on load */
@keyframes sxRevealIn { to { opacity: 1; transform: translateY(0); } }
.sx-hero .reveal { animation: sxRevealIn .9s ease .15s forwards; }
.sx-hero .reveal:nth-child(2) { animation-delay: .35s; }
/* No-JS / no-IntersectionObserver fallback */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sx-hero { padding: 60px 0 80px; }
  .sx-section { padding: 60px 0; }
  .sx-stats { padding: 40px 20px; }
  .sx-stats h3 { font-size: 1.8rem; }
  .sx-cta { padding: 40px 24px; }
  .sx-banner { padding: 50px 0; }
}
