/* ==========================================================================
   LiftCo — site styles

   Ported from the Duravex site (D:\duravex-website, src/assets/css/site.css): same owner, same design system,
   palette, type and components. Only the logo differs (LiftCo's own, src/_includes/logo.njk). Components the
   LiftCo pages do not use (the attenuation chart, news, careers, the application form) were left out; the rest
   keeps Duravex's class names so a fix there can be carried over here.

   Two rules carried over from Duravex's docs/css-architecture.md:
   - Colours on dark bands (--ink, --brand) live in ONE block at the end of this file. Components set
     light-background colours at the same specificity, so source order decides; a dark override placed beside
     its component silently loses.
   - Measure contrast in the browser (getComputedStyle) rather than judging it by eye.
   ========================================================================== */

:root {
  --ink:      #0D1B2F;
  --brand:    #17325C;
  --brand-2:  #254C86;
  --steel:    #69747F;
  --edge:     #D3D8DE;
  --paper:    #F2F4F6;
  --surface:  #FFFFFF;
  --zinc:     #F2B01E;   /* the amber accent: rules, markers, focus ring */
  --logo:     #283C63;   /* LiftCo's logo navy, from its SVG */

  --muted:    #46566A;   /* body copy on light */
  --on-dark:  #DDE5EF;   /* body copy on brand */
  --dim:      #8FA3BE;   /* labels on ink */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --pad:  clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0; letter-spacing: -0.02em; line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; border: 0; }
figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--zinc); outline-offset: 3px; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: var(--pad); padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow a { text-decoration: none; border-bottom: 1px solid currentColor; }
.rule { width: 44px; height: 4px; background: var(--zinc); border: 0; margin: 0 0 18px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--brand); color: #fff; padding: .5rem 1rem;
}

/* ---------- Site header ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--edge); }
.header-inner {
  display: flex; flex-wrap: wrap; gap: 14px 1rem;
  align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.logo { display: block; color: var(--logo); line-height: 0; }
.logo svg { width: 168px; height: auto; }
.site-header nav ul {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  list-style: none; margin: 0; padding: 0;
}
.site-header nav a {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current] { border-bottom-color: var(--zinc); }

@media (max-width: 560px) {
  .logo svg { width: 140px; }
  .site-header nav { width: 100%; }
  .site-header nav ul { gap: 8px 20px; }
}

/* ---------- Hero ---------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--edge); }
.hero .wrap {
  padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(36px, 5vw, 66px);
}
.hero--dark { background: var(--ink); border-bottom: 0; }
.hero--dark .lede { max-width: 62ch; }
.hero--dark .rule { margin-bottom: 22px; }

/* Photographic variant. The scrim is what makes the text legible, so it is built to work at any crop: a
   left-weighted wash so copy sits on near-solid ink, plus a vertical wash for the mobile crop. Text is never
   placed on bare photo. */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.hero--photo .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero--photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgb(13 27 47 / .94) 0%,
      rgb(13 27 47 / .88) 32%,
      rgb(13 27 47 / .50) 60%,
      rgb(13 27 47 / .15) 100%),
    linear-gradient(180deg,
      rgb(13 27 47 / .25) 0%,
      rgb(13 27 47 / .06) 45%,
      rgb(13 27 47 / .40) 100%);
}
.hero--photo .wrap { position: relative; }
.hero--photo .lede { max-width: 58ch; }
@media (max-width: 860px) {
  .hero--photo::before {
    background: linear-gradient(180deg, rgb(13 27 47 / .90) 0%, rgb(13 27 47 / .82) 60%, rgb(13 27 47 / .92) 100%);
  }
  .hero--photo .hero-bg img { object-position: 60% 50%; }
}
.hero h1 {
  font-size: clamp(28px, 3.9vw, 44px); font-weight: 800;
  margin: 14px 0 20px; max-width: 20ch;
}
.hero .lede { font-size: clamp(16px, 1.4vw, 18px); color: #3B4A5C; max-width: 46ch; }
@media (max-width: 860px) { .hero h1 { max-width: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 28px; }
.hero-actions .btn { margin-top: 0; }

/* ---------- Fact strip ---------- */

.facts { background: var(--ink); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 0; }
.fact { padding: 24px; border-left: 1px solid rgb(255 255 255 / .14); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.fact dd {
  margin-top: 6px; font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 2vw, 25px); letter-spacing: -.01em;
}
@media (max-width: 820px) {
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 0; padding: 18px 0; }
  .fact:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgb(255 255 255 / .14); }
}

/* ---------- Section shell ---------- */

.section { padding-block: clamp(48px, 6.5vw, 84px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--edge); }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.section .eyebrow + h2 { margin-top: 10px; }
/* Section lead-in: the line between an h2 and the content below it. Unclassed paragraphs only: a classed paragraph
   styles itself, and without :not([class]) this selector's specificity beats theirs. */
.section > .wrap > p:not([class]) {
  font-size: clamp(18px, 1.65vw, 21px);
  font-weight: 600; line-height: 1.45;
  color: #22334A;
  margin-top: 16px;
  max-width: 86ch;
  text-wrap: balance;
}

/* Lead paragraphs (the home page mission text, a service's description). --muted at this size reads washed out
   on --paper, so these carry more weight and a deeper ink than ordinary body copy. */
.intro p {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500; line-height: 1.5;
  color: #22334A; max-width: 66ch;
}
.intro p + p { margin-top: 1em; }

/* ---------- Split + note ---------- */

.split {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
.split .body { margin-top: 14px; color: #22334A; max-width: 60ch; }
.split .body a { color: var(--brand-2); text-underline-offset: 2px; }
.note {
  background: var(--surface); border: 1px solid var(--edge);
  border-left: 4px solid var(--zinc);
  padding: 22px 24px; border-radius: 2px;
}
.section--alt .note { background: var(--paper); }
.note h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.note p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Card grid ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--edge);
  border: 1px solid var(--edge); border-radius: 2px;
}
.card { background: var(--surface); padding: 26px 24px 28px; transition: background .2s ease; }
.card:hover { background: #FAFBFC; }
.card h3 { font-size: 18px; font-weight: 700; margin: 10px 0; }
.card p { color: var(--muted); font-size: 15px; }
.idx { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #8A5A00; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.section .cards { margin-top: clamp(28px, 4vw, 44px); }

/* Without the hairline-border technique: used where the item count does not divide evenly. */
.cards--plain { gap: 16px; background: none; border: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--plain .card { border: 1px solid var(--edge); border-top: 3px solid var(--brand); }
.section:not(.section--alt) .cards--plain .card { background: var(--surface); }
.section--alt .cards--plain .card { background: var(--paper); }
.cards--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .cards--two, .cards--plain { grid-template-columns: 1fr; } }

/* Example lists inside cards. Amber dash marker, same language as the services tiles. */
.card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.card li {
  position: relative; padding-left: 18px;
  color: var(--muted); font-size: 14.5px; line-height: 1.5;
}
.card li + li { margin-top: 8px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 2px; background: var(--zinc);
}

/* A card that is itself a link. */
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { border-top-color: var(--zinc); }
a.card:hover .card-link { color: var(--brand-2); }
/* --muted, not Duravex's --steel: these cards also sit on --paper, where --steel measures 4.3:1 (below AA). */
.card-link {
  margin-top: auto; padding-top: 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card .card-link { color: var(--muted); font-size: 11px; }
.card-link::after { content: " \2192"; }

/* ---------- Numbered rows (product families) ---------- */

.reasons { border-top: 1px solid var(--edge); margin-top: clamp(28px, 4vw, 44px); }
.reason {
  display: grid; grid-template-columns: 84px 1fr; gap: 24px;
  padding: clamp(24px, 3vw, 32px) 0; border-bottom: 1px solid var(--edge);
  scroll-margin-top: 16px;
}
.reason-num {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; color: #8A5A00; padding-top: 5px;
}
.reason h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.reason p { color: var(--muted); max-width: 68ch; }
.reason p a { color: var(--brand-2); text-underline-offset: 2px; }
@media (max-width: 700px) { .reason { grid-template-columns: 1fr; gap: 4px; } }

/* Item tags under a product family. */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--edge); border-left: 3px solid var(--brand);
  font-size: 15px; color: #22334A;
}

/* ---------- Capability list (industries) ---------- */

.specs { border-top: 1px solid var(--edge); margin-top: clamp(24px, 3.5vw, 36px); }
.spec {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--edge); align-items: baseline;
}
.spec dt {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2);
}
.spec dd { font-size: 16px; color: #22334A; max-width: 70ch; }
@media (max-width: 700px) { .spec { grid-template-columns: 1fr; gap: 6px; } }
[id] { scroll-margin-top: 16px; }

/* ---------- Services tiles ---------- */

.services {
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.services li {
  display: flex; align-items: center; gap: 14px;
  min-height: 88px; padding: 20px 24px;
  background: var(--brand); color: #fff;
  border-radius: 12px;
  font-family: var(--display); font-weight: 600;
  font-size: 17px; line-height: 1.3;
}
.services li::before { content: ""; flex: none; width: 12px; height: 3px; background: var(--zinc); }
/* The link's ::before stretches over the whole tile, so the tile is the click target while the markup stays one
   link. White on --brand-2 (hover) is 8.6:1; amber on --brand is 7.2:1. */
.services li:has(> a) { position: relative; transition: background-color .15s; }
.services li:has(> a):hover { background: var(--brand-2); }
.services li > a { flex: 1; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.services li > a::after { content: "\2192"; margin-left: auto; color: var(--zinc); font-size: 20px; line-height: 1; }
.services li > a::before { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.services li > a:focus-visible { outline: none; }
.services li:has(> a:focus-visible) { outline: 3px solid var(--zinc); outline-offset: 3px; }

/* ---------- Buttons, meta line, CTA ---------- */

.meta {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .18);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}

.btn {
  display: inline-block; margin-top: 26px;
  background: var(--zinc); color: var(--ink);
  padding: 14px 30px; text-decoration: none; border: 2px solid var(--zinc);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
button.btn { cursor: pointer; }
button.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
button.btn:disabled { opacity: .6; cursor: progress; }

.cta { background: var(--brand); color: #fff; padding-block: clamp(48px, 6.5vw, 84px); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-top: 10px; }
.cta p { color: var(--on-dark); margin-top: 14px; max-width: 60ch; }

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  -webkit-user-select: none; user-select: none;
}
.field .optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--steel); border-radius: 0;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 9em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
/* Shown instead of the form while site.contactForm is off. */
.contact-alt { max-width: 640px; }
.contact-alt h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.contact-alt p { margin-top: 12px; color: #22334A; font-size: 17px; }
.btn--dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-details h2 { font-size: 20px; margin-bottom: 12px; }
.contact-details p + h2 { margin-top: 32px; }
.contact-details a { color: var(--brand-2); text-underline-offset: 2px; }
.contact-note { margin-top: 24px; color: var(--muted); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (Markdown bodies) ---------- */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 1.6em; }
.prose p, .prose li { color: #22334A; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }
.prose--lead p { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; }
.prose--lead p:first-child { font-size: clamp(19px, 1.75vw, 22px); font-weight: 500; line-height: 1.5; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--dim); }
.footer-inner {
  display: grid; gap: clamp(24px,4vw,48px);
  grid-template-columns: 1.3fr repeat(3, 1fr);
  padding-block: clamp(40px,5vw,60px) 32px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; line-height: 0; color: #fff; }
.footer-logo svg { width: 150px; height: auto; }
.footer-tag {
  margin-top: 16px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.footer-heading {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
.site-footer p { margin-bottom: 8px; font-size: 15px; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-links li + li { margin-top: 6px; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--zinc); }
.site-footer .footer-logo { border-bottom: 0; }
.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .12);
  padding-block: 16px; font-size: 12px;
}

/* ==========================================================================
   Dark bands

   Any band sitting on --ink or --brand. This block comes LAST on purpose: components set dark text colours for
   light backgrounds (.lede, .card p), and those rules have the same specificity as a `.hero--dark .lede` override,
   so source order decides. Rules: body copy is white, never a tinted grey; eyebrows and small accents are amber;
   mono labels use a light tint, still >= 10:1 on ink.
   ========================================================================== */

.hero--dark, .facts, .cta, .site-footer { color: #fff; }
.hero--dark h1, .hero--dark h2, .hero--dark h3, .cta h2, .cta h3 { color: #fff; }
.hero--dark p, .hero--dark .lede, .cta p, .site-footer p { color: #fff; }
.hero--dark .eyebrow, .cta .eyebrow { color: var(--zinc); }
.hero--dark .meta, .facts dt, .site-footer .footer-tag, .site-footer .footer-legal p, .footer-heading { color: #C6CFDA; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .facts, .site-footer, .cta, .hero--dark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header nav, .hero-actions { display: none; }
}
