/* movingdirt.com — hand-written (started from the freightbg.com stylesheet) styles, no framework, no web fonts.
   Mobile first: base rules are for phones, @media blocks add wider layouts. */

:root {
  /* MovingDirt.com: charcoal and safety orange, an industrial look. */
  --char-900: #1c1917;
  --char-800: #2b2724;
  --char-700: #3d3733;
  --char-600: #8a3a0a;     /* links and focus rings: dark orange, readable on white */
  --char-50: #f4f1ec;
  --orange: #ff6a13;
  --orange-dark: #d9560a;
  --orange-text: #a8440a;  /* orange dark enough for small text on white */
  --orange-50: #fff1e6;
  --yellow: #ffc633;
  --ink: #1c1917;
  --body: #3d3733;
  --muted: #6b6560;
  --line: #d6cfc4;
  --line-soft: #e3ddd3;
  --slate-100: #f4f1ec;
  --slate-50: #faf8f4;
  --green: #2f7d4f;
  --on-dark: #d9d3ca;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 4px 16px rgba(28, 25, 23, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  color: var(--char-900);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--char-600); text-underline-offset: 0.15em; }
a:hover { color: var(--char-900); }

:focus-visible {
  outline: 3px solid var(--char-600);
  outline-offset: 2px;
}

:target { scroll-margin-top: 1rem; }

strong { color: var(--ink); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--char-900);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--char-900);
  text-decoration: none;
}
.brand:hover { color: var(--char-900); }

.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-mark rect { fill: var(--char-900); }
.brand-mark path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; }
.brand-mark circle { fill: var(--orange); stroke: var(--char-900); stroke-width: 1.5; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-mark rect { fill: var(--char-700); }
.brand-light .brand-mark circle { stroke: var(--char-700); }

.main-nav { order: 3; width: 100%; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  color: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover { background: var(--slate-100); color: var(--char-900); }
.main-nav a[aria-current="page"] { background: var(--char-50); color: var(--char-900); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  font-weight: 700;
  color: var(--char-900);
  text-decoration: none;
  white-space: nowrap;
}

/* Small phones: keep the name and the quote button on one row. */
@media (max-width: 479px) {
  .header-bar { column-gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .brand-sub { display: none; }
  .header-phone { display: none; }
  .header-actions .btn-small { padding: 0.45rem 0.75rem; }
  .main-nav a { padding: 0.35rem 0.6rem; }
}

@media (min-width: 1024px) {
  .main-nav { order: 0; width: auto; margin-left: auto; }
  .main-nav ul { flex-wrap: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--orange); color: var(--char-900); }
.btn-primary:hover { background: var(--orange-dark); color: var(--char-900); }

.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-dark { background: var(--char-900); color: #fff; }
.btn-dark:hover { background: var(--char-700); color: #fff; }

.btn-dark-outline { border-color: var(--char-900); color: var(--char-900); }
.btn-dark-outline:hover { background: var(--char-900); color: #fff; }

.btn-small { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.eyebrow-light { color: var(--orange); }

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  vertical-align: 0.1em;
}

.cat-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cat-brokerage { background: var(--char-50); color: var(--char-700); }
.cat-construction { background: var(--orange-50); color: #8a3d06; }

.read-more {
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}
.check-list li::before,
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.3em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- Sections and grids ---------- */
.section { padding: 3.5rem 0; }

@media (min-width: 900px) {
  .section { padding: 5rem 0; }
}

.bg-slate { background: var(--slate-50); }

.bg-navy { background: var(--char-900); color: var(--on-dark); }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy :focus-visible { outline-color: var(--orange); }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head > p:last-child { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; }
.align-start { align-items: start; }

@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 900px) {
  .grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }

.card-title { font-size: 1.25rem; }

.card h3 a { color: var(--char-900); text-decoration: none; }
.card h3 a:hover { color: var(--char-600); text-decoration: underline; }

.card-feature { border-top: 4px solid var(--orange); }

/* ---------- Home: hero ---------- */
.hero {
  background: radial-gradient(circle at 85% 0%, var(--char-700) 0%, var(--char-900) 60%);
  color: var(--on-dark);
  padding: 3.5rem 0;
}
.hero h1 { color: #fff; }
.hero :focus-visible { outline-color: var(--orange); }

.accent { color: var(--orange); }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 900px) {
  .hero { padding: 5.5rem 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; }
}

.hero-sub { font-size: 1.1rem; max-width: 40rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.hero-trust li { position: relative; padding-left: 1.5rem; }
.hero-trust li::before { border-color: #34d399; top: 0.25em; }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
}

.hero-card-title { color: #fff; font-size: 1.2rem; }

.stat-list { margin: 0; }
.stat-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-list div:last-child { border-bottom: 0; }
.stat-list dt { margin: 0; }
.stat-list dd { margin: 0; font-weight: 800; color: var(--orange); text-align: right; }

.stat-list-light div { border-bottom-color: var(--line-soft); }
.stat-list-light dt { color: var(--muted); }
.stat-list-light dd { color: var(--char-900); }

.trust-bar { background: var(--char-800); color: #fff; }
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.steps li > :last-child { margin-bottom: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--char-900);
  font-weight: 800;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ---------- MovingDirt.com panel ---------- */
.platform-panel {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--char-900), var(--char-700));
  color: var(--on-dark);
}
.platform-panel h2 { color: #fff; }
.platform-panel :focus-visible { outline-color: var(--orange); }

.platform-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--char-900);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  align-self: center;
}
.platform-facts div {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.platform-facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.platform-facts dd { margin: 0.25rem 0 0; color: #fff; font-weight: 700; }

@media (min-width: 900px) {
  .platform-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 3rem; gap: 3rem; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.stats-strip strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--char-900);
}

@media (min-width: 768px) {
  .stats-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Call-to-action bands ---------- */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--orange);
  color: var(--char-900);
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: var(--char-900); }

.cta-band-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}

@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
  .cta-band .btn { flex: none; }
}

/* ---------- Inner page hero and breadcrumbs ---------- */
.page-hero {
  background: radial-gradient(circle at 90% 0%, var(--char-700) 0%, var(--char-900) 65%);
  color: var(--on-dark);
  padding: 2.5rem 0 3rem;
}
.page-hero h1 { color: #fff; max-width: 52rem; }
.page-hero p { max-width: 46rem; font-size: 1.08rem; }
.page-hero a:not(.btn) { color: #fff; }
.page-hero :focus-visible { outline-color: var(--orange); }

.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center p { margin-left: auto; margin-right: auto; }
.page-hero-center .button-row { justify-content: center; }

@media (min-width: 900px) {
  .page-hero { padding: 3.5rem 0 4rem; }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin: 0 0.65em 0.1em 0.45em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.page-hero .breadcrumb a { color: var(--on-dark); }
.page-hero .breadcrumb [aria-current="page"] { color: #fff; }

/* ---------- Articles ---------- */
.post-hero .cat-badge { margin-bottom: 1rem; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.92rem !important;
  color: var(--on-dark);
}

.article-single { max-width: 820px; }

.article-body { font-size: 1.05rem; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  margin-top: 2.25rem;
}
.article-body ul, .article-body ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body .tag-row { padding-left: 0; }

.callout-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--orange-50);
}
.callout-box h2, .callout-box h3 { font-size: 1.2rem; margin-top: 0; }
.callout-box > :last-child { margin-bottom: 0; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.tag-row li {
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--slate-50);
}
.author-box p { margin: 0; font-size: 0.92rem; }

.author-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--char-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.author-name { font-weight: 700; color: var(--ink); }

/* ---------- Shipper's Guide ---------- */
.article-wrap { display: grid; gap: 2rem; }

.toc-box {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--slate-50);
}
.toc-box h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc-box ol { margin: 0; padding-left: 1.25rem; }
.toc-box li { margin-bottom: 0.4rem; font-size: 0.95rem; }

@media (min-width: 1024px) {
  .article-wrap { grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .toc-box { position: sticky; top: 1rem; }
}

/* ---------- Blog index ---------- */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.blog-filter a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.blog-filter a:hover { border-color: var(--char-600); color: var(--char-900); }
.blog-filter a[aria-current="page"] { background: var(--char-900); border-color: var(--char-900); color: #fff; }

.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.blog-grid + .blog-grid { margin-top: 1.25rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--body);
  text-decoration: none;
}
.blog-card:hover { border-color: var(--char-600); color: var(--body); }
.blog-card h2 { font-size: 1.1rem; }
.blog-card:hover h2 { text-decoration: underline; }
.blog-card p { font-size: 0.95rem; }
.blog-card-meta { margin: auto 0 0; color: var(--muted); font-size: 0.85rem !important; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.data-table thead th { background: var(--char-900); color: #fff; }
.data-table tbody th { color: var(--char-900); background: var(--slate-50); }

.table-note { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 479px) {
  .data-table { font-size: 0.88rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.5rem; }
}

/* ---------- FAQ ---------- */
.faq-category {
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--orange);
  font-size: 1.3rem;
}
.faq-list > .faq-category:first-child { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--line-soft); }

.faq-q {
  position: relative;
  display: block;
  padding: 1rem 2.5rem 1rem 0;
  color: var(--char-900);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--char-600);
  border-bottom: 2px solid var(--char-600);
  transform: rotate(45deg);
}
.faq-item[open] > .faq-q::after { transform: rotate(225deg); top: 1.6rem; }

.faq-a { padding: 0 0 1rem; }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- About ---------- */
.snapshot h3 { margin-bottom: 0.5rem; }

.compliance-box {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--char-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--slate-50);
  font-size: 0.95rem;
}

/* ---------- Forms and contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; }
}

.form-panel {
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-panel { padding: 2rem; }
}

.form-row { display: grid; gap: 0 1rem; }

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 7rem; }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--char-600);
  outline-offset: 1px;
  border-color: var(--char-600);
}

/* The honeypot field: invisible to people, still in the form for bots to fill in. */
.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; margin: 0.5rem 0 1rem; }

.form-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.88rem; }

.form-errors {
  margin: 0 0 1.5rem;
  padding: 1rem 1rem 1rem 2.25rem;
  border-left: 4px solid #b91c1c;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 600;
}
.form-errors:empty { display: none; }
.form-errors li + li { margin-top: 0.35rem; }

.info-cards { display: grid; gap: 1rem; }

.info-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--slate-50);
}
.info-card h2 {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.info-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--char-900);
  color: var(--on-dark);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--orange); }

.footer-grid { display: grid; gap: 2rem; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

.footer-brand p { margin-top: 1rem; max-width: 24rem; }

.footer-heading {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

.compliance { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* ======================================================================
   MovingDirt.com additions
   ====================================================================== */
h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.article-body h2, .faq-q, .card h3, .info-card h2 { text-transform: none; letter-spacing: 0; }

.hero { background: radial-gradient(circle at 85% 0%, var(--char-700) 0%, var(--char-900) 65%); }
.accent { color: var(--orange); }
.tagline { color: var(--yellow); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }

/* Diagonal hazard stripe under the header and above the footer. */
.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--orange) 0 14px, var(--char-900) 14px 28px);
}

.brand-mark rect { fill: var(--orange); }
.brand-mark path { stroke: var(--char-900); }
.brand-mark circle { fill: var(--char-900); stroke: var(--orange); }
.brand-light .brand-mark rect { fill: var(--orange); }
.brand-light .brand-mark circle { fill: var(--char-900); }

.broker-line {
  margin: 0;
  padding: 0.4rem 0;
  background: var(--char-900);
  color: var(--on-dark);
  font-size: 0.8rem;
  text-align: center;
}

/* Equipment classes on the home page and Find Trucks. */
.truck-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.truck-card {
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
}
.truck-card h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.truck-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.truck-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 0.75rem; border-radius: calc(var(--radius) / 2); background: var(--line-soft); }
.truck-icon { display: block; width: 4.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.truck-icon path, .truck-icon rect { fill: none; stroke: var(--char-900); stroke-width: 2; stroke-linejoin: round; }
.truck-icon .bed { fill: var(--orange); stroke: var(--char-900); }
.truck-icon circle { fill: var(--char-900); }

/* Consent checkboxes on the signup forms. */
.check-group { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.check-group input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--orange-dark); }
.check-group label { color: var(--body); font-size: 0.92rem; font-weight: 400; }
.form-section-title { margin: 1.5rem 0 0.75rem; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.doc-note { padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--slate-50); font-size: 0.92rem; }
.doc-note p { margin: 0; }
.doc-note p + p { margin-top: 0.4rem; }

/* Numbered steps with a heading and a tag (How It Works). */
.step-tag { display: inline-block; margin-left: 0.4rem; color: var(--orange-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font); }

/* Plain checklist (Verification Checklist). */
.box-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.box-list li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line-soft); }
.box-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.75rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--char-700);
  border-radius: 3px;
}

/* Rate calculator. */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .calc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.calc fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
.calc legend { margin-bottom: 0.5rem; color: var(--ink); font-weight: 700; }
.calc .choice { display: inline-flex; gap: 0.4rem; align-items: center; margin-right: 1.25rem; }
.calc-result { padding: 1.5rem; border-radius: var(--radius); background: var(--char-900); color: var(--on-dark); }
.calc-result output { display: block; color: #fff; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.calc-result p { margin: 0.25rem 0 1rem; }
.calc-result .weekly { color: var(--yellow); font-size: 1.2rem; font-weight: 700; }

/* Printable daily haul ticket. */
.ticket { padding: 1.25rem; border: 2px solid var(--char-900); background: #fff; color: #000; font-size: 0.92rem; }
.ticket h2 { margin: 0; font-size: 1.4rem; }
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #000; }
.ticket-head p { margin: 0; }
.ticket-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1.5rem; margin: 0.75rem 0; }
.ticket-fields p { margin: 0; padding: 0.6rem 0 0.2rem; border-bottom: 1px solid #000; }
.ticket table { width: 100%; margin: 0.75rem 0; border-collapse: collapse; }
.ticket th, .ticket td { height: 2rem; padding: 0.2rem 0.4rem; border: 1px solid #000; text-align: left; font-size: 0.85rem; }
.ticket th { background: #eee; }
.ticket-warning { margin: 0.75rem 0 0; font-weight: 800; text-align: center; text-transform: uppercase; }
.print-only { display: none; }

@media print {
  .site-header, .site-footer, .hazard-stripe, .broker-line, .no-print, .skip-link, .page-hero { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .section { padding: 0; }
  .ticket { border: 0; padding: 0; font-size: 10pt; }
}

/* ---- Accounts and staff pages (served by the Worker inside /app-shell) ---- */
.app-hero { padding-top: 2rem; padding-bottom: 2rem; }
.app-section { padding-top: 2rem; }
.app-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.5rem; padding: 0 0 0.75rem; border-bottom: 2px solid var(--char-900); list-style: none; }
.app-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.app-narrow { max-width: 34rem; }
.app-notice { margin: 0 0 1.25rem; padding: 0.8rem 1rem; border-left: 4px solid var(--orange); background: var(--slate-50); }
.app-notice-ok { border-left-color: var(--green); }
.status-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--slate-50); border: 1px solid var(--char-700); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.75rem; }
.inline-form select { padding: 0.4rem 0.5rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--char-600); text-decoration: underline; font: inherit; cursor: pointer; }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 1.5rem; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; gap: 1rem; margin: 1rem 0; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Haul ticket: one row per load with its plant and job times; scrolls sideways on phones. */
.ticket-loads { overflow-x: auto; }
.ticket-loads table { min-width: 44rem; }
.ticket caption { caption-side: bottom; padding-top: 0.3rem; text-align: left; font-size: 0.8rem; }
/* Verification checklist: real tick boxes in place of the drawn squares. */
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; padding-left: 0.1rem; }
.check-list li::before { content: none; }
.check-list input[type="checkbox"] { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--green); }
.check-list input:checked + label { text-decoration: line-through; color: var(--char-700); }
@media print { .ticket-loads { overflow: visible; } .ticket-loads table { min-width: 0; } }
/* Weight Limits: state picker. */
.state-picker { max-width: 24rem; margin: 1rem 0; }
.state-picker select { width: 100%; }
.state-result { margin-top: 0.9rem; padding: 1rem 1.1rem; border-left: 4px solid var(--orange); background: var(--slate-50); }
.state-result h3 { margin-top: 0; }
.state-list { margin: 1rem 0 1.5rem; }
.state-list ul { columns: 2 16rem; }

/* Animated header logo (our own, CSS only): the truck drives in, tips its bed from the rear
   hinge, a little dirt pours out, and the bed comes back down. Plays once per page load;
   people who ask for less motion get the still logo. */
.bm-dirt circle { fill: #b08a5e; stroke: none; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .brand-anim .bm-truck { animation: bm-drive 1.1s cubic-bezier(.2,.7,.3,1) both; }
  .brand-anim .bm-bed { transform-box: fill-box; transform-origin: 0 100%; animation: bm-tip 1.8s ease-in-out 1.2s both; }
  .brand-anim .bm-d1 { animation: bm-pour 0.9s ease-in 1.75s both; }
  .brand-anim .bm-d2 { animation: bm-pour 0.9s ease-in 1.95s both; }
  .brand-anim .bm-d3 { animation: bm-pour 0.9s ease-in 2.15s both; }
}
@keyframes bm-drive { from { transform: translateX(-26px); } to { transform: translateX(0); } }
@keyframes bm-tip { 0%, 100% { transform: rotate(0); } 35%, 65% { transform: rotate(-32deg); } }
@keyframes bm-pour { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Signup forms: progress bar, CSS only (the form pages run no script of ours). One segment
   per required field; a segment fills once its field is valid. */
.form-progress { margin: 0 0 1.25rem; }
.form-progress p { margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--muted); }
.form-progress ol { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.form-progress li { flex: 1; height: 0.5rem; border-radius: 2px; background: var(--line-soft, #ddd); transition: background-color 0.2s; }
.form-progress-done { display: none; }
form:has(#c-business:valid) .fp-c-business, form:has(#c-usdot:valid) .fp-c-usdot, form:has(#c-contact:valid) .fp-c-contact, form:has(#c-phone:valid) .fp-c-phone, form:has(#c-email:valid) .fp-c-email, form:has(#c-years:valid) .fp-c-years, form:has(#c-equipment:valid) .fp-c-equipment, form:has(#c-trucks:valid) .fp-c-trucks, form:has(#c-area:valid) .fp-c-area, form:has(#c-attest1:valid) .fp-c-attest1, form:has(#c-attest-fee:valid) .fp-c-attest-fee, form:has(#c-attest2:valid) .fp-c-attest2 { background: var(--green); }
form:has(#c-business:valid):has(#c-usdot:valid):has(#c-contact:valid):has(#c-phone:valid):has(#c-email:valid):has(#c-years:valid):has(#c-equipment:valid):has(#c-trucks:valid):has(#c-area:valid):has(#c-attest1:valid):has(#c-attest-fee:valid):has(#c-attest2:valid) .form-progress-todo { display: none; }
form:has(#c-business:valid):has(#c-usdot:valid):has(#c-contact:valid):has(#c-phone:valid):has(#c-email:valid):has(#c-years:valid):has(#c-equipment:valid):has(#c-trucks:valid):has(#c-area:valid):has(#c-attest1:valid):has(#c-attest-fee:valid):has(#c-attest2:valid) .form-progress-done { display: inline; }
form:has(#k-business:valid) .fp-k-business, form:has(#k-ein:valid) .fp-k-ein, form:has(#k-contact:valid) .fp-k-contact, form:has(#k-phone:valid) .fp-k-phone, form:has(#k-email:valid) .fp-k-email, form:has(#k-address:valid) .fp-k-address, form:has(#k-attest1:valid) .fp-k-attest1, form:has(#k-attest-fee:valid) .fp-k-attest-fee, form:has(#k-attest2:valid) .fp-k-attest2 { background: var(--green); }
form:has(#k-business:valid):has(#k-ein:valid):has(#k-contact:valid):has(#k-phone:valid):has(#k-email:valid):has(#k-address:valid):has(#k-attest1:valid):has(#k-attest-fee:valid):has(#k-attest2:valid) .form-progress-todo { display: none; }
form:has(#k-business:valid):has(#k-ein:valid):has(#k-contact:valid):has(#k-phone:valid):has(#k-email:valid):has(#k-address:valid):has(#k-attest1:valid):has(#k-attest-fee:valid):has(#k-attest2:valid) .form-progress-done { display: inline; }
/* Find Trucks: the 4-step helper. */
.helper { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border: 2px solid var(--char-900); border-radius: 6px; background: var(--slate-50); }
.helper summary { font-weight: 700; cursor: pointer; }
.helper-form fieldset { margin: 1rem 0 0; padding: 0; border: 0; }
.helper-form legend { margin-bottom: 0.4rem; font-weight: 700; }
.helper-choice { display: inline-flex; gap: 0.35rem; align-items: center; margin: 0 1rem 0.4rem 0; }
.helper-hint { padding: 0.6rem 0.9rem; border-left: 4px solid var(--orange); background: var(--slate-50); }
/* Find Trucks unit page: rate extras and the six-week calendar. */
.rate-extras { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--line-soft); border-radius: 6px; }
.rate-extras legend { padding: 0 0.3rem; font-weight: 700; }
.unit-calendar { width: 100%; max-width: 42rem; border-collapse: collapse; margin: 0 0 1.5rem; table-layout: fixed; }
.unit-calendar caption { caption-side: bottom; padding-top: 0.4rem; text-align: left; font-size: 0.85rem; color: var(--muted); }
.unit-calendar th, .unit-calendar td { padding: 0.35rem; border: 1px solid var(--line-soft); font-size: 0.78rem; vertical-align: top; }
.unit-calendar td span { display: block; font-weight: 700; }
.unit-calendar .cal-open { background: #eef7f1; }
.unit-calendar .cal-busy { background: #f3efe9; color: var(--muted); }
