/* =========================================
   Trucking Captive Solutions — Stylesheet
   Colors: Navy #1B2D5B | Royal Blue #2E7BD6 | Charcoal #1E2A3A | Light #F0F2F5
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B2D5B;
  --primary-light: #2E5090;
  --accent: #2E7BD6;
  --accent-dark: #1F5FAF;
  --charcoal: #1E2A3A;
  --light: #F0F2F5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --radius: 4px;
  --max-width: 1160px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.full-width { width: 100%; text-align: center; }

/* ---- LOGO TEXT ---- */
.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-text strong {
  font-weight: 700;
}
.logo-icon {
  font-size: 28px;
  line-height: 1;
}
.footer-logo-text {
  font-size: 22px;
  color: var(--primary);
}
.footer-logo-text .logo-icon {
  font-size: 32px;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ---- PHOTO LOGO OVERLAYS ---- */
.photo-logo-wrap {
  position: absolute;
  pointer-events: none;
}
.hero-logo-wrap {
  top: 112px;
  left: clamp(24px, 6vw, 96px);
  width: clamp(140px, 15vw, 260px);
  z-index: 1;
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
  border-radius: 8px;
}
.image-break-logo-wrap {
  top: 16px;
  left: 16px;
  width: clamp(180px, 18vw, 300px);
  z-index: 3;
}
.image-break-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  border-radius: 6px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  text-decoration: none;
}
.nav-hamburger { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn { padding: 10px 24px; font-size: 14px; }

/* ---- HERO ---- */
.hero {
  margin-top: 72px;
  min-height: 88vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,26,52,0.75) 30%, rgba(27,45,91,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 24px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--charcoal);
  padding: 36px 0;
}
.trust-bar .container {
  max-width: 1360px;
  padding: 0 16px;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}
.trust-number {
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}
.trust-label {
  font-size: clamp(7px, 0.62vw, 10px);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--primary); }
.section-mid { background: var(--white); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--accent); }

h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 20px;
}
h2.light { color: var(--white); }

p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
p.light-muted { color: rgba(255,255,255,0.7); }

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .col-image { order: -1; }

.col-image picture { display: block; width: 100%; }
.col-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.col-text .btn { margin-top: 8px; }

/* Placeholder images for mock-up */
.placeholder-image {
  background: linear-gradient(135deg, #e8e4dd 0%, #d5cfc6 100%);
  border-radius: 6px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.placeholder-image span {
  font-size: 64px;
  line-height: 1;
}
.placeholder-image p {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ---- QUALIFIER LIST ---- */
.qualifier-list {
  list-style: none;
  margin: 20px 0 28px;
}
.qualifier-list li {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 500;
}
.qualifier-list li:last-child { border-bottom: none; }

/* ---- STEPS GRID ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 32px 24px;
}
.step-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Merriweather', serif;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; }

/* ---- COVERAGE GRID ---- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.coverage-card {
  background: var(--light);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.coverage-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.coverage-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}
.coverage-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.coverage-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- IMAGE BREAK ---- */
.image-break {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}
.image-break-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.image-break-content h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 32px;
  line-height: 1.4;
}

/* ---- CONTACT ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-text h2 { color: var(--white); }
.contact-text p { color: rgba(255,255,255,0.7); }

.contact-highlights {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.highlight-icon {
  font-size: 18px;
  line-height: 1;
}

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
input, select, textarea {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--charcoal); color: var(--white); }
textarea { resize: vertical; }

/* CA License style */
.ca-lic {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(27,45,91,0.72);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--white);
  padding: 48px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 420px;
  margin: 0 auto;
}
.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(27,45,91,0.72);
  margin-bottom: 8px;
  font-style: italic;
}
.footer-copy {
  font-size: 12px;
  color: rgba(27,45,91,0.5);
  margin: 0;
}
.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(27,45,91,0.14);
}
.powered-by-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(27,45,91,0.58);
}
.powered-by-logo {
  display: block;
  width: min(100%, 260px);
  max-width: 260px;
  height: auto;
  margin: 0 auto 14px;
}
.powered-by-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.powered-by-dba {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(27,45,91,0.72);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1080px) {
  .trust-divider { display: none; }
  .trust-bar-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .trust-item {
    flex: 0 0 auto;
    min-width: 140px;
  }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 18px;
    overflow: visible;
    padding-bottom: 0;
  }
  .trust-item { min-width: 0; }
  .trust-number, .trust-label { white-space: normal; }
}

@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-image { order: 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: 44px;
    align-items: center;
    margin-left: auto;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.2s;
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a { display: block !important; color: var(--white); }
  .nav-links.open .btn-outline { border-color: var(--white); color: var(--white); }
  .steps-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .hero-logo-wrap {
    top: 80px;
    left: 16px;
    width: 144px;
  }
  .hero-logo { opacity: 0.82; }
  .hero-content { padding: 150px 20px 60px 20px; }
  .image-break-logo-wrap {
    top: 12px;
    left: 12px;
    width: 120px;
  }
  .placeholder-image { min-height: 200px; padding: 40px 20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 15px; }
  .hero-content { padding: 48px 16px; }
  .btn { padding: 14px 20px; font-size: 14px; }
}

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    flex: 1 1 auto;
    max-width: 520px;
  }
  .footer-logo-wrap { justify-content: center; }
  .powered-by {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
    margin: 0;
    padding-top: 0;
    border-top: none;
  }
}
