/* ===========================================================
   Bob's Trailer Transport — main.css
   Sunset-highway palette: deep navy/charcoal + warm amber
   =========================================================== */

:root {
  --navy-900: #0b1522;
  --navy-800: #0f1b2d;
  --navy-700: #16273d;
  --navy-600: #1e3350;
  --charcoal: #141a22;
  --ink: #0b1119;

  --amber: #f5a623;
  --amber-600: #e0901a;
  --amber-glow: rgba(245, 166, 35, .35);

  --paper: #f6f4ef;
  --paper-2: #ece8e0;
  --text: #1c2530;
  --text-soft: #4a5766;
  --text-invert: #eef2f7;
  --text-invert-soft: #a9b6c6;

  --line: rgba(255,255,255,.10);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(6, 12, 22, .28);
  --shadow-sm: 0 8px 24px rgba(6, 12, 22, .16);
  --maxw: 1180px;

  /* image placeholders (solid dark bg shows before files land) */
  --img-hero: url("../assets/img/hero-interstate.jpg");
  --img-delivered: url("../assets/img/delivered-nj.jpg"), linear-gradient(#122033,#0d1826);
  --img-cargo: url("../assets/img/cargo-trailer.jpg"), linear-gradient(#122033,#0d1826);
  --img-dealer: url("../assets/img/dealer-hitchup.jpg"), linear-gradient(#122033,#0d1826);
  --img-hitchup: url("../assets/img/dealer-hitchup.jpg"), linear-gradient(#122033,#0d1826);
  --img-chains: url("../assets/img/hitch-chains.jpg"), linear-gradient(#122033,#0d1826);
  --img-sunrise: url("../assets/img/sunrise-mirror.jpg"), linear-gradient(#122033,#0d1826);
  --img-palms: url("../assets/img/florida-palms.jpg"), linear-gradient(#122033,#0d1826);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3 { line-height: 1.05; margin: 0; }
h1 { font-family: "Archivo Black", "Barlow Condensed", sans-serif; }
h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .2px; }
h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; }

.accent { color: var(--amber); }
.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--amber-600);
  margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .72rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 8px 22px var(--amber-glow); }
.btn-accent:hover { background: var(--amber-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-lg { font-size: 1.12rem; padding: .9rem 1.8rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,21,34,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(11,21,34,.96); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-glyph { color: var(--amber); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; letter-spacing: .02em; }
.brand-sub { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .22em; font-size: .68rem; color: var(--amber); }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; color: var(--text-invert-soft); transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }
.header-cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: var(--img-hero);
  background-color: #0d1826;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,21,34,.55) 0%, rgba(11,21,34,.35) 40%, rgba(11,21,34,.92) 100%),
    linear-gradient(90deg, rgba(11,21,34,.85) 0%, rgba(11,21,34,.15) 70%);
}
.hero-content { position: relative; padding: 7rem 24px; max-width: 860px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -.5px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-invert); max-width: 640px; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; display: flex; justify-content: center; }
.scroll-cue span { width: 4px; height: 9px; background: var(--amber); border-radius: 3px; margin-top: 7px; animation: cue 1.5s infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(-4px)} 40%{opacity:1} 80%{opacity:0;transform:translateY(9px)} }

/* ---------- Trust row ---------- */
.trust-row { background: var(--navy-800); color: #fff; padding: 3.2rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.trust-badge { text-align: center; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.trust-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; color: var(--amber); background: rgba(245,166,35,.12); border-radius: 50%; margin-bottom: .8rem; }
.trust-icon svg { width: 28px; height: 28px; }
.trust-badge h3 { font-size: 1.5rem; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .03em; }
.trust-badge p { color: var(--text-invert-soft); font-size: .96rem; margin: 0; }

/* ---------- Generic sections ---------- */
/* Offset in-page anchor jumps so targets clear the sticky header (72px). */
.hero, .trust-row, .section, [id] { scroll-margin-top: 84px; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); text-transform: uppercase; }
.section-lead { color: var(--text-soft); font-size: 1.1rem; margin-top: .8rem; }

/* ---------- Haul cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.haul-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease; }
.haul-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.haul-media { aspect-ratio: 4/3; background-color: #122033; background-size: cover; background-position: center; }
.haul-body { padding: 1.4rem 1.4rem 1.7rem; }
.haul-body h3 { font-size: 1.55rem; margin-bottom: .4rem; text-transform: uppercase; }
.haul-body p { color: var(--text-soft); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2.4rem 1.6rem 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.05); }
.step-num {
  position: absolute; top: -26px; left: 1.6rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  font-family: "Archivo Black", sans-serif; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px var(--amber-glow);
}
.step h3 { font-size: 1.55rem; margin: .3rem 0 .4rem; text-transform: uppercase; }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1rem; text-transform: uppercase; }
.split-copy p { color: var(--text-soft); margin: 0 0 1rem; }
.split-copy strong { color: var(--text); }

.split-media { position: relative; }
.split-photo { border-radius: var(--radius); background-color: #122033; background-size: cover; background-position: center; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-photo.tall { aspect-ratio: 3/4; }
.split-photo-inset {
  position: absolute; right: -18px; bottom: -28px;
  width: 46%; aspect-ratio: 4/3; border: 6px solid var(--paper);
  border-radius: var(--radius-sm);
}
.section-alt .split-photo-inset { border-color: var(--paper-2); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text-soft); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; background: var(--amber); color: var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* ---------- Coverage (dark, photo) ---------- */
.section-dark { position: relative; color: #fff; overflow: hidden; }
.coverage-media { position: absolute; inset: 0; background: var(--img-palms); background-color: #0d1826; background-size: cover; background-position: center; }
.coverage-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,34,.9), rgba(11,21,34,.82)); }
.coverage-content { position: relative; padding: 5.5rem 24px; }
.section-dark .section-head { margin-bottom: 2.4rem; }
.coverage-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.coverage-card { background: rgba(11,21,34,.65); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.coverage-card h3 { font-size: 1.6rem; color: var(--amber); margin-bottom: .5rem; text-transform: uppercase; }
.coverage-card p { color: var(--text-invert-soft); margin: 0; }
.coverage-foot { text-align: center; margin: 2rem 0 0; color: var(--text-invert); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; max-width: 1000px; margin: 0 auto; }
.contact-direct { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-direct h3 { font-size: 1.5rem; margin-bottom: 1.2rem; text-transform: uppercase; }
.contact-line { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-line:last-of-type { border-bottom: none; }
.contact-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,166,35,.14); color: var(--amber); display: flex; align-items: center; justify-content: center; }
.contact-ic svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-invert-soft); }
.contact-value { display: block; font-weight: 600; font-size: 1.08rem; }
.contact-note { color: var(--text-invert-soft); font-size: .9rem; margin: 1.2rem 0 0; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.05); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .reply-pref legend { font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; color: var(--text); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .72rem .85rem; border: 1.5px solid #d8d3c8; border-radius: var(--radius-sm);
  background: var(--paper); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); background: #fff;
}
.reply-pref { border: 0; padding: 0; margin: 0 0 1.3rem; }
.reply-pref legend { padding: 0; }
.radio { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1.4rem; font-size: .98rem; color: var(--text-soft); cursor: pointer; text-transform: none; letter-spacing: 0; font-family: "Inter", sans-serif; }
.radio input { accent-color: var(--amber); width: 1.05rem; height: 1.05rem; }
.form-fallback { text-align: center; margin: 1rem 0 0; font-size: .95rem; color: var(--text-soft); }
.form-fallback a { color: var(--amber-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-invert); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 3rem 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-glyph { color: var(--amber); }
.footer-name { font-family: "Archivo Black", sans-serif; font-size: 1.1rem; color: #fff; margin: 0; }
.footer-tag { margin: .25rem 0 0; color: var(--text-invert-soft); font-size: .92rem; }
.footer-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-badges li { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.footer-badges span { color: var(--amber); margin-right: .5rem; }
.footer-contact { display: grid; gap: .4rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--amber); }
.footer-legal { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer-legal p { margin: 0; font-size: .85rem; color: var(--text-invert-soft); text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .trust-grid, .card-grid, .steps, .coverage-grid { grid-template-columns: 1fr; }
  .step-num { top: -24px; }
  .split, .split-reverse .split-media { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split { gap: 2.4rem; }
  .split-photo-inset { width: 40%; right: 12px; }
  .split-photo.tall { aspect-ratio: 16/10; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; text-align: left; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 3.8rem 0; }
  .hero-content { padding: 5rem 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .header-cta { padding: .55rem 1rem; font-size: .9rem; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 1rem; }
  h1 { font-size: 2.2rem; }
}
