/* Direct CDL Staffing */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee3;
  --ink: #1d1b18;
  --muted: #645d53;
  --rule: #e2dacb;
  --red: #b3261e;
  --red-dark: #8f1d17;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); display: flex; align-items: baseline; gap: 14px; }
h3 { font-size: 1.15rem; font-weight: 500; margin: 1.4em 0 0.3em; }
p { margin: 0 0 1em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.page { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.masthead { border-top: 6px solid var(--red); border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.mark svg { flex: none; }
.mark:hover { color: var(--ink); }
.masthead__mail { font-weight: 600; font-size: 0.98rem; }

.intro { padding: 72px 0 40px; }
.label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 1em; }
.intro__lead { font-size: 1.22rem; color: var(--muted); margin-bottom: 1.6em; }

.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; padding: 0.85em 1.5em; border-radius: 4px; transition: background-color 0.15s; }
.btn:hover { background: var(--red-dark); color: #fff; }

.part { padding: 44px 0; border-top: 1px solid var(--rule); }
.part__num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 1.05rem; transform: translateY(-3px); }

.plain-steps { margin: 0; padding-left: 1.4em; }
.plain-steps li { margin-bottom: 0.8em; padding-left: 0.3em; }
.plain-steps li::marker { color: var(--red); font-family: "Roboto Slab", Georgia, serif; font-weight: 700; }

.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 0.55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.aside { font-style: italic; color: var(--muted); margin: 0; }

.terms { border: 2px solid var(--ink); background: #fff; }
.terms__row { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--rule); }
.terms__row:first-child { border-top: 0; }
.terms__key { padding: 16px 18px; background: var(--paper-2); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.terms__val { padding: 16px 18px; }
.terms__row:first-child .terms__val { font-family: "Roboto Slab", Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.35; }

.qa h3:first-child { margin-top: 0; }
.qa p { color: var(--muted); }

.part--contact { padding-bottom: 72px; }
.bigmail { font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.3rem, 4.2vw, 2rem); font-weight: 700; margin: 0.6em 0 0; overflow-wrap: anywhere; }

.colophon { border-top: 1px solid var(--rule); background: var(--paper-2); color: var(--muted); font-size: 0.92rem; padding: 22px 0; }
.colophon p { margin: 0; }

.lost { padding: 96px 0; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .mark { font-size: 1.1rem; gap: 10px; }
  .mark svg { width: 28px; height: 28px; }
  .intro { padding: 48px 0 32px; }
  .part { padding: 36px 0; }
  .terms__row { grid-template-columns: 1fr; }
  .terms__key { padding: 10px 16px 6px; font-size: 0.8rem; }
  .terms__val { padding: 4px 16px 14px; background: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Contact form: plain, letter-like */
[hidden] { display: none !important; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.intro__call { font-weight: 600; }
.letter { margin: 28px 0 8px; border: 2px solid var(--ink); background: #fff; padding: 24px; }
.letter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.letter__field { display: block; margin: 0 0 18px; min-width: 0; }
.letter__field > span { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.letter__field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.letter input, .letter textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; padding: 8px 2px;
}
.letter textarea { resize: vertical; min-height: 120px; border: 2px solid var(--rule); padding: 10px; }
.letter input:focus, .letter textarea:focus { outline: none; border-color: var(--red); }
.letter.was-checked :invalid { border-color: var(--red); }
.letter__error { color: var(--red); font-weight: 600; margin: 0 0 12px; }
.letter__send { font: inherit; font-weight: 600; border: 0; cursor: pointer; min-width: 160px; }
.letter__send:disabled { opacity: 0.7; cursor: wait; }
.letter__done { outline: none; margin: 28px 0 8px; border-left: 4px solid var(--red); background: #fff; padding: 18px 20px; }
.letter__done p { margin: 0; }
.bigmail-label { margin: 28px 0 0; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.bigmail-label + .bigmail { margin-top: 0.2em; }
.hp-field, .fm__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Floating contact menu */
.fm { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fm > * { pointer-events: auto; }
.fm__fab {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 13px 20px 13px 16px; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(29, 27, 24, 0.6);
}
.fm__fab:hover { background: var(--red-dark); }
.fm__fab svg { width: 21px; height: 21px; flex: none; }
.fm.is-open .fm__fab { background: var(--ink); }
.fm__panel {
  width: min(370px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-top: 6px solid var(--red);
  box-shadow: 0 24px 50px -20px rgba(29, 27, 24, 0.55); padding: 16px 20px 20px;
}
.fm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.fm__title { margin: 0; font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.25rem; }
.fm__close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.fm__close svg { width: 22px; height: 22px; display: block; }
.fm__close:hover { color: var(--red); }
.fm__item {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); text-decoration: none;
  background: #fff; border: 1px solid var(--rule); padding: 13px 14px; margin-bottom: 8px; cursor: pointer;
}
.fm__item:last-child { margin-bottom: 0; }
.fm__item:hover { border-color: var(--red); color: var(--ink); }
.fm__item svg { width: 21px; height: 21px; flex: none; color: var(--red); margin-top: 2px; }
.fm__item strong { display: block; font-weight: 600; }
.fm__item small { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.45; overflow-wrap: anywhere; }
.fm__back { background: none; border: 0; padding: 0; margin: 0 0 12px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--red); cursor: pointer; }
.fm__field { display: block; margin: 0 0 12px; min-width: 0; }
.fm__field > span { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px; }
.fm__field i { font-style: normal; color: var(--red); }
.fm__field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fm__field input, .fm__field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--rule); border-radius: 0; padding: 9px 10px;
}
.fm__field input:focus, .fm__field select:focus { outline: none; border-color: var(--red); }
.fm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fm__error { color: var(--red); font-weight: 600; font-size: 0.92rem; margin: 0 0 10px; }
.fm__send { width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem; background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 12px; cursor: pointer; }
.fm__send:hover { background: var(--red-dark); }
.fm__send:disabled { opacity: 0.7; cursor: wait; }
.fm__legal { margin: 10px 0 0; font-size: 0.8rem; font-style: italic; color: var(--muted); line-height: 1.45; }
.fm__done p { margin: 0 0 14px; }

@media (max-width: 600px) {
  .letter { padding: 18px 16px; }
  .letter__row { grid-template-columns: 1fr; }
  .fm { right: 12px; bottom: 12px; left: 12px; }
  .fm__panel { width: 100%; max-height: calc(100vh - 90px); }
  .colophon { padding-bottom: 88px; }
}