/* ==========================================================================
   MERIDIAN FLEET COMPLIANCE — Global Stylesheet
   Modern, minimal, safety-consulting design system
   ========================================================================== */

:root {
  /* Colors — brand palette */
  --navy-900: #2E3138; /* brand charcoal — deep backgrounds (hero, footer, CTA) */
  --navy-800: #2F6690; /* brand primary blue — headings, nav accents */
  --navy-700: #3D7BA8; /* lighter blue — hover states on dark bg */
  --navy-600: #4C90BE; /* lightest blue tint */
  --accent-500: #1E88E5; /* brand accent blue — buttons, CTAs, links */
  --accent-600: #166FBD; /* accent hover */
  --accent-50: #E8F3FC;  /* light blue tint — icon chips, pills */
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F4;
  --gray-200: #DEE3E8;
  --gray-400: #9AA5B1;
  --gray-600: #5B6472;
  --gray-800: #26303B;
  --ink: #2E3138; /* brand charcoal — body/headline ink */
  --white: #FFFFFF;
  --success: #1E7A34;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --header-h: 84px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --shadow-sm: 0 1px 3px rgba(8, 28, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 28, 51, 0.10);
  --shadow-lg: 0 20px 48px rgba(8, 28, 51, 0.16);
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0 0 16px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 { color: var(--navy-800); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
.lead { font-size: 1.15rem; color: var(--gray-600); }
p { color: var(--gray-600); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-500);
  display: inline-block;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-500);
  color: var(--white);
  border-color: var(--accent-500);
}
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-secondary:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-white:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-800);
  flex-shrink: 0;
}
.logo-slot img { height: 44px; width: auto; }
.logo-placeholder {
  height: 44px;
  min-width: 160px;
  border: 1.5px dashed var(--gray-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 12px;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-600); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px;
  position: relative;
  z-index: 1001;
  transition: background var(--transition);
}
.nav-toggle:active { background: var(--gray-100); }
.nav-toggle span {
  width: 22px;
  height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Dimmed backdrop behind the mobile drawer */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 40, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.is-open { display: block; opacity: 1; }

.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--white);
  z-index: 999;
  padding: 20px 22px 28px;
  overflow-y: auto;
  box-shadow: -12px 0 32px rgba(8, 28, 51, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-head span { font-weight: 700; color: var(--navy-800); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--navy-800);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active, .mobile-nav a:hover { background: var(--gray-50); color: var(--accent-600); }
.mobile-nav a.active { color: var(--accent-600); background: var(--accent-50); }
.mobile-nav .btn { margin-top: 16px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-home {
  padding: 96px 0 110px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-home h1 { color: var(--white); }
.hero-home p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  padding: 24px;
}

/* ---------- Fillable image placeholders ----------
   Drop a real image URL/path into the empty src="" on any .fill-img
   and it will automatically scale + crop to fill its slot (object-fit: cover),
   replacing the dashed placeholder box — no other markup changes needed. */
.media-placeholder .fill-img,
.hero-media .fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: inherit;
}
.media-placeholder.has-image,
.hero-media.has-image {
  border-style: solid;
  border-color: var(--gray-200);
}
.media-placeholder.has-image .fill-img,
.hero-media.has-image .fill-img { display: block; }
.media-placeholder.has-image .placeholder-label,
.hero-media.has-image .placeholder-label { display: none; }
.placeholder-label { position: relative; z-index: 1; }

.hero-page {
  padding: 64px 0 56px;
  text-align: center;
}
.hero-page h1 { color: var(--white); margin-bottom: 10px; }
.hero-page p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--accent-500); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy-900);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid strong { display: block; font-size: 1.8rem; color: var(--white); }
.stats-grid span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 800;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 18px; font-size: 0.95rem; }
.card-link { font-weight: 700; color: var(--accent-600); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }

.service-card { display: flex; flex-direction: column; }
.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.industry-card:hover { border-color: var(--accent-500); box-shadow: var(--shadow-sm); }
.industry-card .card-icon { margin: 0 auto 14px; }

/* ---------- Feature / benefit list ---------- */
.benefit-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.benefit-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-400);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-800);
  background-image: radial-gradient(circle at 85% 20%, rgba(30,136,229,0.22), transparent 55%);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--ink);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 14px; }
.form-success {
  display: none;
  background: #F0F9F1;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.9rem;
}
.form-success.is-visible { display: block; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 780px; margin: 0 auto; }
.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-800);
}
.accordion-trigger .icon-plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gray-600);
  transition: transform var(--transition);
}
.accordion-item.is-open .icon-plus { transform: rotate(45deg); border-color: var(--accent-500); color: var(--accent-500); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding: 0 4px 22px; }

/* ---------- Breadcrumb list for resources/blog ---------- */
.tag-pill {
  display: inline-block;
  background: var(--accent-50);
  color: var(--accent-600);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.date-tag { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 8px; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-500); }
.footer-logo { color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { background: var(--accent-500); border-color: var(--accent-500); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-home { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Guarantee visible side gutters on phones and calm down the hero's
   vertical rhythm so it doesn't feel edge-to-edge on small screens */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero-home { padding: 64px 0 56px; gap: 32px; }
  .hero-page { padding: 48px 0 40px; }
  .hero-media { min-height: 220px; border-radius: var(--radius-md); }
  .hero-home p { font-size: 1rem; }
  .cta-band { padding: 32px 20px; }
}
