/* =============================================================
   Dawns Trucking — shared styles
   Palette: steel navy + hi-vis safety orange on cool light grey.
   Light default on :root; dark override gated on [data-theme="dark"].
   ============================================================= */

:root {
  /* Brand / structural */
  --navy:        #1C2B3A;   /* header, footer, headings, primary buttons */
  --navy-deep:   #131E29;   /* hero overlay depth (also dark ground)     */
  --orange:      #E4671C;   /* CTA fills, rules, marks, large display     */
  --orange-hover:#F07C33;   /* lighter tint for primary-button hover (dark label stays ≥6:1) */
  --orange-text: #B4500F;   /* small orange TEXT on light (≈5.2:1)        */
  /* Dark label that sits ON an --orange fill (buttons, skip-link).
     white on #E4671C is only 3.36:1 — fails AA. #161C22 on #E4671C is 5.11:1.
     NEVER remapped between themes (like --on-brand). */
  --on-orange:   #161C22;
  --amber:       #E7A94A;   /* sparing: "since 1987" mark / status dot    */
  --amber-text:  #6B4A0C;   /* amber text on light (≈ readable)           */

  /* Grounds & surfaces (LIGHT) */
  --ground:      #F2F4F6;   /* page background            */
  --surface:     #FFFFFF;   /* cards / panels             */
  --line:        #DFE3E7;   /* hairline borders / bands   */

  /* Text (LIGHT) */
  --ink:         #161C22;   /* body text (~15:1)          */
  --muted:       #586470;   /* secondary text             */

  /* Text that sits ON the brand navy (header/hero/footer/buttons).
     NEVER remapped between themes — stays near-white always. */
  --on-brand:    #F2F4F6;
  --on-brand-muted: #B9C2CC;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(19,30,41,.08), 0 2px 8px rgba(19,30,41,.06);
  --shadow-md: 0 4px 16px rgba(19,30,41,.12);

  --radius: 10px;
  --maxw: 1120px;
  --pad: clamp(16px, 4vw, 32px);

  --font-head: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --ground:  #131E29;
  --surface: #2A3947;   /* verified ≈1.42:1 vs #131E29 ground (guard #2) */
  --line:    #3A4A58;

  --ink:     #E8EAEC;
  --muted:   #98A0A8;

  --navy:    #182430;   /* header/footer sit slightly darker than surface */

  --orange-text: #F0895A;  /* lifted orange for small text on dark        */
  --amber-text:  #E7A94A;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--orange-text); }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(40px, 7vw, 84px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange-text);
  margin: 0 0 .6rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.tabular { font-variant-numeric: tabular-nums; font-weight: 600; }

/* [TO CONFIRM] chip — visible, unmistakable */
.confirm {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68em;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--amber-text);
  background: color-mix(in srgb, var(--amber) 30%, transparent);
  border: 1px dashed var(--amber);
  border-radius: 6px;
  padding: .05em .45em;
  vertical-align: middle;
  white-space: nowrap;
}
[data-theme="dark"] .confirm { color: var(--amber); }
/* The hero, header and footer are brand-navy in BOTH themes — a chip there must use
   the bright --amber, never the dark-brown --amber-text (which is invisible on navy
   in light mode). */
.hero .confirm,
.site-header .confirm,
.site-footer .confirm { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .7em 1.3em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Primary = hi-vis orange fill, dark label (white on #E4671C is 3.36:1 — fails AA;
   #161C22 on #E4671C is 5.11:1). Hover lifts to a lighter tint, dark label ≈6.2:1. */
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hover); }
/* Secondary = navy outline on light grounds */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); }
/* On-navy contexts (hero/header/footer) */
.btn--on-brand { background: transparent; color: var(--on-brand); border-color: rgba(242,244,246,.5); }
.btn--on-brand:hover { border-color: var(--on-brand); background: rgba(242,244,246,.08); }
.btn--block { width: 100%; }

/* ---------- header / nav (guard #3: no wrap, no h-scroll) ---------- */
.site-header {
  background: var(--navy);
  color: var(--on-brand);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  text-decoration: none;
  color: var(--on-brand);
  flex: 0 1 auto;      /* may shrink, never forces scroll */
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: flex;              /* guard #6: fixed-size icon wrapper is flex */
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  background: var(--orange);
  border-radius: 5px;
}
.brand__mark svg { width: 16px; height: 16px; display: block; }
.brand__word {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.12rem;
  white-space: nowrap;
  color: var(--on-brand);
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--on-brand);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  white-space: nowrap;      /* guard #3 */
  padding: .4em 0;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--amber); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-btn {
  display: flex;                /* guard #6 */
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--on-brand);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--on-brand); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-cta { display: inline-flex; }        /* the "Request a quote" button */
.header-call { display: inline-flex; }        /* the tel: link */

/* burger — hidden until breakpoint */
.nav-toggle { display: none; }

/* ---------- off-canvas nav below breakpoint ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    flex: 0 0 auto;
    background: transparent;
    color: var(--on-brand);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 70vh; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 16px;
  }
  .main-nav li { border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--on-brand); }
  /* keep the header call link, move quote button into the drawer footer via markup */
  .header-cta.header-cta--desktop { display: none; }
}
@media (min-width: 901px) {
  .header-cta--drawer { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-brand);
  position: relative;
  overflow: hidden;
}
.hero__inner { padding-block: clamp(48px, 9vw, 104px); position: relative; z-index: 1; }
.hero h1 { color: var(--on-brand); max-width: 20ch; }
.hero p { color: var(--on-brand-muted); font-size: 1.15rem; max-width: 54ch; }
.hero__accent { color: var(--amber); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__rule { height: 4px; width: 72px; background: var(--orange); border-radius: 4px; margin-bottom: 24px; }

/* image placeholder block (no real photos exist — see NOTES.md) */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(228,103,28,.06) 14px, rgba(228,103,28,.06) 28px),
    var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .85rem;
  padding: 24px;
  min-height: 200px;
}
.img-ph span { max-width: 40ch; }
.img-ph strong { color: var(--orange-text); font-family: var(--font-head); display: block; margin-bottom: .3em; letter-spacing: .04em; }

/* ---------- trust strip ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 30px;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: rgba(242,244,246,.08);
  border: 1px solid rgba(242,244,246,.16);
  color: var(--on-brand);
  border-radius: 999px;
  padding: .45em .9em;
  font-size: .9rem;
}
.trust__item svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--amber); }
.trust__item .confirm { color: var(--amber); background: transparent; border-color: rgba(231,169,74,.7); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card__mark {
  display: flex;                /* guard #6 */
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  color: var(--orange-text);
  margin-bottom: 14px;
}
.card__mark svg { width: 24px; height: 24px; }
.card__link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--orange-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.card__link:hover { text-decoration: underline; }

/* ---------- info / NAP ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.info-block h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .4em; }
.info-block p { margin: 0; }
.info-block a { color: var(--orange-text); text-decoration: none; font-weight: 600; }
.info-block a:hover { text-decoration: underline; }

address { font-style: normal; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; display: block; }

/* ---------- checklist (compliance) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.checklist__ic {
  display: flex;                /* guard #6 */
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: color-mix(in srgb, var(--orange) 16%, transparent);
  color: var(--orange-text);
  margin-top: 2px;
}
.checklist__ic svg { width: 15px; height: 15px; }
.checklist strong { font-family: var(--font-head); font-weight: 600; }

/* callout band */
.callout {
  background: var(--navy);
  color: var(--on-brand);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.callout h2 { color: var(--on-brand); }
.callout p { color: var(--on-brand-muted); max-width: 56ch; margin-inline: auto; }
.callout .hero__cta { justify-content: center; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--orange-text); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7em .8em;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; }
.radio-row label { display: inline-flex; align-items: center; gap: .5em; font-weight: 400; }
.radio-row input { width: auto; }
.form-note { font-size: .9rem; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
legend { font-weight: 600; padding-inline: 6px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-brand);
  padding-block: 48px 28px;
  border-top: 3px solid var(--orange);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer h4 { color: var(--on-brand); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer p, .site-footer address { color: var(--on-brand-muted); margin: 0 0 .5rem; }
/* guard #1: footer plain links stay near-white in BOTH themes */
.site-footer a:not([class]) { color: var(--on-brand); text-decoration: none; }
.site-footer a:not([class]):hover { text-decoration: underline; }
[data-theme="dark"] .site-footer a:not([class]) { color: var(--on-brand); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--on-brand-muted);
}

/* generic dark-mode plain-link recolor, scoped so it can't hit buttons/cards (guard #1) */
[data-theme="dark"] a:not([class]) { color: var(--orange-text); }
/* ...but the primary nav is classless <a>s too — re-set it (guard #1, same as the footer)
   so the generic recolor can't kill the near-white links or the amber current-page mark */
[data-theme="dark"] .main-nav a:not([class]) { color: var(--on-brand); }
[data-theme="dark"] .main-nav a:not([class]):hover,
[data-theme="dark"] .main-nav a:not([class])[aria-current="page"] { color: var(--amber); }

/* utility */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px;
  z-index: 100; transition: top .15s ease; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; }

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
}
