/* ═══════════════════════════════════════════════
   NexFreight Global — Main Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:   #0A1628;
  --blue:   #1A4A8A;
  --sky:    #2E7FD9;
  --accent: #0098f0;
  --ice:    #E8F2FF;
  --white:  #FFFFFF;
  --gray:   #4A5568;
  --light:  #F5F8FF;
  --border: rgba(26, 74, 138, 0.14);

  /* Text on dark backgrounds */
  --text-dark-primary:   #FFFFFF;
  --text-dark-secondary: rgba(255, 255, 255, 0.82);
  --text-dark-muted:     rgba(255, 255, 255, 0.60);

  /* Text on light backgrounds */
  --text-light-primary:   #0A1628;
  --text-light-secondary: #2D3748;
  --text-light-muted:     #4A5568;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-light-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }

h1, h2, h3, h4, h5,
.logo-text { font-family: 'Syne', sans-serif; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 254, 254, 0.07);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: background 0.3s;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 238px; height: 138px;
  /* ---- background: linear-gradient(135deg, var(--sky), var(--accent));--- */
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text {
  color: var(--text-dark-primary);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dark-secondary);
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-dark-primary); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px); }

.hamburger {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  background: var(--sky);
  color: var(--text-dark-primary);
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 2rem; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: #1A6DC7; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,127,217,0.35); }
.btn-primary svg  { width: 18px; height: 18px; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--text-dark-primary);
  font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 2rem; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn-dark {
  background: var(--navy);
  color: var(--text-dark-primary);
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 2rem; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.btn-dark:hover { background: var(--blue); transform: translateY(-1px); }
.btn-dark svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════ */
.ticker {
  background: var(--accent);
  padding: 11px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: ticker 28s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  font-family: 'Syne', sans-serif; font-size: 0.8rem;
  font-weight: 700; color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.08em; display: flex; align-items: center; gap: 10px;
}
.ticker-dot { width: 5px; height: 5px; background: rgba(10,22,40,0.4); border-radius: 50%; }

/* ═══════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════ */
section { padding: 90px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0.85rem;
}
.section-tag::before { content: ''; width: 22px; height: 2px; background: var(--sky); }
.section-tag.center { justify-content: center; }
.section-tag.center::before { display: none; }

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em; color: var(--text-light-primary);
  margin-bottom: 1rem;
}
.section-heading em   { font-style: normal; color: var(--sky); }
.section-heading.dark { color: var(--text-dark-primary); }

.section-sub {
  font-size: 1.05rem; color: var(--text-light-muted);
  line-height: 1.75; max-width: 580px;
  margin-bottom: 3rem;
  font-weight: 400;
}
.section-sub.dark { color: var(--text-dark-secondary); }

/* ═══════════════════════════════════════════════
   HERO — DARK BACKGROUND (shared styles)
   ═══════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 145px 5% 85px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,127,217,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,127,217,0.06) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}
.page-hero .section-tag { color: var(--accent); justify-content: center; margin-bottom: 1rem; }
.page-hero .section-tag::before { background: var(--accent); }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--text-dark-primary); font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 1.25rem;
  line-height: 1.12;
}
.page-hero p {
  color: var(--text-dark-secondary);
  font-size: 1.1rem; max-width: 620px;
  margin: 0 auto; line-height: 1.75; font-weight: 400;
}

/* ═══════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  transition: all 0.3s; cursor: pointer;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(10,22,40,0.1); }
.service-card:hover::before { opacity: 1; }

.svc-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: background 0.3s; flex-shrink: 0;
}
.service-card:hover .svc-icon { background: var(--sky); }
.svc-icon svg { width: 28px; height: 28px; fill: white; }

.service-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-light-primary); margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.92rem; color: var(--text-light-muted);
  line-height: 1.7; margin-bottom: 1.5rem; font-weight: 400;
}
.svc-link {
  font-size: 0.87rem; font-weight: 600; color: var(--sky);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.svc-link:hover { gap: 10px; }
.svc-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════
   WHY US — DARK SECTION
   ═══════════════════════════════════════════════ */
.why-section { background: var(--navy); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(46,127,217,0.18);
  border: 1px solid rgba(46,127,217,0.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.why-check svg { width: 14px; height: 14px; stroke: var(--sky); fill: none; stroke-width: 2.5; }
.why-item-text h4 {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text-dark-primary); margin-bottom: 5px;
}
.why-item-text p {
  font-size: 0.9rem; color: var(--text-dark-secondary);
  line-height: 1.65; font-weight: 400;
}

.why-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.why-num-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 1.75rem;
}
.why-num {
  font-family: 'Syne', sans-serif; font-size: 2.6rem;
  font-weight: 800; color: var(--accent); line-height: 1;
}
.why-num-label { font-size: 0.85rem; color: var(--text-dark-secondary); margin-top: 8px; font-weight: 400; }

/* ═══════════════════════════════════════════════
   QUOTE FORM
   ═══════════════════════════════════════════════ */
.quote-section { background: var(--ice); }
.quote-wrap {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: 5rem; align-items: start;
}

.quote-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.quote-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text-light-secondary); font-weight: 400;
}
.quote-feature svg { width: 18px; height: 18px; stroke: var(--sky); fill: none; stroke-width: 2; flex-shrink: 0; }

.trust-badges { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 2rem; }
.trust-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-light-primary);
  display: flex; align-items: center; gap: 7px;
}
.trust-badge svg { width: 14px; height: 14px; stroke: var(--sky); fill: none; stroke-width: 2; }

.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 8px 48px rgba(10,22,40,0.07);
}
.form-box h3 {
  font-size: 1.35rem; font-weight: 800;
  color: var(--text-light-primary); margin-bottom: 1.75rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-light-primary);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--text-light-primary); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9AA3B0; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46,127,217,0.14);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: var(--navy);
  padding: 65px 5% 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.9rem; line-height: 1.75;
  color: var(--text-dark-secondary); margin: 1rem 0; font-weight: 400;
}
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark-secondary); font-size: 0.75rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover { background: var(--sky); color: white; }

.footer-col h5 {
  font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--text-dark-primary); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.9rem; color: var(--text-dark-secondary);
  font-weight: 400; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text-dark-primary); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.83rem; color: var(--text-dark-muted);
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--navy); color: var(--text-dark-primary);
  padding: 1rem 1.5rem; border-radius: 10px;
  border-left: 3px solid var(--accent);
  font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translateX(130%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 340px;
}
.toast.show { transform: translateX(0); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .quote-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0.5rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,22,40,0.99);
    padding: 1.5rem 5%; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.5rem 0; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 70px 5%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-badges { flex-direction: column; }
}
