/* ------------------------------------------------------------------
   Heavy Lift Engineering Ltd — site stylesheet
   Design language: engineering lift plan. Concrete ground, steel
   structure, hi-vis used only for load/annotation marks.
   ------------------------------------------------------------------ */

:root {
  --concrete:    #E7E8E4;
  --concrete-dk: #D6D8D2;
  --concrete-lt: #F2F3F0;
  --steel:       #1C2329;
  --steel-2:     #2E3940;
  --steel-3:     #5C6870;
  --steel-4:     #8B959B;
  --hivis:       #EFC114;
  --hivis-dk:    #C79C00;
  --white:       #FFFFFF;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--concrete);
  color: var(--steel);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px;
  background: var(--hivis); color: var(--steel);
  padding: .75rem 1.25rem; font-family: var(--mono); font-size: .8rem;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- hazard band: floor marking, used exactly once ---------------- */

.hazard {
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hivis) 0 14px,
    var(--steel) 14px 28px
  );
}

/* --- typography --------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.375rem);
  line-height: 1.5;
  max-width: 40ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-3);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--hivis);
  flex: none;
}

.prose { max-width: 62ch; }
.prose h3 { margin: 2.4rem 0 .7rem; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.6rem; }
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: .68em;
  width: 9px; height: 2px;
  background: var(--hivis-dk);
}

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

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--steel);
  color: var(--concrete-lt);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: flex; align-items: baseline; gap: .6rem;
  text-decoration: none; margin-right: auto;
}
.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--white);
}
.brand-mark em { color: var(--hivis); font-style: normal; }
.brand-sub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-4);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--concrete-dk);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .16s, border-color .16s;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--hivis);
}

.call-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--hivis);
  color: var(--steel);
  font-family: var(--mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .72rem 1.15rem;
  white-space: nowrap;
  transition: background .16s, transform .16s;
}
.call-btn:hover { background: var(--white); transform: translateY(-1px); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .site-head .wrap { min-height: 60px; flex-wrap: wrap; row-gap: 0; }
  .brand-sub { display: none; }
  .call-btn { padding: .6rem .9rem; font-size: .76rem; }
  .nav {
    order: 3;
    width: calc(100% + var(--gutter) * 2);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) .55rem;
    gap: 1.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: .55rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: .74rem; }
}

/* --- hero: the drawing sheet -------------------------------------- */

.hero {
  background: var(--steel);
  color: var(--concrete-lt);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint drawing grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero h1 { color: var(--white); }
.hero h1 .amp { color: var(--hivis); font-weight: 500; }
.hero .lead { color: var(--concrete-dk); margin-top: 1.8rem; max-width: 46ch; }
.hero .eyebrow { color: var(--steel-4); }

/* legend block — reads like a drawing title block */
.legend {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.028);
}
.legend dl { margin: 0; }
.legend .row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .78rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.45;
}
.legend .row:last-child { border-bottom: 0; }
.legend dt {
  color: var(--steel-4);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .66rem;
  padding-top: .16em;
}
.legend dd { margin: 0; color: var(--white); }
.legend dd a { color: var(--hivis); text-decoration: none; }
.legend dd a:hover { text-decoration: underline; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .85rem;
  margin-top: 2.2rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .84rem; font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border: 2px solid transparent;
  transition: background .16s, color .16s, border-color .16s;
}
.btn-primary { background: var(--hivis); color: var(--steel); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--concrete-lt); }
.btn-ghost:hover { border-color: var(--hivis); color: var(--hivis); }
.btn-dark { background: var(--steel); color: var(--white); }
.btn-dark:hover { background: var(--steel-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .legend { margin-top: .5rem; }
}
@media (max-width: 520px) {
  .legend .row { grid-template-columns: 1fr; gap: .3rem; padding: .7rem .9rem; }
  .stat-rows div { grid-template-columns: 1fr; gap: .25rem; }
}

/* --- generic section ---------------------------------------------- */

.band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.band-dark { background: var(--steel); color: var(--concrete-dk); }
.band-dark h2 { color: var(--white); }
.band-light { background: var(--concrete-lt); }

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.band-head p { margin: 0; color: var(--steel-3); }
.band-dark .band-head p { color: var(--steel-4); }

@media (max-width: 800px) {
  .band-head { grid-template-columns: 1fr; align-items: start; }
}

/* --- service cards ------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--concrete-dk);
  border: 1px solid var(--concrete-dk);
}
.card {
  background: var(--white);
  padding: 2rem 1.75rem 1.9rem;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: background .18s;
}
.card:hover { background: var(--concrete-lt); }
.card-ref {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--steel-4);
  margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: .8rem; }
.card p { color: var(--steel-3); font-size: .95rem; margin: 0 0 1.6rem; }
.card .go {
  margin-top: auto;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: .5rem;
}
.card .go::after {
  content: "";
  width: 22px; height: 2px; background: var(--hivis-dk);
  transition: width .18s;
}
.card:hover .go::after { width: 38px; }

/* --- sequence (how a job runs) ------------------------------------ */

.seq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { border-top: 2px solid var(--hivis); padding-top: 1.1rem; }
.step-n {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--hivis); margin-bottom: .9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .55rem; color: var(--white); }
.step p { font-size: .94rem; margin: 0; color: var(--steel-4); }

/* --- sectors strip ------------------------------------------------ */

.sectors {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; margin: 0; padding: 0;
}
.sectors li {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  border: 1px solid var(--concrete-dk);
  background: var(--white);
  padding: .6rem 1rem;
}

/* --- split feature ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stat-rows { border-top: 1px solid var(--concrete-dk); }
.stat-rows div {
  display: grid; grid-template-columns: 6.75rem 1fr; gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--concrete-dk);
  align-items: baseline;
}
.stat-rows dt {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.stat-rows dd { margin: 0; font-size: .95rem; color: var(--steel-3); }

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

.cta {
  background: var(--hivis);
  color: var(--steel);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta h2 { max-width: 20ch; }
.cta .cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
}
.cta p { margin: 1rem 0 0; max-width: 44ch; }
.cta-lines { font-family: var(--mono); }
.cta-lines a {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(28,35,41,.25);
}
.cta-lines a:hover { color: var(--white); }
.cta-lines small {
  display: block; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; opacity: .65; margin-bottom: -.2rem;
}
@media (max-width: 800px) { .cta .cta-grid { grid-template-columns: 1fr; } }

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

.form-grid { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label {
  display: block;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel-3);
  margin-bottom: .45rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  padding: .8rem .9rem;
  background: var(--white);
  border: 1px solid var(--concrete-dk);
  border-radius: 0;
  color: var(--steel);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--hivis); outline-offset: 0; border-color: var(--steel);
}
.field textarea { min-height: 8rem; resize: vertical; }

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

.site-foot {
  background: var(--steel);
  color: var(--steel-4);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  font-size: .9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-foot h4 {
  font-family: var(--mono); font-weight: 500;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hivis);
  margin: 0 0 1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { color: var(--concrete-dk); text-decoration: none; }
.site-foot a:hover { color: var(--hivis); text-decoration: underline; }
.site-foot address { font-style: normal; line-height: 1.7; color: var(--concrete-dk); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
}

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

.page-hero {
  background: var(--steel);
  color: var(--concrete-dk);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
.page-hero .lead { color: var(--concrete-dk); margin-top: 1.4rem; max-width: 52ch; }

.crumbs {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel-4);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--steel-4); text-decoration: none; }
.crumbs a:hover { color: var(--hivis); }

/* --- reduced motion ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --- load-in: one orchestrated moment, hero only ------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .legend .row {
    animation: rise .55s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .hero .eyebrow  { animation-delay: .04s; }
  .hero h1        { animation-delay: .10s; }
  .hero .lead     { animation-delay: .18s; }
  .hero-actions   { animation-delay: .26s; }
  .legend .row:nth-child(1) { animation-delay: .22s; }
  .legend .row:nth-child(2) { animation-delay: .28s; }
  .legend .row:nth-child(3) { animation-delay: .34s; }
  .legend .row:nth-child(4) { animation-delay: .40s; }
  .legend .row:nth-child(5) { animation-delay: .46s; }
  .legend .row:nth-child(6) { animation-delay: .52s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- sticky contact rail on service pages ------------------------- */
.side { position: sticky; top: 96px; }
@media (max-width: 860px) { .side { position: static; } }

/* --- form error notice -------------------------------------------- */
.notice {
  border-left: 4px solid #B3261E;
  background: var(--white);
  padding: 1rem 1.15rem;
  margin-bottom: 1.4rem;
  max-width: 34rem;
  font-size: .95rem;
  border-radius: 0;
}
.notice strong { font-family: var(--display); font-weight: 700; }
.notice a { color: var(--steel); }

/* --- photographs --------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--concrete-dk);
  border: 1px solid var(--concrete-dk);
}
.shot { margin: 0; background: var(--concrete-lt); }
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--concrete-dk);
}
.shot figcaption {
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--steel-3);
  padding: .9rem 1.1rem 1.1rem;
}
.shot-lead { margin: 0 0 2rem; border: 1px solid var(--concrete-dk); }
.shot-lead img { aspect-ratio: 16 / 9; }

/* hero with a photograph behind it: keep the text legible */
.hero-photo { background-size: cover; background-position: center; }
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(28,35,41,.94) 0%, rgba(28,35,41,.86) 45%, rgba(28,35,41,.62) 100%);
}
.hero-photo::after { opacity: .35; }
