/* Haulyourtoys.com — mobile-first, no build step.
   Barlow is self-hosted (SIL OFL, licence in fonts/OFL.txt), subset to latin and
   served as woff2. Four weights only: condensed 700/800 for headings and UI,
   semicondensed 400/600 for body. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow SemiCondensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-semicondensed-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow SemiCondensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-semicondensed-600.woff2") format("woff2");
}

/* ============================ THEME ============================
   Light is the default. Dark is applied by data-theme on <html>, set by an
   inline script before paint so there is no flash. The media query below is the
   no-JS fallback and only applies when no explicit choice has been recorded.

   --accent is the brand orange and is used for fills and large bold text.
   --accent-text is a separate, darker orange for small text: #f25c05 on white is
   only 3.5:1, which fails AA for anything under 14px bold. */

:root {
  --bg:           #f6f4f0;
  --surface:      #ffffff;
  --text:         #15181c;
  --text-soft:    #4a5058;
  --text-mute:    #858c95;
  --rule:         #ddd8d0;
  --placeholder:  #e8e3da;
  --note-bg:      #fff6ee;

  --accent:       #f25c05;
  --accent-hover: #d95004;
  --accent-text:  #b8440a;

  /* always-dark regions: contact panel and footer */
  --deep-bg:      #15181c;
  --deep-text:    #ffffff;
  --deep-soft:    #c3c9d1;
  --deep-mute:    #858c95;
  --deep-rule:    #2c323a;
  --deep-panel:   #1d2127;
  --deep-field:   #12151a;
  --deep-border:  #39404a;
  --deep-notice:  #3a2413;
  --deep-noticed: #ffd0b0;

  --shell: 1180px;
  --head: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow SemiCondensed", "Helvetica Neue", Helvetica, Arial, sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:           #0f1216;
  --surface:      #171b21;
  --text:         #e9ecef;
  --text-soft:    #b4bcc5;
  --text-mute:    #868e98;
  --rule:         #2a3039;
  --placeholder:  #20252c;
  --note-bg:      #241a12;

  --accent:       #f25c05;
  --accent-hover: #ff7a33;
  --accent-text:  #ff7a33;

  --deep-bg:      #1b2027;
  --deep-text:    #e9ecef;
  --deep-soft:    #b4bcc5;
  --deep-mute:    #868e98;
  --deep-rule:    #333b45;
  --deep-panel:   #12161b;
  --deep-field:   #0d1014;
  --deep-border:  #3a424d;
  --deep-notice:  #3a2413;
  --deep-noticed: #ffd0b0;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1216;  --surface: #171b21;  --text: #e9ecef;
    --text-soft: #b4bcc5;  --text-mute: #868e98;  --rule: #2a3039;
    --placeholder: #20252c;  --note-bg: #241a12;
    --accent-hover: #ff7a33;  --accent-text: #ff7a33;
    --deep-bg: #1b2027;  --deep-text: #e9ecef;  --deep-soft: #b4bcc5;
    --deep-mute: #868e98;  --deep-rule: #333b45;  --deep-panel: #12161b;
    --deep-field: #0d1014;  --deep-border: #3a424d;
    color-scheme: dark;
  }
}

/* ============================ BASE ============================ */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--text); }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ---------- draft banner. Remove when copy is real. ---------- */
.draft-banner {
  background: #15181c; color: #ffd9c2;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.72rem;
  text-align: center; padding: 8px 16px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }

.logo { display: block; margin-right: auto; line-height: 0; color: var(--text); }
/* No `display` here: `.logo svg` outranks `.logo-full` and would defeat the swap. */
.logo svg { height: auto; }
.logo .logo-full { display: none; width: 300px; }
.logo .logo-mini { display: block; width: 210px; }
@media (min-width: 760px) {
  .logo .logo-full { display: block; }
  .logo .logo-mini { display: none; }
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  padding: 9px 12px; cursor: pointer; color: var(--text);
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.8rem;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.icon-btn svg { width: 17px; height: 17px; display: block; }

/* Only one of the two theme glyphs shows, depending on the active theme. */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
}

.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top:  6px; }

.site-nav { display: none; width: 100%; padding-bottom: 12px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--rule); }
.site-nav a {
  display: block; padding: 13px 2px; text-decoration: none;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.05rem;
}
.site-nav a:hover { color: var(--accent-text); }
.nav-cta { color: var(--accent-text); }

/* Inline nav only once six items genuinely fit beside a 300px logo. Below this the
   header wrapped to two lines and the sticky bar ate ~115px of vertical space. */
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 22px; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { padding: 6px 0; font-size: 0.95rem; }
  .nav-cta {
    background: var(--accent); color: #fff; padding: 9px 16px !important; border-radius: 2px;
  }
  .nav-cta:hover { color: #fff; background: var(--accent-hover); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 2px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-block { display: block; width: 100%; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { background: var(--surface); padding: 48px 0 44px; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.8rem; color: var(--accent-text); margin-bottom: 0.9em;
}
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.14rem; color: var(--text-soft); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 40px; }

.hero-facts {
  list-style: none; margin: 0; padding: 26px 0 0; border-top: 2px solid var(--text);
  display: grid; gap: 22px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  font-size: 1.45rem; line-height: 1.1;
}
.hero-facts span { color: var(--text-mute); font-size: 0.94rem; }
@media (min-width: 620px) { .hero-facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .hero { padding: 76px 0 64px; } }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.section-lede { color: var(--text-soft); max-width: 60ch; margin-bottom: 2em; }
@media (min-width: 760px) { .section { padding: 84px 0; } }

.split { display: grid; gap: 36px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; } }

/* ---------- trailer cards ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 2px;
  padding: 0 0 22px; display: flex; flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card-media {
  aspect-ratio: 4 / 3; background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--rule);
  font-family: var(--head); font-weight: 700; letter-spacing: 0.1em;
  font-size: 0.8rem; color: var(--text-mute);
}
.card h3 { margin: 20px 22px 0.5em; }
.card > p { margin: 0 22px 1.1em; color: var(--text-soft); font-size: 0.97rem; }

.specs { margin: 0 22px; padding: 0; border-top: 1px solid var(--rule); }
.specs > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.specs dt { color: var(--text-mute); font-size: 0.9rem; }
.specs dd {
  margin: 0; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; font-size: 0.98rem;
}
.card-rate { margin: 16px 22px 0; font-size: 1.1rem; }
.card-rate strong { font-family: var(--head); text-transform: uppercase; }

.inventory-note, .pending-note {
  margin-top: 2em; padding: 12px 16px;
  background: var(--note-bg); border-left: 3px solid var(--accent);
  font-size: 0.9rem; color: var(--text-soft); max-width: 78ch;
}
.pending-inline { font-size: 0.86rem; color: var(--accent-text); font-weight: 600; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 3px solid var(--text); padding-top: 18px; }
.step-num {
  display: block; font-family: var(--head); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--accent-text); margin-bottom: 8px;
}
.steps p { color: var(--text-soft); margin: 0; }

/* ---------- service area ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 11px 0 11px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 11px; height: 11px; background: var(--accent);
}
.map-placeholder {
  min-height: 260px; background: var(--placeholder); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; letter-spacing: 0.1em;
  font-size: 0.85rem; color: var(--text-mute);
}

/* ---------- rates ---------- */
.rate-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rate-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rate-table th, .rate-table td {
  text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule);
}
.rate-table thead th {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.85rem; color: var(--text-mute);
  border-bottom: 2px solid var(--text);
}
.rate-table tbody th {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1rem;
}

/* ---------- requirements ---------- */
.req-grid { display: grid; gap: 30px; }
@media (min-width: 700px) { .req-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
.req-grid p { color: var(--text-soft); }

/* ---------- contact ---------- */
.section-dark { background: var(--deep-bg); color: var(--deep-text); }
.section-dark h2 { color: var(--deep-text); }
.section-dark p { color: var(--deep-soft); }

.contact-details { margin: 26px 0 0; padding: 0; }
.contact-details > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--deep-rule);
}
.contact-details dt {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.85rem; color: var(--deep-mute);
}
.contact-details dd {
  margin: 0; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; font-size: 1.05rem; color: var(--deep-text);
}

.quote-form {
  background: var(--deep-panel); border: 1px solid var(--deep-rule);
  padding: 22px; border-radius: 2px;
}
.form-notice {
  background: var(--deep-notice); border-left: 3px solid var(--accent);
  padding: 10px 14px; margin: 0 0 20px;
  font-size: 0.88rem; color: var(--deep-noticed) !important;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.82rem; color: var(--deep-soft);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px;
  background: var(--deep-field); color: var(--deep-text);
  border: 1px solid var(--deep-border); border-radius: 2px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field.has-error input, .field.has-error select { border-color: #ff6b5e; }
.field-error { display: block; margin-top: 5px; font-size: 0.84rem; color: #ff9d94; }
.form-result { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.4em; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep-bg); color: var(--deep-soft);
  padding: 40px 0; border-top: 1px solid var(--deep-rule);
}
.footer-inner { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; gap: 48px; } }
.footer-logo { width: 260px; height: auto; display: block; color: var(--deep-text); }
.footer-meta p { margin: 0 0 6px; font-size: 0.92rem; }
.footer-fine { color: var(--deep-mute); font-size: 0.84rem !important; }
