/* Prime Haul Group — shared design system.
   Lifted from public/index.html so the newer pages (properties, portal, quote)
   render in exactly the same visual world without each one carrying its own
   copy of the tokens. index.html carries its own inline copy of the same look
   (the HUD redesign); keep the two in step when changing type or colour. */

@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Single visual world: the logo's black field and gilded lettering. */
  --void:     #07070A;
  --panel:    #121215;
  --panel-2:  #1A1A1E;
  --line:     #2A2A30;
  --line-gold:rgba(227,180,74,0.28);

  --gold:      #E3B44A;
  --gold-lite: #F7E3A8;
  --gold-deep: #A87A22;
  --on-gold:   #14110A;

  --ink:   #F3F1EB;
  --soft:  #A8A49B;
  --faint: #77736B;

  --good: #4FCB77;
  --warn: #E3B44A;
  --bad:  #F08A7A;

  --fs-hero: clamp(2.6rem, 8vw, 5.4rem);
  --fs-h2:   clamp(1.8rem, 4.6vw, 2.9rem);
  --fs-h3:   1.12rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.9rem;
  --fs-xs:   0.71rem;

  --display: "Chakra Petch", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

  --col: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
/* blueprint grid behind everything; z-index -1 keeps it under all content */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(130% 90% at 50% 0%, #000 25%, transparent 80%);
}
::selection { background: rgba(227,180,74,0.35); color: #fff; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 3rem);
}
.wrap-narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
  margin: 0.5rem 0 0;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.gild {
  background: linear-gradient(176deg, var(--gold-lite) 4%, var(--gold) 42%, var(--gold-deep) 72%, var(--gold-lite) 99%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule-gold { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mono { font-family: var(--mono); }

/* ---------------- masthead ---------------- */
.masthead { border-bottom: 1px solid var(--line); background: rgba(7,7,10,0.8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.mark { text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 0.7rem; }
.mark-badge { width: 48px; height: 48px; display: block; flex: none; mix-blend-mode: screen; }
.mark b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.mark small {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  color: var(--soft);
  margin-top: 0.32rem;
  padding-left: 0.1em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: var(--fs-sm); text-decoration: none; color: var(--soft); transition: color 0.15s ease; }
.nav a:hover { color: var(--gold); }
.nav a.here { color: var(--gold); }
.nav a.btn-gold { color: var(--on-gold); }
@media (max-width: 980px) { .nav .navlink { display: none; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1.5rem;
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-sm { padding: 0.72rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 1.75rem; font-size: 1.32rem; }

.btn-gold { background: linear-gradient(178deg, var(--gold-lite), var(--gold) 46%, var(--gold-deep)); color: var(--on-gold); clip-path: var(--chamfer); }
.btn-gold:focus-visible { clip-path: none; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left 0.6s cubic-bezier(.2,.7,.3,1);
}
.btn-gold:hover { box-shadow: 0 12px 40px -10px rgba(227,180,74,0.7); }
.btn-gold:hover::after { left: 120%; }
@media (prefers-reduced-motion: reduce) { .btn-gold::after { display: none; } }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 24px rgba(227,180,74,0.12); }
.btn[disabled] { filter: grayscale(0.5) brightness(0.8); cursor: progress; transform: none; }
.btn .stack { display: block; text-align: left; }
.btn .stack small {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.16em; opacity: 0.72; margin-bottom: 0.3rem;
}

/* ---------------- sections ---------------- */
section { padding-block: clamp(3.2rem, 7.5vw, 5.5rem); }
.head { max-width: 60ch; margin-bottom: 2.5rem; }
.head .lede { color: var(--soft); margin-top: 0.9rem; }
.panel-sec { background: var(--panel); border-block: 1px solid var(--line); }

.lines > * { opacity: 0; transform: translateY(15px); animation: rise 0.62s cubic-bezier(.2,.7,.3,1) forwards; }
.lines > *:nth-child(1) { animation-delay: 0.04s; }
.lines > *:nth-child(2) { animation-delay: 0.13s; }
.lines > *:nth-child(3) { animation-delay: 0.22s; }
.lines > *:nth-child(4) { animation-delay: 0.31s; }
.lines > *:nth-child(5) { animation-delay: 0.40s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lines > * { animation: none; opacity: 1; transform: none; } }

/* ---------------- grid of bordered cells ---------------- */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells > * { background: var(--panel); padding: 1.6rem 1.4rem 1.75rem; }
.c-4 { grid-template-columns: repeat(4, 1fr); }
.c-3 { grid-template-columns: repeat(3, 1fr); }
.c-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .c-4 { grid-template-columns: repeat(2, 1fr); } .c-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .c-4, .c-2 { grid-template-columns: 1fr; } }

/* ---------------- forms ---------------- */
form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.5rem; }
.field > label, .legend {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--soft);
}
.field .req { color: var(--gold); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 620px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
input::placeholder, textarea::placeholder { color: #5C5951; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,180,74,0.14); }
textarea { resize: vertical; min-height: 92px; }
input[type="range"] { accent-color: var(--gold); width: 100%; }

fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.pills label {
  display: inline-block; border: 1px solid var(--line); background: var(--void);
  padding: 0.6rem 0.95rem; border-radius: 2px; font-size: var(--fs-sm); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pills label:hover { border-color: var(--gold-deep); }
.pills input:checked + label { border-color: var(--gold); background: rgba(227,180,74,0.12); color: var(--gold); }
.pills input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.drop {
  border: 1.5px dashed var(--line); border-radius: 3px; padding: 1.6rem 1.2rem;
  text-align: center; cursor: pointer; display: grid; gap: 0.4rem; justify-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(227,180,74,0.06); }
.drop svg { width: 30px; height: 30px; }
.drop svg path { stroke: var(--gold); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drop b { font-size: 0.98rem; font-weight: 650; }
.drop span { font-size: var(--fs-sm); color: var(--faint); }
.drop input[type="file"] { display: none; }

.thumbs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 82px; height: 82px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--void); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .fname { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.56rem; color: var(--faint); padding: 0.4rem; text-align: center; word-break: break-all; }
.thumbs button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(10,10,11,0.82); color: var(--ink); font-size: 0.8rem; line-height: 1; cursor: pointer; }
.thumbs button:hover { background: var(--gold); color: var(--on-gold); }

.form-note { font-size: var(--fs-sm); color: var(--faint); }
.err { color: var(--bad); font-size: var(--fs-sm); min-height: 1.2em; }
.err:empty { min-height: 0; }
button.submit {
  justify-self: start; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  padding: 1.05rem 1.9rem; font-size: 1.2rem; letter-spacing: 0.02em; border-radius: 0;
  background: linear-gradient(178deg, var(--gold-lite), var(--gold) 46%, var(--gold-deep));
  color: var(--on-gold); clip-path: var(--chamfer);
  transition: transform 0.12s ease, filter 0.15s ease;
}
button.submit:hover { transform: translateY(-2px); }
button.submit[disabled] { filter: grayscale(0.5) brightness(0.8); cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { button.submit:hover { transform: none; } }

.sent { display: none; border: 1px solid var(--line-gold); background: var(--void); padding: 1.6rem 1.5rem; border-radius: 3px; gap: 0.6rem; }
.sent.show { display: grid; }
.sent b { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; color: var(--gold); letter-spacing: -0.015em; }
.sent p { color: var(--soft); font-size: var(--fs-sm); }
form.hide { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- assurance list ---------------- */
.assure { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.assure li { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; font-size: var(--fs-sm); color: var(--soft); }
.assure li::before { content: "✦"; color: var(--gold); line-height: 1.5; }

/* ---------------- tables ---------------- */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.grid { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel); }
table.grid th, table.grid td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
table.grid thead th {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); background: var(--panel-2); white-space: nowrap;
}
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td b { color: var(--ink); }
table.grid .num { font-family: var(--mono); white-space: nowrap; }

/* ---------------- status chips ---------------- */
.chip {
  display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 0.28rem 0.55rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--soft); white-space: nowrap;
}
.chip.ok   { border-color: rgba(79,203,119,0.5); color: var(--good); }
.chip.warn { border-color: var(--line-gold); color: var(--gold); }
.chip.bad  { border-color: rgba(240,138,122,0.5); color: var(--bad); }

/* ---------------- faq ---------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-weight: 650; font-size: 1.03rem; transition: color 0.15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after { content: "+"; position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.25rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--gold); }
.faq p { color: var(--soft); padding: 0 2.5rem 1.4rem 0; max-width: 72ch; font-size: var(--fs-sm); }

/* ---------------- closer + footer ---------------- */
.closer {
  text-align: center;
  background: radial-gradient(70% 100% at 50% 0%, rgba(227,180,74,0.15), transparent 68%), var(--panel);
  border-top: 1px solid var(--line);
}
.closer .lede { color: var(--soft); margin: 0.9rem auto 0; max-width: 50ch; }
.bignum {
  display: inline-block; text-decoration: none; font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4.4rem); letter-spacing: -0.035em; line-height: 1;
  margin-top: 1.7rem; border-bottom: 4px solid transparent; transition: border-color 0.15s ease;
}
.bignum:hover { border-bottom-color: var(--gold); }
.closer .alt { display: block; font-family: var(--mono); font-size: var(--fs-sm); color: var(--faint); margin-top: 1.2rem; }
.closer .alt a { color: var(--ink); }

footer { background: var(--void); border-top: 1px solid var(--line); }
.foot-mark { display: inline-flex; align-items: center; gap: 0.6rem; }
.foot-mark img { width: 30px; height: 30px; display: block; mix-blend-mode: screen; }
footer .wrap {
  padding-block: 1.7rem 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint);
}
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ---------------- truck load meter (shared with the homepage pricing block) --- */
.t-body { fill: none; stroke: #6E6A62; stroke-width: 3; }
.t-fill { fill: var(--gold); transition: y 0.3s ease, height 0.3s ease; }
.t-wheel { fill: #6E6A62; }

/* ---------------- HUD frame (same as the homepage) ---------------- */
.hud { position: relative; background: rgba(14,14,18,0.68); border: 1px solid var(--line); }
.hud::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 1.5px,
    linear-gradient(var(--gold), var(--gold)) top left / 1.5px 16px,
    linear-gradient(var(--gold), var(--gold)) top right / 16px 1.5px,
    linear-gradient(var(--gold), var(--gold)) top right / 1.5px 16px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 16px 1.5px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1.5px 16px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 1.5px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1.5px 16px;
  background-repeat: no-repeat;
}

/* ---------------- print ---------------- */
@media print {
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .masthead, .subnav, .bar, .concierge, .noprint { display: none !important; }
  section { padding-block: 1.2rem; break-inside: avoid; }
  .cells > *, table.grid { background: #fff; }
  .gild { -webkit-text-fill-color: #8a6a12; color: #8a6a12; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.7em; color: #666; }
}
