/* ==========================================================================
   D'S Custom Car Hauling and Transport LLC.
   assets/css/style.css

   Brand colors live in the :root block below. Change them in ONE place here
   and the whole site updates.
   ========================================================================== */

:root {
  /* --- Brand palette (from the brand brief) --- */
  --green: #4FA02E;        /* primary green */
  --green-bright: #63C63C; /* buttons + highlights */
  --black: #030303;        /* page background */
  --charcoal: #10100F;     /* panels and cards */
  --white: #F6F6ED;        /* body text */
  --gray: #646361;         /* muted text */

  /* --- Derived tokens (leave alone unless you know CSS) --- */
  --line: rgba(246, 246, 237, 0.12);
  --line-strong: rgba(246, 246, 237, 0.28);
  --panel-2: #171716;

  /* --- Type --- */
  --display: "Anton", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  /* --- Layout --- */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --bay: clamp(4rem, 9vw, 7.5rem); /* vertical rhythm between sections */
  --header-h: 74px;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 8.5vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p.lead { font-size: 1.15em; color: #d9d9d0; max-width: 62ch; }

a { color: var(--green-bright); }
a:hover { color: var(--white); }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bay { padding-block: var(--bay); }
.bay--tight { padding-block: calc(var(--bay) * 0.6); }
.bay--panel { background: var(--charcoal); border-block: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-bright); color: var(--black);
  padding: 0.75rem 1.25rem; font-family: var(--mono); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------- signature: load plate --
   The mono "plate" label is the site's recurring device. It echoes the data
   plate riveted to a trailer. Used for eyebrows, spec rows and stat labels. */
.plate {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--green);
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
  background: rgba(79, 160, 46, 0.07);
}

/* Diagonal load-strap rule. Used once or twice per page, never more. */
.strap {
  height: 10px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--green) 0 12px,
    var(--black) 12px 24px
  );
  opacity: 0.85;
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3, 3, 3, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  font-size: 1.3rem;
  margin-right: auto;
  display: block;
}
.wordmark span { color: var(--green-bright); }
.wordmark small {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-top: 0.35rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent; color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 0.9rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--green-bright); color: var(--green-bright); }

.site-nav ul {
  list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding: 0.4rem 0; display: block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green-bright); }
.site-nav a[aria-current="page"] {
  color: var(--green-bright);
  border-bottom-color: var(--green);
}

.header-call { white-space: nowrap; }

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .header-call { display: none; }
  .site-nav {
    order: 4; flex-basis: 100%;
    display: none;
    border-top: 1px solid var(--line);
    padding-block: 0.5rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-bright); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); }

.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn-lg { padding: 1.2rem 2rem; font-size: 1rem; }

/* ----------------------------------------------------------------- hero --
   Background is pure CSS: a diamond-tread deck plate fading into black.
   No image file required, so the hero paints instantly. */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(246,246,237,0.045) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(246,246,237,0.045) 0 2px, transparent 2px 14px),
    radial-gradient(120% 90% at 78% 0%, rgba(79,160,46,0.20), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 { max-width: 16ch; }
.hero h1 .hl {
  color: var(--green-bright);
  display: inline-block;
  border-bottom: 6px solid var(--green);
  padding-bottom: 2px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem;
}

/* Phone placard — the biggest tap target on the page. */
.placard {
  display: inline-flex; flex-direction: column;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--green-bright);
  background: var(--charcoal);
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  margin-top: 2.25rem;
}
.placard .k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray);
}
.placard .v {
  font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white); line-height: 1.1; letter-spacing: 0.02em;
}
.placard:hover .v { color: var(--green-bright); }

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

.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1rem; color: #cfcfc6; }
.card li { margin-bottom: 0.35rem; }

/* Spec rows — the plate device applied to a list of facts. */
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec li {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.spec .k {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray);
}
.spec .v { font-weight: 600; }

/* ------------------------------------------------------------- gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery figure { margin: 0; background: var(--charcoal); border: 1px solid var(--line); }
.gallery button.shot {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%;
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
  padding: 0.75rem 0.9rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 3, 3, 0.95);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; border: 1px solid var(--line-strong); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--green-bright); color: var(--black); border: 0;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  padding: 0.7rem 1rem; cursor: pointer; text-transform: uppercase;
}

/* ------------------------------------------------------------ quotes ----- */
.quote {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 1.75rem;
  margin: 0;
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.1rem; color: #e4e4dc; }
.quote figcaption {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray);
}

/* --------------------------------------------------------------- forms --- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white);
}
.field .req { color: var(--green-bright); }
.field .hint {
  display: block;
  font-size: 0.8rem; line-height: 1.3;
  min-height: 1.3em;
  color: var(--gray); font-family: var(--body); letter-spacing: 0; text-transform: none;
}

input, select, textarea {
  font-family: var(--body); font-size: 1rem;
  background: var(--panel-2); color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 0.85rem 0.9rem;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-bright); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #E2574C;
}
.error {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: #FF8A7E; min-height: 1em;
}
.form-status {
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-left: 4px solid var(--green-bright); }
.form-status.is-bad { border-left: 4px solid #E2574C; }

fieldset { border: 1px solid var(--line); padding: 1.1rem; margin: 0; }
legend {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding-inline: 0.4rem;
}
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1rem;
}
.radio-row input { width: auto; }

/* ------------------------------------------------- unconfirmed content --- */
/* Anything wrapped in .tbc is NOT a confirmed business fact. Replace the text
   and delete the surrounding <span class="tbc"> tag before publishing. */
.tbc {
  border-bottom: 2px dashed var(--green);
  color: #e9e9e0;
}
.notice {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.7;
  letter-spacing: 0.04em;
  border: 1px dashed var(--green);
  background: rgba(79, 160, 46, 0.08);
  padding: 1rem 1.1rem;
  color: #d7e7cf;
}

/* -------------------------------------------------------------- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h3 { font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.colophon {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--gray);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
}

/* Sticky click-to-call bar on small screens only. */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  background: var(--green-bright); color: var(--black);
  text-align: center; text-decoration: none;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 1rem;
}
@media (max-width: 900px) {
  .call-bar { display: block; }
  body { padding-bottom: 60px; }
}
