/* Fleet Management Subsite — styles.css */
:root {
  --ink: #0b1f35;
  --ink-soft: #12324f;
  --signal: #2563eb;
  --signal-dark: #1d4ed8;
  --gold: #d4a017;
  --gold-dark: #b38612;
  --accent: #059669;
  --accent-dark: #047857;
  --steel: #5f6f83;
  --mist: #f4f7fb;
  --line: #dbe3ee;
}

body {
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  padding-bottom: 4rem;
}

a { text-decoration: none; }

.bg-ink { background: linear-gradient(180deg, #12324f 0%, var(--ink) 100%); }

/* ─── Navbar ─── */
.navbar { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.85rem 0; }
.navbar-brand { align-items: center; display: flex; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.navbar-brand .brand-dot { color: var(--signal); }
.navbar-brand:hover { color: #fff; }
.navbar .nav-link { color: rgba(255,255,255,0.74); font-size: 0.95rem; margin-left: 0.75rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: #fff; }
.nav-link-main { color: var(--gold) !important; font-weight: 600; }
.nav-back-home { color: #fff !important; font-weight: 700; padding-left: 0.75rem; }
.nav-back-home::before { content: '← '; color: var(--gold); }

/* ─── Buttons ─── */
.btn-signal {
  --bs-btn-bg: var(--signal); --bs-btn-border-color: var(--signal); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--signal-dark); --bs-btn-hover-border-color: var(--signal-dark);
  --bs-btn-hover-color: #fff; font-weight: 700;
}
.btn-accent {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-hover-color: #fff; font-weight: 700;
}

/* ─── Typography helpers ─── */
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.text-signal { color: var(--signal-dark); }
.text-accent { color: var(--accent); }

/* ─── Hero / Masthead ─── */
.masthead {
  background:
    radial-gradient(circle at 82% 14%, rgba(37,99,235,0.18), transparent 44%),
    radial-gradient(circle at 10% 85%, rgba(5,150,105,0.12), transparent 40%),
    linear-gradient(135deg, #12324f 0%, var(--ink) 58%, #071827 100%);
  padding: 8rem 0 5rem;
}
.min-vh-hero { min-height: 640px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.hero-stat strong { color: var(--signal); display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ─── GPS Console Widget ─── */
.hero-console {
  backdrop-filter: blur(8px); background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0.5rem; box-shadow: 0 24px 48px rgba(0,0,0,0.28); color: #fff; padding: 1.5rem;
}
.console-header { align-items: center; border-bottom: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.85rem; }
.console-header span { font-size: 0.9rem; }
.console-header .live-badge { background: rgba(16,185,129,0.18); border: 1px solid rgba(16,185,129,0.4); border-radius: 999px; color: #10b981; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem; }

/* GPS Map Mock */
.gps-map-mock {
  background: #07192e;
  border-radius: 0.35rem;
  height: 130px;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}
.gps-map-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255,255,255,0.04) 30px, rgba(255,255,255,0.04) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.04) 40px, rgba(255,255,255,0.04) 41px);
}
.gps-dot {
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--signal), 0 0 16px rgba(37,99,235,0.5);
  display: block;
  height: 8px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 8px;
}
.gps-dot-green { background: #10b981; box-shadow: 0 0 6px #10b981, 0 0 16px rgba(16,185,129,0.4); }
.gps-dot-pulse { animation: gps-pulse 2s ease-in-out infinite; }
.gps-dot-label {
  background: rgba(37,99,235,0.85); border-radius: 3px; color: #fff;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 1px 4px; position: absolute; white-space: nowrap;
}
@keyframes gps-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--signal), 0 0 16px rgba(37,99,235,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 12px var(--signal), 0 0 28px rgba(37,99,235,0.7); }
}

.console-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.console-grid div { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.3rem; padding: 0.75rem; }
.console-grid small { color: rgba(255,255,255,0.58); display: block; font-size: 0.72rem; margin-bottom: 0.2rem; }
.console-grid strong { color: var(--signal); font-size: 1.5rem; letter-spacing: 0.04em; }
.console-grid .warn { color: #f59e0b; }
.console-route { display: grid; gap: 0.4rem; grid-template-columns: repeat(4, 1fr); margin: 1rem 0 0.75rem; }
.console-route span { background: linear-gradient(90deg, var(--signal), #60a5fa); border-radius: 2px; display: block; height: 4px; }

/* ─── Section base ─── */
.features-icons { padding: 5rem 0; }
.features-icons .features-icons-item { max-width: 22rem; }
.features-icons .features-icons-icon { color: var(--signal-dark); font-size: 4rem; height: 6rem; }
.features-icons h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.features-icons .lead { color: var(--steel); font-size: 1rem; }

.product-section, .process-section { padding: 5rem 0; }

/* ─── Cards ─── */
.service-card, .step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(11,31,53,0.06); padding: 2rem; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .step-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-card { border-top: 4px solid var(--signal); }
.service-card i { color: var(--signal-dark); font-size: 2.4rem; }
.service-card h3, .step-card h3 { font-size: 1.2rem; margin: 1rem 0 0.75rem; }
.service-card p, .step-card p { color: var(--steel); margin-bottom: 0; }
.service-card.accent-top { border-top-color: var(--accent); }
.service-card.accent-top i { color: var(--accent); }

/* ─── Pain points ─── */
.pain-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--signal);
  border-radius: 0.4rem; padding: 1.5rem; transition: box-shadow 0.2s ease;
}
.pain-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,0.1); }
.pain-card .pain-icon { color: var(--signal-dark); font-size: 1.75rem; margin-bottom: 0.75rem; }
.pain-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.pain-card p { color: var(--steel); font-size: 0.9rem; margin-bottom: 0; }

/* ─── Stats / Highlights ─── */
.stats-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  padding: 4rem 0;
}
.stat-box { text-align: center; }
.stat-box .stat-num {
  color: var(--signal); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1;
}
.stat-box .stat-num sup { font-size: 0.5em; vertical-align: super; }
.stat-box .stat-label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 0.5rem; }
.stat-box .stat-sub { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.stat-divider { border-color: rgba(255,255,255,0.08); }

/* ─── Freight data section ─── */
.data-section { background: var(--mist); padding: 5rem 0; }
.data-card {
  background: #fff; border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04); padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.data-card:hover { box-shadow: 0 14px 32px rgba(37,99,235,0.1); transform: translateY(-3px); }
.data-card .data-icon {
  align-items: center; background: rgba(37,99,235,0.08); border-radius: 0.5rem;
  color: var(--signal); display: flex; font-size: 1.75rem; height: 3rem;
  justify-content: center; margin-bottom: 1rem; width: 3rem;
}
.data-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.data-card p { color: var(--steel); font-size: 0.9rem; margin-bottom: 0; }
.data-card ul { color: var(--steel); font-size: 0.88rem; margin-bottom: 0; padding-left: 1.1rem; }
.data-card ul li { margin-bottom: 0.3rem; }

/* ─── SEO link cards ─── */
.seo-link-card {
  background: var(--mist); border: 1px solid var(--line); border-radius: 0.75rem; color: var(--ink);
  display: block; height: 100%; padding: 1.25rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.seo-link-card:hover { border-color: var(--signal-dark); box-shadow: 0 12px 24px rgba(0,0,0,0.06); color: var(--ink); }
.seo-link-card strong, .seo-link-card span { display: block; }
.seo-link-card span { color: var(--steel); font-size: 0.95rem; margin-top: 0.5rem; }

/* ─── Steps ─── */
.step-card span { color: var(--signal-dark); font-family: Consolas, monospace; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; }
.solution-links { border-top: 1px solid var(--line); padding-top: 2rem; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq-item h3 { cursor: pointer; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.faq-item p { color: var(--steel); font-size: 0.95rem; margin-bottom: 0; }

/* ─── CTA / Contact ─── */
.call-to-action {
  background: linear-gradient(110deg, #0b1f35 0%, #12324f 100%);
  padding: 5.5rem 0;
}
.lead-form {
  backdrop-filter: blur(6px); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.5rem; padding: 1.5rem;
}
.lead-form .form-label { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

/* ─── Footer ─── */
.footer { padding: 2.5rem 0 2rem; }
.footer a:hover { color: #fff !important; }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 1.5rem 0; }

/* ─── Page hero (subpages) ─── */
.page-hero {
  background: linear-gradient(115deg, rgba(11,31,53,0.97), rgba(18,50,79,0.92));
  background-attachment: scroll; color: #fff; margin-top: 56px; padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 44rem; }
.breadcrumb-nav { font-size: 0.9rem; margin-bottom: 1.25rem; }
.breadcrumb-nav a { color: rgba(255,255,255,0.72); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .sep { color: rgba(255,255,255,0.4); margin: 0 0.4rem; }

/* ─── Subpage content ─── */
.subpage-content { padding: 4rem 0 5rem; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.04); margin-bottom: 1.5rem; padding: 2rem; }
.content-card h2 { border-left: 4px solid var(--signal); font-size: 1.35rem; margin-bottom: 1rem; padding-left: 0.85rem; }
.content-card ul { color: var(--steel); margin-bottom: 0; padding-left: 1.25rem; }
.content-card li { margin-bottom: 0.5rem; }
.feature-pill { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); display: inline-block; font-size: 0.88rem; font-weight: 600; margin: 0 0.5rem 0.5rem 0; padding: 0.4rem 0.9rem; }

.sidebar-card { background: var(--ink-soft); border-radius: 0.5rem; color: #fff; padding: 1.75rem; position: sticky; top: 5.5rem; }
.sidebar-card h3 { color: var(--gold); font-size: 1rem; letter-spacing: 0.08em; margin-bottom: 1rem; text-transform: uppercase; }
.sidebar-card a { border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); display: block; padding: 0.65rem 0; }
.sidebar-card a:last-child { border-bottom: 0; }
.sidebar-card a:hover { color: var(--gold); }
.subpage-cta { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); border-radius: 0.5rem; color: #fff; margin-top: 1rem; padding: 2rem; }
.subpage-cta p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; }

/* ─── Sticky bar ─── */
.sticky-lead-bar { background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%); border-top: 2px solid var(--signal); bottom: 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.25); left: 0; position: fixed; right: 0; z-index: 1050; }
.sticky-lead-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; margin: 0 auto; max-width: 1140px; padding: 0.65rem 1rem; }
.sticky-lead-text { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 600; }
.sticky-lead-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sticky-lead-phone { color: #93c5fd; font-weight: 700; }
.sticky-lead-btn { background: var(--signal); border-radius: 0.45rem; color: #fff; font-size: 0.875rem; font-weight: 700; padding: 0.45rem 1rem; }
.sticky-lead-btn:hover { background: var(--signal-dark); color: #fff; }

/* ─── Form ─── */
.lead-step .is-invalid { border-color: #ef4444; }
.lead-preview { background: rgba(255,255,255,0.08); border-radius: 0.35rem; padding: 0.65rem 0.85rem; }

/* ─── Keyword tags ─── */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.keyword-tags a { background: #fff; border: 1px solid var(--line); border-radius: 2rem; color: var(--ink); font-size: 0.82rem; padding: 0.35rem 0.85rem; }
.keyword-tags a:hover { border-color: var(--signal); color: var(--signal-dark); }

/* ─── Feature grid for gps-tracking page ─── */
.feature-block { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.feature-block:last-child { border-bottom: 0; }
.feature-block .feature-num { color: var(--signal); font-family: Consolas, monospace; font-size: 0.9rem; font-weight: 800; }

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
  .min-vh-hero { min-height: auto; }
  .masthead { padding-top: 7rem; }
  .sidebar-card { margin-top: 2rem; position: static; }
}
@media (max-width: 575.98px) {
  .stats-section .stat-box + .stat-box { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
}
