/* ==========================================================================
   Red Summit Liquidation
   Single stylesheet. Mobile-first. No build step, no dependencies.

   Sections, in order:
     1.  Design tokens
     2.  Reset & base
     3.  Typography
     4.  Layout primitives
     5.  Buttons
     6.  Header & navigation
     7.  Hero
     8.  Trust bar
     9.  Cards (sources, commitments, contact)
     10. Process steps
     11. Condition grade table
     12. FAQ accordion
     13. CTA band
     14. Forms
     15. Footer
     16. Utilities & motion
   ========================================================================== */


/* 1. Design tokens
   --------------------------------------------------------------------------
   Colors are taken from the business card. When the final logo PNG arrives,
   sample the red from it and update --red / --red-deep / --red-bright here;
   every red on the site flows from these three values.

   --red is sampled from the logo artwork itself. It is a deep red, so on the
   dark background it measures only 2.6:1 and must never carry text there —
   it is for button fills (white on it clears AA at 7.4:1), borders and rules.
   Any small red text on a dark background uses --red-bright (5.3:1).
   -------------------------------------------------------------------------- */
:root {
  --ink:         #0E0E10;
  --ink-2:       #1A1A1D;
  --ink-3:       #26262B;
  --red:         #A8191D;
  --red-deep:    #82141A;
  --red-bright:  #E85055;
  --paper:       #FFFFFF;
  --paper-2:     #F4F4F5;
  --paper-3:     #E7E7EA;
  --muted:       #6B6B72;
  --muted-dark:  #A1A1AB;

  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  --wrap:      1140px;
  --wrap-text: 720px;

  --gap-xs: 0.5rem;
  --gap-s:  1rem;
  --gap-m:  1.75rem;
  --gap-l:  3rem;
  --gap-xl: 5rem;

  --shadow: 0 2px 4px rgba(14, 14, 16, 0.06), 0 12px 32px rgba(14, 14, 16, 0.08);
}


/* 2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Visible, high-contrast focus on both light and dark grounds. */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--red);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gap-s);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--gap-s); }


/* 3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 var(--gap-s);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 var(--gap-s); }
p:last-child { margin-bottom: 0; }

/* Default link color, wrapped in :where() so it contributes zero specificity.
   Buttons, the logo, nav links and footer links all carry their own colors,
   and any of those component rules now wins automatically — no :not() chains
   to keep in sync as components are added. */
:where(a) { color: var(--red-deep); text-underline-offset: 3px; }
:where(a:hover) { color: var(--red); }

strong { font-weight: 700; }

/* Small letterspaced label above a heading — echoes the LIQUIDATION
   treatment on the business card. */
.eyebrow {
  margin: 0 0 var(--gap-xs);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.on-dark .eyebrow { color: var(--red-bright); }

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.on-dark .lede { color: var(--muted-dark); }

.section-head {
  max-width: var(--wrap-text);
  margin-bottom: var(--gap-l);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* 4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gap-s);
}
@media (min-width: 48em) {
  .wrap { padding: 0 var(--gap-m); }
}

.section { padding: var(--gap-l) 0; }
@media (min-width: 48em) {
  .section { padding: var(--gap-xl) 0; }
}

.section--tight { padding: var(--gap-m) 0; }

.on-dark {
  background: var(--ink);
  color: var(--paper);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
:where(.on-dark a) { color: var(--red-bright); }

.on-grey { background: var(--paper-2); }

/* Same rule as .hero__inner: .prose usually shares an element with .wrap, so
   narrowing the element itself would re-center it and break the left rail.
   Constrain the children and let the wrap keep its own width. */
.prose > * { max-width: var(--wrap-text); }
.prose h2 { margin-top: var(--gap-l); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--gap-m); }

.grid {
  display: grid;
  gap: var(--gap-s);
  grid-template-columns: 1fr;
}
@media (min-width: 37.5em) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--gap-m); }
}


/* 5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;              /* comfortable thumb target */
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;                   /* 5.0:1 on --red — clears AA */
}
.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

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

.on-dark .btn--ghost { color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
  margin-top: var(--gap-m);
}


/* 6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;               /* lets the open mobile nav drop to its own row */
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  min-height: 4.25rem;
}

/* Wordmark. logo-white.png is the supplied logo with its wordmark knocked out
   to white on a transparent ground, for use on the dark header and footer.
   assets/img/logo.png is the original black-wordmark version, for light
   backgrounds. Sized by height so the 860x284 source scales cleanly. */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
}
.logo__img {
  display: block;
  width: auto;
  height: 2rem;
}
@media (min-width: 60em) {
  .logo__img { height: 2.3rem; }
}
.site-footer__logo .logo__img { height: 2.3rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid var(--ink-3);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--red); }

/* No-JS fallback: without the script the menu button is meaningless, so it
   stays hidden and the links render as a simple wrapping row. */
.no-js .nav-toggle { display: none; }

.nav {
  display: none;
  flex-basis: 100%;              /* full-width row under the logo once open */
  width: 100%;
  padding-bottom: var(--gap-s);
}
.nav.is-open { display: block; }
.no-js .nav { display: block; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--ink-3);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { color: var(--red-bright); }
.nav__link[aria-current="page"] {
  color: var(--red-bright);
  border-bottom-color: var(--red);
}
.nav__cta { margin-top: var(--gap-s); }
.nav__cta .btn { width: 100%; }

@media (min-width: 60em) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle, .no-js .nav-toggle { display: none; }
  .nav, .nav.is-open, .no-js .nav {
    display: block;
    flex-basis: auto;
    width: auto;
    padding-bottom: 0;
  }
  .nav__list { flex-direction: row; align-items: center; gap: var(--gap-m); }
  .nav__link { padding: 0.35rem 0; border-bottom: 2px solid transparent; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--red); }
  .nav__cta { margin-top: 0; margin-left: var(--gap-s); }
  .nav__cta .btn { width: auto; min-height: 2.6rem; padding: 0.6rem 1.15rem; }
}


/* 7. Hero
   --------------------------------------------------------------------------
   The angled red chevrons are drawn with clip-path pseudo-elements rather
   than an image file, so they stay crisp at any size and cost no bandwidth.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: var(--gap-l) 0;
}
@media (min-width: 48em) {
  .hero { padding: var(--gap-xl) 0; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  height: 140%;
  width: 40%;
  pointer-events: none;
}
.hero::before {
  right: -6%;
  background: var(--red);
  opacity: 0.9;
  clip-path: polygon(38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%, 0 0);
}
.hero::after {
  right: 12%;
  background: var(--red-deep);
  opacity: 0.55;
  clip-path: polygon(38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%, 0 0);
}
/* On phones the chevrons sit behind the text, so they drop back to a faint
   accent instead of fighting the headline for contrast. */
@media (max-width: 47.99em) {
  .hero::before { opacity: 0.16; right: -22%; }
  .hero::after  { opacity: 0.1;  right: -4%; }
}

/* .hero__inner shares an element with .wrap, so it must NOT narrow that
   element — doing so re-centers the whole block and pulls the hero off the
   left rail every other section lines up on. Constrain the children instead. */
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__inner > * { max-width: 40rem; }
/* The headline gets a wider measure than the body copy so it resolves to
   three or four lines instead of five. It still clears the chevron artwork. */
.hero h1 { max-width: 46rem; }
.hero h1 { margin-bottom: var(--gap-s); }
.hero .lede { max-width: 34rem; }


/* 8. Trust bar
   -------------------------------------------------------------------------- */
.trustbar {
  background: var(--ink-2);
  border-top: 3px solid var(--red);
  padding: var(--gap-m) 0;
  color: var(--paper);
}
.trustbar__list {
  display: grid;
  gap: var(--gap-s);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 37.5em) { .trustbar__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em)   { .trustbar__list { grid-template-columns: repeat(4, 1fr); } }

.trustbar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.trustbar__item svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: var(--red-bright);
}


/* 9. Cards
   -------------------------------------------------------------------------- */
.card {
  padding: var(--gap-m) var(--gap-s);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-top: 3px solid var(--red);
}
.card h3 { margin-bottom: 0.5rem; }
.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.975rem;
}
.on-dark .card {
  background: var(--ink-2);
  border-color: var(--ink-3);
  border-top-color: var(--red);
}
.on-dark .card p { color: var(--muted-dark); }

/* Plain checklist used for operating commitments. */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 0 0 var(--gap-s) 2rem;
}
.checklist li:last-child { padding-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--red);
  clip-path: polygon(38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%, 0 0);
}


/* 10. Process steps
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--gap-m);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 37.5em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em)   { .steps--4 { grid-template-columns: repeat(4, 1fr); }
                             .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}
.on-dark .steps li::before { color: var(--red-bright); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.975rem; }
.on-dark .steps p { color: var(--muted-dark); }


/* 11. Condition grade table
   --------------------------------------------------------------------------
   Table on wide screens; on phones each row restacks into a labelled block
   using the data-label attributes in the markup.
   -------------------------------------------------------------------------- */
.grades {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.grades caption {
  margin-bottom: var(--gap-s);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
}
.grades th, .grades td {
  padding: var(--gap-s);
  border-bottom: 1px solid var(--paper-3);
  vertical-align: top;
}
.grades thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.grades tbody th {
  width: 30%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.grades td { color: var(--muted); font-size: 0.975rem; }

@media (max-width: 47.99em) {
  .grades thead { display: none; }
  .grades tbody, .grades tr, .grades th, .grades td { display: block; width: 100%; }
  .grades tr {
    margin-bottom: var(--gap-s);
    border: 1px solid var(--paper-3);
    border-top: 3px solid var(--red);
  }
  .grades th, .grades td { border-bottom: 0; padding-bottom: 0; }
  .grades td:last-child { padding-bottom: var(--gap-s); }
  .grades td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
  }
}


/* 12. FAQ accordion
   --------------------------------------------------------------------------
   Built on <details>/<summary>, so every answer is readable and the whole
   list still works with JavaScript disabled.
   -------------------------------------------------------------------------- */
.faq { max-width: var(--wrap-text); }

.faq__item {
  border-bottom: 1px solid var(--paper-3);
}
.faq__item:first-child { border-top: 1px solid var(--paper-3); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-s);
  padding: var(--gap-s) 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--red-deep); }

.faq__q::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }

.faq__a {
  padding: 0 0 var(--gap-s);
  max-width: 62ch;
  color: var(--muted);
}
.faq__a p { margin-bottom: 0.75rem; }
.faq__a p:last-child { margin-bottom: 0; }


/* 13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: var(--gap-l) 0;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 55%, var(--red-deep) 55%);
  opacity: 0.35;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta .lede { margin-left: auto; margin-right: auto; max-width: 42rem; }
.cta .btn-row { justify-content: center; }


/* 14. Forms
   -------------------------------------------------------------------------- */
.form { max-width: 34rem; }
.field { margin-bottom: var(--gap-s); }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--muted);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field__hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}


/* 15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: var(--gap-l) 0 var(--gap-m);
  border-top: 3px solid var(--red);
  font-size: 0.95rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--red-bright); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  gap: var(--gap-m);
  grid-template-columns: 1fr;
  margin-bottom: var(--gap-m);
}
@media (min-width: 37.5em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em)   { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer h4 {
  margin-bottom: 0.75rem;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }

.site-footer__bottom {
  padding-top: var(--gap-s);
  border-top: 1px solid var(--ink-3);
  font-size: 0.85rem;
}
.site-footer__logo { margin-bottom: var(--gap-s); }


/* 16. Utilities & motion
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mt-m { margin-top: var(--gap-m); }
.mt-l { margin-top: var(--gap-l); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .nav, .cta, .skip-link { display: none; }
  body { color: #000; background: #fff; }
  .on-dark, .hero { background: #fff !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .on-dark h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
