/* ---------------------------------------------------------------------------
   Prime Haul Group — a WhipScores Logistics company.

   Same visual language as WhipScores: Vice City at night. Hot pink and cyan
   burning over a deep purple field, Anton for anything large, and a lot of
   black around it so the neon reads as light rather than as paint.

   The discipline that keeps this from looking like a fairground: neon is a
   LIGHT SOURCE, so it glows outward from edges and text and never fills a
   large area. Big flat blocks of pink are what makes this aesthetic look
   cheap. Purple holds the page; pink and cyan are spent.

   Class contract is unchanged from the previous skin — the page generator in
   site/build.mjs writes the same markup, so this file is the only thing that
   decides how the company looks.
   --------------------------------------------------------------------------- */

@layer base, layout, parts, util;

@layer base {
  :root {
    /* The field. Deep purple, not black — black kills neon. */
    --ink:        #140629;
    --ink-2:      #1C0937;
    --ink-3:      #260D49;
    --void:       #0A0316;

    --paper:      #180730;   /* the "light" sections are a lift, not a flip */
    --paper-2:    #200A3D;

    /* The two lights. */
    --pink:       #FF2E88;
    --pink-hot:   #FF5CA2;
    --cyan:       #00E5FF;
    --cyan-soft:  #6BF0FF;
    /* The logo's gold, kept as a third note so the mark doesn't clash. */
    --gold:       #E3B44A;

    --on-dark:    #FFFFFF;
    --on-dark-2:  rgba(255, 255, 255, 0.76);
    --on-dark-3:  rgba(255, 255, 255, 0.48);
    --on-light:   #FFFFFF;
    --on-light-2: rgba(255, 255, 255, 0.76);
    --on-light-3: rgba(255, 255, 255, 0.48);

    --rule:       rgba(255, 255, 255, 0.10);
    --rule-light: rgba(255, 255, 255, 0.10);
    --rule-neon:  rgba(255, 46, 136, 0.42);

    --display: "Anton", "Arial Narrow", Impact, sans-serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --measure: 62ch;
    --gutter: clamp(20px, 5vw, 64px);
    --bay: clamp(72px, 10vw, 140px);

    --glow-pink: 0 0 28px rgba(255, 46, 136, 0.45);
    --glow-cyan: 0 0 28px rgba(0, 229, 255, 0.40);
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    color: var(--on-dark);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background:
      radial-gradient(90% 60% at 12% -10%, rgba(255, 46, 136, 0.20), transparent 62%),
      radial-gradient(70% 55% at 92% 8%, rgba(0, 229, 255, 0.16), transparent 60%),
      linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 42%, var(--void) 100%);
    background-attachment: fixed;
  }

  /* Anton only comes in one weight and is built for size. Tightened and
     uppercased, it is the whole look. */
  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
  }
  h1 {
    font-size: clamp(3rem, 9vw, 6.6rem);
    /* The glow sits on the headline and almost nowhere else. */
    text-shadow: 0 0 34px rgba(255, 46, 136, 0.42), 0 0 78px rgba(255, 46, 136, 0.18);
  }
  h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
  h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.12; }

  p { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }

  ::selection { background: var(--pink); color: #fff; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
}

@layer layout {
  .wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
  .narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }
  .bay { padding-block: var(--bay); }
  .bay-sm { padding-block: calc(var(--bay) * 0.6); }

  /* The alternate band: lifted, with a neon hairline top and bottom rather
     than a different colour. */
  .light {
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    position: relative;
  }
  .light::before, .light::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
    opacity: 0.55;
  }
  .light::before { top: 0; }
  .light::after { bottom: 0; }

  .split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split-wide { grid-template-columns: 1.15fr 1fr; }
  }
}

@layer parts {
  .eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  }
  .eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--rule-neon), transparent);
  }
  .eyebrow-c { justify-content: center; }
  .eyebrow-c::after { display: none; }

  .lede {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.55;
    color: var(--on-dark-2);
    max-width: var(--measure);
    margin-top: 22px;
  }
  .body { color: var(--on-dark-2); max-width: var(--measure); }

  .gold { color: var(--pink); text-shadow: var(--glow-pink); }
  .gold-rule { height: 1px; background: linear-gradient(90deg, var(--pink), var(--cyan), transparent); }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding-inline: 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-gold {
    background: linear-gradient(100deg, var(--pink), #FF7AB8);
    color: #fff;
    box-shadow: var(--glow-pink);
  }
  .btn-gold:hover { box-shadow: 0 0 40px rgba(255, 46, 136, 0.62); }
  .btn-quiet { border-color: rgba(0, 229, 255, 0.45); color: var(--cyan-soft); }
  .btn-quiet:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
  @media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

  .card-grid { display: grid; gap: 1px; background: var(--rule); }
  @media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

  .card {
    background: rgba(10, 3, 22, 0.55);
    padding: clamp(28px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    position: relative;
    transition: background 220ms ease;
  }
  /* The lit edge appears on hover, so a grid of cards is calm until touched. */
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 2px solid transparent;
    pointer-events: none;
    transition: border-color 220ms ease, box-shadow 220ms ease;
  }
  .card:hover { background: rgba(38, 13, 73, 0.75); }
  .card:hover::after { border-top-color: var(--pink); box-shadow: inset 0 2px 22px -8px var(--pink); }
  .card .num {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.24em;
    color: var(--cyan);
  }
  .card .more {
    margin-top: auto;
    padding-top: 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink-hot);
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }
  .card .more span { transition: transform 160ms ease; display: inline-block; }
  .card:hover .more span { transform: translateX(3px); }

  .promises { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
  .promises li {
    padding: 18px 0;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 16px;
    align-items: baseline;
  }
  .promises li:last-child { border-bottom: 1px solid var(--rule); }
  .promises .mark { color: var(--cyan); font-size: 11px; text-shadow: var(--glow-cyan); }

  figure { margin: 0; }
  .frame { overflow: hidden; border-radius: 2px; background: var(--ink-3); }
  .frame img { width: 100%; object-fit: cover; }

  .masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(10, 3, 22, 0.72);
    border-bottom: 1px solid var(--rule);
  }
  .masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
  }
  .wordmark {
    font-family: var(--display);
    font-size: 25px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark);
    white-space: nowrap;
  }
  .wordmark em { font-style: normal; color: var(--pink); text-shadow: var(--glow-pink); }
  /* Five uppercase links with letter-spacing need more room than they look
     like they do. At 900px they wrapped mid-word — "JUNK / REMOVAL" — which
     is the first thing on every page. Shown only once there is actually
     space, and never allowed to break a label. */
  .navlinks { display: none; gap: 24px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
  @media (min-width: 1080px) { .navlinks { display: flex; } }
  @media (min-width: 1080px) and (max-width: 1200px) { .navlinks { gap: 18px; font-size: 11.5px; } }
  .navlinks a { text-decoration: none; color: var(--on-dark-2); transition: color 160ms ease, text-shadow 160ms ease; }
  .navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--cyan); text-shadow: var(--glow-cyan); }

  footer.site { border-top: 1px solid var(--rule); background: rgba(10, 3, 22, 0.6); }
  footer.site a { color: var(--on-dark-2); text-decoration: none; }
  footer.site a:hover { color: var(--pink-hot); }
}

@layer util {
  .center { text-align: center; }
  .stack { display: grid; gap: 22px; }
  .row { display: flex; flex-wrap: wrap; gap: 14px; }
  .mt-l { margin-top: 44px; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .js .rv { opacity: 0; transform: translateY(14px); }
  .js .rv.in, .rv-off .rv { opacity: 1; transform: none; }
  .rv { transition: opacity 700ms ease, transform 700ms ease; }
  @media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------------ scan */
/* The estimate flow. Deliberately the loudest thing on the site — it is the
   reason the homepage headline is true. */

@layer parts {
  .svc-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .svc-pick label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
  .svc-pick input { position: absolute; opacity: 0; pointer-events: none; }
  .svc-pick input:checked + span { color: var(--cyan); }
  .svc-pick label:has(input:checked) { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
  .svc-pick label:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }

  /* The camera button. Big, because it is pressed outdoors on a phone. */
  .dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 46px 24px;
    border: 1px dashed var(--rule-neon);
    border-radius: 14px;
    background: rgba(255, 46, 136, 0.04);
    cursor: pointer;
    text-align: center;
    transition: background 200ms ease, border-color 200ms ease;
  }
  .dropzone:hover { background: rgba(255, 46, 136, 0.08); border-color: var(--pink); }
  .dropzone strong { font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
  .dropzone small { color: var(--on-dark-3); font-size: 13px; }

  .shots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 18px; }
  .shot { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .shot-x {
    position: absolute; top: 5px; right: 5px;
    width: 26px; height: 26px;
    border: 0; border-radius: 999px;
    background: rgba(10, 3, 22, 0.82); color: #fff;
    font-size: 15px; line-height: 1; cursor: pointer;
  }
  .shot-x:hover { background: var(--pink); }

  .answer { border: 1px solid var(--rule); border-radius: 14px; padding: 26px; margin-top: 18px; }
  .answer-go { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 40px -18px var(--cyan); }
  .answer-wait { border-color: rgba(255, 46, 136, 0.35); }
  .answer-stop { border-color: rgba(255, 90, 90, 0.5); background: rgba(255, 90, 90, 0.06); }

  .price {
    font-family: var(--display);
    font-size: clamp(2.6rem, 7vw, 4rem);
    line-height: 1;
    margin: 6px 0 0;
    text-shadow: var(--glow-pink);
  }
  .price-unit { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--on-dark-3); letter-spacing: 0.06em; text-transform: uppercase; }
  .price-basis { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
  .price-then { margin-top: 10px; font-size: 15px; color: var(--on-dark-2); }
  .price-note { margin-top: 14px; font-size: 14.5px; color: var(--on-dark-2); }
  .price-provisional { color: var(--on-dark-3); font-size: 13.5px; }
  .price-lines { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--on-dark-2); }
  .price-lines li { margin-top: 5px; }

  .field { display: grid; gap: 8px; }
  .field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
  .field textarea {
    width: 100%;
    min-height: 90px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--rule);
    background: rgba(10, 3, 22, 0.5);
    color: var(--on-dark);
    font: inherit;
    font-size: 15px;
    resize: vertical;
  }
  .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
}

@layer parts {
  .bk-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 16px; }
  .bk-wide { grid-column: 1 / -1; }
  .bk-grid .field span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
  .bk-grid input, .bk-grid select {
    width: 100%; min-height: 48px; padding: 0 14px;
    border-radius: 10px; border: 1px solid var(--rule);
    background: rgba(10, 3, 22, 0.5); color: var(--on-dark);
    font: inherit; font-size: 15px;
  }
  .bk-grid input:focus, .bk-grid select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
}

@layer parts {
  /* The mobile menu.
     <details> rather than a JS drawer: it opens even if the script never
     loads, it is keyboard-operable for free, and screen readers already know
     what it is. Below 1080px it is the only navigation there is. */
  .mast-right { display: flex; align-items: center; gap: 10px; }

  /* On a phone the header holds a wordmark, a button and a menu. "Get a
     price" wrapped onto two lines and made the whole bar 100px tall, so it
     tightens rather than wraps. */
  @media (max-width: 560px) {
    .mast-right .btn { min-height: 44px; padding-inline: 18px; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
    .masthead .wordmark { font-size: 21px; }
  }

  .menu { position: relative; }
  .menu > summary {
    list-style: none;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    border: 1px solid var(--rule); border-radius: 10px;
    cursor: pointer;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary span { display: block; height: 2px; background: var(--on-dark); border-radius: 2px; }
  .menu[open] > summary { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
  .menu > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 230px;
    display: grid;
    /* Fully opaque. At 0.97 the headline behind it still read through, which
       made the menu look broken rather than translucent. */
    background: #0A0316;
    border: 1px solid var(--rule); border-radius: 12px;
    padding: 8px;
    box-shadow: 0 24px 60px -18px #000;
  }
  .menu-panel a {
    padding: 13px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; text-decoration: none; color: var(--on-dark-2);
  }
  .menu-panel a:hover { background: rgba(255, 46, 136, 0.14); color: var(--on-dark); }
  .menu-panel a:last-child { color: var(--pink-hot); }

  /* Once the full nav is visible the button is noise. */
  @media (min-width: 1080px) { .menu { display: none; } }
}
