:root {
  --black: #000;
  --white: #fff;
  --steel: #5f7693;
  --steel-dark: #334c5b;
  --gold: #f2d347;
  --muted: #bfc5cc;
  --line: #9fb1c0;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}

.machinery-page .site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.96);
}

.machinery-page main {
  padding-top: 116px;
}

.nav {
  min-height: 116px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: clamp(118px, 11vw, 143px);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 68px);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: var(--white);
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 11px 24px 10px;
  border: 3px solid var(--gold);
  background: #000;
  color: var(--gold);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.nav--simple {
  grid-template-columns: 1fr auto;
}

.nav--simple .brand {
  display: none;
}

.nav--simple .nav-links {
  justify-content: flex-start;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 28px;
}

.section-title {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-kicker {
  margin: 16px 0 0;
  color: #d5d9de;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

.machine-hero {
  padding-top: 52px;
  padding-bottom: 72px;
}

.machine-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  gap: 20px;
}

.machine-card {
  position: relative;
  min-height: 366px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  isolation: isolate;
  cursor: pointer;
}

.machine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transform: scale(1.01);
  transition: transform 260ms ease, filter 260ms ease;
}

.machine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 1;
}

.machine-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  z-index: 2;
  opacity: 0;
  max-height: calc(100% - 28px);
  transform: translateY(-42%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.machine-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(0.78rem, 0.98vw, 1rem);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.machine-copy p {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(0.68rem, 0.85vw, 0.84rem);
  line-height: 1.18;
  font-weight: 400;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.machine-card:hover img,
.machine-card:focus-within img {
  transform: scale(1.07);
  filter: brightness(0.62) saturate(0.85);
}

.machine-card:hover::after,
.machine-card:focus-within::after,
.machine-card:hover .machine-copy,
.machine-card:focus-within .machine-copy {
  opacity: 1;
}

.machine-card:hover .machine-copy,
.machine-card:focus-within .machine-copy {
  transform: translateY(-50%);
}

.history {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr);
  align-items: center;
  gap: clamp(42px, 8vw, 96px);
  padding-top: 84px;
}

.history-image {
  min-height: 430px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34)),
    url("assets/montacargas1.jpeg") center / cover;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.history h2,
.cta-copy strong {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.gold-rule {
  width: 70px;
  height: 5px;
  margin: 36px 0 24px;
  background: var(--gold);
}

.history p {
  max-width: 650px;
  color: #d9dde1;
  font-size: 1.06rem;
  line-height: 1.48;
}

.stats-title {
  padding-top: 18px;
  padding-bottom: 56px;
}

.stats-band {
  background: var(--steel);
}

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
}

.stat {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border-right: 4px solid rgba(218, 228, 238, 0.75);
}

.stat:last-child {
  border-right: 0;
}

.stat-icon {
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.72);
}

.stat strong {
  max-width: 170px;
  font-size: 0.82rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.clients {
  padding-top: 86px;
  padding-bottom: 0;
}

.clients-board {
  margin-top: 64px;
  background: var(--white);
  padding: 36px;
}

.clients-board img {
  width: 100%;
  height: auto;
}

.quote-band {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 58px;
  background: #9aa8b2;
}

.quote-inner {
  max-width: var(--max);
  min-height: 65px;
  margin: 0 auto;
  padding: 12px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.quote-inner p {
  margin: 0;
  color: var(--black);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.25rem, 2.15vw, 1.75rem);
  line-height: 1.08;
}

.quote-inner span {
  display: block;
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.quote-button {
  min-width: 260px;
  padding: 12px 24px;
  border: 3px solid var(--gold);
  background: var(--black);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quote-button:hover {
  color: var(--gold);
}

.home-hero {
  min-height: 700px;
  padding-top: 116px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.08)),
    url("assets/retro1.png") center / cover;
  display: grid;
  align-items: start;
}

.home-hero .section-title {
  max-width: 520px;
  padding-top: 150px;
  margin-left: 6vw;
  text-align: left;
  color: var(--white);
}

.trust-bar {
  display: grid;
  grid-template-columns: minmax(360px, 43%) 1fr;
  min-height: 220px;
  margin-top: 48px;
  background: #151719;
}

.trust-image {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 30px 8vw 30px 12vw;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(21, 23, 25, 0.28) 55%,
      #151719 100%
    ),
    url("assets/vista1.jpeg") center / cover;
  overflow: hidden;
}

.trust-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 42%, #151719 100%);
  pointer-events: none;
}

.trust-image h2 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.3rem, 3.5vw, 3.8rem);
  line-height: 1.15;
}

.trust-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 24px;
  padding: 22px clamp(30px, 5vw, 78px);
}

.trust-item {
  display: grid;
  grid-template-rows: 68px auto 1fr;
  justify-items: center;
  align-items: start;
  gap: 10px;
  text-align: center;
}

.trust-icon,
.trust-item svg {
  width: 68px;
  height: 68px;
  object-fit: contain;
  color: rgba(242, 211, 71, 0.78);
}

.trust-item svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(0.92rem, 1.15vw, 1.18rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.trust-item p {
  max-width: 190px;
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  font-weight: 800;
  line-height: 1.22;
}

.industry-grid {
  margin-top: 42px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 16 / 9;
}

.industry-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  cursor: default;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card span {
  position: absolute;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.62);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  text-align: center;
  text-transform: uppercase;
}

.industry-card:nth-child(1) span,
.industry-card:nth-child(2) span {
  top: 0;
}

.industry-card:nth-child(3) span,
.industry-card:nth-child(4) span {
  bottom: 0;
}

.equipment-banner {
  min-height: 560px;
  margin-top: 48px;
  display: grid;
  align-items: start;
  justify-items: end;
  padding: clamp(46px, 7vw, 86px) clamp(42px, 8vw, 112px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1)),
    url("assets/excavadora1.png") center / cover;
}

.equipment-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.equipment-copy h2 {
  margin: 0;
  color: var(--white);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.7rem, 4.4vw, 4.7rem);
  line-height: 1.08;
  text-transform: none;
}

.equipment-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  padding: 10px 22px;
  border: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.equipment-copy a:hover {
  color: var(--gold);
}

.contact-page {
  background: var(--black);
}

.contact-page .site-header {
  background: var(--black);
}

.contact-page .nav {
  min-height: 74px;
  padding: 0 28px;
}

.contact-logo-button {
  width: clamp(118px, 11vw, 143px);
  display: block;
  margin: 20px auto 26px;
}

.contact-logo-button img {
  width: 100%;
  height: auto;
}

.contact-shell {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  min-height: 500px;
  padding: 38px clamp(20px, 4vw, 48px);
  background: linear-gradient(rgba(30, 48, 60, 0.18), rgba(0, 0, 0, 0.15)),
    url("assets/excavadora3.jpeg") center / cover;
}

.contact-info h1 {
  max-width: 520px;
  margin: 0 auto 18px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
}

.contact-info > p {
  max-width: 560px;
  margin: 0 auto 68px;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 800;
  line-height: 1.22;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-form {
  padding: 54px clamp(20px, 3vw, 30px) 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
}

.field,
.message {
  width: 100%;
  border: 3px solid #87929d;
  background: transparent;
  color: var(--white);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.92rem;
  padding: 8px 12px;
}

.field::placeholder,
.message::placeholder {
  color: var(--white);
  opacity: 1;
}

.wide {
  grid-column: 1 / -1;
}

.message {
  min-height: 92px;
  margin-top: 16px;
  resize: vertical;
}

.privacy h2 {
  margin: 12px 0 6px;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.privacy p {
  margin: 0 0 14px;
  font-size: 0.88rem;
}

.privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit {
  width: 100%;
  border: 0;
  background: #dec447;
  color: var(--black);
  padding: 11px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submit.is-success {
  background: #dec447;
  color: var(--black);
}

.form-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.contact-page .site-footer {
  margin-top: 90px;
}

.site-footer {
  background: var(--black);
  text-align: center;
}

.footer-main {
  padding: 72px 20px 54px;
}

.footer-main p {
  margin: 0 0 16px;
  font-weight: 800;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 2.35rem;
  font-weight: 900;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.copyright {
  background: var(--steel);
  color: var(--black);
  padding: 4px 12px;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .nav,
  .nav--simple {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .brand,
  .nav-cta {
    justify-self: center;
  }

  .nav--simple .nav-links {
    justify-content: center;
  }

  .machine-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-image {
    padding: 48px 28px;
  }

  .trust-image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, #151719 100%);
  }

  .trust-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-banner {
    min-height: 460px;
    justify-items: center;
    background-position: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 14px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 18px 24px;
    font-size: 0.95rem;
  }

  .nav-cta {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 8px 18px;
  }

  .machinery-page .site-header {
    position: fixed;
    top: 0;
  }

  .machinery-page .nav {
    display: grid;
    grid-template-columns: auto auto;
    min-height: 0;
    padding: 6px 14px 8px;
    gap: 6px 14px;
  }

  .machinery-page .brand {
    width: 72px;
    justify-self: start;
  }

  .machinery-page .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.78rem;
  }

  .machinery-page .nav-links a::after {
    bottom: -4px;
    height: 2px;
  }

  .machinery-page .nav-cta {
    width: auto;
    max-width: none;
    justify-self: end;
    align-self: center;
    padding: 6px 12px;
    border-width: 2px;
    font-size: 0.82rem;
  }

  .machinery-page main {
    padding-top: 92px;
  }

  .machinery-page .machine-hero {
    padding-top: 26px;
  }

  .machine-strip {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .machine-card {
    min-height: 340px;
  }

  .machine-copy {
    opacity: 1;
    transform: translateY(-50%);
  }

  .machine-card::after {
    opacity: 1;
  }

  .history-image {
    min-height: 320px;
  }

  .trust-benefits {
    grid-template-columns: 1fr;
    padding: 42px 28px;
  }

  .trust-item {
    grid-template-rows: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 3px solid rgba(218, 228, 238, 0.75);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .clients-board {
    padding: 14px;
  }

  .quote-inner {
    grid-template-columns: 1fr;
    padding: 14px 28px;
  }

  .quote-button {
    min-width: 0;
    width: 100%;
  }

  .industry-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(170px, auto));
    aspect-ratio: auto;
    max-width: 100%;
  }

  .industry-card {
    min-height: 190px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .equipment-banner {
    min-height: 390px;
    padding: 42px 28px;
  }

  .contact-info > p {
    margin-bottom: 100px;
  }
}
