/* Doug Davidson Trucking — marketing site.
   Related to the TMS brand (near-black + gold) but warmer and set in
   Barlow, so the two read as family, not the same product.
   Gold is text ONLY on dark grounds; on light it appears as borders,
   rules, and button fills with ink text (gold-on-white text fails WCAG). */

:root {
  --ink:       #111418;
  --ink-2:     #1c2127;
  --gold:      #d4ae00;
  --gold-deep: #a88a00;
  --paper:     #f6f4ee;
  --card:      #ffffff;
  --muted:     #5f646b;
  --line:      #d9d4c8;
  --focus:     #8a6d00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, legend {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container { max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--gold);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.75rem; flex-wrap: wrap;
}
.site-header img { height: 92px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-deep); }
.site-nav .phone {
  background: var(--ink); color: #fff; padding: 0.5rem 0.9rem;
  border-radius: 4px; text-transform: none; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.site-nav .phone:hover { background: var(--ink-2); color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(17, 20, 24, 0.72), rgba(17, 20, 24, 0.82)),
    url("../assets/hero.jpg") center 35% / cover no-repeat;
  color: #eceef0; padding-block: 5.5rem;
}
.hero .kicker {
  color: var(--gold); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.85rem; margin-bottom: 0.75rem;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { max-width: 54ch; margin-top: 1rem; color: #c3c8cd; font-size: 1.1rem; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.8rem 1.5rem; border-radius: 4px; border: 2px solid transparent;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e4bd0a; }
.btn--outline-light { border-color: #5a616a; color: #fff; }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: 3.5rem; }
.section-label {
  color: var(--gold-deep); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.85rem; margin-bottom: 0.4rem;
}
.section h2 { margin-bottom: 1.5rem; }

.equip-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .equip-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .equip-grid { grid-template-columns: repeat(4, 1fr); } }

.equip-card {
  background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: 6px; padding: 1.25rem;
}
.equip-card p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* Photo strip — recent work, real trucks. */
.photo-strip { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.photo-strip figure { margin: 0; }
.photo-strip img {
  width: 100%; height: 16rem; object-fit: cover; border-radius: 6px;
  border-bottom: 4px solid var(--gold);
}
.photo-strip figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

.about-band { background: var(--ink); color: #c3c8cd; }
.about-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 3fr 2fr; } }
.about-grid img {
  border-radius: 6px; border: 1px solid #333a42;
  width: 100%; height: 20rem; object-fit: cover; object-position: center 30%;
}

.apply-photo {
  width: 100%; max-height: 22rem; object-fit: cover; object-position: center 60%;
  border-radius: 6px; border-bottom: 4px solid var(--gold); margin-top: 1.5rem;
}
.about-band h2 { color: #fff; }
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-block: 1.5rem; }
.stat .stat-num {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 2.6rem; color: var(--gold); line-height: 1;
}
.stat .stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.about-band .creds { margin-top: 1.25rem; color: #eceef0; font-weight: 600; }

.contact-band .contact-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.contact-band address { font-style: normal; line-height: 1.7; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.75rem; margin-top: 1.5rem;
}
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend {
  font-size: 1.3rem; margin-bottom: 0.9rem; padding-top: 0.25rem;
  border-top: 3px solid var(--gold); width: 100%;
}
.field-grid { display: grid; gap: 0.9rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
.req { color: var(--gold-deep); }
input, select, textarea {
  width: 100%; padding: 0.55rem 0.7rem; font: inherit;
  border: 1px solid #b8b2a4; border-radius: 4px; background: #fff;
}
textarea { min-height: 6rem; resize: vertical; }
.dim-row { display: flex; gap: 0.4rem; align-items: center; }
.dim-row input { width: 5.5rem; }
.dim-row span { color: var(--muted); font-size: 0.9rem; }

.check-row { display: flex; align-items: center; gap: 0.5rem; }
.check-row input { width: auto; }
.check-row label { margin: 0; font-weight: 400; }

/* Display-only notice until the quotes backend exists (phase 2). */
.submit-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1rem 1.25rem; font-size: 1.05rem;
}
.submit-note a { font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: #c3c8cd; border-top: 4px solid var(--gold);
  padding-block: 2.5rem; margin-top: 3rem; font-size: 0.95rem;
}
.site-footer .container { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .creds { color: #eceef0; font-weight: 600; }
.site-footer a { color: #eceef0; }
.site-footer a:hover { color: var(--gold); }

.form-status { font-weight: 600; }
.form-status--ok { color: #2e7d4f; }
.form-status--error { color: #b4472a; }
