/* Milo Freight Services Inc - site styles */

:root {
  --navy:        #0e1b2c;
  --navy-2:      #16283f;
  --slate:       #43536b;
  --muted:       #6b7a90;
  --line:        #dde3ec;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;
  --amber:       #e8811a;
  --amber-dark:  #c66a0c;
  --green:       #1f7a4d;
  --white:       #ffffff;
  --radius:      10px;
  --wrap:        1140px;
  --shadow:      0 1px 2px rgba(14,27,44,.06), 0 8px 24px rgba(14,27,44,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: .8em;
}

.lead { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.nav a:hover { color: var(--amber-dark); text-decoration: none; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-phone:hover { background: var(--navy-2); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(232,129,26,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0b1523 100%);
  color: #cfd8e4;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lead { color: #b9c5d6; font-size: 1.2rem; }

.hero-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}
.hero-ids span {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: #dbe4f0;
  letter-spacing: .02em;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-dark); text-decoration: none; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--white); padding: 30px 24px; text-align: center; }
.stat-num { font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat-num .unit { font-size: 1.1rem; color: var(--amber-dark); }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 0; font-size: .98rem; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(232,129,26,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--amber-dark); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: rgba(31,122,77,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- safety table ---------- */

.safety-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.safety-table th, .safety-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.safety-table th { color: var(--navy); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.safety-table td:last-child, .safety-table th:last-child { text-align: right; }
.safety-table .ours { font-weight: 800; color: var(--green); }
.table-scroll { overflow-x: auto; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.info-block { margin-bottom: 28px; }
.info-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5em; }
.info-block p, .info-block address { margin: 0; font-style: normal; color: var(--navy); font-weight: 600; font-size: 1.05rem; line-height: 1.55; }

form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: 7px; }
label .req { color: var(--amber-dark); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: .98rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,129,26,.15);
}
textarea { resize: vertical; min-height: 130px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 22px;
}
.consent input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--amber); }
.consent label { font-weight: 400; font-size: .87rem; color: var(--slate); margin: 0; line-height: 1.55; }
.consent label strong { color: var(--navy); }

/* off-canvas honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(31,122,77,.1); color: #17603c; border: 1px solid rgba(31,122,77,.3); }
.form-status.err { background: rgba(200,50,40,.08); color: #a02b22; border: 1px solid rgba(200,50,40,.28); }

button[type="submit"] { width: 100%; }
button[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #93a3b8; padding: 60px 0 28px; font-size: .93rem; }
.site-footer h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1.1em; }
.site-footer a { color: #b9c5d6; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: #7c8ca3; }
.footer-ids { margin-top: 18px; color: #7c8ca3; font-size: .88rem; line-height: 1.9; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .87rem;
  color: #7c8ca3;
}

/* ---------- legal pages ---------- */

.legal { max-width: 78ch; padding: 64px 0 84px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.8em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.4em; }
.legal .callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 1.8em 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-grid, .grid-2 { gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-phone { margin-top: 14px; justify-content: center; border-bottom: none; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
