/* ==========================================================================
   Autolift & Equipment Service
   Design system. One stylesheet, no framework.

   Palette is taken from the company logo (red on black) and from the shop
   itself: bare concrete, painted steel, and the safety yellow that shows up
   on every lift carriage in the photographs.
   ========================================================================== */

:root {
  --ink:        #14171c;
  --ink-2:      #1e232b;
  --ink-3:      #2b323c;
  --steel:      #5f6875;
  --steel-2:    #8b939e;
  --line:       #dbd8d3;
  --line-2:     #eceae6;
  --concrete:   #f2f0ec;
  --paper:      #ffffff;
  --red:        #e10600;
  --red-deep:   #a80400;
  --navy:       #001442;
  --navy-2:     #0b2560;
  --hi:         #f5b301;

  --shell:      1280px;
  --gut:        clamp(1.25rem, 4vw, 3.5rem);

  --f:          'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --step--1:    clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:     clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:     clamp(1.125rem, 1.06rem + .32vw, 1.3125rem);
  --step-2:     clamp(1.375rem, 1.25rem + .6vw, 1.75rem);
  --step-3:     clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:     clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem);
  --step-5:     clamp(2.75rem, 1.9rem + 4vw, 5.25rem);
}

/* --- reset ------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--f);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* --- type -------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.021em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); letter-spacing: -.014em; }
h5 { font-size: var(--step-1); letter-spacing: -.008em; }

p  { max-width: 68ch; }
p + p { margin-top: .9em; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-3); }
.fine { font-size: var(--step--1); color: var(--steel); }

strong { font-weight: 700; color: var(--ink); }

/* --- layout ------------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.band--concrete { background: var(--concrete); }
.band--ink { background: var(--ink); color: #cfd4dc; }
.band--ink h2, .band--ink h3, .band--ink h4, .band--ink h5 { color: var(--paper); }
.band--ink .lede { color: #b6bec9; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split--wide-left  { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.9rem; }

/* --- the spec rule ------------------------------------------------------
   A hairline with a short heavy segment at its left end. It reads like the
   dimension line on a shop drawing, which is what this company actually
   hands its customers.
   ----------------------------------------------------------------------- */

.rule {
  display: block;
  height: 3px;
  background: var(--line);
  position: relative;
  margin-bottom: 1.4rem;
}
.rule::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 72px;
  background: var(--red);
}
.band--ink .rule { background: #39414d; }

.kicker {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--steel);
  margin-bottom: .5rem;
}
.band--ink .kicker { color: var(--steel-2); }

/* --- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--red    { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ink    { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost  { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.band--ink .btn--ghost { color: #fff; }
.band--ink .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- masthead ---------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__bar {
  background: var(--navy);
  color: #b9c6de;
  font-size: var(--step--1);
}
.masthead__bar .shell {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
}
.masthead__bar a { color: #fff; text-decoration: none; font-weight: 600; }
.masthead__bar a:hover { color: #fff; text-decoration: underline; }

.masthead__main .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .95rem;
}

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: clamp(190px, 24vw, 310px); height: auto; }

.nav { display: none; }
@media (min-width: 68rem) {
  .nav { display: flex; align-items: center; gap: clamp(.55rem, 1.1vw, 1.15rem); }
}
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
  padding: .4rem 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 42px;
  padding: 0 10px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; }
@media (min-width: 68rem) { .nav-toggle { display: none; } }

/* The drawer is a fixed panel under the header with its own scroll. As an
   in-flow block it grew past the viewport and had nowhere to go, so dragging
   it scrolled the page underneath instead. overscroll-behavior stops that
   scroll chaining, and the body lock below stops iOS doing it anyway. */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--head-h, 128px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--concrete);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.nav-drawer.is-open { display: block; }
.nav-drawer ul {
  list-style: none;
  padding: .25rem var(--gut) calc(1.5rem + env(safe-area-inset-bottom));
  margin: 0;
}
.nav-drawer li + li { border-top: 1px solid var(--line); }
.nav-drawer a {
  display: block;
  padding: .95rem 0;
  text-decoration: none;
  font-weight: 600;
}
.nav-drawer a:hover, .nav-drawer a:focus-visible { color: var(--red); }
.nav-drawer a[aria-current="page"] { color: var(--red); }

/* Freeze the page behind the drawer. position:fixed rather than
   overflow:hidden because iOS Safari ignores the latter on <body>. */
body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* The toggle becomes a close button while the drawer is open. */
.nav-toggle span { transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 68rem) { .nav-drawer, .nav-drawer.is-open { display: none; } }

/* --- hero -------------------------------------------------------------- */

.hero { position: relative; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,12,15,.94) 0%, rgba(10,12,15,.72) 42%, rgba(10,12,15,.28) 100%);
}
.hero__body {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(5rem, 10vw, 7.5rem);
  color: #d7dce3;
  max-width: 46rem;
}
.hero h1 { color: #fff; }
.hero__lede { font-size: var(--step-1); line-height: 1.5; color: #c3cad4; margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__since {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  padding: .4rem .85rem;
  margin-bottom: 1.5rem;
}

/* stat strip that rides the bottom edge of the hero */

.stats {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border-top: 4px solid var(--red);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 55rem) {
  .stats { grid-template-columns: repeat(4, 1fr); margin-top: -3.25rem; }
}
.stats > div {
  padding: 1.6rem clamp(1rem, 2.2vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stats dd {
  margin: .5rem 0 0;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--steel);
  font-weight: 600;
}

/* --- capability grid --------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.cap { text-decoration: none; display: block; }
.cap__shot {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 1.05rem;
}
.cap__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cap:hover .cap__shot img { transform: scale(1.04); }
.cap h4 { margin-bottom: .45rem; }
.cap:hover h4 { color: var(--red); }
.cap p { color: var(--steel); font-size: var(--step--1); line-height: 1.6; }

/* --- lists ------------------------------------------------------------- */

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .65rem;
  line-height: 1.55;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 10px; height: 3px;
  background: var(--red);
}

.specs { border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  gap: .2rem 2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 44rem) {
  .specs > div { grid-template-columns: 15rem 1fr; }
}
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; color: var(--steel); }
.band--ink .specs, .band--ink .specs > div { border-color: #333b47; }
.band--ink .specs dd { color: #a8b1bd; }

/* --- numbered sequence (only used where the content is a sequence) ------ */

.steps { counter-reset: s; display: grid; gap: 2rem; }
@media (min-width: 55rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps > div { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps > div::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: .5rem;
}
.steps h5 { margin-bottom: .35rem; }
.steps p { font-size: var(--step--1); color: var(--steel); }
.band--ink .steps > div { border-color: var(--red); }
.band--ink .steps p { color: #a8b1bd; }

/* --- brand marks ------------------------------------------------------- */

.marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.marks div {
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem;
  min-height: 7.5rem;
}
.marks img {
  max-height: 46px;
  width: auto;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .2s ease, opacity .2s ease;
}
.marks div:hover img { filter: none; opacity: 1; }

/* --- FAQ --------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  position: relative;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: .5rem; top: 50%;
  width: 14px; height: 3px;
  background: var(--red);
  transform: translateY(-50%);
}
.faq summary::before {
  content: '';
  position: absolute; right: 1.05rem; top: 50%;
  width: 3px; height: 14px;
  background: var(--red);
  transform: translateY(-50%);
  transition: opacity .15s ease;
}
.faq details[open] summary::before { opacity: 0; }
.faq details p { padding-bottom: 1.4rem; color: var(--steel); }

/* --- gallery ----------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--steel);
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 4px;
}
.tiles figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.tiles img { width: 100%; height: 100%; object-fit: cover; }
.tiles figure[hidden] { display: none; }

/* --- contact form ------------------------------------------------------ */

.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  font: inherit;
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 1px; }
.field-row { display: grid; gap: 0 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note { margin-top: 1rem; font-weight: 600; }
.form-note[data-state="ok"]  { color: #0a7a34; }
.form-note[data-state="err"] { color: var(--red); }

/* --- page hero (interior) ---------------------------------------------- */

.phero { position: relative; background: var(--ink); }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.phero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10,12,15,.92) 0%, rgba(10,12,15,.6) 65%, rgba(10,12,15,.35) 100%);
}
.phero__body { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 48rem; }
.phero h1 { color: #fff; font-size: var(--step-4); }
.phero p { color: #c3cad4; font-size: var(--step-1); margin-top: 1rem; }

.crumbs { position: relative; z-index: 2; font-size: var(--step--1); color: #9aa3af; padding-top: 1.25rem; }
.crumbs a { color: #cfd4dc; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* --- CTA band ---------------------------------------------------------- */

.cta { background: var(--red); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #ffdad8; }
.cta .btn--ghost { color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.cta .btn--ink:hover { background: #000; }

/* --- footer ------------------------------------------------------------ */

.foot { background: var(--ink); color: #98a1ad; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot a { color: #cfd4dc; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 50rem) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.foot h5 { color: #fff; font-size: var(--step-0); margin-bottom: .9rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45rem; font-size: var(--step--1); }
.foot img.mark { width: 230px; height: auto; margin-bottom: 1.25rem; }
.foot address { font-style: normal; font-size: var(--step--1); line-height: 1.8; }
.foot__base {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid #2b323c;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  font-size: var(--step--1);
}

/* --- utilities ---------------------------------------------------------- */

.skip {
  position: absolute; left: -9999px;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; z-index: 100; font-weight: 700;
}
.skip:focus { left: var(--gut); top: .5rem; }

.frame { border: 1px solid var(--line); }
.shadowless { box-shadow: none; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.narrow { max-width: 46rem; }

/* hero sits on a dark photo, so the outline button follows the ink treatment */
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.phero .btn--ghost { color: #fff; }

/* --- form details ------------------------------------------------------- */

.field span em {
  font-style: normal;
  font-weight: 500;
  font-size: .8em;
  color: var(--steel);
  margin-left: .35rem;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }

/* Honeypot. Off-screen rather than display:none, because some bots skip
   hidden fields but not positioned ones. aria-hidden keeps it away from
   screen readers, tabindex="-1" keeps it out of the keyboard order. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
