/* RoadMetric Data Services — shared stylesheet */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --blue: #2f6fed;
  --blue-bright: #4d8bff;
  --blue-light: #eaf1ff;
  --teal: #14b8a6;
  --gray-bg: #f6f8fb;
  --border: #e4e9f0;
  --text: #1b2733;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.06);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo .logo-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.logo .logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.15s;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.28);
}
.btn-primary:hover {
  background: #2559c9;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 111, 237, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 37, 69, 0.18);
}

.nav-cta { display: flex; gap: 12px; align-items: center; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(6, 22, 44, 0.92) 0%, rgba(6, 22, 44, 0.72) 32%, rgba(6, 22, 44, 0.28) 55%, rgba(6, 22, 44, 0.05) 72%),
    url("images/hero-traffic.jpg");
  background-size: cover, cover;
  background-position: center, center left;
  background-repeat: no-repeat, no-repeat;
  padding: 80px 0;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1,
.hero-content .eyebrow { color: var(--white); }

.hero-content .lead {
  color: #cfd9ea;
}

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

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 800;
}

h2.section-title {
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 800;
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-buttons { display: flex; gap: 14px; margin-bottom: 40px; }

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11,37,69,0.15), transparent 60%);
  pointer-events: none;
}

.hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-img:hover img { transform: scale(1.04); }

.badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.badge-item {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.badge-item .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-light), #dbe8ff);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(47, 111, 237, 0.15);
  transition: transform 0.2s ease;
}

.badge-item:hover .icon-circle { transform: translateY(-3px); }

/* Hero-specific overrides (light text/badges on the dark photo background) */
.hero-content .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}
.hero-content .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.hero-content .badge-item {
  color: var(--white);
  text-align: left;
}

.hero-content .badges-row {
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 30px;
}

.hero-content .badge-item .icon-circle {
  margin: 0 0 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--gray-bg); }

/* ---------- Cards grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 111, 237, 0.25);
}

.card .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-light), #dbe8ff);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 18px;
  transition: transform 0.22s ease;
}

.card:hover .icon-circle { transform: scale(1.08) rotate(-3deg); }

.card h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Icon sizing shared across icon-circle usages */
.icon-circle i { line-height: 1; }
.icon-circle { font-size: 19px; }

/* ---------- Process steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 14px rgba(47, 111, 237, 0.3);
}

.step-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.info-callout {
  margin-top: 36px;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead { background: linear-gradient(120deg, var(--navy), var(--navy-dark)); color: var(--white); }

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: var(--blue-light); }
tbody tr:last-child { font-weight: 700; background: var(--gray-bg); }
tbody tr:last-child:hover { background: var(--gray-bg); }

.table-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 16px;
}

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

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.two-col h2 { text-align: left; font-size: 30px; }

.numbered-steps { display: flex; align-items: center; gap: 18px; margin: 28px 0; flex-wrap: wrap; }

.numbered-steps .n-step { display: flex; align-items: center; gap: 10px; }

.n-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.n-arrow { color: var(--text-muted); font-size: 18px; }

.trust-row { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info h2 { text-align: left; }

.contact-detail { margin-top: 22px; }
.contact-detail strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 3px; }
.contact-detail span, .contact-detail a { color: var(--text-muted); font-size: 14.5px; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 111, 237, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(20, 184, 166, 0.25), transparent 45%),
    linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #b9c6d8; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-primary { box-shadow: 0 10px 26px rgba(47, 111, 237, 0.4); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c6d8;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

.footer-grid ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid ul li a { transition: color 0.15s ease, padding-left 0.15s ease; }
.footer-grid ul li a:hover { color: var(--white); padding-left: 3px; }

.footer-brand .logo-main { color: var(--white); }
.footer-brand p { font-size: 13.5px; margin: 14px 0; color: #9aabc0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7f90a5;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--gray-bg);
  padding: 48px 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    padding: 12px 24px 18px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  nav.main-nav a { width: 100%; padding: 10px 0; }
  nav.main-nav.nav-open { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps-row { grid-template-columns: 1fr 1fr; }
  .badges-row { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 560px; background-position: center, 30% center; }
  .hero-content { max-width: 100%; }
  .hero-content .badges-row { grid-template-columns: repeat(2, auto); gap: 22px; }
  h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .steps-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; padding: 56px 0; }
  .hero-content .badges-row { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 28px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
