/* FleetRoute GPS — site stylesheet */

:root {
  --blue-900: #06204a;
  --blue-800: #0a2f6b;
  --blue-700: #0d3f8f;
  --blue-600: #0b5fff;
  --blue-500: #2e7dff;
  --blue-100: #e8f0ff;
  --blue-50: #f4f8ff;
  --white: #ffffff;
  --gray-900: #101828;
  --gray-700: #344054;
  --gray-500: #667085;
  --gray-200: #e4e9f2;
  --gray-100: #f2f5fa;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(10, 47, 107, 0.08);
  --container: 1180px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
ul { padding-left: 1.2rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--blue-900); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  background: var(--blue-100);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: var(--white); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-white { background: var(--white); color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--blue-900); }
.logo svg { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.main-nav a { color: var(--gray-700); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--blue-800); font-size: 0.95rem; white-space: nowrap; }

.has-dropdown { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  margin-top: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 280px;
  list-style: none;
  border: 1px solid var(--gray-200);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.dropdown li a:hover { background: var(--blue-50); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 72px 0;
  overflow: hidden;
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1, .hero .eyebrow { color: var(--white); }
.hero .eyebrow { background: rgba(255,255,255,0.15); color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: flex; justify-content: center; }

.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1, .page-hero .eyebrow { color: var(--white); }
.page-hero .eyebrow { background: rgba(255,255,255,0.16); color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 680px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* Stats strip */
.stats-strip { background: var(--blue-50); padding: 32px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--blue-700); }
.stat-label { color: var(--gray-500); font-size: 0.9rem; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin: 0 0 36px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100);
  border-radius: 14px;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }

.feature-list-page .card { display: flex; flex-direction: column; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--gray-700); }
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  border-radius: 20px;
  padding: 52px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band .hero-actions { justify-content: center; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 18px 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 700; color: var(--blue-900); font-size: 1.02rem;
  background: none; border: none; width: 100%; text-align: left; padding: 0;
}
.faq-q .plus { font-size: 1.4rem; color: var(--blue-600); transition: transform .15s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; color: var(--gray-700); }
.faq-item.open .faq-a { max-height: 400px; padding-top: 12px; }

/* Blog */
.blog-card { display: flex; flex-direction: column; }
.blog-meta { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 8px; }
.blog-tag { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon { width: 44px; height: 44px; background: var(--blue-100); color: var(--blue-600); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--gray-700); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-family: var(--font); font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.82); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .logo { color: var(--white); }
.footer-about p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  z-index: 200;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.compare-table thead th { background: var(--blue-900); color: var(--white); }
.compare-table tbody tr:nth-child(even) { background: var(--blue-50); }
.compare-table td.win { color: var(--blue-700); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ROI calculator */
.roi-calc { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.roi-result { background: var(--blue-50); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.roi-result .stat-num { font-size: 2.2rem; }
.roi-disclaimer { font-size: 0.82rem; color: var(--gray-500); margin-top: 14px; }

/* Case studies */
.case-study-card .tag-industry { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--blue-700); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.case-study-card h4 { margin: 14px 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-500); }

/* 404 */
.error-page { text-align: center; padding: 110px 0; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--blue-100); line-height: 1; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .2s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .dropdown { display: block; position: static; box-shadow: none; border: none; padding: 6px 0 0 12px; }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; margin: 0 16px; }
}
