/* ==========================================================================
   JTW HAULAGE LTD — Design System
   Direction: "Consignment Ticket" — UK road-freight paperwork aesthetic.
   Ink Navy + Signal Amber + Document Cream, condensed industrial display
   type paired with a highway-signage-inspired body face.
   ========================================================================== */

:root {
  /* Color */
  --ink-navy:     #121C26;
  --ink-navy-2:   #1B2A38;
  --signal-amber: #F2A71B;
  --amber-deep:   #C97F0B;
  --doc-cream:    #F3EEE2;
  --doc-cream-2:  #EAE3D2;
  --steel:        #5C6B76;
  --steel-light:  #8B98A1;
  --charcoal:     #1E2730;
  --route-red:    #B23A2E;
  --line:         #D8D0BC;
  --line-dark:    #2D3D4C;

  /* Type */
  --font-display: "Big Shoulders", "Big Shoulders Display", sans-serif;
  --font-body: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --gap: 1.5rem;
  --radius: 4px;
  --max: 1180px;

  --shadow-card: 0 1px 0 rgba(18,28,38,0.04), 0 8px 24px -12px rgba(18,28,38,0.22);
  --shadow-lift: 0 18px 40px -16px rgba(18,28,38,0.32);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--doc-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.5em;
  color: var(--ink-navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--steel); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--signal-amber);
  display: inline-block;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--navy { background: var(--ink-navy); color: var(--doc-cream); }
.section--navy h2, .section--navy h3 { color: var(--doc-cream); }
.section--navy p { color: var(--steel-light); }
.section--cream2 { background: var(--doc-cream-2); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal-amber); color: var(--ink-navy); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--amber-deep); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink-navy); }
.section--navy .btn-ghost { color: var(--doc-cream); }
.btn-ghost:hover { background: rgba(18,28,38,0.06); }
.section--navy .btn-ghost:hover { background: rgba(243,238,226,0.08); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.82rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-navy);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  background: var(--signal-amber);
  color: var(--ink-navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.3em 0.5em;
  line-height: 1;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  color: var(--doc-cream);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  text-transform: uppercase;
}
.brand-name span { color: var(--steel-light); font-weight: 500; display: block; font-size: 0.65rem; letter-spacing: 0.16em; font-family: var(--font-mono); text-transform: uppercase; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--steel-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--doc-cream); border-color: var(--signal-amber); }

.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { display: none; }
.nav-phone a { font-family: var(--font-mono); color: var(--doc-cream); font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: transparent; border: none; color: var(--doc-cream);
  font-size: 1.6rem; line-height: 1; padding: 0.2rem 0.4rem;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 64px 0 0 0; background: var(--ink-navy);
    flex-direction: column; padding: 2rem 1.5rem; gap: 1.4rem;
    transform: translateY(-110%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 0.7em 1.1em; font-size: 0.8rem; }
}
@media (min-width: 1100px) { .nav-phone { display: block; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink-navy);
  color: var(--doc-cream);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 6rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(242,167,27,0.05) 0 2px, transparent 2px 64px);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero h1 { color: var(--doc-cream); }
.hero .lede { color: var(--steel-light); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--signal-amber); }
.hero-stats div span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Consignment Ticket (signature component) ---------- */
.ticket {
  background: var(--doc-cream);
  color: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  position: relative;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--line);
}
.ticket::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 4.6rem;
  height: 0;
  border-top: 1px dashed var(--steel-light);
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--steel);
  padding-bottom: 1.1rem;
}
.ticket-head b { color: var(--ink-navy); font-size: 0.72rem; }
.ticket-stamp {
  position: absolute; top: 1.3rem; right: 1.4rem;
  width: 64px; height: 64px;
  border: 2px dashed var(--route-red);
  border-radius: 50%;
  color: var(--route-red);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.85;
}
.route-line {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.2rem 0 1rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel);
}
.route-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-navy); flex: none; }
.route-line .dot--end { background: var(--signal-amber); }
.route-line .bar {
  flex: 1; height: 1px;
  background-image: linear-gradient(to right, var(--steel-light) 50%, transparent 50%);
  background-size: 8px 1px;
  position: relative;
}
.route-line .truck { flex: none; font-size: 0.95rem; }

.ticket h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.ticket p { font-size: 0.92rem; margin-bottom: 0.9rem; }
.ticket-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 0.4rem;
}
.ticket-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-navy); font-weight: 800; }
.ticket-price span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--steel); text-transform: uppercase; display: block; }
.ticket-badge {
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.06em; background: var(--doc-cream-2); color: var(--steel);
  padding: 0.3em 0.6em; border-radius: 2px; border: 1px solid var(--line);
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--doc-cream); border: 1px solid var(--line);
  padding: 1.8rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink-navy); color: var(--signal-amber);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.1rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Stages (how it works) ---------- */
.stages { position: relative; }
.stage-line {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stage-line::before {
  content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 0;
  border-top: 2px dashed var(--line-dark);
  display: none;
}
@media (min-width: 901px) { .stage-line::before { display: block; } }
.stage {
  position: relative;
}
.stage-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--signal-amber); color: var(--ink-navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; position: relative; z-index: 1;
  border: 4px solid var(--ink-navy);
}
.stage h3 { font-size: 1rem; letter-spacing: 0.03em; }
.stage p { font-size: 0.88rem; color: var(--steel-light); }
@media (max-width: 900px) { .stage-line { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--ink-navy-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  position: relative;
}
.testimonial .quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--signal-amber); line-height: 0.4; display: block; margin-bottom: 0.6rem; }
.testimonial p { color: var(--doc-cream); font-size: 0.96rem; opacity: 0.92; }
.testimonial .who { font-family: var(--font-mono); font-size: 0.74rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1rem; }
.testimonial .who b { color: var(--signal-amber); display: block; font-size: 0.85rem; font-style: italic; text-transform: none; letter-spacing: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--signal-amber);
  background-image: repeating-linear-gradient(135deg, rgba(18,28,38,0.07) 0 18px, transparent 18px 36px);
  color: var(--ink-navy); padding: 3.6rem 0; text-align: center;
}
.cta-banner h2 { color: var(--ink-navy); }
.cta-banner .btn-primary { background: var(--ink-navy); color: var(--doc-cream); }
.cta-banner .btn-primary:hover { background: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-navy); color: var(--steel-light); padding-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px dashed var(--line-dark);
}
.footer-grid h4 { color: var(--doc-cream); font-size: 0.85rem; letter-spacing: 0.07em; margin-bottom: 1rem; }
.footer-grid li { margin-bottom: 0.65rem; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--signal-amber); }
.footer-grid p { color: var(--steel-light); font-size: 0.88rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 0; font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel);
  flex-wrap: wrap; gap: 0.7rem;
}
.footer-bottom a:hover { color: var(--signal-amber); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: var(--ink-navy); color: var(--doc-cream);
  padding: 3.2rem 0 3rem; text-align: left;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--doc-cream); }
.page-hero p { color: var(--steel-light); max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--signal-amber); }

/* ---------- Filters / products page ---------- */
.filter-bar {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.2rem;
}
.filter-chip {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.5em 1em; border: 1px solid var(--steel);
  border-radius: 999px; background: transparent; color: var(--steel);
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--ink-navy); color: var(--ink-navy); }
.filter-chip.is-active { background: var(--ink-navy); color: var(--doc-cream); border-color: var(--ink-navy); }

.product-card { display: flex; flex-direction: column; }
.product-card .ticket-img {
  width: 100%; height: 150px; border-radius: 3px; margin-bottom: 1rem;
  background: var(--ink-navy);
  background-image: repeating-linear-gradient(45deg, rgba(242,167,27,0.18) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .ticket-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .ticket-img .ph-icon { color: var(--signal-amber); font-size: 1.8rem; opacity: 0.8; }

.skeleton {
  background: linear-gradient(90deg, var(--doc-cream-2) 25%, var(--line) 37%, var(--doc-cream-2) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 340px; }
.skeleton-line { height: 0.9rem; margin-bottom: 0.6rem; }

.state-msg {
  text-align: center; padding: 3rem 1rem; color: var(--steel);
  font-family: var(--font-mono); font-size: 0.9rem;
}
.state-msg.error { color: var(--route-red); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery {
  background: var(--ink-navy); border-radius: var(--radius); min-height: 320px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(242,167,27,0.12) 0 14px, transparent 14px 28px);
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-control button { background: var(--doc-cream-2); border: none; width: 38px; height: 38px; font-size: 1.1rem; }
.qty-control input { width: 50px; text-align: center; border: none; background: transparent; font-family: var(--font-mono); font-size: 1rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.3rem; }
label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel); margin-bottom: 0.45rem; }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 0.96rem; color: var(--charcoal);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75em 0.9em;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--signal-amber); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 0.84rem; color: var(--steel-light); }
.form-success, .form-error {
  font-family: var(--font-mono); font-size: 0.85rem; padding: 0.9em 1.1em;
  border-radius: var(--radius); margin-top: 1rem;
}
.form-success { background: rgba(242,167,27,0.14); color: var(--amber-deep); border: 1px solid var(--signal-amber); }
.form-error { background: rgba(178,58,46,0.1); color: var(--route-red); border: 1px solid var(--route-red); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; text-align: left; padding: 1.3rem 0;
  font-family: var(--font-display); font-size: 1.05rem; text-transform: none;
  color: var(--ink-navy); letter-spacing: 0;
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.3rem; color: var(--signal-amber); transition: transform 0.2s ease; flex: none; margin-left: 1rem; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding-bottom: 1.3rem; }
.faq-item.is-open .faq-a { max-height: 600px; }

/* ---------- Misc pages: legal ---------- */
.legal-content h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.legal-content p, .legal-content li { color: var(--steel); font-size: 0.96rem; }
.legal-content ul { margin: 0 0 1.2rem 1.3rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Status pages (success/cancel) ---------- */
.status-page { min-height: 60vh; display: flex; align-items: center; }
.status-card { max-width: 560px; margin: 0 auto; text-align: center; }
.status-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--steel-light); }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-card .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--signal-amber); color: var(--ink-navy); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem; }
.contact-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.contact-card p { font-size: 0.9rem; margin-bottom: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 2rem; }
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }
