/* ============================================================
   BLUE SANDS DUMP TRUCKING — industrial spec-sheet aesthetic
   Asphalt dark base · Western Star blue · sand accents
   ============================================================ */

:root {
  --asphalt-900: #121419;
  --asphalt-800: #181b21;
  --asphalt-700: #20242c;
  --asphalt-600: #2b303a;
  --steel: #8a93a3;
  --blue: #1b4fa0;
  --blue-bright: #2f6fd6;
  --blue-deep: #123a78;
  --sand: #d9b27c;
  --sand-bright: #e6c896;
  --sand-paper: #f2ead9;
  --paper: #f6f2e9;
  --ink: #16181d;
  --line: rgba(217, 178, 124, 0.18);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--asphalt-900);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--sand-bright); }

h1, h2, h3, h4, .wordmark-main, .btn {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--blue-bright);
  color: #fff;
  border-color: var(--blue-bright);
  box-shadow: 4px 4px 0 var(--blue-deep);
}
.btn-call:hover { background: var(--blue); border-color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--sand-bright);
  border-color: var(--sand);
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); }

.btn-lg { font-size: 1.25rem; padding: 0.9rem 1.7rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 1.4rem;
  background: rgba(18, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark { text-decoration: none; line-height: 1.05; }
.wordmark-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--paper);
  letter-spacing: 0.04em;
}
.wordmark-main::first-letter { color: var(--blue-bright); }
.wordmark-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--sand);
}

.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--sand-bright); }

.topbar-call { font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 20, 25, 0.92) 0%, rgba(18, 20, 25, 0.55) 45%, rgba(18, 20, 25, 0.15) 100%),
    linear-gradient(to top, rgba(18, 20, 25, 0.95) 0%, rgba(18, 20, 25, 0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 1.4rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--paper);
}

.ink-sand { color: var(--sand-bright); }

.hero-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: #d8d4ca;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* Staggered load-in */
.reveal { opacity: 0; transform: translateY(24px); animation: rise 0.7s ease forwards; }
.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.25s; }
.r3 { animation-delay: 0.45s; }
.r4 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Diagonal stripe divider ---------- */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0 22px,
    var(--asphalt-900) 22px 28px,
    var(--sand) 28px 50px,
    var(--asphalt-900) 50px 56px
  );
}
.hero .stripe { position: absolute; bottom: 0; left: 0; right: 0; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--asphalt-800);
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--steel);
  white-space: nowrap;
}
.ticker-track i { color: var(--blue-bright); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.4rem; max-width: 1100px; margin: 0 auto; }

.section-sand {
  max-width: none;
  background: var(--sand-paper);
  color: var(--ink);
}
.section-sand > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-sand a { color: var(--blue-deep); }

.section-head { margin-bottom: 2.8rem; position: relative; }
.section-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-bright);
  display: block;
  opacity: 0.65;
}
.section-sand .section-num { -webkit-text-stroke-color: var(--blue); }

.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -1.4rem;
}
.section-head p { margin-top: 0.8rem; max-width: 36rem; color: var(--steel); }
.section-sand .section-head p { color: #5a5343; }

/* ---------- Materials cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.card {
  border: 2px solid var(--asphalt-600);
  background: var(--asphalt-800);
  padding: 1.6rem 1.5rem 1.4rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--sand); }

.card-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
}
.card h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.3rem 0 0.5rem;
  color: var(--sand-bright);
}
.card p { color: #c9c4b8; font-size: 0.98rem; }

.card-wide { grid-column: 1 / -1; border-color: var(--blue); background: var(--blue-deep); }
.card-wide h3 { color: #fff; }
.card-wide p { color: #cfe0f8; }
.card-wide a { color: var(--sand-bright); font-weight: 700; }

/* ---------- Fleet ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.truck { border: 2px solid var(--ink); background: #fff; }
.truck-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--ink); }
.truck-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.truck:hover .truck-img img { transform: scale(1.04); }

.truck figcaption { padding: 1.2rem 1.3rem 1.4rem; }
.truck h3 { font-size: 1.6rem; font-weight: 800; color: var(--blue-deep); }
.truck p { margin-top: 0.4rem; color: #4a4538; font-size: 0.98rem; }

.fleet-quote {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.why-item { border-top: 3px solid var(--blue-bright); padding-top: 1.2rem; }
.why-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sand);
}
.why-item h3 { font-size: 1.35rem; font-weight: 800; margin: 0.4rem 0 0.5rem; color: var(--sand-bright); }
.why-item p { color: #c9c4b8; font-size: 0.96rem; }

/* ---------- Service area ---------- */
.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.area-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.area-list li:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }

.area-note { margin-top: 1.6rem; color: #5a5343; }
.area-note a { font-weight: 700; }

/* ---------- Quote form ---------- */
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  border: 2px solid var(--asphalt-600);
  background: var(--asphalt-800);
  padding: 2rem 1.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.optional { color: var(--steel); font-size: 0.75rem; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--asphalt-900);
  border: 2px solid var(--asphalt-600);
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--sand-bright);
  outline-offset: 2px;
  border-color: var(--blue-bright);
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--sand-bright);
  outline-offset: 3px;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7280; }
.field select:invalid { color: #6b7280; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 0.4rem; }
.form-alt { color: var(--steel); font-size: 0.95rem; }
.form-alt a { font-weight: 700; }

.form-status { grid-column: 1 / -1; font-weight: 600; color: var(--sand-bright); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--asphalt-800);
  padding: 3.5rem 1.4rem 5.5rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--sand);
  margin-bottom: 0.4rem;
}
.footer p { color: var(--steel); font-size: 0.95rem; }
.footer-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--paper);
}
.footer-phone:hover { color: var(--sand-bright); }
.footer-fine {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  color: #7a828f;
  font-size: 0.8rem;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(18, 20, 25, 0.96);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; justify-content: center; }

/* ---------- Scroll-triggered reveals ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { opacity: 1; transform: none; animation: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .topnav { display: none; }
  .cards, .fleet-grid, .why-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; padding: 1.5rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 86vh; }
}

@media (max-width: 640px) {
  .topbar { gap: 1rem; }
  .topbar-call { display: none; }   /* sticky callbar takes over on phones */
  .callbar { display: flex; }
  .section { padding: 4rem 1.2rem; }
  .footer { padding-bottom: 7.5rem; } /* clear the callbar */
}
